Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. [Gelöst] Blockly - Rollo Steuerung Abhängigkeit Tür

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    [Gelöst] Blockly - Rollo Steuerung Abhängigkeit Tür

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

      20:05:14.919	[info]	javascript.0 Stop script script.js.common.Rollo_Wz_Tür_Schiebetür
      20:05:15.106	[info]	javascript.0 Start javascript script.js.common.Rollo_Wz_Tür_Schiebetür
      20:05:15.107	[info]	javascript.0 script.js.common.Rollo_Wz_Tür_Schiebetür: subscribe: {"pattern":{"id":"fhem.0.TuerWintergarten.state","change":"ne"},"name":"script.js.common.Rollo_Wz_Tür_Schiebetür"}
      20:05:15.107	[info]	javascript.0 script.js.common.Rollo_Wz_Tür_Schiebetür: schedule(cron=0 8 * * *)
      20:05:15.107	[info]	javascript.0 script.js.common.Rollo_Wz_Tür_Schiebetür: setTimeout(ms=21284897)
      20:05:15.107	[info]	javascript.0 script.js.common.Rollo_Wz_Tür_Schiebetür: registered 1 subscription and 2 schedules
      
      1 Reply Last reply Reply Quote 0
      • paul53
        paul53 last edited by

        Den Debug-Block hast Du eingebaut und die Tür anschließend geschlossen ?

        1 Reply Last reply Reply Quote 0
        • B
          Belei last edited by

          ähm jetzt ja. Aber wo soll jetzt was angezeigt werden? bzw muss ich noch im Blockly auf debug und Hilfe klicken?

          Edit:
          3799_debug.jpg

          Oder meiste oben im ersten Block, der wäre doch eigentlich gerade aktiv?

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

            Ein Loggen eines konstanten Strings "Wert" bei Sonnenuntergang liefert keine Information. Bitte so:

            493_blockly_rollo_t_r_nachts_debug.jpg
            Dann siehst Du im Log unterhalb des Blockly-Fensters ob beim Schließen der Tür false oder closed übergeben wird.

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

              Wie sieht der Datenpunkt (Wert) der Tür im Reiter Objekte aus ? Vielleicht so ?
              493_dp_boolean_zustandstext.jpg
              closed anstelle Aus ?

              1 Reply Last reply Reply Quote 0
              • B
                Belei last edited by

                mhhh UNDEFined

                21:33:12.285	[info]	javascript.0 script.js.common.Rollo_Wz_Tür_Schiebetür: setTimeout(ms=16007727)
                21:33:12.285	[info]	javascript.0 script.js.common.Rollo_Wz_Tür_Schiebetür: registered 1 subscription and 2 schedules
                21:34:22.893	[info]	javascript.0 script.js.common.Rollo_Wz_Tür_Schiebetür: undefined
                21:34:33.391	[info]	javascript.0 script.js.common.Rollo_Wz_Tür_Schiebetür: undefined
                

                Datenpunkt wurde der unter bei state genommen. 3799_tfkdp.jpg

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

                  siehe nächsten Beitrag.

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

                    Ich habe ein Vermutung: Ist Wert eine Variable ? Dann ist undefined erklärbar.

                    Wert muss eine Eigenschaft des Triggerdatenpunktes sein (Trigger-Blöcke).
                    493_blockly_dp_props.jpg

                    Hier Dein Export mit Korrektur:

                    ! ````
                    <xml xmlns="http://www.w3.org/1999/xhtml"><block type="on_ext" id="44gpXyTQ_x[N#VzCnLgb" x="-337" y="-187"><mutation items="1"></mutation>
                    <field name="CONDITION">ne</field>

                    <value name="OID0"><shadow type="field_oid" id="Poy6_h96Od5zcQnsna1Q"><field name="oid">fhem.0.TuerWintergarten.state</field></shadow></value> 
                    <statement name="STATEMENT"><block type="controls_if" id="~SDsCLI;Ecv,J4DYR][2"><value name="IF0"><block type="logic_operation" id="xeQ8y5~YP3iw[{iD~Xh?" inline="false"><field name="OP">AND</field>
                            <value name="A"><block type="logic_compare" id="UVWr,|+un*umA`A@ha/e"><field name="OP">EQ</field>
                                <value name="A"><block type="on_source" id="q3KMWhUK-EOqYkTW,;]t"><field name="ATTR">state.val</field></block></value> 
                                <value name="B"><block type="text" id="6T;_]0cB,lx#zfvCq:XS"><field name="TEXT">closed</field></block></value></block></value> 
                            <value name="B"><block type="time_compare_ex" id="lq}5.T/dgY(|gI-Jt73!" inline="false"><mutation end_time="true" actual_time="true"></mutation>
                                <field name="USE_ACTUAL_TIME">TRUE</field>
                                <field name="OPTION">not between</field>
                                <value name="START_TIME"><shadow type="text" id="XX`gW4T692bu)A~)lBzt"><field name="TEXT">12:00</field></shadow> 
                                  <block type="time_astro" id="5tHBay*bx1N5%yaX%NS#"><field name="TYPE">sunrise</field>
                                    <field name="OFFSET">0</field></block></value> 
                                <value name="END_TIME"><shadow type="text" id="-L8;|(Q?gQ^IBvs[c#QL"><field name="TEXT">18:00</field></shadow> 
                                  <block type="time_astro" id="T*_snCzodss?}RO}9K.|"><field name="TYPE">sunset</field>
                                    <field name="OFFSET">0</field></block></value></block></value></block></value> 
                        <statement name="DO0"><block type="control" id="qD9oBw7dS/o@Uxyc~wvN"><mutation delay_input="true"></mutation>
                            <field name="OID">rflink.0.channels.BrelMotor_2.BLIND_33</field>
                            <field name="WITH_DELAY">TRUE</field>
                            <field name="DELAY_MS">10</field>
                            <field name="UNIT">sec</field>
                            <field name="CLEAR_RUNNING">FALSE</field>
                            <value name="VALUE"><block type="logic_boolean" id="O1fn9hkCEI9S!jXy:2H{"><field name="BOOL">FALSE</field></block></value></block></statement></block></statement> 
                    <next><block type="schedule" id="cZ5_:~7y)EO~[u:oSpPF"><field name="SCHEDULE">0 8 * * *</field>
                        <statement name="STATEMENT"><block type="control" id="J??JUNQrd~`AydANF6~:"><mutation delay_input="false"></mutation>
                            <field name="OID">rflink.0.channels.BrelMotor_2.BLIND_33</field>
                            <field name="WITH_DELAY">FALSE</field>
                            <value name="VALUE"><block type="logic_boolean" id="(D5.2~Lt9hzhRUZ2a-*!"><field name="BOOL">TRUE</field></block></value></block></statement> 
                        <next><block type="astro" id="LA7JOH!g~G24~51gsUCx"><field name="TYPE">sunset</field>
                            <field name="OFFSET">0</field>
                            <statement name="STATEMENT"><block type="comment" id="jW:/2v8@CivU%=pTS;HL"><field name="COMMENT">Tür</field>
                                <next><block type="controls_if" id="1K|.!Jb]|TaM~WOs~7fD"><mutation else="1"></mutation>
                                    <value name="IF0"><block type="logic_compare" id="Yr`%2BVA+)E`+xbM=[6l"><field name="OP">EQ</field>
                                        <value name="A"><block type="get_value" id="A;v/Eh#/d@[B@nsyCu89"><field name="ATTR">val</field>
                                            <field name="OID">fhem.0.TuerWintergarten.state</field></block></value> 
                                        <value name="B"><block type="text" id="q7N]*%zDKsDJTlA:C9j/"><field name="TEXT">closed</field></block></value></block></value> 
                                    <statement name="DO0"><block type="comment" id="cUM:S{Einto7-^LMzwGd"><field name="COMMENT">Rollo</field>
                                        <next><block type="control" id="%*E8RwVufT3V:u`~*o_!"><mutation delay_input="false"></mutation>
                                            <field name="OID">rflink.0.channels.BrelMotor_2.BLIND_33</field>
                                            <field name="WITH_DELAY">FALSE</field>
                                            <value name="VALUE"><block type="logic_boolean" id="Z~8]z~~nLyw?LTq-{VVA"><field name="BOOL">FALSE</field></block></value></block></next></block></statement> 
                                    <statement name="ELSE"><block type="pushover" id="AK0T#ShP]?X@A;^uHhd?"><field name="INSTANCE">.0</field>
                    
                                        <field name="PRIORITY">0</field>
                    
                                        <value name="MESSAGE"><shadow type="text" id="2e+lsSk:^Z1,Aqwi)@p`"><field name="TEXT">Rollo 3 konnte nicht geschlossen werden, da die Wintrgarten Tür noch geöffnet ist.</field></shadow></value></block></statement></block></next></block></statement></block></next></block></next></block> 
                    

                    <block type="comment" id="V*g}ZJ^:Ga3j_MdCbcyx" x="-262" y="213"><field name="COMMENT">Morgens Rollo hoch</field></block></xml>

                    1 Reply Last reply Reply Quote 0
                    • B
                      Belei last edited by

                      Ich habe jetzt noch nicht neu importiert sonder tatsächlich die VARIABLE Wert geändert in Trigger/objectID-Wert.

                      Und Debug ausgemacht, das Rollo ging runter. Steht zwar trotzdem was mit undefined aber es ging.

                      22:23:52.148	[info]	javascript.0 script.js.common.Rollo_Wz_Tür_Schiebetür: undefined
                      22:23:52.149	[info]	javascript.0 script.js.common.Rollo_Wz_Tür_Schiebetür: getAstroDate(pattern=sunrise, date=Sat Sep 29 2018 22:23:52 GMT+0200 (CEST)) => Sat Sep 29 2018 07:20:05 GMT+0200 (CEST)
                      22:23:52.149	[info]	javascript.0 script.js.common.Rollo_Wz_Tür_Schiebetür: getAstroDate(pattern=sunset, date=Sat Sep 29 2018 22:23:52 GMT+0200 (CEST)) => Sat Sep 29 2018 19:06:07 GMT+0200 (CEST)
                      22:23:52.149	[info]	javascript.0 script.js.common.Rollo_Wz_Tür_Schiebetür: setStateDelayed(id=rflink.0.channels.BrelMotor_2.BLIND_33, state=false, isAck=false, delay=10000, clearRunning=false)
                      22:24:02.149	[info]	javascript.0 script.js.common.Rollo_Wz_Tür_Schiebetür: setForeignState(id=rflink.0.channels.BrelMotor_2.BLIND_33, state={"val":false,"ack":false})
                      
                      1 Reply Last reply Reply Quote 0
                      • paul53
                        paul53 last edited by

                        @Belei:

                        Ich habe jetzt noch nicht neu importiert sonder tatsächlich die VARIABLE Wert geändert in Trigger/objectID-Wert. `
                        Mehr habe ich auch nicht geändert. Kann also so bleiben.

                        1 Reply Last reply Reply Quote 0
                        • B
                          Belei last edited by

                          Super, wieder was gelernt!

                          Danke für die Hilfe.

                          Ein komischen Rollo Script hab ich noch :roll:

                          Aber jetzt bin ich zu müde :mrgreen:

                          1 Reply Last reply Reply Quote 0
                          • B
                            Belei last edited by

                            Ich habe jetzt den TFK von FHEM abgelernt und an die CCU angemeldet, Wert laut Debug immer noch undefined.

                            Habe auch mal einen andere TFK genommen, dieser meldet das gleiche.??

                            ` > 19:34:14.663 [info] javascript.0 script.js.common.Rollo_Wz_Tür_Schiebetür: undefined

                            19:34:17.657 [info] javascript.0 script.js.common.Rollo_Wz_Tür_Schiebetür: undefined `

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

                              Auch an den Debug-Block hast Du die Triggerdatenpunkt-Eigenschaft Wert übergeben und nicht die Variable Wert ?

                              1 Reply Last reply Reply Quote 0
                              • B
                                Belei last edited by

                                :roll: auch das hab ich jetzt.. Immerhin meldet er jetzt true/false aber will nicht das Rollo schliessen.

                                Ist vieleicht das "false" als Textfeld falsch?

                                20:33:14.662	[info]	javascript.0 Stop script script.js.common.Rollo_Wz_Tür_Schiebetür
                                20:33:14.855	[info]	javascript.0 Start javascript script.js.common.Rollo_Wz_Tür_Schiebetür
                                20:33:14.856	[info]	javascript.0 script.js.common.Rollo_Wz_Tür_Schiebetür: subscribe: {"pattern":{"id":"hm-rpc.0.MEQ0898715.1.STATE","change":"ne"},"name":"script.js.common.Rollo_Wz_Tür_Schiebetür"}
                                20:33:14.856	[info]	javascript.0 script.js.common.Rollo_Wz_Tür_Schiebetür: schedule(cron=0 8 * * *)
                                20:33:14.857	[info]	javascript.0 script.js.common.Rollo_Wz_Tür_Schiebetür: setTimeout(ms=19605158)
                                20:33:14.857	[info]	javascript.0 script.js.common.Rollo_Wz_Tür_Schiebetür: registered 1 subscription and 2 schedules
                                20:35:32.200	[info]	javascript.0 script.js.common.Rollo_Wz_Tür_Schiebetür: true
                                20:35:47.419	[info]	javascript.0 script.js.common.Rollo_Wz_Tür_Schiebetür: false
                                
                                1 Reply Last reply Reply Quote 0
                                • paul53
                                  paul53 last edited by

                                  @Belei:

                                  Ist vieleicht das "false" als Textfeld falsch? `
                                  Sicherlich ja. Ersetze es durch unwahr (Logik-Block).

                                  1 Reply Last reply Reply Quote 0
                                  • B
                                    Belei last edited by

                                    Funktioniert leider auch nicht. Irgentwo ist noch der Wurm.

                                    Rollo geht nicht runter wenn Tür geschlossen wird und es nicht zwischen SA und SU ist.

                                     <xml xmlns="http://www.w3.org/1999/xhtml"><block type="on_ext" id="44gpXyTQ_x[N#VzCnLgb" x="-287" y="-162"><mutation items="1"></mutation>
                                        <field name="CONDITION">ne</field>
                                    
                                        <value name="OID0"><shadow type="field_oid" id="Poy6_h96Od5zcQnsna1Q"><field name="oid">hm-rpc.0.MEQ0268789.1.STATE</field></shadow></value> 
                                        <statement name="STATEMENT"><block type="debug" id="02O}u#.kF1i#+D)-p8Y3"><field name="Severity">log</field>
                                            <value name="TEXT"><shadow type="text" id="Dcb^z+{z)/J3kk+jWa45"><field name="TEXT">Wert</field></shadow> 
                                              <block type="on_source" id="Qg{t]:wD(%71iwz`[EQx"><field name="ATTR">state.val</field></block></value> 
                                            <next><block type="controls_if" id="~SDsCLI;Ecv,J4DYR][2"><value name="IF0"><block type="logic_operation" id="xeQ8y5~YP3iw[{iD~Xh?" inline="false"><field name="OP">AND</field>
                                                    <value name="A"><block type="logic_compare" id="UVWr,|+un*umA`A@ha/e"><field name="OP">EQ</field>
                                                        <value name="A"><block type="on_source" id="!sPbhy4pUV!%2Z7L:MvZ"><field name="ATTR">state.val</field></block></value> 
                                                        <value name="B"><block type="logic_boolean" id="ID+E#Hs+E~V7fl5Y9T(D"><field name="BOOL">FALSE</field></block></value></block></value> 
                                                    <value name="B"><block type="time_compare_ex" id="lq}5.T/dgY(|gI-Jt73!" inline="false"><mutation end_time="true" actual_time="true"></mutation>
                                                        <field name="USE_ACTUAL_TIME">TRUE</field>
                                                        <field name="OPTION">not between</field>
                                                        <value name="START_TIME"><shadow type="text" id="XX`gW4T692bu)A~)lBzt"><field name="TEXT">12:00</field></shadow> 
                                                          <block type="time_astro" id="5tHBay*bx1N5%yaX%NS#"><field name="TYPE">sunrise</field></block></value> 
                                                        <value name="END_TIME"><shadow type="text" id="=HFC7vG,z[/4:A6aDI)R"><field name="TEXT">18:00</field></shadow> 
                                                          <block type="time_astro" id="T*_snCzodss?}RO}9K.|"><field name="TYPE">sunset</field></block></value></block></value></block></value> 
                                                <statement name="DO0"><block type="comment" id="cUM:S{Einto7-^LMzwGd"><field name="COMMENT">Rollo</field>
                                                    <next><block type="control" id="qD9oBw7dS/o@Uxyc~wvN"><mutation delay_input="false"></mutation>
                                                        <field name="OID">rflink.0.channels.BrelMotor_2.BLIND_33</field>
                                                        <field name="WITH_DELAY">FALSE</field>
                                                        <value name="VALUE"><block type="logic_boolean" id="O1fn9hkCEI9S!jXy:2H{"><field name="BOOL">FALSE</field></block></value></block></next></block></statement></block></next></block></statement> 
                                        <next><block type="comment" id="V*g}ZJ^:Ga3j_MdCbcyx"><field name="COMMENT">Morgens Rollo hoch</field>
                                            <next><block type="schedule" id="cZ5_:~7y)EO~[u:oSpPF"><field name="SCHEDULE">0 8 * * *</field>
                                                <statement name="STATEMENT"><block type="control" id="J??JUNQrd~`AydANF6~:"><mutation delay_input="false"></mutation>
                                                    <field name="OID">rflink.0.channels.BrelMotor_2.BLIND_33</field>
                                                    <field name="WITH_DELAY">FALSE</field>
                                                    <value name="VALUE"><block type="logic_boolean" id="(D5.2~Lt9hzhRUZ2a-*!"><field name="BOOL">TRUE</field></block></value></block></statement> 
                                                <next><block type="astro" id="LA7JOH!g~G24~51gsUCx"><field name="TYPE">sunset</field>
                                                    <field name="OFFSET">1</field>
                                                    <statement name="STATEMENT"><block type="comment" id="jW:/2v8@CivU%=pTS;HL"><field name="COMMENT">Tür</field>
                                                        <next><block type="controls_if" id="1K|.!Jb]|TaM~WOs~7fD"><mutation else="1"></mutation>
                                                            <value name="IF0"><block type="logic_compare" id="Yr`%2BVA+)E`+xbM=[6l"><field name="OP">EQ</field>
                                                                <value name="A"><block type="get_value" id="A;v/Eh#/d@[B@nsyCu89"><field name="ATTR">val</field>
                                                                    <field name="OID">hm-rpc.0.MEQ0268789.1.STATE</field></block></value> 
                                                                <value name="B"><block type="logic_boolean" id="p9s=W+^CO#K[eu/d%7^?"><field name="BOOL">FALSE</field></block></value></block></value> 
                                                            <statement name="DO0"><block type="control" id="%*E8RwVufT3V:u`~*o_!"><mutation delay_input="false"></mutation>
                                                                <field name="OID">rflink.0.channels.BrelMotor_2.BLIND_33</field>
                                                                <field name="WITH_DELAY">FALSE</field>
                                                                <value name="VALUE"><block type="logic_boolean" id="Z~8]z~~nLyw?LTq-{VVA"><field name="BOOL">FALSE</field></block></value></block></statement> 
                                                            <statement name="ELSE"><block type="pushover" id="AK0T#ShP]?X@A;^uHhd?"><field name="INSTANCE">.0</field>
                                    
                                                                <field name="PRIORITY">0</field>
                                    
                                                                <value name="MESSAGE"><shadow type="text" id="2e+lsSk:^Z1,Aqwi)@p`"><field name="TEXT">Rollo 3 konnte nicht geschlossen werden, da die Wintrgarten Tür noch geöffnet ist.</field></shadow></value></block></statement></block></next></block></statement></block></next></block></next></block></next></block></xml> 
                                    

                                    3799_rollo-tfk.jpg

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

                                      Kann keinen Fehler entdecken, es sollte so funktionieren.

                                      1 Reply Last reply Reply Quote 0
                                      • B
                                        Belei last edited by

                                        Der Fehler hat irgentwas mit SU SA zu tun.

                                        Wenn ich " nicht zwischen SU und SA" in "zwischén 18:00 und 23:00" ändere, geht das Rollo runter.

                                        Debug sagt bei nicht zwischen SU-SA

                                        20:49:05.437	[info]	javascript.0 script.js.common.Rollo_Wz_Tür_Schiebetür: false
                                        20:49:05.438	[info]	javascript.0 script.js.common.Rollo_Wz_Tür_Schiebetür: getAstroDate(pattern=sunriseEnd, date=Mon Oct 01 2018 20:49:05 GMT+0200 (CEST)) => Mon Oct 01 2018 07:27:03 GMT+0200 (CEST)
                                        20:49:05.438	[info]	javascript.0 script.js.common.Rollo_Wz_Tür_Schiebetür: getAstroDate(pattern=nauticalDusk, date=Mon Oct 01 2018 20:49:05 GMT+0200 (CEST)) => Mon Oct 01 2018 20:15:39 GMT+0200 (CEST)
                                        
                                        1 Reply Last reply Reply Quote 0
                                        • B
                                          Belei last edited by

                                          Da ja bei mir der Teil mit "nicht zwischen Sonnenaufgang und Sonnenuntergang" warum auch immer nicht funktionierte.

                                          Habe ich es jetzt mit einem Datenpunkt "AstroNacht" gelöst. Welcher von einem Extra BLockly aktualisert wird.

                                          viewtopic.php?f=21&t=2757&start=220#p181881

                                          Thread ist gelöst 😉

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

                                          Support us

                                          ioBroker
                                          Community Adapters
                                          Donate

                                          896
                                          Online

                                          31.7k
                                          Users

                                          79.9k
                                          Topics

                                          1.3m
                                          Posts

                                          3
                                          28
                                          2171
                                          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