Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. Prüfung mehrerer Bedingungen

    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

    Prüfung mehrerer Bedingungen

    This topic has been deleted. Only users with topic management privileges can see it.
    • Armilar
      Armilar Most Active Forum Testing @Guest last edited by

      @apachelance

      nicht den Debug Mode im oberen Bereich einschalten. Nur den Blockly Baustein verwenden...

      Und Logs immer in 6b7e0036-de4d-4e29-9c39-1d083513ef98-image.png
      diesen Code-Tags senden

      ? 1 Reply Last reply Reply Quote 0
      • ?
        A Former User @Armilar last edited by

        @armilar Hier einmal ein Film aus dem Horror-Genre und danach ein anderes Genre, beides auf dem Mediaplayer. Ich teste gleich selbiges auf dem PC:

        22.11.2023, 23:34:54.559	[info ]: javascript.0 (348) Stop script script.js.common.Emby_Lichtsteuerung
        22.11.2023, 23:34:54.604	[info ]: javascript.0 (348) Start javascript script.js.common.Emby_Lichtsteuerung
        22.11.2023, 23:34:54.615	[info ]: javascript.0 (348) script.js.common.Emby_Lichtsteuerung: subscribe: {"pattern":{"id":"emby.0.9978dbe503e74d4ab65de44921021f49.media.state","change":"ne","q":0},"name":"script.js.common.Emby_Lichtsteuerung"}
        22.11.2023, 23:34:54.616	[info ]: javascript.0 (348) script.js.common.Emby_Lichtsteuerung: registered 1 subscription, 0 schedules, 0 messages, 0 logs and 0 file subscriptions
        22.11.2023, 23:35:00.340	[info ]: javascript.0 (348) script.js.common.Emby_Lichtsteuerung: idle
        22.11.2023, 23:35:09.816	[info ]: javascript.0 (348) script.js.common.Emby_Lichtsteuerung: playing
        22.11.2023, 23:35:09.816	[info ]: javascript.0 (348) script.js.common.Emby_Lichtsteuerung: getState(id=emby.0.0625f91c9e5aa817d97f3c2df711452c.media.genres, timerId=undefined) => {"val":"Drama,Horror","ack":true,"ts":1700692187381,"q":0,"from":"system.adapter.emby.0","user":"system.user.admin","lc":1700692187104}
        22.11.2023, 23:35:09.817	[info ]: javascript.0 (348) script.js.common.Emby_Lichtsteuerung: setForeignState(id=hue.0.Wohnzimmer.scene_rotes_licht, state={"val":true,"ack":false,"ts":1700692509817,"q":0,"from":"system.adapter.javascript.0","lc":1700683023856,"c":"script.js.common.Emby_Lichtsteuerung"})
        22.11.2023, 23:35:18.575	[info ]: javascript.0 (348) script.js.common.Emby_Lichtsteuerung: idle
        22.11.2023, 23:35:27.638	[info ]: javascript.0 (348) script.js.common.Emby_Lichtsteuerung: playing
        22.11.2023, 23:35:27.639	[info ]: javascript.0 (348) script.js.common.Emby_Lichtsteuerung: getState(id=emby.0.0625f91c9e5aa817d97f3c2df711452c.media.genres, timerId=undefined) => {"val":"Drama,Horror","ack":true,"ts":1700692187381,"q":0,"from":"system.adapter.emby.0","user":"system.user.admin","lc":1700692187104}
        22.11.2023, 23:35:27.639	[info ]: javascript.0 (348) script.js.common.Emby_Lichtsteuerung: setForeignState(id=hue.0.Wohnzimmer.scene_rotes_licht, state={"val":true,"ack":false,"ts":1700692527639,"q":0,"from":"system.adapter.javascript.0","lc":1700683023856,"c":"script.js.common.Emby_Lichtsteuerung"})
        
        ? paul53 2 Replies Last reply Reply Quote 0
        • ?
          A Former User @Guest last edited by

          @Armilar und so schauts auf dem PC aus, wo auch die Farbschalte richtig funktioniert:

          22.11.2023, 23:36:43.860	[info ]: javascript.0 (348) Stop script script.js.common.Emby_Lichtsteuerung
          22.11.2023, 23:36:43.904	[info ]: javascript.0 (348) Start javascript script.js.common.Emby_Lichtsteuerung
          22.11.2023, 23:36:43.907	[info ]: javascript.0 (348) script.js.common.Emby_Lichtsteuerung: subscribe: {"pattern":{"id":"emby.0.0625f91c9e5aa817d97f3c2df711452c.media.state","change":"ne","q":0},"name":"script.js.common.Emby_Lichtsteuerung"}
          22.11.2023, 23:36:43.908	[info ]: javascript.0 (348) script.js.common.Emby_Lichtsteuerung: registered 1 subscription, 0 schedules, 0 messages, 0 logs and 0 file subscriptions
          22.11.2023, 23:36:48.637	[info ]: javascript.0 (348) script.js.common.Emby_Lichtsteuerung: playing
          22.11.2023, 23:36:48.638	[info ]: javascript.0 (348) script.js.common.Emby_Lichtsteuerung: getState(id=emby.0.0625f91c9e5aa817d97f3c2df711452c.media.genres, timerId=undefined) => {"val":"Drama,Horror","ack":true,"ts":1700692608624,"q":0,"from":"system.adapter.emby.0","user":"system.user.admin","lc":1700692187104}
          22.11.2023, 23:36:48.638	[info ]: javascript.0 (348) script.js.common.Emby_Lichtsteuerung: setForeignState(id=hue.0.Wohnzimmer.scene_rotes_licht, state={"val":true,"ack":false,"ts":1700692608638,"q":0,"from":"system.adapter.javascript.0","lc":1700683023856,"c":"script.js.common.Emby_Lichtsteuerung"})
          22.11.2023, 23:36:51.488	[info ]: javascript.0 (348) script.js.common.Emby_Lichtsteuerung: idle
          22.11.2023, 23:36:54.665	[info ]: javascript.0 (348) script.js.common.Emby_Lichtsteuerung: playing
          22.11.2023, 23:36:54.665	[info ]: javascript.0 (348) script.js.common.Emby_Lichtsteuerung: getState(id=emby.0.0625f91c9e5aa817d97f3c2df711452c.media.genres, timerId=undefined) => {"val":"Drama,Liebesfilm,Historie,Kriegsfilm","ack":true,"ts":1700692614648,"q":0,"from":"system.adapter.emby.0","user":"system.user.admin","lc":1700692614648}
          22.11.2023, 23:36:54.666	[info ]: javascript.0 (348) script.js.common.Emby_Lichtsteuerung: setForeignState(id=hue.0.Wohnzimmer.scene_blaues_licht, state={"val":true,"ack":false,"ts":1700692614666,"q":0,"from":"system.adapter.javascript.0","lc":1700585319481,"c":"script.js.common.Emby_Lichtsteuerung"})
          22.11.2023, 23:36:58.077	[info ]: javascript.0 (348) script.js.common.Emby_Lichtsteuerung: idle
          
          Armilar 1 Reply Last reply Reply Quote 0
          • Armilar
            Armilar Most Active Forum Testing @Guest last edited by

            @apachelance

            Auch wenn Genre noch nicht im eigenen Debug-Baustein ist und Debug irgendwie immer noch angehakt, würde ich das mal so interpretieren:

            playing und idle wechseln sich häufiger mal ab --> ist aber kein Problem, da nur bei playing geschaltet wird.

            Aber der Inhalt von media.genres springt auch hin und her - oder?

            ? 1 Reply Last reply Reply Quote 0
            • ?
              A Former User @Armilar last edited by A Former User

              @armilar Im Beispiel oben waren es 2 verschiedene Filme, daher auch unterschiedliche Genres. Das Springen von Idle/Playing kommt vom Starten und Stoppen der 2 Filme.

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

                @apachelance sagte: danach ein anderes Genre

                Auch dort steht "Horror" drin. Wurde offenbar nicht geändert.

                Armilar 2 Replies Last reply Reply Quote 0
                • Armilar
                  Armilar Most Active Forum Testing @paul53 last edited by Armilar

                  @paul53

                  hmmm

                  eigentlich sind es zwei unterschiedliche Strings:

                  0e098ec4-48b8-4d70-9592-497015cf209a-image.png

                  und deshalb verstehe ich es nicht... 🙄

                  Wenn er nun sagen würde, erst wars rot und dann blau - dann schon

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

                    @armilar sagte: zwei unterschiedliche Strings:

                    Aber nicht hier.

                    1 Reply Last reply Reply Quote 0
                    • Armilar
                      Armilar Most Active Forum Testing @paul53 last edited by Armilar

                      @paul53

                      stimmt...

                      so... muss nun auch in die Waagerechte... gN8

                      ? 1 Reply Last reply Reply Quote 0
                      • ?
                        A Former User @Armilar last edited by

                        @armilar @paul53 Problem gefunden, der Fehler saß vor dem Rechner 😬 Hab beim ganzen Testen irgendwann das Genreobjekt vom PC mit dem Skript vom Mediaplayer vermengt. Dadurch war es dann im Debug sichtbar falsch. Jetzt läuft es.

                        Danke für eure Hilfe!

                        Armilar 1 Reply Last reply Reply Quote 1
                        • Armilar
                          Armilar Most Active Forum Testing @Guest last edited by

                          @apachelance

                          8 Minuten vor < 20:00 Uhr --> Glück gehabt 😊

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

                          Support us

                          ioBroker
                          Community Adapters
                          Donate

                          827
                          Online

                          31.9k
                          Users

                          80.1k
                          Topics

                          1.3m
                          Posts

                          4
                          45
                          1309
                          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