Ankündigung

Einklappen
Keine Ankündigung bisher.

Is it possible to set a bulb status manually

Einklappen
X
 
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

  • Is it possible to set a bulb status manually

    Hi Guys,

    I also asked Loxone support but they seem not able to answer me.

    Here's my problem:
    I have a Philips Hue bulb which I can control perfectly via a loxone touch. For this I use http commands. I can get the status of the hue bulb also via a http command.
    However, if I turn the lights on via the Hue app, Loxone of course doesn't know the changed status of the hue bulb.

    In order to fix this I would like to set the status of the virtual command manually (this means NOT sending a command but just update the status) so that it shows the correct status in my loxone app. I am going to get the status of the bulb with every motion sensor action such that I do not need to poll every n seconds

    The question is then: does anybody know if it's possible to set the status manually and how to do it?
    Any help is highly appreciated :-)

    Thanks!
    Tom

  • #2
    Doesn't look like a smart solution to me.
    Any reasons why you stick to Hue app instead of moving to Loxone app?

    I have multiple (>10 hue bulbs) and I control them all from Loxone touch switches and Loxone app only.
    Not using other apps since Loxone allows me to set everything including brightness and color.
    This is done mostly by a PicoC Program block with a script to control Hue bulbs that can be found here.
    I'm using Conbee II stick, but I suppose API is compatible.
    Noch ein oder zwei Jahre mit Loxone und ich werde Deutsch sprechen

    Kommentar


    • maxw
      maxw kommentierte
      Kommentar bearbeiten
      He IS using the Loxone App and he asks for help updating Hue status in the Loxone App after it changed with a Loxone Touch.

    • TomekWaw
      TomekWaw kommentierte
      Kommentar bearbeiten
      "if I turn the lights on via the Hue app"

  • #3
    Hi TomekWaw,

    I am using only Loxone to control my hue bulbs but I want a fail safe system. I want to be able to use both hue controls and loxone controls. Also image there is a power cut to the hue bulbs for any reason then Loxone will still think your ligths are on while they are not. I know how to query the status of the hue bulbs. Only thing is missing is how to set the status in Loxone.

    A perfect solution from Loxone would be that for a Virtual Output next to the ON and OFF commands there is a STATUS command where we can enter the command to get the status of a Virtual Command (ie Hue bulbs)

    Regards,

    Kommentar


    • #4
      @bauwt,

      Yeah, there's no feedback to Miniserver on changes made on the Hue bridge by different API clients.
      I personally don't get that need for fail safe control, but also don't see reason what that shouldn't be possible.
      Actually I'm also using such feedback loops, for instance with my Fibaro Wall Plugs, that can be controlled both with the Loxone App and physical button on the plug. And it's status is always in sync.

      Do you already have the API command to get status of the bulb?
      Are you using Lighting Controller to turn on the bulbs?

      BTW, there is also a solution to have bulb status in Loxone updated every single change made in Hue app,
      but it requires Raspberry Pi board with LoxBerry system and some plugins. Just saying in case you already had one.
      Zuletzt geändert von TomekWaw; vor einer Woche.
      Noch ein oder zwei Jahre mit Loxone und ich werde Deutsch sprechen

      Kommentar


      • bauwt
        bauwt kommentierte
        Kommentar bearbeiten
        Hi TomekWaw, yes I'm using a Lighting Controller and I have the API command to get the status.

        You say you are using fibaro wall plugs and that it's always in sync. So, if you push on the wall plug button, you see it in Loxone app? This is exactly what I need. How did you do it :-)

        I have searched in Loxberry (actually have it running for sonos integration) but I couldn't find anything except in the wanted plugins section. Also looked at OpenHAB but the binding there also doesn't allow for the state to be set.

    • #5
      Hi @bauwt,

      I will describe it for you briefly in points.

      First, Fibaro Wall Plug loopback:
      1. I'm using FHEM Plugin to manage my Z-wave devices. FHEM has all current readings of wall plug, including "state" (see attachment 1)
      2. I'm using MQTT-Gateway plugin, that includes Mosquito MQTT broker and an engine for pushing new MQTT readings to Loxone Miniserver over UDP or HTTP. I'm using UDP.
      3. In FHEM I could publish only wall plug state to MQTT, but as I have multiple different devices in FHEM with different readings I'm interested in, it's more convenient for me to push ALL FHEM readings to MQTT. For command set to push all FHEM reading to MQTT see attachment 2
      4. So now I have MQTT topic fhem/Fibaro_Wall_Plug_1/state with value on or off depending on real state of the wall plug.
      5. To have it sent to Loxone I need: a) subscribe that topic in MQTT-Gateway plugin and b) convert "off" to value 0 and "on" to value 1, as I'm using UDP. See attachments 3 and 4 for that.
      6. Now I just need to add Virtual Input in Loxone Config. See attachment 5 and 6 for that.
      7. I've used a simple Switch block in Loxone Config that has a Virtual Output connected to control the wall plug (http call to FHEM "/fhem?cmd=set%20Fibaro_Wall_Plug_1%20on" and "...off"). The point is, it also has external input control. See attachment 7. Please note: Push switch block is used here solely to detect edge (it's not used in Visualization!). Since new Loxone Config version >10.3 you've better use new "Edge detection" block instead.
      Easy!

      So you may do exactly the same with Hue Lights.
      1. Install FHEM Plugin in your LoxBerry.
      2. Connect FHEM to HUEBridge with included Hue module. Command set starts with something like define MyBridge HUEBridge HUEbrideIP:HuePort. Read FHEM HUE-module docs for details how to connect it.
      3. After you sync lights from HUE Bridge to FHEM, you will be getting all reading for every Light. See Attachment 8 for readings of one of my Philips bulbs.
      4. Since I push all readings to MQTT, I would have that bulb state under something like fhem/Philips_Bulb_1/state
      5. Then I would subscribe to that topic in MQTT Gateway plugin and push it to Loxone.
      6. Finally, I would create Virtual Input with Philips Bulb 1 state in Loxone Config.
      7. Then you might use Edge detection block out of its input and connect it to O and R inputs of Lighting Controller block.
      8. If you had more than one bulbs/lights used on that Lighting Controller, that's another challenge, but I suppose it is out of the scope of this topic.
      9. A different challenge is to sync back more than just a state (on or off). Think of ct / bri / rgb readings for a full blown RGB(W) bulb. But I suppose it's also possible.
      You will probably figure out all details on your own, if not - just ask me for details on the very specific points of this mini-howto
      Angehängte Dateien
      Zuletzt geändert von TomekWaw; vor 6 Tagen.
      Noch ein oder zwei Jahre mit Loxone und ich werde Deutsch sprechen

      Kommentar


      • bauwt
        bauwt kommentierte
        Kommentar bearbeiten
        Wow, that's an elaborate answer! Thanks a lot, appreciate it!
        I'll have a look tonight

    • #6
      Only 5 attachments allowed in single post, so here 3 following
      Angehängte Dateien
      Noch ein oder zwei Jahre mit Loxone und ich werde Deutsch sprechen

      Kommentar


      • #7
        Ich you need to sync with an external control and you do not need the Lighting Controller for it, then you always could use EIB-Dimmer and EIB-Button. They both have status inputs.

        Kommentar

        Lädt...
        X