Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. [gelöst] Befehl als root ausführen oder Rechte ändern?

    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

    [gelöst] Befehl als root ausführen oder Rechte ändern?

    This topic has been deleted. Only users with topic management privileges can see it.
    • W
      waterchill @OliverIO last edited by

      @oliverio

      Habe es jetzt so rein, funktioniert leider auch nicht 😞

      # User privilege specification
      root    ALL=(ALL:ALL) ALL
      iobroker ALL=(ALL) NOPASSWD: /etc/init.d/power_mqtt
      
      1 Reply Last reply Reply Quote 0
      • W
        waterchill @fastfoot last edited by waterchill

        @fastfoot said in Befehl als root ausführen oder Rechte ändern?:

        sudo vi /etc/sudoers.d/iobroker

        Wenn ich das so ausführe, dann kann ich da drin nichts ändern, unten steht dann {readonly} ich komm dann auch nimmer raus aus dem Teil. Terminal muss dann beendet werden. Scheinbar wird die Datei gerade verwendet oder so

        OliverIO 1 Reply Last reply Reply Quote 0
        • F
          fastfoot @fastfoot last edited by

          @waterchill

          @fastfoot sagte in Befehl als root ausführen oder Rechte ändern?:
          vi beenden mit ESC-Taste, dann :wq!

          W 1 Reply Last reply Reply Quote 0
          • Dr. Bakterius
            Dr. Bakterius Most Active @waterchill last edited by

            @waterchill sagte in Befehl als root ausführen oder Rechte ändern?:

            */2 16-20 * * * sudo /etc/init.d/power_mqtt restart
            

            Ja, aber statt sudo root.

            W 1 Reply Last reply Reply Quote 0
            • W
              waterchill @Dr. Bakterius last edited by

              @dr-bakterius

              Ich habs mit sudo drin und scheint so zu gehen

              1 Reply Last reply Reply Quote 0
              • W
                waterchill @fastfoot last edited by

                @fastfoot

                Also mit ESC komm ich da nich t raus. Ich kann da auch nichts reinschreiben.

                F 1 Reply Last reply Reply Quote 0
                • OliverIO
                  OliverIO @waterchill last edited by OliverIO

                  @waterchill
                  hm, du scheinst die befehle und konventionen nicht zu kennen.

                  Mit dem folgenden Befehl versuchst du diese Datei zu bearbeiten, da vi ein editor ist.

                  sudo vi /etc/sudoers.d/iobroker
                  

                  Wenn du die Dokumentation bei ubuntuusers liest, dann steht da sehr deutlich, dass man das Programm visudo
                  zur Bearbeitung nutzen soll, da man sich ansonsten hier ganz schnell das system zerschießen (also das ganze) kann, falls du einen syntaxfehler einbaust.

                  Zur Bearbeitung musst du also so aufrufen:

                  sudo visudo /etc/sudoers.d/iobroker
                  

                  Allerdings würde ich an dieser Datei nix verändern.
                  Wenn dann eine eigene Datei anlegen

                  sudo visudo /etc/sudoers.d/eigene
                  

                  Diese wird dann ebenso in die Abfrage mit eingebunden.

                  Aber bevor du irgendetwas machst, bitte die Seite
                  https://wiki.ubuntuusers.de/sudo/Konfiguration/von vorne bis hinten lesen.
                  Du arbeitest hier an den tiefsten eingeweide von Linux.

                  Wenn du sagstes funktioniert nicht. was heist das für dich? gibt es eine fehlermeldung.
                  woran merkst du dann ohne fehlermeldung, das es nicht funktioniert?
                  weißt du was der befehl eigentlich bedeutet?
                  /etc/init.d/power_mqtt restart

                  W 1 Reply Last reply Reply Quote 0
                  • F
                    fastfoot @waterchill last edited by

                    @waterchill sagte in Befehl als root ausführen oder Rechte ändern?:

                    @fastfoot

                    Also mit ESC komm ich da nich t raus. Ich kann da auch nichts reinschreiben.

                    du wirst doch lesen können! dahinter steht :wq!

                    mit dem ESC beendest du erstmal den Bearbeitungsmodus, mit : kommst du in die Befehlszeile und dann gibst du wq! ein. w=schreibe Änderungen, q= verlasse Editor, !=kümmere dich nicht um read-only.

                    Ich wundere mich, visudo funktioniert doch auch mit vi? Evtl kannst du auch vim nutzen, aber wenn installiert ruft vi den vim auf

                    1 Reply Last reply Reply Quote 0
                    • W
                      waterchill @OliverIO last edited by

                      @oliverio @fastfoot

                      Erstmal ganz entspannt 😊 bevor ich solche Sachen probiere, lege ich immer ein Backup an. Das wäre ja fatal, wenn da nix mehr gehen würde in der Bude, da würde die Chefin mir die Hölle heiss machen^^

                      Also ich habe die Zeile jetzt eingefügt bekommen, dementsprechend kommt jetzt raus:

                      pi@raspberrypi:~ $ sudo cat /etc/sudoers.d/iobroker       
                      iobroker ALL=(ALL) ALL
                      iobroker ALL=(ALL) NOPASSWD: /etc/init.d/power_mqtt *
                      iobroker ALL=(ALL) NOPASSWD: /sbin/shutdown
                      iobroker ALL=(ALL) NOPASSWD: /sbin/halt
                      iobroker ALL=(ALL) NOPASSWD: /sbin/poweroff
                      iobroker ALL=(ALL) NOPASSWD: /sbin/reboot
                      iobroker ALL=(ALL) NOPASSWD: /bin/systemctl start
                      iobroker ALL=(ALL) NOPASSWD: /bin/systemctl stop
                      iobroker ALL=(ALL) NOPASSWD: /bin/mount
                      iobroker ALL=(ALL) NOPASSWD: /bin/umount
                      iobroker ALL=(ALL) NOPASSWD: /usr/bin/systemd-run
                      iobroker ALL=(ALL) NOPASSWD: /usr/bin/apt-get
                      iobroker ALL=(ALL) NOPASSWD: /usr/bin/apt
                      iobroker ALL=(ALL) NOPASSWD: /usr/bin/dpkg
                      iobroker ALL=(ALL) NOPASSWD: /usr/bin/make
                      iobroker ALL=(ALL) NOPASSWD: /bin/ping
                      iobroker ALL=(ALL) NOPASSWD: /sbin/setcap
                      iobroker ALL=(ALL) NOPASSWD: /usr/bin/vcgencmd
                      iobroker ALL=(ALL) NOPASSWD: /bin/cat
                      iobroker ALL=(ALL) NOPASSWD: /bin/df
                      iobroker ALL=(ALL) NOPASSWD: /sbin/ldconfig
                      ALL ALL=NOPASSWD: /bin/systemctl start iobroker
                      ALL ALL=NOPASSWD: /bin/systemctl stop iobroker
                      ALL ALL=NOPASSWD: /bin/systemctl restart iobroker
                      ALL ALL=(iobroker) NOPASSWD: /usr/local/bin/node /opt/iobroker/node_modules/iobroker.js-controller/iobroker.js *
                      

                      Das war doch das Ziel oder? Trotzdem kann der Befehl aus der iobroker Konsole nicht ohne sudo ausgeführt werden. Meldung die gleiche wie immer. Zwischenzeitlich habe ich auch mal ein reboot gemacht, leider ohne Erfolg.

                      F OliverIO 2 Replies Last reply Reply Quote 0
                      • F
                        fastfoot @waterchill last edited by

                        @waterchill sagte in Befehl als root ausführen oder Rechte ändern?:

                        Das war doch das Ziel oder? Trotzdem kann der Befehl aus der iobroker Konsole nicht ohne sudo ausgeführt werden. Meldung die gleiche wie immer. Zwischenzeitlich habe ich auch mal ein reboot gemacht, leider ohne Erfolg.

                        die Zeile sorgt dafür, dass du sudo mit diesem Befehl anwenden darfst, was vorher ja nicht ging. Also sudo muss schon davor, aber das sollte jetzt aus Blockly oder der Konsole funktionieren

                        1 Reply Last reply Reply Quote 0
                        • OliverIO
                          OliverIO @waterchill last edited by

                          @waterchill

                          ´nein sudo musst du dennoch angeben.
                          nur sudo verlangt dann für diesen befehl kein passwort mehr

                          W 1 Reply Last reply Reply Quote 0
                          • W
                            waterchill @OliverIO last edited by

                            @oliverio @fastfoot

                            DANKE geht!!! 🙂

                            F 1 Reply Last reply Reply Quote 0
                            • F
                              fastfoot @waterchill last edited by

                              @waterchill sagte in Befehl als root ausführen oder Rechte ändern?:

                              @oliverio @fastfoot

                              DANKE geht!!! 🙂

                              vergiss nicht deine ursprüngliche Änderung in /etc/sudoers rückgängig zu machen!

                              und im ersten Beitrag auf gelöst setzen, bitte

                              W 1 Reply Last reply Reply Quote 0
                              • W
                                waterchill @fastfoot last edited by waterchill

                                @fastfoot

                                ist erledigt, Danke nochmal!

                                Wenn wir jetzt schon so gut in Fahrt sind, gibt es eine Möglichkeit ein Skript zu erstellen, welches quasi pro 1 Puls mehr 1% mehr Lüftung macht? Aktuell hab eich 10er Schritte. Dem entsprechend natürlich 10 einzelne Bedingungen. Evtl gibt es da was wo es heisst: wenn das +1 dann das +1 und umgekehrt. Schaut aktuell so aus, evtl kann man das geschickter machen:

                                Bildschirmfoto 2021-01-28 um 18.53.34 PM.png

                                F 1 Reply Last reply Reply Quote 0
                                • F
                                  fastfoot @waterchill last edited by fastfoot

                                  @waterchill So sollte es eigentlich funktionieren
                                  Pulslüfter.PNG

                                  <xml xmlns="https://developers.google.com/blockly/xml">
                                   <variables>
                                     <variable id="f8{^@7=6SvpEn9C=7k.}">FanSpeed</variable>
                                   </variables>
                                   <block type="on_ext" id="Rb#Q[R+|Y+l6|jRVAf^d" x="-38" y="-12">
                                     <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="?=q|n?nOHqz9dDk8E($+">
                                         <field name="oid">default</field>
                                       </shadow>
                                     </value>
                                     <statement name="STATEMENT">
                                       <block type="controls_if" id=")E4n|f:2D+QQfeN5nMV9">
                                         <mutation elseif="1" else="1"></mutation>
                                         <value name="IF0">
                                           <block type="logic_operation" id="O?DwUg~fy^Q.vY8W]UCH">
                                             <field name="OP">AND</field>
                                             <value name="A">
                                               <block type="logic_compare" id="^~sGHcmOPUpK_64v^tz-">
                                                 <field name="OP">GT</field>
                                                 <value name="A">
                                                   <block type="on_source" id="B*g_tBcw_VpdxTaH4r{~">
                                                     <field name="ATTR">state.val</field>
                                                   </block>
                                                 </value>
                                                 <value name="B">
                                                   <block type="math_number" id="$$qeT$132nOgD!Aw3#$=">
                                                     <field name="NUM">60</field>
                                                   </block>
                                                 </value>
                                               </block>
                                             </value>
                                             <value name="B">
                                               <block type="logic_compare" id="ovuk.EgT..mz?L+fJU@H">
                                                 <field name="OP">LT</field>
                                                 <value name="A">
                                                   <block type="on_source" id="#}~E@_p3/7s:vfnmjraI">
                                                     <field name="ATTR">state.val</field>
                                                   </block>
                                                 </value>
                                                 <value name="B">
                                                   <block type="math_number" id="_W:rkv-5V^SAf+S7w#yw">
                                                     <field name="NUM">100</field>
                                                   </block>
                                                 </value>
                                               </block>
                                             </value>
                                           </block>
                                         </value>
                                         <statement name="DO0">
                                           <block type="variables_set" id="@Q=2g+TgYD%BHequX{t6">
                                             <field name="VAR" id="f8{^@7=6SvpEn9C=7k.}">FanSpeed</field>
                                             <value name="VALUE">
                                               <block type="math_arithmetic" id="Ex{oZtg(rTCTT`I_5tx2">
                                                 <field name="OP">MINUS</field>
                                                 <value name="A">
                                                   <shadow type="math_number">
                                                     <field name="NUM">1</field>
                                                   </shadow>
                                                   <block type="on_source" id="YuN3egQ1-pTD^.Je}^To">
                                                     <field name="ATTR">state.val</field>
                                                   </block>
                                                 </value>
                                                 <value name="B">
                                                   <shadow type="math_number">
                                                     <field name="NUM">1</field>
                                                   </shadow>
                                                   <block type="math_number" id=";*RyBdpXgp7;v;8{*0,f">
                                                     <field name="NUM">80</field>
                                                   </block>
                                                 </value>
                                               </block>
                                             </value>
                                             <next>
                                               <block type="control" id="%N@y$7^n^XHzrmk6;-Kk">
                                                 <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                 <field name="OID">Object ID</field>
                                                 <field name="WITH_DELAY">FALSE</field>
                                                 <value name="VALUE">
                                                   <block type="variables_get" id="eg3/ZhWRxu.z?550]}q`">
                                                     <field name="VAR" id="f8{^@7=6SvpEn9C=7k.}">FanSpeed</field>
                                                   </block>
                                                 </value>
                                                 <next>
                                                   <block type="control" id="[5CSWDBtiIdg^,|wQSU@">
                                                     <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                     <field name="OID">Object ID</field>
                                                     <field name="WITH_DELAY">FALSE</field>
                                                     <value name="VALUE">
                                                       <block type="variables_get" id="NC~s}~qw!JH2`N6+jTqO">
                                                         <field name="VAR" id="f8{^@7=6SvpEn9C=7k.}">FanSpeed</field>
                                                       </block>
                                                     </value>
                                                     <next>
                                                       <block type="control" id=")@ZuHt7Q3jRF.a|fTwAN">
                                                         <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                         <field name="OID">Object ID</field>
                                                         <field name="WITH_DELAY">FALSE</field>
                                                         <value name="VALUE">
                                                           <block type="logic_boolean" id="p?GC65Pe~=}~pXnYt]8z">
                                                             <field name="BOOL">TRUE</field>
                                                           </block>
                                                         </value>
                                                       </block>
                                                     </next>
                                                   </block>
                                                 </next>
                                               </block>
                                             </next>
                                           </block>
                                         </statement>
                                         <value name="IF1">
                                           <block type="logic_compare" id="S^-RaH;Cu35co@/E{dZo">
                                             <field name="OP">GTE</field>
                                             <value name="A">
                                               <block type="on_source" id="ULW/6{mW*a1/ytH[avd3">
                                                 <field name="ATTR">state.val</field>
                                               </block>
                                             </value>
                                             <value name="B">
                                               <block type="math_number" id="jt8F007Q0YoflM/`Z;[*">
                                                 <field name="NUM">100</field>
                                               </block>
                                             </value>
                                           </block>
                                         </value>
                                         <statement name="DO1">
                                           <block type="variables_set" id="BRqLTA(e%A*@%0lF]]8X">
                                             <field name="VAR" id="f8{^@7=6SvpEn9C=7k.}">FanSpeed</field>
                                             <value name="VALUE">
                                               <block type="math_arithmetic" id="V7K0XNN)^gLrQT-UZ%!#">
                                                 <field name="OP">MINUS</field>
                                                 <value name="A">
                                                   <shadow type="math_number" id="o-r6WF@Zelo5Bz5}=B$R">
                                                     <field name="NUM">1</field>
                                                   </shadow>
                                                   <block type="on_source" id="RST-Y.H-A)pjx=z#l?Gg">
                                                     <field name="ATTR">state.val</field>
                                                   </block>
                                                 </value>
                                                 <value name="B">
                                                   <shadow type="math_number" id="V1+EP2b$eZraOEimK?mJ">
                                                     <field name="NUM">1</field>
                                                   </shadow>
                                                   <block type="math_number" id="_U,x,TD:#vzvU3QHnML3">
                                                     <field name="NUM">80</field>
                                                   </block>
                                                 </value>
                                               </block>
                                             </value>
                                             <next>
                                               <block type="control" id="c-:Zn|,Grn4MDhN?$#_a">
                                                 <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                 <field name="OID">Object ID</field>
                                                 <field name="WITH_DELAY">FALSE</field>
                                                 <value name="VALUE">
                                                   <block type="variables_get" id="#)OpAV1DUCm3R7)[(VvI">
                                                     <field name="VAR" id="f8{^@7=6SvpEn9C=7k.}">FanSpeed</field>
                                                   </block>
                                                 </value>
                                                 <next>
                                                   <block type="control" id="ygVqRQ{BtNGA;f{!c:NL">
                                                     <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                     <field name="OID">Object ID</field>
                                                     <field name="WITH_DELAY">FALSE</field>
                                                     <value name="VALUE">
                                                       <block type="variables_get" id="#Q+gBd;c}3KE-}`L9y)a">
                                                         <field name="VAR" id="f8{^@7=6SvpEn9C=7k.}">FanSpeed</field>
                                                       </block>
                                                     </value>
                                                     <next>
                                                       <block type="control" id="b0`z2p}594@p}U+v|H#q">
                                                         <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                         <field name="OID">Object ID</field>
                                                         <field name="WITH_DELAY">FALSE</field>
                                                         <value name="VALUE">
                                                           <block type="logic_boolean" id="mH|l^sxKLcR7RcyIT_A^">
                                                             <field name="BOOL">TRUE</field>
                                                           </block>
                                                         </value>
                                                       </block>
                                                     </next>
                                                   </block>
                                                 </next>
                                               </block>
                                             </next>
                                           </block>
                                         </statement>
                                         <statement name="ELSE">
                                           <block type="variables_set" id="pn2(9lYDC*vf`NQx3lOT">
                                             <field name="VAR" id="f8{^@7=6SvpEn9C=7k.}">FanSpeed</field>
                                             <value name="VALUE">
                                               <block type="math_number" id="Og0$hX:SNOC]aW@Lx.Y#">
                                                 <field name="NUM">0</field>
                                               </block>
                                             </value>
                                             <next>
                                               <block type="control" id="a~m%F0YqL=4xA@t62*u8">
                                                 <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                 <field name="OID">Object ID</field>
                                                 <field name="WITH_DELAY">FALSE</field>
                                                 <value name="VALUE">
                                                   <block type="logic_boolean" id="ws*^Jo$GEQ=VHYD.vV*.">
                                                     <field name="BOOL">FALSE</field>
                                                   </block>
                                                 </value>
                                                 <next>
                                                   <block type="control" id="}5Ab4aC;=aEN[+Oj:~s_">
                                                     <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                     <field name="OID">Object ID</field>
                                                     <field name="WITH_DELAY">FALSE</field>
                                                     <value name="VALUE">
                                                       <block type="math_number" id="@4a*M3.Hd$#FVzGpV[(H">
                                                         <field name="NUM">0</field>
                                                       </block>
                                                     </value>
                                                     <next>
                                                       <block type="control" id="T?g?F`NQWr8YKOE$m7TT">
                                                         <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                         <field name="OID">Object ID</field>
                                                         <field name="WITH_DELAY">FALSE</field>
                                                         <value name="VALUE">
                                                           <block type="math_number" id="%l.xWBsthLR@Opwm%i[,">
                                                             <field name="NUM">0</field>
                                                           </block>
                                                         </value>
                                                       </block>
                                                     </next>
                                                   </block>
                                                 </next>
                                               </block>
                                             </next>
                                           </block>
                                         </statement>
                                       </block>
                                     </statement>
                                   </block>
                                  </xml>
                                  

                                  W 1 Reply Last reply Reply Quote 0
                                  • W
                                    waterchill @fastfoot last edited by waterchill

                                    @fastfoot

                                    Das Skript funktioniert wunderbar, Danke dafür 😊

                                    Jetzt noch eine Kleinigkeit. Das restarten des Scripts sorgt dafür dass der Pulsmesser für 1-2 Sekunden 0 anzeigt somit die Lüfter kurzzeitig ausgehen. Es müsste also so sein, dass erst ab 5 Sekunden beim letzten FAll also dem "sonst" Fall die Lüfter ausgehen um das zu umgehen. Mit dem Timeout komme ich nicht weiter, da er einfach die kurze Pause 5 Sekunden nach hinten schiebt. Ist auch klar, die Bedingung wurde ja gesetzt. Irgendeine Idee?

                                    Bildschirmfoto 2021-02-01 um 16.41.56 PM.png


                                    <xml xmlns="https://developers.google.com/blockly/xml">
                                    <variables>
                                    <variable id="Gy3+tk~qNS!ra06j,luM">Fanspeed</variable>
                                    </variables>
                                    <block type="on_ext" id="C%7W)nvP2XC_Y+rg8:)W" x="163" y="390">
                                    <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="/ptIk,=|8ajrU(Z=^A4M">
                                    <field name="oid">mqtt.0.fancontroll.heartrate</field>
                                    </shadow>
                                    </value>
                                    <statement name="STATEMENT">
                                    <block type="controls_if" id="n(D:G|UQW{,/O!tGw!{I">
                                    <mutation elseif="1" else="1"></mutation>
                                    <value name="IF0">
                                    <block type="logic_operation" id=")xl;eav?yS]$=+;EkDa,">
                                    <field name="OP">AND</field>
                                    <value name="A">
                                    <block type="logic_compare" id="%y2eb{9cj{)WOxwx]i~U">
                                    <field name="OP">GTE</field>
                                    <value name="A">
                                    <block type="on_source" id="aPoz5]6j59-+MDb0i,j"> <field name="ATTR">state.val</field> </block> </value> <value name="B"> <block type="math_number" id="2]/XTtgE5r/a:Bu.+KHz"> <field name="NUM">50</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="9r(A2G7F*K5/J.k[ZzVP"> <field name="OP">LTE</field> <value name="A"> <block type="on_source" id="P?iqpeG-krg3T41P6gSs"> <field name="ATTR">state.val</field> </block> </value> <value name="B"> <block type="math_number" id="1-:q:$+DVI:Z(n?nD51w"> <field name="NUM">180</field> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="variables_set" id="Ui{rdvap+Vt@8@)?zdS@"> <field name="VAR" id="Gy3+tk~qNS!ra06j,luM">Fanspeed</field> <value name="VALUE"> <block type="math_arithmetic" id=")T_9CKY-dHv^me+.?BI#"> <field name="OP">MINUS</field> <value name="A"> <shadow type="math_number" id="#w*Rx+Zvx)FT*WZ!O+8j"> <field name="NUM">1</field> </shadow> <block type="on_source" id="#C7o|HR2+r:)+~r$0z?*"> <field name="ATTR">state.val</field> </block> </value> <value name="B"> <shadow type="math_number" id="SR3?E~KnHi^h^JALwyrR"> <field name="NUM">30</field> </shadow> </value> </block> </value> <next> <block type="control" id="dbV#VSd|?KUIxGuUl_$4"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">miio.0.devices.67436004.directSpeed</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="variables_get" id="W^i%.$OD^WMcPd^6,}?8"> <field name="VAR" id="Gy3+tk~qNS!ra06j,luM">Fanspeed</field> </block> </value> <next> <block type="control" id="!bGJ{idr]H?UCMeQA7qu"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">miio.0.devices.72194394.power</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="[GO(Y%Ad,(B6i/Nxp*ls"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="control" id="cN}l17TZ/,Cv5eQ01f!">
                                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                    <field name="OID">miio.0.devices.72194394.directSpeed</field>
                                    <field name="WITH_DELAY">FALSE</field>
                                    <value name="VALUE">
                                    <block type="variables_get" id="9yBIzu8?M(g/LvPsVuF1">
                                    <field name="VAR" id="Gy3+tk~qNS!ra06j,luM">Fanspeed</field>
                                    </block>
                                    </value>
                                    </block>
                                    </next>
                                    </block>
                                    </next>
                                    </block>
                                    </next>
                                    </block>
                                    </statement>
                                    <value name="IF1">
                                    <block type="logic_compare" id="U]B,N!1V$e6*=;?n[e+J">
                                    <field name="OP">GT</field>
                                    <value name="A">
                                    <block type="on_source" id="66gQe-5O]lqwU(9J_)r@">
                                    <field name="ATTR">state.val</field>
                                    </block>
                                    </value>
                                    <value name="B">
                                    <block type="math_number" id="?Ls}[~|S}+-@MtZ_qS$"> <field name="NUM">180</field> </block> </value> </block> </value> <statement name="DO1"> <block type="control" id="yMDKx8|pbQ}N2kucEB|">
                                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                    <field name="OID">miio.0.devices.67436004.directSpeed</field>
                                    <field name="WITH_DELAY">FALSE</field>
                                    <value name="VALUE">
                                    <block type="math_number" id="guIw6#CQZ7N~gl}=1mzS">
                                    <field name="NUM">100</field>
                                    </block>
                                    </value>
                                    <next>
                                    <block type="control" id="lr#=#VjX3+u={(W8nZ@C">
                                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                    <field name="OID">miio.0.devices.72194394.power</field>
                                    <field name="WITH_DELAY">FALSE</field>
                                    <value name="VALUE">
                                    <block type="logic_boolean" id="*Sm(z+p{7]51[U4QsPs">
                                    <field name="BOOL">TRUE</field>
                                    </block>
                                    </value>
                                    <next>
                                    <block type="control" id="~O#kBHji9n^,z[iRY}f|">
                                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                    <field name="OID">miio.0.devices.72194394.directSpeed</field>
                                    <field name="WITH_DELAY">FALSE</field>
                                    <value name="VALUE">
                                    <block type="math_number" id="Hw66H3(3s+2VFxegAQzF">
                                    <field name="NUM">100</field>
                                    </block>
                                    </value>
                                    </block>
                                    </next>
                                    </block>
                                    </next>
                                    </block>
                                    </statement>
                                    <statement name="ELSE">
                                    <block type="variables_set" id="x~)7y@:k2j[?hk1-TIAH">
                                    <field name="VAR" id="Gy3+tk~qNS!ra06j,luM">Fanspeed</field>
                                    <value name="VALUE">
                                    <block type="math_number" id="opRX~B[/wmJIKqh@)3~h">
                                    <field name="NUM">0</field>
                                    </block>
                                    </value>
                                    <next>
                                    <block type="control" id="d3CUHJz)tyPS,LsTB|0T">
                                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                    <field name="OID">miio.0.devices.67436004.power</field>
                                    <field name="WITH_DELAY">FALSE</field>
                                    <value name="VALUE">
                                    <block type="logic_boolean" id="8s[Bg(5kGrL?@0%XDO$9">
                                    <field name="BOOL">FALSE</field>
                                    </block>
                                    </value>
                                    <next>
                                    <block type="control" id="c@b;+WnH5gq!Gp=GgCgH">
                                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                    <field name="OID">miio.0.devices.72194394.power</field>
                                    <field name="WITH_DELAY">FALSE</field>
                                    <value name="VALUE">
                                    <block type="logic_boolean" id="HrzP4ydM6o
                                    zp=CLGZwQ">
                                    <field name="BOOL">FALSE</field>
                                    </block>
                                    </value>
                                    </block>
                                    </next>
                                    </block>
                                    </next>
                                    </block>
                                    </statement>
                                    </block>
                                    </statement>
                                    </block>
                                    </xml>

                                    F 1 Reply Last reply Reply Quote 0
                                    • F
                                      fastfoot @waterchill last edited by

                                      @waterchill setze in das Falls und SonstFalls einen Stop timeout
                                      Pulslüfter2.PNG

                                      W 1 Reply Last reply Reply Quote 0
                                      • W
                                        waterchill @fastfoot last edited by

                                        @fastfoot

                                        Danke funzt perfekt! Ich glaube jetzt habe ich endlich dieses "stop" timeout verstanden. Das wird quasi immer dann installiert wenn das "timeout"unterbrochen werden soll. In dem Fall sobald der obere Fall eintritt oder der zweite Fall auftritt, soll "timeout" gestoppt werden.

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

                                        Support us

                                        ioBroker
                                        Community Adapters
                                        Donate

                                        412
                                        Online

                                        31.9k
                                        Users

                                        80.1k
                                        Topics

                                        1.3m
                                        Posts

                                        7
                                        49
                                        3934
                                        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