Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. Anfängerfrage Harmony Geräte

    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

    Anfängerfrage Harmony Geräte

    This topic has been deleted. Only users with topic management privileges can see it.
    • J
      Jan1 @Kaiser Franz Josef last edited by

      @Kaiser-Franz-Josef
      Da ist fast egal was Du nimmst, sollte alles aus Text funktionieren. Ich hab ein Script da aktiviere ich den Button mit 1, wobei true auch funktioniert. Da der JS Controller und de JS Adapter aber ein paar Updates erhalten hatten musst mal schauen ob was an gemeckert wird.

      1 Reply Last reply Reply Quote 0
      • Kaiser Franz Josef
        Kaiser Franz Josef last edited by

        dann probier ich mal , ist halt für Anfänger schwierig wenn sowas nicht kla definiert ist

        danke euch 2

        Homoran 1 Reply Last reply Reply Quote 0
        • Homoran
          Homoran Global Moderator Administrators @Kaiser Franz Josef last edited by

          @Kaiser-Franz-Josef sagte in Anfängerfrage Harmony Geräte:

          wenn sowas nicht kla definiert ist

          Ist es!
          Ein Taster ist immer true, nur der Zeitstempel ändert sich.
          true/false ist in digital 1/0, daher könnte das auch gehen, da ioBroker so etwas umrechnet.

          1 Reply Last reply Reply Quote 0
          • Kaiser Franz Josef
            Kaiser Franz Josef last edited by Homoran

            25.5.2020, 20:17:27.691	[warn ]: javascript.0 (1281)     at Object.<anonymous> (script.js.Skript_1:4:3)
            25.5.2020, 20:17:27.701	[warn ]: javascript.0 (1281)     at Object.<anonymous> (script.js.Skript_1:5:3)
            25.5.2020, 20:17:28.367	[warn ]: javascript.0 (1281)     at Object.<anonymous> (script.js.Skript_1:4:3)
            25.5.2020, 20:17:28.378	[warn ]: javascript.0 (1281)     at Object.<anonymous> (script.js.Skript_1:5:3)
            
            Homoran 1 Reply Last reply Reply Quote 0
            • Homoran
              Homoran Global Moderator Administrators @Kaiser Franz Josef last edited by

              @Kaiser-Franz-Josef Bitte in code-tags setzen!
              Habe ich jetzt für dich gemcht!

              Kommt sonst nix?

              Dann bitte mal auf js umschalten und an der gemeckerten Stelle (zeile 4, 3.Position) nachsehen was da los ist.
              üblicherweise ist da dann auch eine Erklärung beim drübergehen mit der Maus

              1 Reply Last reply Reply Quote 0
              • dslraser
                dslraser Forum Testing Most Active @Kaiser Franz Josef last edited by dslraser

                @Kaiser-Franz-Josef sagte in Anfängerfrage Harmony Geräte:

                so wollte mal mit TV activite den Trigger starten

                c48cec54-b66c-44c3-917d-6da301b7522f-image.png

                da Fernseher und Verstärker ja nur Button steht , was muss dann in die "mit" Felder rein ?

                Die activity ändert sich beim ein/ausschalten mehrfach. Du musst den Wert mit angeben, wann Du schalten willst.

                Also falls Wert = 2 (Mathebaustein)
                steuere dies oder das...
                (vielleicht sogar mit einer kurzen Verzögerung)
                Ich lasse so, in Abhängigkeit der activity z.B. bestimmte Lampen usw. schalten)

                Beispiel bei mir

                Screenshot_20200525-205621_Chrome.jpg

                Screenshot_20200525-205817_Chrome.jpg

                1 Reply Last reply Reply Quote 0
                • Kaiser Franz Josef
                  Kaiser Franz Josef last edited by Kaiser Franz Josef

                  Danke

                  Ich muss mal rumprobieren , ist doch komplizierter als gedacht

                  1 Reply Last reply Reply Quote 0
                  • Kaiser Franz Josef
                    Kaiser Franz Josef last edited by Kaiser Franz Josef

                    abend

                    wenn ich das Licht so schalte

                    c066a5ef-a762-4fc0-ad2e-8b3942c341e2-image.png

                    und jetzt das Eingangslich z.b gegen ein Harmony Gerät tausche kann ich ja beim Fernseher nicht den Zustand abfragen , also wahr wenn er läuft bzw false wenn er nicht läuft

                    würde dann nur gehen mit z.b Zwischenstecker der den Strom misst fuktinieren oder ?

                    Homoran dslraser 2 Replies Last reply Reply Quote 0
                    • Homoran
                      Homoran Global Moderator Administrators @Kaiser Franz Josef last edited by

                      @Kaiser-Franz-Josef
                      Ich weiß nicht was du willst.
                      Dein Blockly ist eine Endlosschleife.
                      Jede Aktion startet sofort wieder das Blockly und kehrt den Zustand um.

                      @Kaiser-Franz-Josef sagte in Anfängerfrage Harmony Geräte:

                      ist doch komplizierter als gedacht

                      ist es eigentlich nicht. Das Beispiel enthält nur wesentlich mehr Aktionen als du brauchst und verwirrt dich vielleicht.

                      dslraser 1 Reply Last reply Reply Quote 0
                      • dslraser
                        dslraser Forum Testing Most Active @Homoran last edited by

                        @Homoran sagte in Anfängerfrage Harmony Geräte:

                        Das Beispiel enthält nur wesentlich mehr Aktionen als du brauchst und verwirrt dich vielleicht.

                        das stimmt, ich hatte nur kein kürzeres und eigentlich ist es wirklich recht einfach...

                        Homoran 1 Reply Last reply Reply Quote 0
                        • Homoran
                          Homoran Global Moderator Administrators @dslraser last edited by

                          @dslraser Alles gut!

                          1 Reply Last reply Reply Quote 0
                          • dslraser
                            dslraser Forum Testing Most Active @Kaiser Franz Josef last edited by dslraser

                            @Kaiser-Franz-Josef

                            hier mal was einfaches
                            Bildschirmfoto 2020-05-28 um 18.49.10.png

                            <xml xmlns="https://developers.google.com/blockly/xml">
                             <block type="on_ext" id="g@SDiyxr,4+?}Gr*3/#M" x="13" y="1303">
                               <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="zW1m0qyRn?{.@5%@pVak">
                                   <field name="oid">harmony.0.Wohnzimmer.activities.Fernsehen</field>
                                 </shadow>
                               </value>
                               <statement name="STATEMENT">
                                 <block type="controls_if" id="S%,5qiJYrE#DJSLMIKwM">
                                   <mutation elseif="1"></mutation>
                                   <value name="IF0">
                                     <block type="logic_compare" id="DYXyr|^pwo@?@Mp8i`T_">
                                       <field name="OP">EQ</field>
                                       <value name="A">
                                         <block type="get_value" id="2?=*]=up9y,8%4lUPn]k">
                                           <field name="ATTR">val</field>
                                           <field name="OID">harmony.0.Wohnzimmer.activities.Fernsehen</field>
                                         </block>
                                       </value>
                                       <value name="B">
                                         <block type="math_number" id="y*s-]YzReywhg*}97s5Q">
                                           <field name="NUM">2</field>
                                         </block>
                                       </value>
                                     </block>
                                   </value>
                                   <statement name="DO0">
                                     <block type="control" id="96vz;3tH)wR:kx8K`6o_">
                                       <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                       <field name="OID">hue.0.Fensterlampe.on</field>
                                       <field name="WITH_DELAY">FALSE</field>
                                       <value name="VALUE">
                                         <block type="logic_boolean" id="~Gu9sP;JP7mpC,JjGF=[">
                                           <field name="BOOL">TRUE</field>
                                         </block>
                                       </value>
                                     </block>
                                   </statement>
                                   <value name="IF1">
                                     <block type="logic_compare" id="@w/bE~]uX~jYP#pm/:}!">
                                       <field name="OP">EQ</field>
                                       <value name="A">
                                         <block type="get_value" id="57p#H_%^L?nYI$Bek;-h">
                                           <field name="ATTR">val</field>
                                           <field name="OID">harmony.0.Wohnzimmer.activities.Fernsehen</field>
                                         </block>
                                       </value>
                                       <value name="B">
                                         <block type="math_number" id="Rj7K2]n!3b@e_O:!Gt#_">
                                           <field name="NUM">0</field>
                                         </block>
                                       </value>
                                     </block>
                                   </value>
                                   <statement name="DO1">
                                     <block type="control" id="`%@U9+`ie=ZlF!27m#5w">
                                       <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                       <field name="OID">hue.0.Fensterlampe.on</field>
                                       <field name="WITH_DELAY">FALSE</field>
                                       <value name="VALUE">
                                         <block type="logic_boolean" id="E3A:?vmJdS*ONecg%n(8">
                                           <field name="BOOL">FALSE</field>
                                         </block>
                                       </value>
                                     </block>
                                   </statement>
                                 </block>
                               </statement>
                             </block>
                            </xml>
                            

                            Hier etwas kürzer, aber mit der gleichen Funktion
                            Bildschirmfoto 2020-05-28 um 18.57.16.png

                            <xml xmlns="https://developers.google.com/blockly/xml">
                             <block type="on_ext" id="g@SDiyxr,4+?}Gr*3/#M" x="13" y="1303">
                               <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="zW1m0qyRn?{.@5%@pVak">
                                   <field name="oid">harmony.0.Wohnzimmer.activities.Fernsehen</field>
                                 </shadow>
                               </value>
                               <statement name="STATEMENT">
                                 <block type="controls_if" id="S%,5qiJYrE#DJSLMIKwM">
                                   <mutation elseif="1"></mutation>
                                   <value name="IF0">
                                     <block type="logic_compare" id="DYXyr|^pwo@?@Mp8i`T_">
                                       <field name="OP">EQ</field>
                                       <value name="A">
                                         <block type="on_source" id="B|!vuql4oXcm=gG5;A;=">
                                           <field name="ATTR">state.val</field>
                                         </block>
                                       </value>
                                       <value name="B">
                                         <block type="math_number" id="y*s-]YzReywhg*}97s5Q">
                                           <field name="NUM">2</field>
                                         </block>
                                       </value>
                                     </block>
                                   </value>
                                   <statement name="DO0">
                                     <block type="control" id="96vz;3tH)wR:kx8K`6o_">
                                       <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                       <field name="OID">hue.0.Fensterlampe.on</field>
                                       <field name="WITH_DELAY">FALSE</field>
                                       <value name="VALUE">
                                         <block type="logic_boolean" id="~Gu9sP;JP7mpC,JjGF=[">
                                           <field name="BOOL">TRUE</field>
                                         </block>
                                       </value>
                                     </block>
                                   </statement>
                                   <value name="IF1">
                                     <block type="logic_compare" id="@w/bE~]uX~jYP#pm/:}!">
                                       <field name="OP">EQ</field>
                                       <value name="A">
                                         <block type="on_source" id="wc0zW8Ykc%j,4/SJEwU^">
                                           <field name="ATTR">state.val</field>
                                         </block>
                                       </value>
                                       <value name="B">
                                         <block type="math_number" id="Rj7K2]n!3b@e_O:!Gt#_">
                                           <field name="NUM">0</field>
                                         </block>
                                       </value>
                                     </block>
                                   </value>
                                   <statement name="DO1">
                                     <block type="control" id="`%@U9+`ie=ZlF!27m#5w">
                                       <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                       <field name="OID">hue.0.Fensterlampe.on</field>
                                       <field name="WITH_DELAY">FALSE</field>
                                       <value name="VALUE">
                                         <block type="logic_boolean" id="E3A:?vmJdS*ONecg%n(8">
                                           <field name="BOOL">FALSE</field>
                                         </block>
                                       </value>
                                     </block>
                                   </statement>
                                 </block>
                               </statement>
                             </block>
                            </xml>
                            

                            Und wenn Du für alle activity die gleiche Aktion schalten willst, also nicht nur für eine activity, dann nimmst Du den current status
                            Bildschirmfoto 2020-05-28 um 19.01.00.png

                            <xml xmlns="https://developers.google.com/blockly/xml">
                             <block type="on_ext" id="g@SDiyxr,4+?}Gr*3/#M" x="13" y="1303">
                               <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="zW1m0qyRn?{.@5%@pVak">
                                   <field name="oid">harmony.0.Wohnzimmer.activities.currentStatus</field>
                                 </shadow>
                               </value>
                               <statement name="STATEMENT">
                                 <block type="controls_if" id="S%,5qiJYrE#DJSLMIKwM">
                                   <mutation elseif="1"></mutation>
                                   <value name="IF0">
                                     <block type="logic_compare" id="DYXyr|^pwo@?@Mp8i`T_">
                                       <field name="OP">EQ</field>
                                       <value name="A">
                                         <block type="on_source" id="B|!vuql4oXcm=gG5;A;=">
                                           <field name="ATTR">state.val</field>
                                         </block>
                                       </value>
                                       <value name="B">
                                         <block type="math_number" id="y*s-]YzReywhg*}97s5Q">
                                           <field name="NUM">2</field>
                                         </block>
                                       </value>
                                     </block>
                                   </value>
                                   <statement name="DO0">
                                     <block type="control" id="96vz;3tH)wR:kx8K`6o_">
                                       <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                       <field name="OID">hue.0.Fensterlampe.on</field>
                                       <field name="WITH_DELAY">FALSE</field>
                                       <value name="VALUE">
                                         <block type="logic_boolean" id="~Gu9sP;JP7mpC,JjGF=[">
                                           <field name="BOOL">TRUE</field>
                                         </block>
                                       </value>
                                     </block>
                                   </statement>
                                   <value name="IF1">
                                     <block type="logic_compare" id="@w/bE~]uX~jYP#pm/:}!">
                                       <field name="OP">EQ</field>
                                       <value name="A">
                                         <block type="on_source" id="wc0zW8Ykc%j,4/SJEwU^">
                                           <field name="ATTR">state.val</field>
                                         </block>
                                       </value>
                                       <value name="B">
                                         <block type="math_number" id="Rj7K2]n!3b@e_O:!Gt#_">
                                           <field name="NUM">0</field>
                                         </block>
                                       </value>
                                     </block>
                                   </value>
                                   <statement name="DO1">
                                     <block type="control" id="`%@U9+`ie=ZlF!27m#5w">
                                       <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                       <field name="OID">hue.0.Fensterlampe.on</field>
                                       <field name="WITH_DELAY">FALSE</field>
                                       <value name="VALUE">
                                         <block type="logic_boolean" id="E3A:?vmJdS*ONecg%n(8">
                                           <field name="BOOL">FALSE</field>
                                         </block>
                                       </value>
                                     </block>
                                   </statement>
                                 </block>
                               </statement>
                             </block>
                            </xml>
                            

                            Vielleicht kommst Du jetzt damit zurecht.

                            1 Reply Last reply Reply Quote 1
                            • Kaiser Franz Josef
                              Kaiser Franz Josef last edited by

                              danke

                              man fühlt sich am Anfang wie erschlagen 🤔

                              1 Reply Last reply Reply Quote 0
                              • Kaiser Franz Josef
                                Kaiser Franz Josef last edited by

                                hallo

                                nochmal eine Frage zu den Geräten generell

                                also den Status von Geräten z.b Tv kann man wohl nicht abfragen da sie im Iobroker ja nur als Button dargestellt werden , als weis man nicht ob das Gerät läuft oder nicht
                                (ausser z.b über den Stomverbrauch z.b von einem Plug)

                                oder ?

                                dslraser 1 Reply Last reply Reply Quote 0
                                • dslraser
                                  dslraser Forum Testing Most Active @Kaiser Franz Josef last edited by

                                  @Kaiser-Franz-Josef
                                  ja, zum Beispiel über eine Messsteckdose.
                                  Oder das Gerät ist anderweitig in/über einen anderen Adapter Verfügbar, z.B. über LAN/WLAN.( z.B. Denon/Enigma2 Adapter usw. usw. usw.)

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

                                  Support us

                                  ioBroker
                                  Community Adapters
                                  Donate

                                  521
                                  Online

                                  31.9k
                                  Users

                                  80.2k
                                  Topics

                                  1.3m
                                  Posts

                                  blockly
                                  6
                                  51
                                  2175
                                  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