Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. Blockly-Script zur Sonos-Steuerung

    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

    Blockly-Script zur Sonos-Steuerung

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

      Hallo, ich habe mir ein (vermutlich amateuriges) Blockly-Script geschrieben um tagsüber mit meinem Lichtschalter Licht und (bei langem Tastendruck) Sonos zu steuern. So sieht das aus:

      <xml xmlns="http://www.w3.org/1999/xhtml">
      <block type="on_ext" id="?y4uO{4+K1?^ia8j0]" x="238" y="63">
      <mutation items="1"></mutation>
      <field name="CONDITION">true</field>
      <field name="ACK_CONDITION"></field>
      <value name="OID0">
      <shadow type="field_oid" id="0]BuI+U~.j+h0.y)rA-t">
      <field name="oid">hm-rpc.0.PEQ0535120.2.PRESS_SHORT</field>
      </shadow>
      </value>
      <statement name="STATEMENT">
      <block type="controls_if" id=",=;3_3R9Mk(qT-D5tR">
      <value name="IF0">
      <block type="time_compare" id="nXaS#46{wZ^%e=w$!/:">
      <mutation end_time="true"></mutation>
      <field name="OPTION">between</field>
      <field name="START_TIME">22:30</field>
      <field name="END_TIME">05:50</field>
      </block>
      </value>
      <statement name="DO0">
      <block type="control" id="{G:nk-,0yel5J@yf0;1G">
      <mutation delay_input="false"></mutation>
      <field name="OID">hue.0.Bad_Decke_1.bri</field>
      <field name="WITH_DELAY">FALSE</field>
      <value name="VALUE">
      <block type="math_number" id="#(KZS!)3hK0MD|.3AkqM">
      <field name="NUM">10</field>
      </block>
      </value>
      <next>
      <block type="control" id="X#k5*DyQ]z9j:WkIem27">
      <mutation delay_input="false"></mutation>
      <field name="OID">hue.0.Bad_Decke_2.bri</field>
      <field name="WITH_DELAY">FALSE</field>
      <value name="VALUE">
      <block type="math_number" id="KkOEg=dGv!FSgqEuxD_L">
      <field name="NUM">10</field>
      </block>
      </value>
      </block>
      </next>
      </block>
      </statement>
      <next>
      <block type="controls_if" id="Ez?NL1I]gNGJ9L/cJ4E
      ">
      <value name="IF0">
      <block type="time_compare" id="HptWX?78.~crE:btb?}J">
      <mutation end_time="true"></mutation>
      <field name="OPTION">between</field>
      <field name="START_TIME">5:51</field>
      <field name="END_TIME">22:29</field>
      </block>
      </value>
      <statement name="DO0">
      <block type="control" id=")IEE5,c4+O?4pMY!#lr">
      <mutation delay_input="false"></mutation>
      <field name="OID">hue.0.Bad_Decke_1.bri</field>
      <field name="WITH_DELAY">FALSE</field>
      <value name="VALUE">
      <block type="math_number" id="$:qqh.vWdn,4Cv3sKqQG">
      <field name="NUM">100</field>
      </block>
      </value>
      <next>
      <block type="control" id="1JH
      Am`wydgKUg+Y?jJ!">
      <mutation delay_input="false"></mutation>
      <field name="OID">hue.0.Bad_Decke_2.bri</field>
      <field name="WITH_DELAY">FALSE</field>
      <value name="VALUE">
      <block type="math_number" id="JDZ;jnBRyHmuux((svE#">
      <field name="NUM">100</field>
      </block>
      </value>
      </block>
      </next>
      </block>
      </statement>
      </block>
      </next>

      Herausforderung: wenn die Musik läuft, kann ich sie über alexa per „alexa stopp“ nicht anhalten. Wenn der stream via alexa „radio an“ gestartet wird, schon.

      Woran kann das liegen?

      Dank euch!

      FredF 1 Reply Last reply Reply Quote 0
      • FredF
        FredF Most Active Forum Testing @chrbo80 last edited by FredF

        @chrbo80
        Damit dir besser geholfen werden kann packe bitte dein Blockly in code tagsCode tags.png
        und da viele auch mit dem Handy lesen ist es besser wenn dein Blockly als Bild auch noch hochgeladen wird.
        Du kannst deinen Beitrag über die drei senkrechten Punkte rechts bearbeiten

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

        Support us

        ioBroker
        Community Adapters
        Donate

        490
        Online

        31.9k
        Users

        80.2k
        Topics

        1.3m
        Posts

        blockly
        2
        2
        600
        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