Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. Mein Start mit Blockly/Skripten - Hilfe bei Erstellung

    NEWS

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    Mein Start mit Blockly/Skripten - Hilfe bei Erstellung

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

      @Kuddel

      Habe jetzt die debug output Bausteine wie in dem Bild gelassen und auf Aktuelle Zeit ist NICHT zwischen Sonnenuntergang und Sonnenaufgang geändert...
      Beim sagen: "Alexa, Smart an" hat wieder wie es soll die Logitech Aktion Smart TV gestartet OHNE Licht...
      im Log sind jedoch die selben Meldungen wie zuvor im Bild zu sehen...
      Wo genau müssten denn meine Texte Skriptteil 1 & 2 ausgeführt zu lesen sein? Auch im ioBroker Log direkt?

      K 1 Reply Last reply Reply Quote 0
      • K
        Kuddel @smartmood last edited by

        @smartmood wenn das Skript den Bereich ausgeführt hat, siehst du die Einträge direkt im Log.

        KLick mal beim Output Baustein auf Info und wähle error aus, dann wird dir deine Meldung sogar noch in rot dargestellt

        1 Reply Last reply Reply Quote 0
        • smartmood
          smartmood last edited by

          @Kuddel

          Habe ich nun auch gemacht aber im Log erscheinen immer nur die selben 3 Einträge wie oben im Bild...

          Jetzt ist mir aber nochwas aufgefallen, betrifft Harmony....

          1. In der Alexa App sind meine Harmony Aktionen nicht mehr zu sehen...

          2. Die Harmony Aktion heißt ja Smart TV über die Routine hatte ich ja eingestellt Smart zu sagen, dass die Aktion über Alexa gestarten wird - also:
            "Alexa, Smart an" = startet Aktion Smart TV...
            Nun habe ich ja aber die Routine deaktiviert und die Aktion startete trotzdem... das hätte ja eigentlich nicht ein dürfen oder?

          Ich habe jetzt aber die Logitech Aktion Smart TV in Smart geändert und das Skript auch dementsprechend angepasst...

          Wie bekomme ich meine Logitech Aktionen wieder in die Alexa App?^^

          smartmood 1 Reply Last reply Reply Quote 0
          • smartmood
            smartmood @smartmood last edited by

            Also das mit den Aktionen in der Alexa App hat sich erledigt, die sind unter den Szenen zu finden 😄

            dslraser 1 Reply Last reply Reply Quote 0
            • dslraser
              dslraser Forum Testing Most Active @smartmood last edited by dslraser

              @smartmood
              teste doch erstmal ganz ohne Astro, wenn das funktioniert kannst Du es ja erweitern. Dann weißt Du jedenfalls ob es grundsätzlich funktioniert.

              PS: und wenn Du Dein Blockly testen willst, sind die erwähnten debug Bausteine sehr gut.
              Als Skill habe ich nur den für ioBroker und keinen anderen aktiviert. Sonst wirst Du nie wissen welcher Skill was gemacht hat.

              1 Reply Last reply Reply Quote 0
              • smartmood
                smartmood last edited by

                @dslraser
                habe ich gerade mal getestet, als ich für die Lampen die Objekt ID Entertainment Bereich TV genommen habe + den Astro Baustein entfernt habe hatte es nicht geklappt. Jetzt habe ich mal beide Hue Play Bars einzeln rein genommen (ohne Astro) und die Lichter sind mit angegangen.

                Jetzt muss ich das ganze nur nochmal testen wenn es dunkel ist und der Astro Baustein dabei ist....

                1 Reply Last reply Reply Quote 0
                • smartmood
                  smartmood last edited by

                  @dslraser es scheint zu funktionieren 😄
                  schaue mir das Morgen früh nochmal genau an...

                  1 Reply Last reply Reply Quote 1
                  • smartmood
                    smartmood last edited by smartmood

                    Hallo zusammen,
                    @dslraser

                    Also es klappt noch nicht so ganz 😅
                    Der Teil, dass bei der Aktion "Smart" die Lichter angehen klappt soweit
                    aber der Part mit der Uhrzeit zwischen Sonnenuntergang und Sonnenaufgang klappt nicht, den muss man irgendwie noch richtig einstellen, fragt sich nur wie???
                    Zur Zeit steht es auf:
                    628ade82-8371-4b49-82fd-3151dbc7ae82-grafik.png

                    Edit:

                    Also rein von der Logik her würde ich jetzt sagen es muss auf:
                    aktuelle Zeit ist zwischen aktuelle Zeit von Sonnenuntergang und aktuelle Zeit von Sonnenaufgang stehen... aber
                    @Jan1 meinte ja die Reihenfolge darf nicht Sonnenuntergang und Sonnenaufgang sein weil die Spanne nur innerhalb von einem Tag sein darf...
                    @Kuddel meinte ja dass in dem Astro Baustein sowieso ein Bug zu sein scheint....

                    dslraser 1 Reply Last reply Reply Quote 0
                    • dslraser
                      dslraser Forum Testing Most Active @smartmood last edited by

                      @smartmood
                      ich kann Dir da nicht helfen, ich verwende kein Astro. Sonst nimm doch Testweise erstmal Uhrzeiten.

                      Oder, was geben denn Debug Bausteine von Astro aus ? Bau die mal ein.

                      1 Reply Last reply Reply Quote 0
                      • smartmood
                        smartmood last edited by

                        @dslraser

                        Schau mal in meinem Beitrag Nr. 31 hier, dort habe ich Screenshots eingefügt wie ich die Debug Bausteine eingefügt hatte... und in meinem ioBroker Log erscheint keine der entsprechenden Meldungen.
                        Hatte ich die Bausteine überhaupt richtig gesetzt?
                        Mittlerweile habe ich die Debug Bausteine wieder raus genommen aber werde sie zum testen wieder einfügen...

                        dslraser 1 Reply Last reply Reply Quote 0
                        • dslraser
                          dslraser Forum Testing Most Active @smartmood last edited by dslraser

                          @smartmood
                          ich weiß nicht ob es was bringt, aber nimm mal den Astro Teil und pack den in einen debug.
                          So ganz ohne den Test, deaktiviere den Rest mal und aktiviere bzw. aktualisiere mal das Blockly. Den Debug Baustein stelle mal auf warn, dann kannst Du es besser sehen.

                          1 Reply Last reply Reply Quote 0
                          • dslraser
                            dslraser Forum Testing Most Active last edited by

                            @smartmood

                            Bildschirmfoto 2019-05-30 um 12.58.19.png

                            Bildschirmfoto 2019-05-30 um 12.58.30.png

                            1 Reply Last reply Reply Quote 0
                            • smartmood
                              smartmood last edited by smartmood

                              @dslraser

                              ah so soll das aussehen cool Danke dir, dann weiß ich wenigstens wie ich das für die nächsten Male einzustellen habe ...
                              denn es scheint nun aber zu klappen.

                              Ich habe die Astrofunktion nun nun auf NICHT zwischen - Sonnenaufgang - Sonnenuntergang - gestellt.
                              Die Lichter sind jetzt nicht mit angegangen, ich werde das Heute Abend und Morgen nochmal ein wenig testen und gebe euch dann bescheid ob es jetzt wirklich klappt 😄

                              1 Reply Last reply Reply Quote 0
                              • smartmood
                                smartmood last edited by

                                Soooo Leute jetzt klappt das Skript endlich 😄

                                Meine nächsten 2 Vorhaben konnte ich sogar selber umsetzten und sie funktionieren auch...

                                1. Ein Skript welches die Hue Play Bars ausschaltet wenn die Activity auf Power Off wechselt.
                                2. Ein Skript beidem Alexa einen von mir ausgewählen Text spricht, wenn Fenster X 5 Minuten lang geöffnet ist.

                                Für die Umsetzung meiner nächsten Skripte hätte ich folfende Frage:

                                Wäre folgendes möglich?:

                                • Ich sage z.B. "Alexa, gute Nacht"
                                • dann soll geprüft werden ob eines der TV Geräte an ist oder eine Harmony Aktion an ist, wenn ja soll diese aus gehen - gleiches mit den Hue Play Bars
                                • das Licht im Schlafzimmer soll an gehen und automatisch nach 5 Minuten aus gehen
                                dslraser 1 Reply Last reply Reply Quote 0
                                • dslraser
                                  dslraser Forum Testing Most Active @smartmood last edited by

                                  @smartmood
                                  klar geht das 😁

                                  1 Reply Last reply Reply Quote 0
                                  • smartmood
                                    smartmood last edited by smartmood

                                    @dslraser
                                    Das ist doch schonmal schön, dass es geht 😄

                                    Wie müsste ich denn in Blockly umsetzen, dass ein Harmony Gerät bzw. Aktion und Lampen geprüft werden ob diese an sind?

                                    dslraser 5 Replies Last reply Reply Quote 0
                                    • dslraser
                                      dslraser Forum Testing Most Active @smartmood last edited by dslraser

                                      @smartmood

                                      siehe unten...

                                      1 Reply Last reply Reply Quote 0
                                      • dslraser
                                        dslraser Forum Testing Most Active @smartmood last edited by dslraser

                                        @smartmood

                                        Du legst Dir einen eigenen Datunpunkt an. Mit Deiner Gute Nacht Routine kannst Du dann Dein Blockly über diesen Datenpunkt anschupsen.

                                        Bildschirmfoto 2019-05-30 um 22.30.20.png

                                        <xml xmlns="http://www.w3.org/1999/xhtml">
                                          <block type="procedures_defcustomnoreturn" id="(O)c8X-C[MCtqO5vS*^e" x="-463" y="63">
                                            <mutation statements="false"></mutation>
                                            <field name="NAME">datenpunkt anlegen</field>
                                            <field name="SCRIPT">Ly9EYXRlbnB1bmt0ICBlcnN0ZWxsZW4KY3JlYXRlU3RhdGUoIkVpZ2VuZV9EYXRlbnB1bmt0ZS5HdXRlX05hY2h0Lkd1dGVfTmFjaHQiLCB7CiAgICBuYW1lOiAnR3V0ZSBOYWNodCcsIAogICAgcm9sZTogJ2J1dHRvbicsCiAgICByZWFkOiAgZmFsc2UsIAogICAgd3JpdGU6IHRydWUsCiAgICAic21hcnROYW1lIjogewogICAgImRlIjogIkd1dGUgTmFjaHQgRGF0ZW5wdW5rdCIsCiAgICAic21hcnRUeXBlIjogIlNXSVRDSCIKfQp9KTs=</field>
                                            <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
                                          </block>
                                          <block type="procedures_callcustomnoreturn" id="`sx3r1UFlV;$o1:Eu$dG" x="-463" y="137">
                                            <mutation name="datenpunkt anlegen"></mutation>
                                            <next>
                                              <block type="on_ext" id="]]A^|D#,$16@V,C[~OJs">
                                                <mutation items="1"></mutation>
                                                <field name="CONDITION">any</field>
                                                <field name="ACK_CONDITION"></field>
                                                <value name="OID0">
                                                  <shadow type="field_oid" id="=H0]V3r[XSst;zM^]=xZ">
                                                    <field name="oid">javascript.0.Eigene_Datenpunkte.Gute_Nacht.Gute_Nacht</field>
                                                  </shadow>
                                                </value>
                                                <statement name="STATEMENT">
                                                  <block type="controls_if" id="kfK8usI}_OV4khC@{tnK">
                                                    <value name="IF0">
                                                      <block type="logic_operation" id=";s/[$QWy.P84rt4Uvfr-" inline="false">
                                                        <field name="OP">AND</field>
                                                        <value name="A">
                                                          <block type="logic_compare" id="I5ew_,Qeo1Y7?:*,g1zv">
                                                            <field name="OP">NEQ</field>
                                                            <value name="A">
                                                              <block type="get_value" id="OLctaaO~^wQA$IN6.SHE">
                                                                <field name="ATTR">val</field>
                                                                <field name="OID">harmony.0.Wohnzimmer.activities.currentStatus</field>
                                                              </block>
                                                            </value>
                                                            <value name="B">
                                                              <block type="math_number" id="XE8W=:=5KJcjCJ#:}HWz">
                                                                <field name="NUM">0</field>
                                                              </block>
                                                            </value>
                                                          </block>
                                                        </value>
                                                        <value name="B">
                                                          <block type="logic_compare" id="f88jdjiYTtnxprig3xx@">
                                                            <field name="OP">EQ</field>
                                                            <value name="A">
                                                              <block type="get_value" id="!pm/[2r|Y2im_~|3k;7(">
                                                                <field name="ATTR">val</field>
                                                                <field name="OID">hue.0.HueBridge.Wohnzimmer.on</field>
                                                              </block>
                                                            </value>
                                                            <value name="B">
                                                              <block type="logic_boolean" id="{qcZ!`0Vg_GCq6kW2m]i">
                                                                <field name="BOOL">TRUE</field>
                                                              </block>
                                                            </value>
                                                          </block>
                                                        </value>
                                                      </block>
                                                    </value>
                                                    <statement name="DO0">
                                                      <block type="comment" id="O2v/|Hg!fYEPow*-~2Iq">
                                                        <field name="COMMENT">mach dies oder das...</field>
                                                      </block>
                                                    </statement>
                                                  </block>
                                                </statement>
                                              </block>
                                            </next>
                                          </block>
                                        </xml>
                                        
                                        smartmood 1 Reply Last reply Reply Quote 0
                                        • dslraser
                                          dslraser Forum Testing Most Active @smartmood last edited by

                                          @smartmood
                                          hier mal drei activities die geprüft werden. (Falls im Wohnzimmer dies und das an, dann mach aus und falls im Schlafzimmer aus, dann mach im Schlafzimmer an) So in der Art...

                                          Bildschirmfoto 2019-05-30 um 22.49.42.png

                                          <xml xmlns="http://www.w3.org/1999/xhtml">
                                            <block type="procedures_defcustomnoreturn" id="(O)c8X-C[MCtqO5vS*^e" x="-463" y="88">
                                              <mutation statements="false"></mutation>
                                              <field name="NAME">datenpunkt anlegen</field>
                                              <field name="SCRIPT">Ly9EYXRlbnB1bmt0ICBlcnN0ZWxsZW4KY3JlYXRlU3RhdGUoIkVpZ2VuZV9EYXRlbnB1bmt0ZS5HdXRlX05hY2h0Lkd1dGVfTmFjaHQiLCB7CiAgICBuYW1lOiAnR3V0ZSBOYWNodCcsIAogICAgcm9sZTogJ2J1dHRvbicsCiAgICByZWFkOiAgZmFsc2UsIAogICAgd3JpdGU6IHRydWUsCiAgICAic21hcnROYW1lIjogewogICAgImRlIjogIkd1dGUgTmFjaHQgRGF0ZW5wdW5rdCIsCiAgICAic21hcnRUeXBlIjogIlNXSVRDSCIKfQp9KTs=</field>
                                              <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
                                            </block>
                                            <block type="procedures_callcustomnoreturn" id="`sx3r1UFlV;$o1:Eu$dG" x="-463" y="137">
                                              <mutation name="datenpunkt anlegen"></mutation>
                                              <next>
                                                <block type="on_ext" id="]]A^|D#,$16@V,C[~OJs">
                                                  <mutation items="1"></mutation>
                                                  <field name="CONDITION">any</field>
                                                  <field name="ACK_CONDITION"></field>
                                                  <value name="OID0">
                                                    <shadow type="field_oid" id="=H0]V3r[XSst;zM^]=xZ">
                                                      <field name="oid">javascript.0.Eigene_Datenpunkte.Gute_Nacht.Gute_Nacht</field>
                                                    </shadow>
                                                  </value>
                                                  <statement name="STATEMENT">
                                                    <block type="comment" id=";bht4@[v%^rS7sNc7$%g">
                                                      <field name="COMMENT">Wohnzimmer</field>
                                                      <next>
                                                        <block type="controls_if" id="kfK8usI}_OV4khC@{tnK">
                                                          <mutation elseif="2"></mutation>
                                                          <value name="IF0">
                                                            <block type="logic_operation" id=";s/[$QWy.P84rt4Uvfr-" inline="false">
                                                              <field name="OP">AND</field>
                                                              <value name="A">
                                                                <block type="logic_compare" id="I5ew_,Qeo1Y7?:*,g1zv">
                                                                  <field name="OP">NEQ</field>
                                                                  <value name="A">
                                                                    <block type="get_value" id="OLctaaO~^wQA$IN6.SHE">
                                                                      <field name="ATTR">val</field>
                                                                      <field name="OID">harmony.0.Wohnzimmer.activities.Fernsehen</field>
                                                                    </block>
                                                                  </value>
                                                                  <value name="B">
                                                                    <block type="math_number" id="XE8W=:=5KJcjCJ#:}HWz">
                                                                      <field name="NUM">0</field>
                                                                    </block>
                                                                  </value>
                                                                </block>
                                                              </value>
                                                              <value name="B">
                                                                <block type="logic_compare" id="f88jdjiYTtnxprig3xx@">
                                                                  <field name="OP">EQ</field>
                                                                  <value name="A">
                                                                    <block type="get_value" id="!pm/[2r|Y2im_~|3k;7(">
                                                                      <field name="ATTR">val</field>
                                                                      <field name="OID">hue.0.HueBridge.Wohnzimmer.on</field>
                                                                    </block>
                                                                  </value>
                                                                  <value name="B">
                                                                    <block type="logic_boolean" id="{qcZ!`0Vg_GCq6kW2m]i">
                                                                      <field name="BOOL">TRUE</field>
                                                                    </block>
                                                                  </value>
                                                                </block>
                                                              </value>
                                                            </block>
                                                          </value>
                                                          <statement name="DO0">
                                                            <block type="control" id="O3sy2f+#;7f]X@PM8YY*">
                                                              <mutation delay_input="false"></mutation>
                                                              <field name="OID">harmony.0.Wohnzimmer.activities.Fernsehen</field>
                                                              <field name="WITH_DELAY">FALSE</field>
                                                              <value name="VALUE">
                                                                <block type="math_number" id="6Xi#IIG~;;*v[/lhDZIE">
                                                                  <field name="NUM">0</field>
                                                                </block>
                                                              </value>
                                                              <next>
                                                                <block type="control" id="mu+mp~uZigS.(}o%;Bil">
                                                                  <mutation delay_input="false"></mutation>
                                                                  <field name="OID">hue.0.HueBridge.Wohnzimmer.on</field>
                                                                  <field name="WITH_DELAY">FALSE</field>
                                                                  <value name="VALUE">
                                                                    <block type="logic_boolean" id="/g:3ZQgj})m~_,yjkLJa">
                                                                      <field name="BOOL">FALSE</field>
                                                                    </block>
                                                                  </value>
                                                                </block>
                                                              </next>
                                                            </block>
                                                          </statement>
                                                          <value name="IF1">
                                                            <block type="logic_operation" id="F_k^@b}E|G.u*Ojn]:(k" inline="false">
                                                              <field name="OP">AND</field>
                                                              <value name="A">
                                                                <block type="logic_compare" id="^TZQzG@@I6aqG8sJ[eV-">
                                                                  <field name="OP">NEQ</field>
                                                                  <value name="A">
                                                                    <block type="get_value" id="|DX,Fyphe/ITkiS,#V@}">
                                                                      <field name="ATTR">val</field>
                                                                      <field name="OID">harmony.0.Wohnzimmer.activities.BluRay</field>
                                                                    </block>
                                                                  </value>
                                                                  <value name="B">
                                                                    <block type="math_number" id="Xr7rY?@J!Y3nwO^|T=n_">
                                                                      <field name="NUM">0</field>
                                                                    </block>
                                                                  </value>
                                                                </block>
                                                              </value>
                                                              <value name="B">
                                                                <block type="logic_compare" id="nxzy2?Bj1hlquBCJpJPi">
                                                                  <field name="OP">EQ</field>
                                                                  <value name="A">
                                                                    <block type="get_value" id="*B$h=F$-2@;q`k8;m|48">
                                                                      <field name="ATTR">val</field>
                                                                      <field name="OID">hue.0.HueBridge.Wohnzimmer.on</field>
                                                                    </block>
                                                                  </value>
                                                                  <value name="B">
                                                                    <block type="logic_boolean" id=";Jpy;ng}$wm|5dg`b9k6">
                                                                      <field name="BOOL">TRUE</field>
                                                                    </block>
                                                                  </value>
                                                                </block>
                                                              </value>
                                                            </block>
                                                          </value>
                                                          <statement name="DO1">
                                                            <block type="control" id="{VOx}#?aEbED_gQq76=/">
                                                              <mutation delay_input="false"></mutation>
                                                              <field name="OID">harmony.0.Wohnzimmer.activities.BluRay</field>
                                                              <field name="WITH_DELAY">FALSE</field>
                                                              <value name="VALUE">
                                                                <block type="math_number" id=",pbd%S+Ij3omCOd^GCRT">
                                                                  <field name="NUM">0</field>
                                                                </block>
                                                              </value>
                                                              <next>
                                                                <block type="control" id="bvdT)1@?PD7{Fd*#*xZf">
                                                                  <mutation delay_input="false"></mutation>
                                                                  <field name="OID">hue.0.HueBridge.Wohnzimmer.on</field>
                                                                  <field name="WITH_DELAY">FALSE</field>
                                                                  <value name="VALUE">
                                                                    <block type="logic_boolean" id="%R#Ue6(aH937zDa|}ZTx">
                                                                      <field name="BOOL">FALSE</field>
                                                                    </block>
                                                                  </value>
                                                                </block>
                                                              </next>
                                                            </block>
                                                          </statement>
                                                          <value name="IF2">
                                                            <block type="logic_operation" id="F`k;Ki]giY.GgXAq)/Ln" inline="false">
                                                              <field name="OP">AND</field>
                                                              <value name="A">
                                                                <block type="logic_compare" id="Tc7CGhA-P70am~)fnA=x">
                                                                  <field name="OP">NEQ</field>
                                                                  <value name="A">
                                                                    <block type="get_value" id="K4lw{.kF%@RbCW:f26M.">
                                                                      <field name="ATTR">val</field>
                                                                      <field name="OID">harmony.0.Wohnzimmer.activities.Kino</field>
                                                                    </block>
                                                                  </value>
                                                                  <value name="B">
                                                                    <block type="math_number" id="qiTI7Fxz}Lk7WqMF:?Lv">
                                                                      <field name="NUM">0</field>
                                                                    </block>
                                                                  </value>
                                                                </block>
                                                              </value>
                                                              <value name="B">
                                                                <block type="logic_compare" id="kKSL+]M4T_`1OK@U49FU">
                                                                  <field name="OP">EQ</field>
                                                                  <value name="A">
                                                                    <block type="get_value" id=".f+],LAI$;5RPZ#ZYq6]">
                                                                      <field name="ATTR">val</field>
                                                                      <field name="OID">hue.0.HueBridge.Wohnzimmer.on</field>
                                                                    </block>
                                                                  </value>
                                                                  <value name="B">
                                                                    <block type="logic_boolean" id="BiaW;hpjv=f:}H+nn=x*">
                                                                      <field name="BOOL">TRUE</field>
                                                                    </block>
                                                                  </value>
                                                                </block>
                                                              </value>
                                                            </block>
                                                          </value>
                                                          <statement name="DO2">
                                                            <block type="control" id="U:EscaL$85(QpuJ!RcM#">
                                                              <mutation delay_input="false"></mutation>
                                                              <field name="OID">harmony.0.Wohnzimmer.activities.Kino</field>
                                                              <field name="WITH_DELAY">FALSE</field>
                                                              <value name="VALUE">
                                                                <block type="math_number" id="0b=jgmOBoXR8#BIbsqbm">
                                                                  <field name="NUM">0</field>
                                                                </block>
                                                              </value>
                                                              <next>
                                                                <block type="control" id="SK@AUS~6o6KR-EwTn]~j">
                                                                  <mutation delay_input="false"></mutation>
                                                                  <field name="OID">hue.0.HueBridge.Wohnzimmer.on</field>
                                                                  <field name="WITH_DELAY">FALSE</field>
                                                                  <value name="VALUE">
                                                                    <block type="logic_boolean" id="Z*DLT)_*EQ8%Nko_FG0e">
                                                                      <field name="BOOL">FALSE</field>
                                                                    </block>
                                                                  </value>
                                                                </block>
                                                              </next>
                                                            </block>
                                                          </statement>
                                                          <next>
                                                            <block type="comment" id="c`~;]_g.N!c,Hv,EO:J=">
                                                              <field name="COMMENT">Schlafzimmer</field>
                                                              <next>
                                                                <block type="controls_if" id="tHd@z+]wO|*+x5{7(L#2">
                                                                  <value name="IF0">
                                                                    <block type="logic_operation" id="nP5(INebk[.:m-ZQEa4$" inline="false">
                                                                      <field name="OP">AND</field>
                                                                      <value name="A">
                                                                        <block type="logic_compare" id="?KaZ+puMUfmr[?5a(yuR">
                                                                          <field name="OP">EQ</field>
                                                                          <value name="A">
                                                                            <block type="get_value" id="`YeO6ytS99i4*iTu*pRb">
                                                                              <field name="ATTR">val</field>
                                                                              <field name="OID">harmony.0.Schlafzimmer.activities.currentStatus</field>
                                                                            </block>
                                                                          </value>
                                                                          <value name="B">
                                                                            <block type="math_number" id="OU6s@IuJ:gOx5~svPa+Q">
                                                                              <field name="NUM">0</field>
                                                                            </block>
                                                                          </value>
                                                                        </block>
                                                                      </value>
                                                                      <value name="B">
                                                                        <block type="logic_compare" id="RK+.nL7Cy$DNhKO%s-nU">
                                                                          <field name="OP">EQ</field>
                                                                          <value name="A">
                                                                            <block type="get_value" id="#=BqK|UziS|{m2M9{w_2">
                                                                              <field name="ATTR">val</field>
                                                                              <field name="OID">hue.0.HueBridge.Schlafzimmer.on</field>
                                                                            </block>
                                                                          </value>
                                                                          <value name="B">
                                                                            <block type="logic_boolean" id="?!8m8/Uo)U~j/twFjjj#">
                                                                              <field name="BOOL">FALSE</field>
                                                                            </block>
                                                                          </value>
                                                                        </block>
                                                                      </value>
                                                                    </block>
                                                                  </value>
                                                                  <statement name="DO0">
                                                                    <block type="control" id="F$C_jRQTD+b6Dk9VA(hX">
                                                                      <mutation delay_input="false"></mutation>
                                                                      <field name="OID">harmony.0.Schlafzimmer.activities.Fernsehen</field>
                                                                      <field name="WITH_DELAY">FALSE</field>
                                                                      <value name="VALUE">
                                                                        <block type="math_number" id="1,6pHF8(N)^XR8|#[|;{">
                                                                          <field name="NUM">1</field>
                                                                        </block>
                                                                      </value>
                                                                      <next>
                                                                        <block type="control" id="/]lxffb4s9M8Sq{12I6b">
                                                                          <mutation delay_input="false"></mutation>
                                                                          <field name="OID">hue.0.HueBridge.Schlafzimmer.on</field>
                                                                          <field name="WITH_DELAY">FALSE</field>
                                                                          <value name="VALUE">
                                                                            <block type="logic_boolean" id=";Ly2k4/|H`IPOY6uK/XH">
                                                                              <field name="BOOL">TRUE</field>
                                                                            </block>
                                                                          </value>
                                                                        </block>
                                                                      </next>
                                                                    </block>
                                                                  </statement>
                                                                </block>
                                                              </next>
                                                            </block>
                                                          </next>
                                                        </block>
                                                      </next>
                                                    </block>
                                                  </statement>
                                                </block>
                                              </next>
                                            </block>
                                          </xml>
                                          
                                          1 Reply Last reply Reply Quote 0
                                          • dslraser
                                            dslraser Forum Testing Most Active @smartmood last edited by

                                            @smartmood

                                            und so geht das Wohnzimmerlicht langsam aus und das im Schlafzimmerlicht langsam an.

                                            Bildschirmfoto 2019-05-30 um 22.55.12.png

                                            <xml xmlns="http://www.w3.org/1999/xhtml">
                                              <block type="procedures_defcustomnoreturn" id="(O)c8X-C[MCtqO5vS*^e" x="-463" y="88">
                                                <mutation statements="false"></mutation>
                                                <field name="NAME">datenpunkt anlegen</field>
                                                <field name="SCRIPT">Ly9EYXRlbnB1bmt0ICBlcnN0ZWxsZW4KY3JlYXRlU3RhdGUoIkVpZ2VuZV9EYXRlbnB1bmt0ZS5HdXRlX05hY2h0Lkd1dGVfTmFjaHQiLCB7CiAgICBuYW1lOiAnR3V0ZSBOYWNodCcsIAogICAgcm9sZTogJ2J1dHRvbicsCiAgICByZWFkOiAgZmFsc2UsIAogICAgd3JpdGU6IHRydWUsCiAgICAic21hcnROYW1lIjogewogICAgImRlIjogIkd1dGUgTmFjaHQgRGF0ZW5wdW5rdCIsCiAgICAic21hcnRUeXBlIjogIlNXSVRDSCIKfQp9KTs=</field>
                                                <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
                                              </block>
                                              <block type="procedures_callcustomnoreturn" id="`sx3r1UFlV;$o1:Eu$dG" x="-463" y="137">
                                                <mutation name="datenpunkt anlegen"></mutation>
                                                <next>
                                                  <block type="on_ext" id="]]A^|D#,$16@V,C[~OJs">
                                                    <mutation items="1"></mutation>
                                                    <field name="CONDITION">any</field>
                                                    <field name="ACK_CONDITION"></field>
                                                    <value name="OID0">
                                                      <shadow type="field_oid" id="=H0]V3r[XSst;zM^]=xZ">
                                                        <field name="oid">javascript.0.Eigene_Datenpunkte.Gute_Nacht.Gute_Nacht</field>
                                                      </shadow>
                                                    </value>
                                                    <statement name="STATEMENT">
                                                      <block type="comment" id=";bht4@[v%^rS7sNc7$%g">
                                                        <field name="COMMENT">Wohnzimmer</field>
                                                        <next>
                                                          <block type="controls_if" id="kfK8usI}_OV4khC@{tnK">
                                                            <mutation elseif="2"></mutation>
                                                            <value name="IF0">
                                                              <block type="logic_operation" id=";s/[$QWy.P84rt4Uvfr-" inline="false">
                                                                <field name="OP">AND</field>
                                                                <value name="A">
                                                                  <block type="logic_compare" id="I5ew_,Qeo1Y7?:*,g1zv">
                                                                    <field name="OP">NEQ</field>
                                                                    <value name="A">
                                                                      <block type="get_value" id="OLctaaO~^wQA$IN6.SHE">
                                                                        <field name="ATTR">val</field>
                                                                        <field name="OID">harmony.0.Wohnzimmer.activities.Fernsehen</field>
                                                                      </block>
                                                                    </value>
                                                                    <value name="B">
                                                                      <block type="math_number" id="XE8W=:=5KJcjCJ#:}HWz">
                                                                        <field name="NUM">0</field>
                                                                      </block>
                                                                    </value>
                                                                  </block>
                                                                </value>
                                                                <value name="B">
                                                                  <block type="logic_compare" id="f88jdjiYTtnxprig3xx@">
                                                                    <field name="OP">EQ</field>
                                                                    <value name="A">
                                                                      <block type="get_value" id="!pm/[2r|Y2im_~|3k;7(">
                                                                        <field name="ATTR">val</field>
                                                                        <field name="OID">hue.0.HueBridge.Wohnzimmer.on</field>
                                                                      </block>
                                                                    </value>
                                                                    <value name="B">
                                                                      <block type="logic_boolean" id="{qcZ!`0Vg_GCq6kW2m]i">
                                                                        <field name="BOOL">TRUE</field>
                                                                      </block>
                                                                    </value>
                                                                  </block>
                                                                </value>
                                                              </block>
                                                            </value>
                                                            <statement name="DO0">
                                                              <block type="control" id="O3sy2f+#;7f]X@PM8YY*">
                                                                <mutation delay_input="false"></mutation>
                                                                <field name="OID">harmony.0.Wohnzimmer.activities.Fernsehen</field>
                                                                <field name="WITH_DELAY">FALSE</field>
                                                                <value name="VALUE">
                                                                  <block type="math_number" id="6Xi#IIG~;;*v[/lhDZIE">
                                                                    <field name="NUM">0</field>
                                                                  </block>
                                                                </value>
                                                                <next>
                                                                  <block type="control" id="mu+mp~uZigS.(}o%;Bil">
                                                                    <mutation delay_input="false"></mutation>
                                                                    <field name="OID">hue.0.HueBridge.Wohnzimmer.command</field>
                                                                    <field name="WITH_DELAY">FALSE</field>
                                                                    <value name="VALUE">
                                                                      <block type="text" id="Q6e.1}|GJ,]~f{735:Ka">
                                                                        <field name="TEXT">{"on":false,"transitiontime":100}</field>
                                                                      </block>
                                                                    </value>
                                                                  </block>
                                                                </next>
                                                              </block>
                                                            </statement>
                                                            <value name="IF1">
                                                              <block type="logic_operation" id="F_k^@b}E|G.u*Ojn]:(k" inline="false">
                                                                <field name="OP">AND</field>
                                                                <value name="A">
                                                                  <block type="logic_compare" id="^TZQzG@@I6aqG8sJ[eV-">
                                                                    <field name="OP">NEQ</field>
                                                                    <value name="A">
                                                                      <block type="get_value" id="|DX,Fyphe/ITkiS,#V@}">
                                                                        <field name="ATTR">val</field>
                                                                        <field name="OID">harmony.0.Wohnzimmer.activities.BluRay</field>
                                                                      </block>
                                                                    </value>
                                                                    <value name="B">
                                                                      <block type="math_number" id="Xr7rY?@J!Y3nwO^|T=n_">
                                                                        <field name="NUM">0</field>
                                                                      </block>
                                                                    </value>
                                                                  </block>
                                                                </value>
                                                                <value name="B">
                                                                  <block type="logic_compare" id="nxzy2?Bj1hlquBCJpJPi">
                                                                    <field name="OP">EQ</field>
                                                                    <value name="A">
                                                                      <block type="get_value" id="*B$h=F$-2@;q`k8;m|48">
                                                                        <field name="ATTR">val</field>
                                                                        <field name="OID">hue.0.HueBridge.Wohnzimmer.on</field>
                                                                      </block>
                                                                    </value>
                                                                    <value name="B">
                                                                      <block type="logic_boolean" id=";Jpy;ng}$wm|5dg`b9k6">
                                                                        <field name="BOOL">TRUE</field>
                                                                      </block>
                                                                    </value>
                                                                  </block>
                                                                </value>
                                                              </block>
                                                            </value>
                                                            <statement name="DO1">
                                                              <block type="control" id="{VOx}#?aEbED_gQq76=/">
                                                                <mutation delay_input="false"></mutation>
                                                                <field name="OID">harmony.0.Wohnzimmer.activities.BluRay</field>
                                                                <field name="WITH_DELAY">FALSE</field>
                                                                <value name="VALUE">
                                                                  <block type="math_number" id=",pbd%S+Ij3omCOd^GCRT">
                                                                    <field name="NUM">0</field>
                                                                  </block>
                                                                </value>
                                                                <next>
                                                                  <block type="control" id="`d,93^l5@8$xJ|SN;dJw">
                                                                    <mutation delay_input="false"></mutation>
                                                                    <field name="OID">hue.0.HueBridge.Wohnzimmer.command</field>
                                                                    <field name="WITH_DELAY">FALSE</field>
                                                                    <value name="VALUE">
                                                                      <block type="text" id="iatN9Qv-iIrPm~gwo0V(">
                                                                        <field name="TEXT">{"on":false,"transitiontime":100}</field>
                                                                      </block>
                                                                    </value>
                                                                  </block>
                                                                </next>
                                                              </block>
                                                            </statement>
                                                            <value name="IF2">
                                                              <block type="logic_operation" id="F`k;Ki]giY.GgXAq)/Ln" inline="false">
                                                                <field name="OP">AND</field>
                                                                <value name="A">
                                                                  <block type="logic_compare" id="Tc7CGhA-P70am~)fnA=x">
                                                                    <field name="OP">NEQ</field>
                                                                    <value name="A">
                                                                      <block type="get_value" id="K4lw{.kF%@RbCW:f26M.">
                                                                        <field name="ATTR">val</field>
                                                                        <field name="OID">harmony.0.Wohnzimmer.activities.Kino</field>
                                                                      </block>
                                                                    </value>
                                                                    <value name="B">
                                                                      <block type="math_number" id="qiTI7Fxz}Lk7WqMF:?Lv">
                                                                        <field name="NUM">0</field>
                                                                      </block>
                                                                    </value>
                                                                  </block>
                                                                </value>
                                                                <value name="B">
                                                                  <block type="logic_compare" id="kKSL+]M4T_`1OK@U49FU">
                                                                    <field name="OP">EQ</field>
                                                                    <value name="A">
                                                                      <block type="get_value" id=".f+],LAI$;5RPZ#ZYq6]">
                                                                        <field name="ATTR">val</field>
                                                                        <field name="OID">hue.0.HueBridge.Wohnzimmer.on</field>
                                                                      </block>
                                                                    </value>
                                                                    <value name="B">
                                                                      <block type="logic_boolean" id="BiaW;hpjv=f:}H+nn=x*">
                                                                        <field name="BOOL">TRUE</field>
                                                                      </block>
                                                                    </value>
                                                                  </block>
                                                                </value>
                                                              </block>
                                                            </value>
                                                            <statement name="DO2">
                                                              <block type="control" id="U:EscaL$85(QpuJ!RcM#">
                                                                <mutation delay_input="false"></mutation>
                                                                <field name="OID">harmony.0.Wohnzimmer.activities.Kino</field>
                                                                <field name="WITH_DELAY">FALSE</field>
                                                                <value name="VALUE">
                                                                  <block type="math_number" id="0b=jgmOBoXR8#BIbsqbm">
                                                                    <field name="NUM">0</field>
                                                                  </block>
                                                                </value>
                                                                <next>
                                                                  <block type="control" id="V1*1Z`N|8ei91p*MQz:y">
                                                                    <mutation delay_input="false"></mutation>
                                                                    <field name="OID">hue.0.HueBridge.Wohnzimmer.command</field>
                                                                    <field name="WITH_DELAY">FALSE</field>
                                                                    <value name="VALUE">
                                                                      <block type="text" id="Je*$p@e1xE(4./tr]xaR">
                                                                        <field name="TEXT">{"on":false,"transitiontime":100}</field>
                                                                      </block>
                                                                    </value>
                                                                  </block>
                                                                </next>
                                                              </block>
                                                            </statement>
                                                            <next>
                                                              <block type="comment" id="c`~;]_g.N!c,Hv,EO:J=">
                                                                <field name="COMMENT">Schlafzimmer</field>
                                                                <next>
                                                                  <block type="controls_if" id="tHd@z+]wO|*+x5{7(L#2">
                                                                    <value name="IF0">
                                                                      <block type="logic_operation" id="nP5(INebk[.:m-ZQEa4$" inline="false">
                                                                        <field name="OP">AND</field>
                                                                        <value name="A">
                                                                          <block type="logic_compare" id="?KaZ+puMUfmr[?5a(yuR">
                                                                            <field name="OP">EQ</field>
                                                                            <value name="A">
                                                                              <block type="get_value" id="`YeO6ytS99i4*iTu*pRb">
                                                                                <field name="ATTR">val</field>
                                                                                <field name="OID">harmony.0.Schlafzimmer.activities.currentStatus</field>
                                                                              </block>
                                                                            </value>
                                                                            <value name="B">
                                                                              <block type="math_number" id="OU6s@IuJ:gOx5~svPa+Q">
                                                                                <field name="NUM">0</field>
                                                                              </block>
                                                                            </value>
                                                                          </block>
                                                                        </value>
                                                                        <value name="B">
                                                                          <block type="logic_compare" id="RK+.nL7Cy$DNhKO%s-nU">
                                                                            <field name="OP">EQ</field>
                                                                            <value name="A">
                                                                              <block type="get_value" id="#=BqK|UziS|{m2M9{w_2">
                                                                                <field name="ATTR">val</field>
                                                                                <field name="OID">hue.0.HueBridge.Schlafzimmer.on</field>
                                                                              </block>
                                                                            </value>
                                                                            <value name="B">
                                                                              <block type="logic_boolean" id="?!8m8/Uo)U~j/twFjjj#">
                                                                                <field name="BOOL">FALSE</field>
                                                                              </block>
                                                                            </value>
                                                                          </block>
                                                                        </value>
                                                                      </block>
                                                                    </value>
                                                                    <statement name="DO0">
                                                                      <block type="control" id="F$C_jRQTD+b6Dk9VA(hX">
                                                                        <mutation delay_input="false"></mutation>
                                                                        <field name="OID">harmony.0.Schlafzimmer.activities.Fernsehen</field>
                                                                        <field name="WITH_DELAY">FALSE</field>
                                                                        <value name="VALUE">
                                                                          <block type="math_number" id="1,6pHF8(N)^XR8|#[|;{">
                                                                            <field name="NUM">1</field>
                                                                          </block>
                                                                        </value>
                                                                        <next>
                                                                          <block type="control" id="/]lxffb4s9M8Sq{12I6b">
                                                                            <mutation delay_input="false"></mutation>
                                                                            <field name="OID">hue.0.HueBridge.Schlafzimmer.command</field>
                                                                            <field name="WITH_DELAY">FALSE</field>
                                                                            <value name="VALUE">
                                                                              <block type="text" id="8OHUJz!=iuUV}{;w(@Vd">
                                                                                <field name="TEXT">{"on":true,"level":100,"r":254,"g":143,"b":33,"transitiontime":30}</field>
                                                                              </block>
                                                                            </value>
                                                                          </block>
                                                                        </next>
                                                                      </block>
                                                                    </statement>
                                                                  </block>
                                                                </next>
                                                              </block>
                                                            </next>
                                                          </block>
                                                        </next>
                                                      </block>
                                                    </statement>
                                                  </block>
                                                </next>
                                              </block>
                                            </xml>
                                            
                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            922
                                            Online

                                            31.7k
                                            Users

                                            79.6k
                                            Topics

                                            1.3m
                                            Posts

                                            8
                                            107
                                            7194
                                            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