Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Einsteigerfragen
    4. Philips Hue Geräte zustand speichern

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    Philips Hue Geräte zustand speichern

    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      Schlippi90 last edited by Schlippi90

      Hallo zusammen,

      ich würde gerne den aktuellen Lampen zustand speichern, bevor eine Routine ausgelöst wird.
      Um den letzten Zustand nach Beendigung der Routine wieder hergestellt wird.
      Leider weiß ich nicht wie ich das hinbekommen.
      Kann mir dabei einer helfen?

      Gruß und schönes Wochenende

      Asgothian 1 Reply Last reply Reply Quote 0
      • Asgothian
        Asgothian Developer @Schlippi90 last edited by

        @schlippi90 sagte in Philips Hue Geräte zustand speichern:

        Kann mir dabei einer helfen?

        bestimmt.

        Du solltest aber erst einmal sagen wie du die Philips Hue Geräte eingebunden hast und wie du sie ansteuern willst.

        A.

        S 1 Reply Last reply Reply Quote 0
        • S
          Schlippi90 @Asgothian last edited by

          @asgothian ich steuere die Hue Geräte mittels Bridge. Die Bridge habe ich im Iobroker angelegt.
          Die Lampen werden via App, Blockly und Alexa ansteuert.

          DJMarc75 1 Reply Last reply Reply Quote 0
          • DJMarc75
            DJMarc75 @Schlippi90 last edited by

            @schlippi90 said in Philips Hue Geräte zustand speichern:

            ich steuere die Hue Geräte mittels Bridge. Die Bridge habe ich im Iobroker angelegt.

            welchen Adapter benutzt Du ?

            S 1 Reply Last reply Reply Quote 0
            • S
              Schlippi90 @DJMarc75 last edited by

              @djmarc75 ich benutze den Philips Hue-Bridge Adapter

              DJMarc75 1 Reply Last reply Reply Quote 0
              • DJMarc75
                DJMarc75 @Schlippi90 last edited by DJMarc75

                @schlippi90
                OK, habe mir den Adapter kurz installiert.

                Folgendes Blockly könnte helfen...
                Screenshot 2022-05-08 135043.png


                <xml xmlns="https://developers.google.com/blockly/xml">
                <variables>
                <variable id="E?o#!,iW%|KfJu.,4RiL">on/off</variable>
                <variable id="Y$[9Wc}]obf$LxTtpQ6U">xy</variable>
                </variables>
                <block type="comment" id="ez33LuZPZ5H?*YlJQ1z" x="163" y="-138"> <field name="COMMENT">Dein Trigger</field> <next> <block type="on_ext" id="E:5Nx*^DItQQHp3P1YY8"> <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id=";!RR=*UQIX0eJDcF(V"> <field name="oid">default</field> </shadow> </value> <statement name="STATEMENT"> <block type="controls_if" id="Cxcumo8f8}U[/[nhg%H."> <mutation elseif="1"></mutation> <value name="IF0"> <block type="logic_compare" id="6|lv5_:ZoP3Wd)=AeQ;P"> <field name="OP">EQ</field> <value name="A"> <block type="on_source" id="GQS;Z;._9hj1f3A*Urb@"> <field name="ATTR">state.val</field> </block> </value> <value name="B"> <block type="logic_boolean" id="_YU8!iusud[FZH@Z|XnL"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> <statement name="DO0"> <block type="comment" id="(ByU=$9$N.v2~x1FjcD">
                <field name="COMMENT">Datenpunkt Deiner Lampe/Gruppe "on" im HUE-Adapter</field>
                <next>
                <block type="controls_if" id="J#RWY}oIs|/n-2@9z6y4">
                <value name="IF0">
                <block type="logic_compare" id="#m4U:I0Xq_M|-$V3T/$"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="}]4(;T;C%,TZ.d~;CNc,"> <field name="ATTR">val</field> <field name="OID">ID auswählen</field> </block> </value> <value name="B"> <block type="logic_boolean" id="m(*Cb(@XbK(ZVf^!6fD."> <field name="BOOL">TRUE</field> </block> </value> </block> </value> <statement name="DO0"> <block type="variables_set" id="Af-WM}s|#IhI2(Hf6$1">
                <field name="VAR" id="E?o#!,iW%|KfJu.,4RiL">on/off</field>
                <value name="VALUE">
                <block type="logic_boolean" id=":]wBF588ixXaD=N4fk,">
                <field name="BOOL">TRUE</field>
                </block>
                </value>
                <next>
                <block type="comment" id="@ihvN@FlMvkG{bBnJC:H">
                <field name="COMMENT">Datenpunkt Deiner Lampe/Gruppe "xy" im HUE-Adapter</field>
                <next>
                <block type="variables_set" id="9[%#@a{(6aoKqMG?gUh">
                <field name="VAR" id="Y$[9Wc}]obf$LxTtpQ6U">xy</field>
                <value name="VALUE">
                <block type="get_value" id="w#y!lTAOGSkpI3m|muyX">
                <field name="ATTR">val</field>
                <field name="OID">ID auswählen</field>
                </block>
                </value>
                </block>
                </next>
                </block>
                </next>
                </block>
                </statement>
                </block>
                </next>
                </block>
                </statement>
                <value name="IF1">
                <block type="logic_operation" id=",Y@d+KQOO|3J;)7L7@F-" inline="false">
                <field name="OP">AND</field>
                <value name="A">
                <block type="logic_compare" id="-Wu7|k4PyFb@)#$PDfk"> <field name="OP">EQ</field> <value name="A"> <block type="on_source" id="akpdAq!Lirj0y+%8~*8S"> <field name="ATTR">state.val</field> </block> </value> <value name="B"> <block type="logic_boolean" id="Fcs_fuxeclLlE2B4ro[C"> <field name="BOOL">FALSE</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="INk/J,unP3inr$wo[0k">
                <field name="OP">EQ</field>
                <value name="A">
                <block type="variables_get" id="$d89+ai8)w:!NnF
                _/|y">
                <field name="VAR" id="E?o#!,iW%|KfJu.,4RiL">on/off</field>
                </block>
                </value>
                <value name="B">
                <block type="logic_boolean" id="2g:tjaVIv,S0?|n(
                ?~-">
                <field name="BOOL">TRUE</field>
                </block>
                </value>
                </block>
                </value>
                </block>
                </value>
                <statement name="DO1">
                <block type="comment" id="4S]y[XTlgtJajk0:AlY8">
                <field name="COMMENT">Datenpunkt Deiner Lampe/Gruppe "xy" im HUE-Adapter</field>
                <next>
                <block type="control" id=")-7i79GrMn@lIGj(;MV2">
                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                <field name="OID">Object ID</field>
                <field name="WITH_DELAY">FALSE</field>
                <value name="VALUE">
                <block type="variables_get" id="*|eXlg1R9(AAgB|(TIx/">
                <field name="VAR" id="Y$[9Wc}]obf$LxTtpQ6U">xy</field>
                </block>
                </value>
                </block>
                </next>
                </block>
                </statement>
                </block>
                </statement>
                </block>
                </next>
                </block>
                </xml>

                Die Datenpunkte halt anpassen und, ganz wichtig, auf eine Alexaroutine kann nur bedingt getriggert werden. Auf "true" schon, aber der Datenpunkt der Routine

                alexa2.0.Echo-Devices.DEINDEVICE.Routines.DEINEROUTINE
                

                wird sich nach Ausführen nicht auf "false" setzen (oder manuell per Blockly wieder auf "false" setzen wenn "true" erkannt wurde, aber das würde ja beim Triggern auf eine Routine wenig Sinn machen weil dann ja die Werte der HUE sofort wieder gesetzt werden).
                Daher eher auf einen anderen Datenpunkt triggern.

                S 1 Reply Last reply Reply Quote 0
                • S
                  Schlippi90 @DJMarc75 last edited by

                  @djmarc75 Vielen Dank für die Hilfe. Ich werde es mal ausprobieren und schauen ob ich es damit hin bekomme.

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post

                  Support us

                  ioBroker
                  Community Adapters
                  Donate

                  872
                  Online

                  31.9k
                  Users

                  80.1k
                  Topics

                  1.3m
                  Posts

                  3
                  7
                  334
                  Loading More Posts
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes
                  Reply
                  • Reply as topic
                  Log in to reply
                  Community
                  Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                  The ioBroker Community 2014-2023
                  logo