Skip to content
  • Home
  • Aktuell
  • Tags
  • 0 Ungelesen 0
  • Kategorien
  • Unreplied
  • Beliebt
  • GitHub
  • Docu
  • Hilfe
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Standard: (Kein Skin)
  • Kein Skin
Einklappen
ioBroker Logo

Community Forum

donate donate
  1. ioBroker Community Home
  2. Deutsch
  3. Skripten / Logik
  4. [Blockly] Programm soll nur bei Dunkelheit…..

NEWS

  • Jahresrückblick 2025 – unser neuer Blogbeitrag ist online! ✨
    BluefoxB
    Bluefox
    17
    1
    2.5k

  • Neuer Blogbeitrag: Monatsrückblick - Dezember 2025 🎄
    BluefoxB
    Bluefox
    13
    1
    991

  • Weihnachtsangebot 2025! 🎄
    BluefoxB
    Bluefox
    25
    1
    2.3k

[Blockly] Programm soll nur bei Dunkelheit…..

Geplant Angeheftet Gesperrt Verschoben Skripten / Logik
32 Beiträge 6 Kommentatoren 3.4k Aufrufe
  • Älteste zuerst
  • Neuste zuerst
  • Meiste Stimmen
Antworten
  • In einem neuen Thema antworten
Anmelden zum Antworten
Dieses Thema wurde gelöscht. Nur Nutzer mit entsprechenden Rechten können es sehen.
  • B Offline
    B Offline
    Blackeye
    schrieb am zuletzt editiert von
    #13

    Hi

    hier mal in schön :-)

    Danke für den Tipp

    ! ````
    <xml xmlns="http://www.w3.org/1999/xhtml"><block type="on_ext" id="SD#@kiz{;:MjB|?7DKR_" x="-2088" y="112"><mutation items="1"></mutation>
    <field name="CONDITION">ne</field>

    <value name="OID0"><shadow type="field_oid" id="ngt[A29ZNW;_G%AygNu-"><field name="oid">hm-rpc.0.MEQ0184534.1.STATE</field></shadow></value> 
    <statement name="STATEMENT"><block type="comment" id="#pl2nPV2u%LYJM^O_]}("><field name="COMMENT">Urlaub wird berücksichtigt</field>
        <next><block type="controls_if" id="8,kDls)]Zwqs-fk^y:7+"><value name="IF0"><block type="logic_operation" id="pDSu+fUKig}_^F|SugI)" inline="false"><field name="OP">AND</field>
                <value name="A"><block type="logic_operation" id="NKWj1?z,m}!1d}4K5FP~" inline="false"><field name="OP">AND</field>
                    <value name="A"><block type="logic_operation" id="^%BPTEvODX#SdVJ`eHZ(" inline="false"><field name="OP">AND</field>
                        <value name="A"><block type="logic_operation" id="x+r_2D8}OaRN=JTXXvVk" inline="false"><field name="OP">AND</field>
                            <value name="A"><block type="logic_compare" id="*AX%1MZt;+W63Hi3+@Tq"><field name="OP">EQ</field>
                                <value name="A"><block type="get_value" id="-(7z1aE^}9jHyE%F5oZb"><field name="ATTR">val</field>
                                    <field name="OID">hm-rpc.0.MEQ0361868.1.STATE</field></block></value> 
                                <value name="B"><block type="logic_boolean" id="5OR2}^:+=VM3!V=R`[1D"><field name="BOOL">FALSE</field></block></value></block></value> 
                            <value name="B"><block type="time_compare_ex" id=",j8VP3Mn+4+b!FQOUBI4"><mutation end_time="true" actual_time="true"></mutation>
                                <field name="USE_ACTUAL_TIME">TRUE</field>
                                <field name="OPTION">between</field>
                                <value name="START_TIME"><shadow type="text" id="TOE,0zbC4+HMt|;0kV~!"><field name="TEXT">05:00</field></shadow></value> 
                                <value name="END_TIME"><shadow type="text" id="C%t{?9Hc4Oo9u,U%_x.3"><field name="TEXT">18:00</field></shadow></value></block></value></block></value> 
                        <value name="B"><block type="time_compare_ex" id="72Kj}MXIf+)}Tldx!n~:"><mutation end_time="true" actual_time="true"></mutation>
                            <field name="USE_ACTUAL_TIME">TRUE</field>
                            <field name="OPTION">between</field>
                            <value name="START_TIME"><shadow type="text" id="TqS;h?9`9nCSt|mh7^qu"><field name="TEXT">12:00</field></shadow> 
                              <block type="time_astro" id="IX{}Zc_Kw}T.Wm(TUZ@n"><field name="TYPE">sunsetStart</field>
                                <field name="OFFSET">0</field></block></value> 
                            <value name="END_TIME"><shadow type="text" id="9??9bo6RUo!jh=A%{e;x"><field name="TEXT">18:00</field></shadow> 
                              <block type="time_astro" id="kYCP{3!URDu[HGWNI*1u"><field name="TYPE">sunriseEnd</field>
                                <field name="OFFSET">0</field></block></value></block></value></block></value> 
                    <value name="B"><block type="logic_operation" id="!m!`Uh6cJa!m^_(*KysK" inline="false"><field name="OP">AND</field>
                        <value name="A"><block type="logic_operation" id="zIpi[GGi](m)J}L0;1`O" inline="false"><field name="OP">AND</field>
                            <value name="A"><block type="logic_compare" id="MElc|1`akfSYW]mSj}r%"><field name="OP">EQ</field>
                                <value name="A"><block type="get_value" id="GM4Rdcx}Ax(u@fJ:.,jz"><field name="ATTR">val</field>
                                    <field name="OID">hm-rpc.0.MEQ0361868.1.STATE</field></block></value> 
                                <value name="B"><block type="logic_boolean" id="c*(?0J/Ngw^e2Y.bNny/"><field name="BOOL">FALSE</field></block></value></block></value> 
                            <value name="B"><block type="logic_compare" id="B#jPeHZv@2aE+{c@oZ!_"><field name="OP">EQ</field>
                                <value name="A"><block type="get_value" id="^WT06hL.:T+-~+zqx~}|"><field name="ATTR">val</field>
                                    <field name="OID">hm-rega.0.28956</field></block></value> 
                                <value name="B"><block type="logic_boolean" id="m||2`w5[`lsC%z`~hs?K"><field name="BOOL">FALSE</field></block></value></block></value></block></value> 
                        <value name="B"><block type="logic_compare" id=")+yO]FZYXT,S!IL|Xj#d"><field name="OP">EQ</field>
                            <value name="A"><block type="get_value" id="DB:ZmY_RvhrS}1D;F:v3"><field name="ATTR">val</field>
                                <field name="OID">javascript.0.VirtuelleSchalter.Fernseher</field></block></value> 
                            <value name="B"><block type="logic_boolean" id="[*r/N=I,sNx^P{jaICgJ"><field name="BOOL">FALSE</field></block></value></block></value></block></value></block></value> 
                <value name="B"><block type="logic_operation" id="}B~v_r0LM4`I?0Pw?ljC" inline="false"><field name="OP">AND</field>
                    <value name="A"><block type="logic_compare" id=")uYaMzP5KT|VF.N8xH@Z"><field name="OP">EQ</field>
                        <value name="A"><block type="get_value" id="8;lQdcJFR?7HhK=jwZD}"><field name="ATTR">val</field>
                            <field name="OID">hue.0.Haus.Hue_white_lamp_1.level</field></block></value> 
                        <value name="B"><block type="math_number" id="?dB3g#Z.g+u*nGj~kWEe"><field name="NUM">0</field></block></value></block></value> 
                    <value name="B"><block type="logic_compare" id="{r*,1WFw++;ad)}Jcz,F"><field name="OP">EQ</field>
                        <value name="A"><block type="get_value" id="OiV~`?{f5])mr2/:m^sG"><field name="ATTR">val</field>
                            <field name="OID">hue.0.Haus.Hue_white_lamp_2.level</field></block></value> 
                        <value name="B"><block type="math_number" id="~yf{!xe)p{a^m!1eR,Bx"><field name="NUM">0</field></block></value></block></value></block></value></block></value> 
            <statement name="DO0"><block type="control" id="6E[|]89U=g-6!_OFTtWM"><mutation delay_input="false"></mutation>
                <field name="OID">hm-rpc.0.MEQ0326899.1.STATE</field>
                <field name="WITH_DELAY">FALSE</field>
                <value name="VALUE"><block type="logic_boolean" id="G4P6gWlITXI8TL(oVRGA"><field name="BOOL">TRUE</field></block></value> 
                <next><block type="control" id="[Lg9g7.}J,IB}i2!*M#N"><mutation delay_input="true"></mutation>
                    <field name="OID">hm-rpc.0.MEQ0326899.1.STATE</field>
                    <field name="WITH_DELAY">TRUE</field>
                    <field name="DELAY_MS">60</field>
                    <field name="UNIT">min</field>
                    <field name="CLEAR_RUNNING">FALSE</field>
                    <value name="VALUE"><block type="logic_boolean" id="I|T;:NWwovxu,s`:zr[c"><field name="BOOL">FALSE</field></block></value></block></next></block></statement></block></next></block></statement></block></xml> 
    
    
    ****ModEdit: In Spoiler bitte****
    1 Antwort Letzte Antwort
    0
    • DutchmanD Offline
      DutchmanD Offline
      Dutchman
      Developer Most Active Administrators
      schrieb am zuletzt editiert von
      #14

      Ich bekomme deinen block nicht importiert :shock:

      979__mport_error.jpg

      Ich wuerde auch empfhelen die ganzen UND noch ein bischen auseinander zu ziehen, eine IF innerhalb einer IF geht auch. ich probier mal was (da der import nicht geht :oops: )

      PS: habe title auch mal mit [Blockly] ergaenzt

      Vielleicht @Rantanplan ideeen ?

      1 Antwort Letzte Antwort
      0
      • R Offline
        R Offline
        RappiRN
        Most Active
        schrieb am zuletzt editiert von
        #15

        @Dutchman:

        Ich bekomme deinen block nicht importiert :shock: `

        Also ich konnte das Blockly importieren! :D

        Ich habe das mal etwas abgeändert, nicht dass diese Tageszeiten über den Tageswechsel ein Problem sind, wie das ja bei Uhrzeiten bekannt ist. Den Block oben rechts gab es zweimal bei den "und"-Blöcken, den habe ich im Export entfernt!

        2216_licht.jpg

        ! ````
        <xml xmlns="http://www.w3.org/1999/xhtml"><block id="SD#@kiz{;:MjB|?7DKR_" type="on_ext" x="-2088" y="112"><mutation items="1"></mutation>
        <field name="CONDITION">ne</field>

        <value name="OID0"><shadow id="ngt[A29ZNW;_G%AygNu-" type="field_oid"><field name="oid">hm-rpc.0.MEQ0184534.1.STATE</field></shadow></value> 
        <statement name="STATEMENT"><block id="#pl2nPV2u%LYJM^O_]}(" type="comment"><field name="COMMENT">Urlaub wird berücksichtigt</field>
            <next><block id="8,kDls)]Zwqs-fk^y:7+" type="controls_if"><value name="IF0"><block id="pDSu+fUKig}_^F|SugI)" type="logic_operation" inline="false"><field name="OP">AND</field>
                    <value name="A"><block id="NKWj1?z,m}!1d}4K5FP~" type="logic_operation" inline="false"><field name="OP">AND</field>
                        <value name="A"><block id="^%BPTEvODX#SdVJ`eHZ(" type="logic_operation" inline="false"><field name="OP">AND</field>
                            <value name="A"><block id="x+r_2D8}OaRN=JTXXvVk" type="logic_operation" inline="false"><field name="OP">AND</field>
                                <value name="A"><block id="*AX%1MZt;+W63Hi3+@Tq" type="logic_compare"><field name="OP">EQ</field>
                                    <value name="A"><block id="-(7z1aE^}9jHyE%F5oZb" type="get_value"><field name="ATTR">val</field>
                                        <field name="OID">hm-rpc.0.MEQ0361868.1.STATE</field></block></value> 
                                    <value name="B"><block id="5OR2}^:+=VM3!V=R`[1D" type="logic_boolean"><field name="BOOL">FALSE</field></block></value></block></value> 
                                <value name="B"><block id=",j8VP3Mn+4+b!FQOUBI4" type="time_compare_ex"><mutation actual_time="true" end_time="true"></mutation>
                                    <field name="USE_ACTUAL_TIME">TRUE</field>
                                    <field name="OPTION">between</field>
                                    <value name="START_TIME"><shadow id="TOE,0zbC4+HMt|;0kV~!" type="text"><field name="TEXT">05:00</field></shadow></value> 
                                    <value name="END_TIME"><shadow id="C%t{?9Hc4Oo9u,U%_x.3" type="text"><field name="TEXT">18:00</field></shadow></value></block></value></block></value> 
                            <value name="B"><block id="72Kj}MXIf+)}Tldx!n~:" type="time_compare_ex"><mutation actual_time="true" end_time="false"></mutation>
                                <field name="USE_ACTUAL_TIME">TRUE</field>
                                <field name="OPTION">></field>
                                <value name="START_TIME"><shadow id="TqS;h?9`9nCSt|mh7^qu" type="text"><field name="TEXT">12:00</field></shadow> 
                                  <block id="IX{}Zc_Kw}T.Wm(TUZ@n" type="time_astro"><field name="TYPE">sunsetStart</field>
                                    <field name="OFFSET">0</field></block></value></block></value></block></value> 
                        <value name="B"><block id="!m!`Uh6cJa!m^_(*KysK" type="logic_operation" inline="false"><field name="OP">AND</field>
                            <value name="A"><block id="zIpi[GGi](m)J}L0;1`O" type="logic_operation" inline="false"><field name="OP">AND</field>
                                <value name="A"><block id="MoSm/B?;oa_XgI?69,i(" type="time_compare_ex"><mutation actual_time="true" end_time="false"></mutation>
                                    <field name="USE_ACTUAL_TIME">TRUE</field>
                                    <field name="OPTION"><</field>
                                    <value name="START_TIME"><shadow id="TqS;h?9`9nCSt|mh7^qu" type="text"><field name="TEXT">12:00</field></shadow> 
                                      <block id="]!*[E1TmC8u3r]k/uUFq" type="time_astro"><field name="TYPE">sunriseEnd</field>
                                        <field name="OFFSET">0</field></block></value></block></value> 
                                <value name="B"><block id="B#jPeHZv@2aE+{c@oZ!_" type="logic_compare"><field name="OP">EQ</field>
                                    <value name="A"><block id="^WT06hL.:T+-~+zqx~}|" type="get_value"><field name="ATTR">val</field>
                                        <field name="OID">hm-rega.0.28956</field></block></value> 
                                    <value name="B"><block id="m||2`w5[`lsC%z`~hs?K" type="logic_boolean"><field name="BOOL">FALSE</field></block></value></block></value></block></value> 
                            <value name="B"><block id=")+yO]FZYXT,S!IL|Xj#d" type="logic_compare"><field name="OP">EQ</field>
                                <value name="A"><block id="DB:ZmY_RvhrS}1D;F:v3" type="get_value"><field name="ATTR">val</field>
                                    <field name="OID">javascript.0.VirtuelleSchalter.Fernseher</field></block></value> 
                                <value name="B"><block id="[*r/N=I,sNx^P{jaICgJ" type="logic_boolean"><field name="BOOL">FALSE</field></block></value></block></value></block></value></block></value> 
                    <value name="B"><block id="}B~v_r0LM4`I?0Pw?ljC" type="logic_operation" inline="false"><field name="OP">AND</field>
                        <value name="A"><block id=")uYaMzP5KT|VF.N8xH@Z" type="logic_compare"><field name="OP">EQ</field>
                            <value name="A"><block id="8;lQdcJFR?7HhK=jwZD}" type="get_value"><field name="ATTR">val</field>
                                <field name="OID">hue.0.Haus.Hue_white_lamp_1.level</field></block></value> 
                            <value name="B"><block id="?dB3g#Z.g+u*nGj~kWEe" type="math_number"><field name="NUM">0</field></block></value></block></value> 
                        <value name="B"><block id="{r*,1WFw++;ad)}Jcz,F" type="logic_compare"><field name="OP">EQ</field>
                            <value name="A"><block id="OiV~`?{f5])mr2/:m^sG" type="get_value"><field name="ATTR">val</field>
                                <field name="OID">hue.0.Haus.Hue_white_lamp_2.level</field></block></value> 
                            <value name="B"><block id="~yf{!xe)p{a^m!1eR,Bx" type="math_number"><field name="NUM">0</field></block></value></block></value></block></value></block></value> 
                <statement name="DO0"><block id="6E[|]89U=g-6!_OFTtWM" type="control"><mutation delay_input="false"></mutation>
                    <field name="OID">hm-rpc.0.MEQ0326899.1.STATE</field>
                    <field name="WITH_DELAY">FALSE</field>
                    <value name="VALUE"><block id="G4P6gWlITXI8TL(oVRGA" type="logic_boolean"><field name="BOOL">TRUE</field></block></value> 
                    <next><block id="[Lg9g7.}J,IB}i2!*M#N" type="control"><mutation delay_input="true"></mutation>
                        <field name="OID">hm-rpc.0.MEQ0326899.1.STATE</field>
                        <field name="WITH_DELAY">TRUE</field>
                        <field name="DELAY_MS">60</field>
                        <field name="UNIT">min</field>
                        <field name="CLEAR_RUNNING">FALSE</field>
                        <value name="VALUE"><block id="I|T;:NWwovxu,s`:zr[c" type="logic_boolean"><field name="BOOL">FALSE</field></block></value></block></next></block></statement></block></next></block></statement></block></xml> 
        
        
        Enrico
        1 Antwort Letzte Antwort
        0
        • rantanplanR Online
          rantanplanR Online
          rantanplan
          schrieb am zuletzt editiert von
          #16

          @Dutchman:

          Ich bekomme deinen block nicht importiert :shock: `
          Ich leider auch nicht :(

          @RappiRN:

          Also ich konnte das Blockly importieren! :D `
          Wie hast Du das denn hingekriegt :o

          @Blackeye klickst Du mal "Blöcke prüfen".

          Da scheint "Müll" im Blockly zu sein.

          Wenn "Blöcke prüfen" OK dann bitte nochmal exportieren.

          (Hinweis von Dutchman beachten Tags "Spoiler" und "Code")

          Rantanplan

          CCU3 / MS Server 2019(VM) / Scripten mit Blockly

          1 Antwort Letzte Antwort
          0
          • R Offline
            R Offline
            RappiRN
            Most Active
            schrieb am zuletzt editiert von
            #17

            @rantanplan:

            @RappiRN:

            Also ich konnte das Blockly importieren! :D Wie hast Du das denn hingekriegt :o

            Na einfach so, wie man das eben macht, den Text kopiert und im Blockly importiert! :?

            Könnt ihr denn meinen Export importieren??

            Enrico

            1 Antwort Letzte Antwort
            0
            • rantanplanR Online
              rantanplanR Online
              rantanplan
              schrieb am zuletzt editiert von
              #18

              @RappiRN:

              Könnt ihr denn meinen Export importieren?? `
              Ja, das klappt.

              Aber der TE braucht erstmal ein "sauberes" Blockly.

              Welche Versionen hast Du am laufen?

              Meine:

              JavaScript v3.4.5

              js-controler v1.2.0

              Grüße

              Rantanplan

              CCU3 / MS Server 2019(VM) / Scripten mit Blockly

              1 Antwort Letzte Antwort
              0
              • R Offline
                R Offline
                RappiRN
                Most Active
                schrieb am zuletzt editiert von
                #19

                @rantanplan:

                Welche Versionen hast Du am laufen?

                Meine:

                JavaScript v3.4.5

                js-controler v1.2.0 `

                Javascript v3.4.0

                js-Controller v1.2.2 (1.2.3 wehrt sich noch! :) )

                Was meinst du mit sauber? "Schöner"? Sollte es nicht so,mit meinen Änderungen, funktionieren?

                Enrico

                1 Antwort Letzte Antwort
                0
                • B Offline
                  B Offline
                  Blackeye
                  schrieb am zuletzt editiert von
                  #20

                  Hi,

                  der Import klappte super und ich werde es gleich heute Abend ausprobieren.

                  Und mit schöner meinte ich nur die Form, nicht den Inhalt….

                  Ich bin mal gespannt ob es mit dem Auseinanderziehen der Zeiten jetzt klappt....

                  @RappiRN:

                  Was meinst du mit sauber? "Schöner"? Sollte es nicht so,mit meinen Änderungen, funktionieren?

                  Enrico `

                  Danke schon einmal für die nette Hilfe.

                  Lars

                  1 Antwort Letzte Antwort
                  0
                  • rantanplanR Online
                    rantanplanR Online
                    rantanplan
                    schrieb am zuletzt editiert von
                    #21

                    @RappiRN:

                    Was meinst du mit sauber? "Schöner"? Sollte es nicht so,mit meinen Änderungen, funktionieren? `
                    Wenn "Blöcke prüfen" einen Fehler zeigt, ist das Blockly nicht "sauber".

                    Das Script läuft zwar, kann aber Probleme bei der Ausführung haben.

                    Export / Import kann schief gehen (wie gesehen).

                    Es gibt ja die Buttons "Export von allen Scripten" und "Import von allen Scripten"

                    Wenn man sein System neu aufsetzt und der Import dann nicht funktioniert ist das sehr ärgerlich.

                    Ich hoffe Blackeye hat trotzdem gelernt wie man seine Blocklys "säubert" ;)

                    Grüße

                    Rantanplan

                    CCU3 / MS Server 2019(VM) / Scripten mit Blockly

                    1 Antwort Letzte Antwort
                    0
                    • R Offline
                      R Offline
                      RappiRN
                      Most Active
                      schrieb am zuletzt editiert von
                      #22

                      Ich habe jetzt nochmal die Ursprungsversion importiert, die ich ja gestern etwas abgeändert habe. Diese Version habe ich wieder problemlos importieren können und beim Blöcke prüfen habe ich keinen Fehler. :?

                      Was kann das nun sein, dass das bei euch nicht geht? Die unterschiedlichen Versionen von js??

                      Enrico

                      1 Antwort Letzte Antwort
                      0
                      • DutchmanD Offline
                        DutchmanD Offline
                        Dutchman
                        Developer Most Active Administrators
                        schrieb am zuletzt editiert von
                        #23

                        @RappiRN:

                        Ich habe jetzt nochmal die Ursprungsversion importiert, die ich ja gestern etwas abgeändert habe. Diese Version habe ich wieder problemlos importieren können und beim Blöcke prüfen habe ich keinen Fehler. :?

                        Was kann das nun sein, dass das bei euch nicht geht? Die unterschiedlichen Versionen von js??

                        Enrico `

                        Welche JS-Controller und javascript adapter version hast du ?

                        bei mir :

                        JS-Controller = 1.2.3

                        Javascript = 3.4.0

                        Admin = 2.0.9

                        Web = 2.1.9

                        1 Antwort Letzte Antwort
                        0
                        • R Offline
                          R Offline
                          RappiRN
                          Most Active
                          schrieb am zuletzt editiert von
                          #24

                          @Dutchman:

                          bei mir :

                          JS-Controller = 1.2.3

                          Javascript = 3.4.0

                          Admin = 2.0.9

                          Web = 2.1.9 `

                          Diese Versionen habe ich auch alle!

                          Enrico

                          1 Antwort Letzte Antwort
                          0
                          • rantanplanR Online
                            rantanplanR Online
                            rantanplan
                            schrieb am zuletzt editiert von
                            #25

                            @RappiRN:

                            Ich habe jetzt nochmal die Ursprungsversion importiert, die ich ja gestern etwas abgeändert habe. Diese Version habe ich wieder problemlos importieren können und beim Blöcke prüfen habe ich keinen Fehler. :? `
                            Hattest Du nicht geschrieben, dass ein Baustein über/doppelt war?

                            Jetzt wäre es schön, wenn Blackeye noch sein Original hätte.

                            Grüße

                            Rantanplan

                            CCU3 / MS Server 2019(VM) / Scripten mit Blockly

                            1 Antwort Letzte Antwort
                            0
                            • R Offline
                              R Offline
                              RappiRN
                              Most Active
                              schrieb am zuletzt editiert von
                              #26

                              @rantanplan:

                              Hattest Du nicht geschrieben, dass ein Baustein über/doppelt war? `

                              Ja, auf dem Bild ist der noch oben rechts zu sehen, beim Export habe ich ihn entfernt, hatte ich doch geschrieben, oder?

                              Hier nochmal die Originalversion:

                              2216_licht1.jpg

                              Export:

                              ! ````
                              <xml xmlns="http://www.w3.org/1999/xhtml"><block id="SD#@kiz{;:MjB|?7DKR_" type="on_ext" y="112" x="-2088"><mutation items="1"></mutation>
                              <field name="CONDITION">ne</field>

                              <value name="OID0"><shadow id="ngt[A29ZNW;_G%AygNu-" type="field_oid"><field name="oid">hm-rpc.0.MEQ0184534.1.STATE</field></shadow></value> 
                              <statement name="STATEMENT"><block id="#pl2nPV2u%LYJM^O_]}(" type="comment"><field name="COMMENT">Urlaub wird berücksichtigt</field>
                                  <next><block id="8,kDls)]Zwqs-fk^y:7+" type="controls_if"><value name="IF0"><block id="pDSu+fUKig}_^F|SugI)" type="logic_operation" inline="false"><field name="OP">AND</field>
                                          <value name="A"><block id="NKWj1?z,m}!1d}4K5FP~" type="logic_operation" inline="false"><field name="OP">AND</field>
                                              <value name="A"><block id="^%BPTEvODX#SdVJ`eHZ(" type="logic_operation" inline="false"><field name="OP">AND</field>
                                                  <value name="A"><block id="x+r_2D8}OaRN=JTXXvVk" type="logic_operation" inline="false"><field name="OP">AND</field>
                                                      <value name="A"><block id="*AX%1MZt;+W63Hi3+@Tq" type="logic_compare"><field name="OP">EQ</field>
                                                          <value name="A"><block id="-(7z1aE^}9jHyE%F5oZb" type="get_value"><field name="ATTR">val</field>
                                                              <field name="OID">hm-rpc.0.MEQ0361868.1.STATE</field></block></value> 
                                                          <value name="B"><block id="5OR2}^:+=VM3!V=R`[1D" type="logic_boolean"><field name="BOOL">FALSE</field></block></value></block></value> 
                                                      <value name="B"><block id=",j8VP3Mn+4+b!FQOUBI4" type="time_compare_ex"><mutation actual_time="true" end_time="true"></mutation>
                                                          <field name="USE_ACTUAL_TIME">TRUE</field>
                                                          <field name="OPTION">between</field>
                                                          <value name="START_TIME"><shadow id="TOE,0zbC4+HMt|;0kV~!" type="text"><field name="TEXT">05:00</field></shadow></value> 
                                                          <value name="END_TIME"><shadow id="C%t{?9Hc4Oo9u,U%_x.3" type="text"><field name="TEXT">18:00</field></shadow></value></block></value></block></value> 
                                                  <value name="B"><block id="72Kj}MXIf+)}Tldx!n~:" type="time_compare_ex"><mutation actual_time="true" end_time="true"></mutation>
                                                      <field name="USE_ACTUAL_TIME">TRUE</field>
                                                      <field name="OPTION">between</field>
                                                      <value name="START_TIME"><shadow id="TqS;h?9`9nCSt|mh7^qu" type="text"><field name="TEXT">12:00</field></shadow> 
                                                        <block id="IX{}Zc_Kw}T.Wm(TUZ@n" type="time_astro"><field name="TYPE">sunsetStart</field>
                                                          <field name="OFFSET">0</field></block></value> 
                                                      <value name="END_TIME"><shadow id="(}V6Tsa3OrQxTakAX[A!" type="text"><field name="TEXT">18:00</field></shadow> 
                                                        <block id="kYCP{3!URDu[HGWNI*1u" type="time_astro"><field name="TYPE">sunriseEnd</field>
                                                          <field name="OFFSET">0</field></block></value></block></value></block></value> 
                                              <value name="B"><block id="!m!`Uh6cJa!m^_(*KysK" type="logic_operation" inline="false"><field name="OP">AND</field>
                                                  <value name="A"><block id="zIpi[GGi](m)J}L0;1`O" type="logic_operation" inline="false"><field name="OP">AND</field>
                                                      <value name="A"><block id="MElc|1`akfSYW]mSj}r%" type="logic_compare"><field name="OP">EQ</field>
                                                          <value name="A"><block id="GM4Rdcx}Ax(u@fJ:.,jz" type="get_value"><field name="ATTR">val</field>
                                                              <field name="OID">hm-rpc.0.MEQ0361868.1.STATE</field></block></value> 
                                                          <value name="B"><block id="c*(?0J/Ngw^e2Y.bNny/" type="logic_boolean"><field name="BOOL">FALSE</field></block></value></block></value> 
                                                      <value name="B"><block id="B#jPeHZv@2aE+{c@oZ!_" type="logic_compare"><field name="OP">EQ</field>
                                                          <value name="A"><block id="^WT06hL.:T+-~+zqx~}|" type="get_value"><field name="ATTR">val</field>
                                                              <field name="OID">hm-rega.0.28956</field></block></value> 
                                                          <value name="B"><block id="m||2`w5[`lsC%z`~hs?K" type="logic_boolean"><field name="BOOL">FALSE</field></block></value></block></value></block></value> 
                                                  <value name="B"><block id=")+yO]FZYXT,S!IL|Xj#d" type="logic_compare"><field name="OP">EQ</field>
                                                      <value name="A"><block id="DB:ZmY_RvhrS}1D;F:v3" type="get_value"><field name="ATTR">val</field>
                                                          <field name="OID">javascript.0.VirtuelleSchalter.Fernseher</field></block></value> 
                                                      <value name="B"><block id="[*r/N=I,sNx^P{jaICgJ" type="logic_boolean"><field name="BOOL">FALSE</field></block></value></block></value></block></value></block></value> 
                                          <value name="B"><block id="}B~v_r0LM4`I?0Pw?ljC" type="logic_operation" inline="false"><field name="OP">AND</field>
                                              <value name="A"><block id=")uYaMzP5KT|VF.N8xH@Z" type="logic_compare"><field name="OP">EQ</field>
                                                  <value name="A"><block id="8;lQdcJFR?7HhK=jwZD}" type="get_value"><field name="ATTR">val</field>
                                                      <field name="OID">hue.0.Haus.Hue_white_lamp_1.level</field></block></value> 
                                                  <value name="B"><block id="?dB3g#Z.g+u*nGj~kWEe" type="math_number"><field name="NUM">0</field></block></value></block></value> 
                                              <value name="B"><block id="{r*,1WFw++;ad)}Jcz,F" type="logic_compare"><field name="OP">EQ</field>
                                                  <value name="A"><block id="OiV~`?{f5])mr2/:m^sG" type="get_value"><field name="ATTR">val</field>
                                                      <field name="OID">hue.0.Haus.Hue_white_lamp_2.level</field></block></value> 
                                                  <value name="B"><block id="~yf{!xe)p{a^m!1eR,Bx" type="math_number"><field name="NUM">0</field></block></value></block></value></block></value></block></value> 
                                      <statement name="DO0"><block id="6E[|]89U=g-6!_OFTtWM" type="control"><mutation delay_input="false"></mutation>
                                          <field name="OID">hm-rpc.0.MEQ0326899.1.STATE</field>
                                          <field name="WITH_DELAY">FALSE</field>
                                          <value name="VALUE"><block id="G4P6gWlITXI8TL(oVRGA" type="logic_boolean"><field name="BOOL">TRUE</field></block></value> 
                                          <next><block id="[Lg9g7.}J,IB}i2!*M#N" type="control"><mutation delay_input="true"></mutation>
                                              <field name="OID">hm-rpc.0.MEQ0326899.1.STATE</field>
                                              <field name="WITH_DELAY">TRUE</field>
                                              <field name="DELAY_MS">60</field>
                                              <field name="UNIT">min</field>
                                              <field name="CLEAR_RUNNING">FALSE</field>
                                              <value name="VALUE"><block id="I|T;:NWwovxu,s`:zr[c" type="logic_boolean"><field name="BOOL">FALSE</field></block></value></block></next></block></statement></block></next></block></statement></block></xml> 
                              
                              
                              Enrico
                              1 Antwort Letzte Antwort
                              0
                              • rantanplanR Online
                                rantanplanR Online
                                rantanplan
                                schrieb am zuletzt editiert von
                                #27

                                @RappiRN:

                                Ja, auf dem Bild ist der noch oben rechts zu sehen, beim Export habe ich ihn entfernt, hatte ich doch geschrieben, oder? `
                                Nochmal der Reihe nach.

                                Original importieren, keine Änderung machen, "Blöcke prüfen".

                                Fehler Ja oder Nein?

                                Wenn Du den Baustein entfernst, ist klar das das Prüfen "OK" zeigt.

                                Grüße

                                Rantanplan

                                CCU3 / MS Server 2019(VM) / Scripten mit Blockly

                                1 Antwort Letzte Antwort
                                0
                                • R Offline
                                  R Offline
                                  RappiRN
                                  Most Active
                                  schrieb am zuletzt editiert von
                                  #28

                                  @rantanplan:

                                  Nochmal der Reihe nach.

                                  Original importieren, keine Änderung machen, "Blöcke prüfen".

                                  Fehler Ja oder Nein? `

                                  Gleich nach dem Import: kein Fehler!

                                  Enrico

                                  1 Antwort Letzte Antwort
                                  0
                                  • rantanplanR Online
                                    rantanplanR Online
                                    rantanplan
                                    schrieb am zuletzt editiert von
                                    #29

                                    @RappiRN:

                                    Gleich nach dem Import: kein Fehler! `
                                    Sehr merkwürdig :?

                                    Obwohl ein Baustein in der "Luft" hängt, keinen Fehler?!

                                    Das werden wir wohl nicht lösen.

                                    Lass uns zum Thema zurück kehren.

                                    Grüße

                                    Rantanplan

                                    CCU3 / MS Server 2019(VM) / Scripten mit Blockly

                                    1 Antwort Letzte Antwort
                                    0
                                    • R Offline
                                      R Offline
                                      RappiRN
                                      Most Active
                                      schrieb am zuletzt editiert von
                                      #30

                                      @rantanplan:

                                      Sehr merkwürdig :?

                                      Obwohl ein Baustein in der "Luft" hängt, keinen Fehler?! `
                                      Du hast mich falsch verstanden, den "losen" Teil habe ich erst nach meiner Änderung gehabt, um zu zeigen, was doppelt war, vorher war der in den "Und" Blöcken drin!

                                      Der hier:

                                      2216_doppelt.jpg

                                      einmal ganz oben und einmal so in der Mitte der "und"-Blöcke.

                                      Hast du mal versucht, meinen Export des Originals von Blackeye zu importieren?

                                      Enrico

                                      1 Antwort Letzte Antwort
                                      0
                                      • rantanplanR Online
                                        rantanplanR Online
                                        rantanplan
                                        schrieb am zuletzt editiert von
                                        #31

                                        @RappiRN:

                                        Hast du mal versucht, meinen Export des Originals von Blackeye zu importieren? `
                                        Ja, klappt auch nicht.

                                        Deinen anderen Export konnte ich importieren.

                                        Wer fängt an Blackeye zu helfen? ;)

                                        Grüße

                                        Rantanplan

                                        CCU3 / MS Server 2019(VM) / Scripten mit Blockly

                                        1 Antwort Letzte Antwort
                                        0
                                        • rantanplanR Online
                                          rantanplanR Online
                                          rantanplan
                                          schrieb am zuletzt editiert von
                                          #32

                                          Nun dann fange ich mal an ;)

                                          Ich versuche mal die Punkte aus den Beiträgen zusammenzufassen.

                                          –------

                                          1. Abends nach Hause kommen.

                                          1.1 wenn KEIN Urlaub

                                          1.2 wenn Licht im Wohnzimmer AUS

                                          1.3 wenn Haus.Hue....Lampe-1 AUS

                                          1.4 wenn Haus.Hue....Lampe-2 AUS

                                          1.5 wenn in bestimmten Zeitraum

                                          1.6 wenn Fernseher AUS

                                          1.7 wenn es DUNKEL ist

                                          1.8 dann soll Esszimmerlampe AN gehen und nach 60 Minuten wieder aus.

                                          1.9 getriggert wird ein Haustür-Schalter

                                          2. Morgens beim Verlassen soll NICHTS passieren.

                                          Ist das erstmal richtig so?

                                          Fragen über Fragen.

                                          A) gibt es einen Helligkeitssensor?

                                          Ohne und nur nach Zeiten ist das ein Glücksspiel.

                                          B) was ist das für ein Tür-Schalter?

                                          was macht der?

                                          wird der auch Morgens betätigt?

                                          C) soll das Licht nach 60 Min. ausgehen? Auch wenn man im Esszimmer ist?

                                          D) Nur Urlaub? Was ist mit WE und Feiertagen?

                                          Diese "Monster"-UND-Abfrage sollte auf jeden Fall vereinfacht werden.

                                          Zumal dort einige Sachen doppelt und unlogisch verglichen werden.

                                          Z.B.

                                          Zwischen 05:00 morgens bis 18:00 Nachmittags

                                          UND

                                          Zwischen Sonnenuntergang-Anfang bis Sonnenaufgang-Ende

                                          Wie soll das BEIDES gleichzeitig WAHR sein?

                                          Grüße

                                          Rantanplan

                                          CCU3 / MS Server 2019(VM) / Scripten mit Blockly

                                          1 Antwort Letzte Antwort
                                          0
                                          Antworten
                                          • In einem neuen Thema antworten
                                          Anmelden zum Antworten
                                          • Älteste zuerst
                                          • Neuste zuerst
                                          • Meiste Stimmen


                                          Support us

                                          ioBroker
                                          Community Adapters
                                          Donate

                                          678

                                          Online

                                          32.6k

                                          Benutzer

                                          82.3k

                                          Themen

                                          1.3m

                                          Beiträge
                                          Community
                                          Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen | Einwilligungseinstellungen
                                          ioBroker Community 2014-2025
                                          logo
                                          • Anmelden

                                          • Du hast noch kein Konto? Registrieren

                                          • Anmelden oder registrieren, um zu suchen
                                          • Erster Beitrag
                                            Letzter Beitrag
                                          0
                                          • Home
                                          • Aktuell
                                          • Tags
                                          • Ungelesen 0
                                          • Kategorien
                                          • Unreplied
                                          • Beliebt
                                          • GitHub
                                          • Docu
                                          • Hilfe