Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. frage zu mein Blockly

    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

    frage zu mein Blockly

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

      @homoran hab gemacht danke für die info

      S 1 Reply Last reply Reply Quote 0
      • paul53
        paul53 @D4vE last edited by paul53

        @d4ve sagte: licht an geht sobald Sonnenuntergang ist und ich immer noch im Flur bin. gibt's da eine Möglichkeit?

        Triggere auf "Sonnenuntergang" und prüfe in diesem Trigger den BWM.
        Wie wird der Datenpunkt "sonnenuntergang" gebildet? Er muss die gesamte Nacht true sein.

        EDIT: Inklusive einiger Vereinfachungen:

        Blockly_temp.JPG

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

          @paul53

          hi Paul 🙂

          also jetzt blick ich garnix mehr was hat das mit denn (tag) auf sich? ich bau es mal nach und guck mal was passiert vielen dank ❤

          japp der datenpunkt sonnenuntergang ist true und sobald sonne auf geht false

          Homoran paul53 2 Replies Last reply Reply Quote 0
          • Homoran
            Homoran Global Moderator Administrators @D4vE last edited by

            @d4ve sagte in frage zu mein Blockly:

            was hat das mit denn (tag) auf sich?

            das ist eine von dir zu erstellende Variable

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

              @d4ve sagte: was hat das mit denn (tag) auf sich?

              Die Variable tag ist true zwischen 6 und 23 Uhr. Die Variable wird an 3 Stellen im Skript geprüft.

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

                @paul53

                t.png

                einmal kommt das und das licht geht nicht auf 90% hell da fehlt noch die 23:00 bis 06:00

                also das licht geht auf 90% das andere licht auf 40% von 06:00 bis 23:00 nachg 23 uhr 40% und das andere 10%

                javascript.0
                	2024-09-09 22:33:01.855	warn	at process.processImmediate (node:internal/timers:483:21)
                javascript.0
                	2024-09-09 22:33:01.855	warn	at Immediate._onImmediate (/opt/iobroker/node_modules/@iobroker/js-controller-adapter/build/cjs/lib/adapter/adapter.js:5869:48)
                javascript.0
                	2024-09-09 22:33:01.855	warn	at Object.stateChange (/opt/iobroker/node_modules/iobroker.javascript/main.js:645:29)
                javascript.0
                	2024-09-09 22:33:01.855	warn	at Object.callback (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1452:38)
                javascript.0
                	2024-09-09 22:33:01.854	warn	at Object.<anonymous> (script.js.common.TEST.test_flur:17:9)
                javascript.0
                	2024-09-09 22:33:01.854	warn	at setState (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:2090:20)
                javascript.0
                	2024-09-09 22:33:01.854	warn	You are assigning a number to the state "zigbee2mqtt.0.0x00158d00046e5c4e.state" which expects a boolean. Please fix your code to use a boolean or change the state type to number. This warning might become an error in future versions.
                javascript.0
                	2024-09-09 22:33:01.854	warn	at process.processImmediate (node:internal/timers:483:21)
                javascript.0
                	2024-09-09 22:33:01.853	warn	at Immediate._onImmediate (/opt/iobroker/node_modules/@iobroker/js-controller-adapter/build/cjs/lib/adapter/adapter.js:5869:48)
                javascript.0
                	2024-09-09 22:33:01.853	warn	at Object.stateChange (/opt/iobroker/node_modules/iobroker.javascript/main.js:645:29)
                javascript.0
                	2024-09-09 22:33:01.853	warn	at Object.callback (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1452:38)
                javascript.0
                	2024-09-09 22:33:01.853	warn	at Object.<anonymous> (script.js.common.TEST.test_flur:16:9)
                javascript.0
                	2024-09-09 22:33:01.853	warn	at setState (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:2090:20)
                javascript.0
                	2024-09-09 22:33:01.852	warn	You are assigning a number to the state "zigbee2mqtt.0.0x7cb03eaa00aeb7f4.state" which expects a boolean. Please fix your code to use a boolean or change the state type to number. This warning might become an error in future versions.
                

                vielen dank für deine hilfe

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

                  @d4ve sagte: You are assigning a number to the state "zigbee2mqtt.0.0x7cb03eaa00aeb7f4.state" which expects a boolean.

                  Du hast die Brightness-DP gegen "Switch state" ausgetauscht, was natürlich nicht funktioniert.
                  Ich habe die Helligkeitswerte aus deinem ursprünglichen Skript übernommen.

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

                    @paul53 ach Paul ^^

                    was soll ich sagen ja du hast recht. bin nicht mehr der jüngste 🙂

                    ok nun geht es, ich warte nochmal 10 min und guck ob es nach 23 uhr 40/10% an geht 🙂 ich sag dir nochmal bescheid

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

                      @paul53

                      hab alles hinbekommen vielen danke noch.

                      1 Reply Last reply Reply Quote 0
                      • S
                        Samson @D4vE last edited by

                        @d4ve ...und deinem Post einen aussagefähigen Betreff geben. "frage zu meinem Blockly" verjagt Dir hilfsbereite Forummitglieder.

                        D4vE 1 Reply Last reply Reply Quote 0
                        • D4vE
                          D4vE @Samson last edited by

                          @samson auf jedenfall hilfreicher Beitrag von dir! danke hat uns allem viel gebracht.....

                          S 1 Reply Last reply Reply Quote 0
                          • S
                            Samson @D4vE last edited by

                            @d4ve sagte in frage zu mein Blockly:

                            @samson auf jedenfall hilfreicher Beitrag von dir! danke hat uns allem viel gebracht.....

                            Ich wollte Dich lediglich auf die Forenregeln hinweisen. Wenn Du diese kennst und Dich daran hältst ist es DEIN Mehrwert, indem Du mehr Antworten auf Dein Problem bekommst.

                            Brauchst deshalb nicht gleich aggro werden. War nur ein gut gemeinter Tipp.

                            Bildschirmfoto 2024-10-12 um 12.31.06.png

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

                            Support us

                            ioBroker
                            Community Adapters
                            Donate

                            504
                            Online

                            31.9k
                            Users

                            80.1k
                            Topics

                            1.3m
                            Posts

                            4
                            14
                            488
                            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