Skip to content
  • Home
  • Recent
  • Tags
  • 0 Unread 0
  • Categories
  • Unreplied
  • Popular
  • 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

  • Default (No Skin)
  • No Skin
Collapse
ioBroker Logo

Community Forum

donate donate
  1. ioBroker Community Home
  2. Deutsch
  3. Skripten / Logik
  4. Blockly für Licht an, wenn Fernseher an ist, zu bestimmten Zeiten

NEWS

  • Monatsrückblick Januar/Februar 2026 ist online!
    BluefoxB
    Bluefox
    18
    1
    771

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

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

Blockly für Licht an, wenn Fernseher an ist, zu bestimmten Zeiten

Scheduled Pinned Locked Moved Skripten / Logik
8 Posts 3 Posters 1.3k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    kukoratsch
    wrote on last edited by
    #1

    Hallo ioBroker Forum,

    Kann mir bitte jemand sagen, warum mein Blockly nicht funktioniert?

    Ich möchte, wenn der Fernseher an ist und es zwischen 18 und 20 Uhr ist das Licht angeht.

    Schalten möchte ich über Harmony Hub.

    Dankeschön im voraus.
    6271_test.jpg

    1 Reply Last reply
    0
    • paul53P Offline
      paul53P Offline
      paul53
      wrote on last edited by
      #2

      currentStatus kann nicht gleichzeitig den Wert 2 und den Wert wahr haben.

      Bitte verzichtet auf Chat-Nachrichten, denn die Handhabung ist grauenhaft !
      Produktiv: RPi 2 mit S.USV, HM-MOD-RPI und SLC-USB-Stick mit root fs

      1 Reply Last reply
      0
      • K Offline
        K Offline
        kukoratsch
        wrote on last edited by
        #3

        Hallo,

        das ist mein erstes Blockly. Kann man es irgendwie anders lösen, dass das Licht zu bestimmten Zeiten angeht, wenn der Fernseher an ist.

        Ich habe schon versucht, mit PING Adapter SAT Box über IP Adresse. Das Licht geht immer an wenn die Uhrzeit erreicht ist.

        Ich glaube weil der Pong immer true ist.

        Kann mir jemand dabei helfen?

        1 Reply Last reply
        0
        • Homer.J.H Offline
          Homer.J.H Offline
          Homer.J.
          wrote on last edited by
          #4

          Propier mal das.

          ! <xml 1999/xmlns="<URL url=" http:/www.w3.org/xhtml"="">http://www.w3.org/1999/xhtml">
          ! <block type="on_ext" id="?AxQ]GL=5Y[Y/|c=Aw*[" x="-762" y="-487"><mutation items="1"></mutation>
          ! <field name="CONDITION">ne</field>
          ! <value name="OID0"><shadow type="field_oid" id="o_!v0.FP8lc}8l.@S)|M"><field name="oid">harmony.0.Harmony Hub.activities.Smart TV wiedergeben</field></shadow></value>
          ! <statement name="STATEMENT"><block type="controls_if" id="#q{71lQh#P{bNeN}rbu"><mutation elseif="1"></mutation> ! <value name="IF0"><block type="logic_operation" id="[b3+62G+]Yl_V?dg7O~2"><field name="OP">AND</field> ! <value name="A"><block type="logic_compare" id="2[_oPhN65Ia%{qu@+^L]"><field name="OP">EQ</field> ! <value name="A"><block type="get_value" id=",{WC1GLGa-1}_5Z6?)Df"><field name="ATTR">val</field> ! <field name="OID">harmony.0.Harmony Hub.activities.Smart TV wiedergeben</field></block></value> ! <value name="B"><block type="math_number" id="o49iPK#h03*%Sv.Z}bDL"><field name="NUM">2</field></block></value></block></value> ! <value name="B"><block type="time_compare" id="x{)Zb!D,*Pcy+ic+5}UC"><mutation end_time="true"></mutation> ! <field name="OPTION">between</field> ! <field name="START_TIME">21:00</field> ! <field name="END_TIME">22:00</field></block></value></block></value> ! <statement name="DO0"><block type="control" id="^8E^nw]u?=8eZhJeqj^L"><mutation delay_input="false"></mutation> ! <field name="OID">hm-rpc.1.MEQ0487488.1.STATE</field> ! <field name="WITH_DELAY">FALSE</field> ! <value name="VALUE"><block type="logic_boolean" id="XXP!sxpM8nnqChEA~~~7"><field name="BOOL">TRUE</field></block></value> ! <next><block type="debug" id="pkO=!]0+aoind7%U0eo"><field name="Severity">log</field>
          ! <value name="TEXT"><shadow type="text" id="BM@6C]y;G+yAi~K@rYvj"><field name="TEXT">Licht an</field></shadow></value></block></next></block></statement>
          ! <value name="IF1"><block type="logic_compare" id="yCjR6:wlL+=x*,L0g!1Z"><field name="OP">EQ</field>
          ! <value name="A"><block type="get_value" id="21={5Jw=5pm2]~57q!SZ"><field name="ATTR">val</field>
          ! <field name="OID">harmony.0.Harmony Hub.activities.Smart TV wiedergeben</field></block></value>
          ! <value name="B"><block type="math_number" id="rcDr]1Gew5=QI_^azXoo"><field name="NUM">0</field></block></value></block></value>
          ! <statement name="DO1"><block type="control" id="}d4s@Ks!xMyAYwI/s7~"><mutation delay_input="false"></mutation> ! <field name="OID">hm-rpc.1.MEQ0487488.1.STATE</field> ! <field name="WITH_DELAY">FALSE</field> ! <value name="VALUE"><block type="logic_boolean" id="VU-sgP9xIkey;N*/T?2s"><field name="BOOL">FALSE</field></block></value> ! <next><block type="debug" id="%Vl)yG@+vPMvX#Ra5[U_"><field name="Severity">log</field> ! <value name="TEXT"><shadow type="text" id="5F~P}n++Pj5zhkXD8Nf"><field name="TEXT">Licht aus</field></shadow></value></block></next></block></statement></block></statement></block></xml>
          5373_screenshot_2018-10-24_javascript_-_iobroker.png

          1 Reply Last reply
          0
          • K Offline
            K Offline
            kukoratsch
            wrote on last edited by
            #5

            Dankeschön Homer1976

            das funktioniert besser als ich mir vorgestellt habe

            super

            1 Reply Last reply
            0
            • Homer.J.H Offline
              Homer.J.H Offline
              Homer.J.
              wrote on last edited by
              #6

              :lol: Kein Problem
              @kukoratsch:

              Dankeschön Homer1976

              das funktioniert besser als ich mir vorgestellt habe

              super `

              1 Reply Last reply
              0
              • K Offline
                K Offline
                kukoratsch
                wrote on last edited by
                #7

                Hallo, ich wollte nochmal zu dem Blockly etwas fragen.

                Wenn Ich den Fernseher zwischen 21 und 22 Uhr anmache, dann geht das Licht auch an. Nun möchte ich, dass das Licht angeht, wenn der Fernseher schon an ist und die Zeit ist schon größer als 21 Uhr. Also, wenn zwei Bedingungen erfüllt sind, dann soll das Licht angehen.

                Dankeschön jetzt schon mal.
                6271_unbenannt2.jpg

                1 Reply Last reply
                0
                • Homer.J.H Offline
                  Homer.J.H Offline
                  Homer.J.
                  wrote on last edited by
                  #8

                  @kukoratsch:

                  Hallo, ich wollte nochmal zu dem Blockly etwas fragen.

                  Wenn Ich den Fernseher zwischen 21 und 22 Uhr anmache, dann geht das Licht auch an. Nun möchte ich, dass das Licht angeht, wenn der Fernseher schon an ist und die Zeit ist schon größer als 21 Uhr. Also, wenn zwei Bedingungen erfüllt sind, dann soll das Licht angehen.

                  Dankeschön jetzt schon mal. `

                  Schau mal ich hab es so gelöst dann geht es immer zwischen Sonnenuntergang-und Aufgang vielleicht ist das ja ein Lösungsansatz.

                  ! <xml 1999/xmlns="<URL url=" http:/www.w3.org/xhtml"="">http://www.w3.org/1999/xhtml">
                  ! <block type="on_ext" id="?AxQ]GL=5Y[Y/|c=Aw*[" x="-762" y="-487"><mutation items="1"></mutation>
                  ! <field name="CONDITION">ne</field>
                  ! <value name="OID0"><shadow type="field_oid" id="o_!v0.FP8lc}8l.@S)|M"><field name="oid">harmony.0.Harmony Hub.activities.Smart TV wiedergeben</field></shadow></value>
                  ! <statement name="STATEMENT"><block type="controls_if" id="#q{71lQh#P{bNeN}rbu"><mutation elseif="1"></mutation> ! <value name="IF0"><block type="logic_operation" id="[b3+62G+]Yl_V?dg7O~2"><field name="OP">AND</field> ! <value name="A"><block type="logic_compare" id="2[_oPhN65Ia%{qu@+^L]"><field name="OP">EQ</field> ! <value name="A"><block type="get_value" id=",{WC1GLGa-1}_5Z6?)Df"><field name="ATTR">val</field> ! <field name="OID">harmony.0.Harmony Hub.activities.Smart TV wiedergeben</field></block></value> ! <value name="B"><block type="math_number" id="o49iPK#h03*%Sv.Z}bDL"><field name="NUM">2</field></block></value></block></value> ! <value name="B"><block type="time_compare_ex" id="IT1:]K55.ma((Zw-sP"><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="m:+ec{d{Ll96qe)lr%J"><field name="TEXT">12:00</field></shadow> ! <block type="time_astro" id="Z_1/t]@guLB_6cnf|8|D"><field name="TYPE">sunrise</field> ! <field name="OFFSET">0</field></block></value> ! <value name="END_TIME"><shadow type="text" id=")n|l4B!1r/jF~F/!=)Z"><field name="TEXT">18:00</field></shadow>
                  ! <block type="time_astro" id="TX~2D!U{}9Z7(hmQ~zq"><field name="TYPE">sunset</field> ! <field name="OFFSET">0</field></block></value></block></value></block></value> ! <statement name="DO0"><block type="control" id="cP4Ff+-#A/%3HTg=ng|6"><mutation delay_input="false"></mutation> ! <field name="OID">Object ID</field> ! <field name="WITH_DELAY">FALSE</field> ! <next><block type="debug" id="pkO=!]0+aoind7%U0eo"><field name="Severity">log</field>
                  ! <value name="TEXT"><shadow type="text" id="BM@6C]y;G+yAi~K@rYvj"></shadow></value></block></next></block></statement>
                  ! <value name="IF1"><block type="logic_compare" id="yCjR6:wlL+=x
                  ,L0g!1Z"><field name="OP">EQ</field>
                  ! <value name="A"><block type="get_value" id="21={5Jw=5pm2]~57q!SZ"><field name="ATTR">val</field>
                  ! <field name="OID">harmony.0.Harmony Hub.activities.Smart TV wiedergeben</field></block></value>
                  ! <value name="B"><block type="math_number" id="rcDr]1Gew5=QI_^azXoo"><field name="NUM">0</field></block></value></block></value>
                  ! <statement name="DO1"><block type="control" id="=kNnmz}qpElaLdGg~yY_"><mutation delay_input="false"></mutation>
                  ! <field name="OID">Object ID</field>
                  ! <field name="WITH_DELAY">FALSE</field>
                  ! <next><block type="debug" id="%Vl)yG@+vPMvX#Ra5[U_"><field name="Severity">log</field>
                  ! <value name="TEXT"><shadow type="text" id="5F~P`}n++Pj5zhkXD8Nf"></shadow></value></block></next></block></statement></block></statement></block></xml>

                  1 Reply Last reply
                  0

                  Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                  Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                  With your input, this post could be even better 💗

                  Register Login
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  Support us

                  ioBroker
                  Community Adapters
                  Donate

                  502

                  Online

                  32.8k

                  Users

                  82.7k

                  Topics

                  1.3m

                  Posts
                  Community
                  Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen | Einwilligungseinstellungen
                  ioBroker Community 2014-2025
                  logo
                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Home
                  • Recent
                  • Tags
                  • Unread 0
                  • Categories
                  • Unreplied
                  • Popular
                  • GitHub
                  • Docu
                  • Hilfe