Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. Styrbar E2001/E2002 button_move_up / button_move_down events

    NEWS

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    Styrbar E2001/E2002 button_move_up / button_move_down events

    This topic has been deleted. Only users with topic management privileges can see it.
    • Z
      zz @DJMarc75 last edited by

      @djmarc75 Ich habe noch Information ergänzt. Wenn immer noch etwas fehlt, sag mir bitte genau was. Es sind meine ersten Gehversuche mit IOBroker. Ich habe mir auch Homeassistant und OpenHAB angeschaut, aber IOBroker scheint mir am flexibelsten zu sein. Bisher hatte ich aber mit allen dreien immer irgendein Problem. Langsam überlege ich das basteln dranzugeben und auf ein proprietäres System zu setzen.

      DJMarc75 2 Replies Last reply Reply Quote 0
      • DJMarc75
        DJMarc75 @zz last edited by

        @zz sagte in Styrbar E2001/E2002 button_move_up / button_move_down events:

        auf ein proprietäres System zu setzen

        Mir ist zu warm um den Begriff "propidingsbums" zu googeln aber kein System ist OutOfTheBox und verlangt immer etwas Bastelei.
        Jetzt sei so gut und zeig mal den Objektbaum von dem ZigbeeTeil.
        Und: welche Devices schaltest Du in Deinem Blockly?

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

          @djmarc75 pro·p·ri·e·tär (in Bezug auf Software u. Ä.) nur auf einem herstellereigenen Computermodell einsetzbar; herstellergebunden. 🙂
          Habe den Baum oben ergänzt.

          DJMarc75 2 Replies Last reply Reply Quote 0
          • DJMarc75
            DJMarc75 @zz last edited by

            @zz bitte nicht einen Beitrag editieren wenn neue Infos benötigt werden sondern immer einen neuen Beitrag erstellen. Editieren hilft nicht beim helfen.

            1 Reply Last reply Reply Quote 1
            • DJMarc75
              DJMarc75 @zz last edited by

              @zz importier dir mal das Blockly bitte:


              <block xmlns="https://developers.google.com/blockly/xml" type="on_ext" id="t4!mgwUKlJ^)d]@07BVb" x="388" y="413">
              <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
              <field name="CONDITION">ne</field>
              <field name="ACK_CONDITION"></field>
              <value name="OID0">
              <shadow type="field_oid" id="4P(qEPhimDDdS(NSE/h+">
              <field name="oid">default</field>
              </shadow>
              </value>
              <statement name="STATEMENT">
              <block type="controls_if" id="[_~J9!9#Z=784%OOvLB4">
              <value name="IF0">
              <block type="on_source" id="|0ID/|v)t7[5F|(T1._Y">
              <field name="ATTR">state.val</field>
              </block>
              </value>
              <statement name="DO0">
              <block type="debug" id="4dW!F@la=GtUgaR|p7E,">
              <field name="Severity">log</field>
              <value name="TEXT">
              <shadow type="text" id="t{vH(BHN1OPqQhMNQ)bX">
              <field name="TEXT">test</field>
              </shadow>
              <block type="variables_get" id="^aPQLy*LTY?svKfRa$IH">
              <field name="VAR" id="Ij({%c]bOVC[.]XnjGWY">result</field>
              </block>
              </value>
              </block>
              </statement>
              </block>
              </statement>
              </block>


              Den TriggerDP nimmst du den brightness move up

              Skript starten und den Trigger paar mal ausführen und das LOG posten bitte

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

                @zz https://forum.iobroker.net/topic/51580/gelöst-zigbee-ikea-styrbar-problem

                1 Reply Last reply Reply Quote 0
                • Z
                  zz last edited by

                  @djmarc75 Ich dachte es bleibt übersichtlicher wenn alles im ersten Post zusammen steht. Hier das Logfile nach drei mal Auslösung von brightness_move_up mit meinem Skript. Im Adapter wird das auch richtig angezeigt, aber im JS geht wohl mächtig was schief. Der Link hat leider nicht weitergeholfen.

                  host.raspberrypi 2022-07-26 20:43:09.949	warn	instance system.adapter.javascript.0 terminated due to SIGABRT
                  host.raspberrypi 2022-07-26 20:43:09.949	error	Caught by controller[5]: 9: 0x11a52ac v8::internal::Runtime_AllocateInYoungGeneration(int, unsigned long*, v8::internal::Isolate*) [io.javascript.0]
                  host.raspberrypi 2022-07-26 20:43:09.948	error	Caught by controller[4]: 8: 0xe564b8 v8::internal::Factory::NewFillerObject(int, bool, v8::internal::AllocationType, v8::internal::AllocationOrigin) [io.javascript.0]
                  host.raspberrypi 2022-07-26 20:43:09.948	error	Caught by controller[4]: 6: 0xe8e2f0 v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [io.javascript.0]
                  host.raspberrypi 2022-07-26 20:43:09.948	error	Caught by controller[4]: 4: 0xcd13d4 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [io.javascript.0]
                  host.raspberrypi 2022-07-26 20:43:09.948	error	Caught by controller[2]: 2: 0xa22a88 node::FatalError(char const*, char const*) [io.javascript.0]
                  host.raspberrypi 2022-07-26 20:43:09.949	error	Caught by controller[6]: 10: 0x1553bac [io.javascript.0]
                  host.raspberrypi 2022-07-26 20:43:09.949	info	instance system.adapter.javascript.0 terminated with code NaN ()
                  host.raspberrypi 2022-07-26 20:43:09.948	error	Caught by controller[1]: 1: 0xafbf30 node::Abort() [io.javascript.0]
                  host.raspberrypi 2022-07-26 20:43:09.947	error	Caught by controller[0]: <--- JS stacktrace --->
                  host.raspberrypi 2022-07-26 20:43:09.948	error	Caught by controller[3]: 3: 0xcd1248 v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, bool) [io.javascript.0]
                  host.raspberrypi 2022-07-26 20:43:09.948	error	Caught by controller[4]: 5: 0xe7efb0 v8::internal::Heap::EnsureFromSpaceIsCommitted() [io.javascript.0]
                  host.raspberrypi 2022-07-26 20:43:09.948	error	Caught by controller[4]: 7: 0xe90dec v8::internal::Heap::AllocateRawWithRetryOrFailSlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [io.javascript.0]
                  host.raspberrypi 2022-07-26 20:43:09.947	error	Caught by controller[0]: [112572:0x3158d640] 46747 ms: Mark-sweep (reduce) 923.7 (948.6) -> 922.7 (940.6) MB, 1199.6 / 0.0 ms (+ 689.6 ms in 117 steps since start of marking, biggest step 29.4 ms, walltime since start of marking 2021 ms) (average mu = 0.395, current mu = 0.21[112572:0x3158d640] 48020 ms: Mark-sweep (reduce) 924.0 (940.8) -> 923.8 (941.8) MB, 1198.0 / 0.1 ms (+ 54.8 ms in 11 steps since start of marking, biggest step 6.0 ms, walltime since start of marking 1266 ms) (average mu = 0.262, current mu = 0.016)
                  host.raspberrypi 2022-07-26 20:43:09.947	error	Caught by controller[0]: FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory
                  host.raspberrypi 2022-07-26 20:43:09.946	error	Caught by controller[0]: <--- Last few GCs --->
                  
                  Asgothian 1 Reply Last reply Reply Quote 0
                  • Z
                    zz @DJMarc75 last edited by

                    @djmarc75 Hier das Logfile mit Deinem Skript. Als Object ID habe ich das brightness_move_up von meinem Schalter genommen.

                    javascript.0 2022-07-26 22:00:15.513	info	script.js.common.test: undefined
                    javascript.0 2022-07-26 22:00:12.450	info	script.js.common.test: undefined
                    javascript.0 2022-07-26 22:00:09.554	info	script.js.common.test: undefined
                    javascript.0 2022-07-26 22:00:06.174	info	script.js.common.test: undefined
                    javascript.0 2022-07-26 22:00:02.363	info	script.js.common.test: undefined
                    javascript.0 2022-07-26 21:59:51.335	info	script.js.common.test: registered 1 subscription and 0 schedules
                    javascript.0 2022-07-26 21:59:51.272	info	Start javascript script.js.common.test
                    javascript.0 2022-07-26 21:59:51.187	info	received all states
                    javascript.0 2022-07-26 21:59:51.174	info	received all objects
                    javascript.0 2022-07-26 21:59:50.776	info	requesting all objects
                    javascript.0 2022-07-26 21:59:50.775	info	requesting all states
                    javascript.0 2022-07-26 21:59:50.593	info	starting. Version 5.7.0 in /opt/iobroker/node_modules/iobroker.javascript, node: v16.16.0, js-controller: 4.0.23
                    host.raspberrypi
                    2022-07-26 21:59:47.358	info	instance system.adapter.javascript.0 started with pid 117031
                    
                    1 Reply Last reply Reply Quote 0
                    • Asgothian
                      Asgothian Developer @zz last edited by

                      @zz zeig mal dein Skript. Es scheint eine Rekursive zu geben - dir geht der Speicher aus.

                      Nebenbei bin ich sicher das du im Skript auf die falschen Datenpunkte setzt.

                      A.

                      Z 1 Reply Last reply Reply Quote 0
                      • Z
                        zz @Asgothian last edited by

                        @asgothian

                        on({id: [].concat(['zigbee.0.003c84fffe1e6a5f.brightness_move_up']), change: "ne"}, async function (obj) {
                          var value = obj.state.val;
                          var oldValue = obj.oldState.val;
                          setState("zigbee.0.84ba20fffe705ecb.state"/*Switch state*/, true);
                        });
                        
                        on({id: "zigbee.0.003c84fffe1e6a5f.on"/*on*/, val: true}, async function (obj) {
                          var value = obj.state.val;
                          var oldValue = obj.oldState.val;
                          setState("zigbee.0.84ba20fffe705ecb.state"/*Switch state*/, true);
                        });
                        
                        on({id: "zigbee.0.003c84fffe1e6a5f.off"/*off*/, val: true}, async function (obj) {
                          var value = obj.state.val;
                          var oldValue = obj.oldState.val;
                          setState("zigbee.0.84ba20fffe705ecb.state"/*Switch state*/, false);
                        });
                        
                        
                        
                        DJMarc75 1 Reply Last reply Reply Quote 0
                        • DJMarc75
                          DJMarc75 @zz last edited by

                          @zz Warum plötzlich JavaSkript ?

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

                            @djmarc75 @asgothian Das wird angezeigt, wenn ich auf f0cb8475-84e5-4835-9cd3-d0685407b903-image.png klicke. Ich dachte so ist es am eindeutigsten.

                            Dabei habe ich allerdings das Problem gefunden. Wenn ich die deaktivierten Blöcke lösche, funktioniert auch button_move_up.
                            Ist das ein Bug in Blockly?. Danke Euch für die Hilfe.

                            75375524-8bfb-4b59-bd88-505c7b35ea9d-image.png

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

                            Support us

                            ioBroker
                            Community Adapters
                            Donate

                            929
                            Online

                            31.7k
                            Users

                            79.8k
                            Topics

                            1.3m
                            Posts

                            3
                            14
                            403
                            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