Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. DP Wert wieder löschen

    NEWS

    • Wir empfehlen: Node.js 22.x

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker goes Matter ... Matter Adapter in Stable

    DP Wert wieder löschen

    This topic has been deleted. Only users with topic management privileges can see it.
    • Negalein
      Negalein Global Moderator last edited by

      Hallo!

      In diesem Blockly wird der Alexa-Speak-Volume DP mit einem Wert befüllt.
      Leider bleibt der Wert dann solange stehen, bis ein anderes Script wieder einen neuen Wert schreibt.

      Ich verwende nur dieses eine Blockly, das die Speak-Volume einstellt.

      Kann ich im Blockly den Wert aus dem Speak-DP wieder löschen lassen, wenn es durchgelaufen ist?

      javascript - ioBroker (1).png
      objects - ioBroker (7).png

      <xml xmlns="http://www.w3.org/1999/xhtml">
        <variables>
          <variable type="" id="m7!f@;c]Npk-3^:-e)tt">Ansagelautstaerke</variable>
          <variable type="" id="tx`]izPXI!BeK19V`CX$">angesprochener_echo</variable>
          <variable type="" id="}tfHo!d;DNiy8lns,/nq">speak_volume</variable>
          <variable type="" id="*mu5H7zua6o!Dt2x`1n$">Ansage</variable>
        </variables>
        <block type="procedures_defcustomnoreturn" id="eZsGA^2r{c%G,YpuLp]K" disabled="true" x="13" y="13">
          <mutation statements="false"></mutation>
          <field name="NAME">dp_erstellen</field>
          <field name="SCRIPT">Ly9EYXRlbnB1bmt0IEJ1dHRvbiBmw7xyIEFuc2FnZSBlcnN0ZWxsZW4KY3JlYXRlU3RhdGUoIkVpZ2VuZV9EYXRlbnB1bmt0ZS4wMUFsZXhhMkFuc2FnZW4uQW5zYWdlbi4xMkx1ZnRmZXVjaHRpZ2tlaXRfYXVzc2VuIiwgewogICAgbmFtZTogJzEyTHVmdGZldWNodGlna2VpdCBBdXNzZW4nLCAKICAgICJyb2xlIjogImJ1dHRvbiIsCiAgICAidHlwZSI6ICJtaXhlZCIsCiAgICAicmVhZCI6IHRydWUsCiAgICAid3JpdGUiOiB0cnVlLAogICAgInNtYXJ0TmFtZSI6IHsKICAgICJkZSI6ICIxMkx1ZnRmZXVjaHRpZ2tlaXQgQXVzc2VuIiwKICAgICJzbWFydFR5cGUiOiAiU1dJVENIIgp9Cn0pOw==</field>
          <comment pinned="false" h="80" w="160">Datenpunkte erstellen</comment>
        </block>
        <block type="procedures_callcustomnoreturn" id="A)Jpv66,y7VG|8K92{;d" disabled="true" x="13" y="63">
          <mutation name="dp_erstellen"></mutation>
          <next>
            <block type="on" id="pPAe?D9#C-MzNdYWPK]r">
              <field name="OID">alexa2.0.History.serialNumber</field>
              <field name="CONDITION">any</field>
              <field name="ACK_CONDITION"></field>
              <statement name="STATEMENT">
                <block type="comment" id="nt?35vVGNSD?_y_($k89">
                  <field name="COMMENT">gewünschte Ansagelautstärke reinschreiben</field>
                  <next>
                    <block type="variables_set" id="U?g9VUC6Zns3.pwdA/Za">
                      <field name="VAR" id="m7!f@;c]Npk-3^:-e)tt" variabletype="">Ansagelautstaerke</field>
                      <value name="VALUE">
                        <block type="math_number" id="ymNK_Bz-8ZEg{DNBt]LZ">
                          <field name="NUM">1</field>
                        </block>
                      </value>
                      <next>
                        <block type="variables_set" id="raHp)T;G6o1nDaQZ5Qrg">
                          <field name="VAR" id="tx`]izPXI!BeK19V`CX$" variabletype="">angesprochener_echo</field>
                          <value name="VALUE">
                            <block type="text_join" id="q`1!?SO4KN9hG:/?YC1L">
                              <mutation items="3"></mutation>
                              <value name="ADD0">
                                <block type="text" id="lG5cq|_e-SYygMARlNe%">
                                  <field name="TEXT">alexa2.0.Echo-Devices.</field>
                                </block>
                              </value>
                              <value name="ADD1">
                                <block type="get_value" id="M7plEDg{8pq2=J9a2fzQ">
                                  <field name="ATTR">val</field>
                                  <field name="OID">alexa2.0.History.serialNumber</field>
                                </block>
                              </value>
                              <value name="ADD2">
                                <block type="text" id="v.6VG(Lxwxo.[IIHs$U=">
                                  <field name="TEXT">.Commands.speak</field>
                                </block>
                              </value>
                            </block>
                          </value>
                          <next>
                            <block type="variables_set" id="N?jvkadzp3l@_Na$GSh3">
                              <field name="VAR" id="}tfHo!d;DNiy8lns,/nq" variabletype="">speak_volume</field>
                              <value name="VALUE">
                                <block type="text_join" id="2;bG:Tv$~s+Itqhld@ML">
                                  <mutation items="3"></mutation>
                                  <value name="ADD0">
                                    <block type="text" id="U0%on0@O$stDed%wbZLS">
                                      <field name="TEXT">alexa2.0.Echo-Devices.</field>
                                    </block>
                                  </value>
                                  <value name="ADD1">
                                    <block type="get_value" id="F;9-S~mvqb0GUKsf@iKm">
                                      <field name="ATTR">val</field>
                                      <field name="OID">alexa2.0.History.serialNumber</field>
                                    </block>
                                  </value>
                                  <value name="ADD2">
                                    <block type="text" id=".(-6vYavAe:;F~Wr[qy!">
                                      <field name="TEXT">.Commands.speak-volume</field>
                                    </block>
                                  </value>
                                </block>
                              </value>
                              <next>
                                <block type="control_ex" id="na!KX8sgIYL2ksHDN`jh" inline="true">
                                  <field name="TYPE">false</field>
                                  <field name="CLEAR_RUNNING">FALSE</field>
                                  <value name="OID">
                                    <shadow type="field_oid" id="0FxTr6pPa{y1i02IfiP$">
                                      <field name="oid">Object ID</field>
                                    </shadow>
                                    <block type="variables_get" id="s@N_NR{{@D|oU}ru)aMj">
                                      <field name="VAR" id="}tfHo!d;DNiy8lns,/nq" variabletype="">speak_volume</field>
                                    </block>
                                  </value>
                                  <value name="VALUE">
                                    <shadow type="logic_boolean" id=")+wP$OEq(l]ZyQ:nx8e]">
                                      <field name="BOOL">TRUE</field>
                                    </shadow>
                                    <block type="variables_get" id="a)qv{KMt]0rt*Qb#p1^c">
                                      <field name="VAR" id="m7!f@;c]Npk-3^:-e)tt" variabletype="">Ansagelautstaerke</field>
                                    </block>
                                  </value>
                                  <value name="DELAY_MS">
                                    <shadow type="math_number" id="/FwEmMj3J/ZV%60O$/9S">
                                      <field name="NUM">0</field>
                                    </shadow>
                                  </value>
                                </block>
                              </next>
                            </block>
                          </next>
                        </block>
                      </next>
                    </block>
                  </next>
                </block>
              </statement>
              <next>
                <block type="on_ext" id="Ac;^b|`@QSn~WL%:8Hxc">
                  <mutation items="1"></mutation>
                  <field name="CONDITION">any</field>
                  <field name="ACK_CONDITION"></field>
                  <value name="OID0">
                    <shadow type="field_oid" id="hD}F{s%j}T;e:l|Y_t5O">
                      <field name="oid">javascript.0.Eigene_Datenpunkte.Alexa2Ansagen.Wohnzimmertemperatur</field>
                    </shadow>
                  </value>
                  <statement name="STATEMENT">
                    <block type="variables_set" id="$J.=!-BfeGs#(CBLM(1[">
                      <field name="VAR" id="tx`]izPXI!BeK19V`CX$" variabletype="">angesprochener_echo</field>
                      <value name="VALUE">
                        <block type="text_join" id=";bPPOaCx,_qCBH8M{*aK">
                          <mutation items="3"></mutation>
                          <value name="ADD0">
                            <block type="text" id="e]oKxZ#%6l[[W.dB!#iP">
                              <field name="TEXT">alexa2.0.Echo-Devices.</field>
                            </block>
                          </value>
                          <value name="ADD1">
                            <block type="get_value" id="V~6.N)X7gAwv]to%BOD2">
                              <field name="ATTR">val</field>
                              <field name="OID">alexa2.0.History.serialNumber</field>
                            </block>
                          </value>
                          <value name="ADD2">
                            <block type="text" id="y@.l4E~,u(c_NQM;R!K7">
                              <field name="TEXT">.Commands.speak</field>
                            </block>
                          </value>
                        </block>
                      </value>
                      <next>
                        <block type="variables_set" id="%@~XbR*]v;?^@yN8*J1a">
                          <field name="VAR" id="}tfHo!d;DNiy8lns,/nq" variabletype="">speak_volume</field>
                          <value name="VALUE">
                            <block type="text_join" id="XS_zN+oIGrtSdXPN,FUS">
                              <mutation items="3"></mutation>
                              <value name="ADD0">
                                <block type="text" id="QKz+d//+I)DQ,_A{6Jaj">
                                  <field name="TEXT">alexa2.0.Echo-Devices.</field>
                                </block>
                              </value>
                              <value name="ADD1">
                                <block type="get_value" id="*3jCi9nMB~z89D,EdRyd">
                                  <field name="ATTR">val</field>
                                  <field name="OID">alexa2.0.History.serialNumber</field>
                                </block>
                              </value>
                              <value name="ADD2">
                                <block type="text" id="`MBSYJ8lpEHo/W%Q2:jF">
                                  <field name="TEXT">.Commands.speak-volume</field>
                                </block>
                              </value>
                            </block>
                          </value>
                          <next>
                            <block type="variables_set" id="5VFfHYTB!S7A^A*?SicA">
                              <field name="VAR" id="*mu5H7zua6o!Dt2x`1n$" variabletype="">Ansage</field>
                              <value name="VALUE">
                                <block type="text_join" id="0#)Q6.hA8*b=6aL2Omf5">
                                  <mutation items="3"></mutation>
                                  <value name="ADD0">
                                    <block type="text" id="k59DZfRE#w~3y~/b[OH_">
                                      <field name="TEXT">Die Temperatur im Wohnzimmer ist aktuell </field>
                                    </block>
                                  </value>
                                  <value name="ADD1">
                                    <block type="get_value" id="WhS9vGl{iR}*!Z.~8_Hj">
                                      <field name="ATTR">val</field>
                                      <field name="OID">mihome.0.devices.weather_v1_158d0002e91bc1.temperature</field>
                                    </block>
                                  </value>
                                  <value name="ADD2">
                                    <block type="text" id="6{|}5^GsE]F!31Nfa6my">
                                      <field name="TEXT"> Grad</field>
                                    </block>
                                  </value>
                                </block>
                              </value>
                              <next>
                                <block type="control_ex" id="N`bH~vTk2J(;!)ChQ54-" inline="true">
                                  <field name="TYPE">false</field>
                                  <field name="CLEAR_RUNNING">FALSE</field>
                                  <value name="OID">
                                    <shadow type="field_oid" id="0FxTr6pPa{y1i02IfiP$">
                                      <field name="oid">Object ID</field>
                                    </shadow>
                                    <block type="variables_get" id="?_Re.YF9,M4+PeasOubP">
                                      <field name="VAR" id="}tfHo!d;DNiy8lns,/nq" variabletype="">speak_volume</field>
                                    </block>
                                  </value>
                                  <value name="VALUE">
                                    <shadow type="logic_boolean" id=")+wP$OEq(l]ZyQ:nx8e]">
                                      <field name="BOOL">TRUE</field>
                                    </shadow>
                                    <block type="variables_get" id="w!rFe*57mL/mjY:3VxBr">
                                      <field name="VAR" id="m7!f@;c]Npk-3^:-e)tt" variabletype="">Ansagelautstaerke</field>
                                    </block>
                                  </value>
                                  <value name="DELAY_MS">
                                    <shadow type="math_number" id="(}$s}10/Wk|!PJ7mJkBl">
                                      <field name="NUM">0</field>
                                    </shadow>
                                  </value>
                                  <next>
                                    <block type="control_ex" id="am/`YM%nX)[tXw]-@Wz~" inline="true">
                                      <field name="TYPE">false</field>
                                      <field name="CLEAR_RUNNING">FALSE</field>
                                      <value name="OID">
                                        <shadow type="field_oid" id="0FxTr6pPa{y1i02IfiP$">
                                          <field name="oid">Object ID</field>
                                        </shadow>
                                        <block type="variables_get" id="%3_D}O[OXu0D,F8iH!:7">
                                          <field name="VAR" id="tx`]izPXI!BeK19V`CX$" variabletype="">angesprochener_echo</field>
                                        </block>
                                      </value>
                                      <value name="VALUE">
                                        <shadow type="logic_boolean" id=")+wP$OEq(l]ZyQ:nx8e]">
                                          <field name="BOOL">TRUE</field>
                                        </shadow>
                                        <block type="variables_get" id=":Y6^C_1.#WC21Lla9Md{">
                                          <field name="VAR" id="*mu5H7zua6o!Dt2x`1n$" variabletype="">Ansage</field>
                                        </block>
                                      </value>
                                      <value name="DELAY_MS">
                                        <shadow type="math_number" id="smJl9lo{R$H[Zjf7R!;h">
                                          <field name="NUM">0</field>
                                        </shadow>
                                      </value>
                                      <next>
                                        <block type="sendto_custom" id="h;DrZ,l|@:cHB$sk]w$t">
                                          <mutation items="message,timeout,msgType" with_statement="false"></mutation>
                                          <field name="INSTANCE">enigma2.0</field>
                                          <field name="COMMAND">send</field>
                                          <field name="WITH_STATEMENT">FALSE</field>
                                          <field name="LOG"></field>
                                          <value name="ARG0">
                                            <shadow type="text" id="9pQ#l:Rq[=oy}dHPcsB:">
                                              <field name="TEXT"></field>
                                            </shadow>
                                            <block type="variables_get" id="u#/Nmgi4TzEz*30VO506">
                                              <field name="VAR" id="*mu5H7zua6o!Dt2x`1n$" variabletype="">Ansage</field>
                                            </block>
                                          </value>
                                          <value name="ARG1">
                                            <shadow type="text" id="{[vWUE7mZ{(%R`n3}2z7">
                                              <field name="TEXT"></field>
                                            </shadow>
                                            <block type="math_number" id="[.AyHsHAgHEOMn1}xbLM">
                                              <field name="NUM">10</field>
                                            </block>
                                          </value>
                                          <value name="ARG2">
                                            <shadow type="text" id="V($k:TC1oRY@vaNEv^HR">
                                              <field name="TEXT"></field>
                                            </shadow>
                                            <block type="math_number" id="nt=J?Q2:`U4r/L5;..l?">
                                              <field name="NUM">1</field>
                                            </block>
                                          </value>
                                        </block>
                                      </next>
                                    </block>
                                  </next>
                                </block>
                              </next>
                            </block>
                          </next>
                        </block>
                      </next>
                    </block>
                  </statement>
                </block>
              </next>
            </block>
          </next>
        </block>
      </xml>
      

      C dslraser crunchip 3 Replies Last reply Reply Quote 0
      • C
        CruziX @Negalein last edited by

        @Negalein du kannst einfach einen leeren String reinschreiben

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

          @Negalein
          mal ne andere Frage, was kommt bei Lautstärke 1 raus, eigentlich doch nix, oder ? ( 1 ist gleich 1 von 100)

          Negalein 1 Reply Last reply Reply Quote 0
          • crunchip
            crunchip Forum Testing Most Active @Negalein last edited by

            @Negalein zum einen kannst du doch zu Beginn die aktuelle Lautstärke in eine Variable setzen und am Ende wieder auf den Ursprung.
            aber viel mehr bin ich gerade mit deinem Blockly überfordert, versteh ich nicht, was du da genau vor hast.

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

              @CruziX @dslraser @crunchip

              Ahhh, ich Depp!
              Hab zu kompliziert gedacht.
              Wollte nur die Temperaturam TV anzeigen unde hab warum auch immer auch die Echos mitgenommen.

              Funktioniert jetzt.

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

                @Negalein
                Aber die Anzeige am TV kommt dann auch bei jeder Temperatur Aktualisierung, selbst wenn die sich nicht ändert.
                Das könnte auf Dauer nerven am TV, da jede Aktualisierung und auch Änderung von 0,1 bereits wieder anzeigt.

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

                  @dslraser sagte in DP Wert wieder löschen:

                  Aber die Anzeige am TV kommt dann auch bei jeder Temperatur Aktualisierung, selbst wenn die sich nicht ändert.

                  Wohnzimmertemperatur ist ein IOT-Objekt.

                  Müsste das dann doch passen?

                  instances - ioBroker.png javascript - ioBroker (2).png

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

                    @Negalein
                    achso, ist das ein selbst erstellter Button für eine Routine oder so ? Wenn ja, dann passt es.
                    Also kommt dann bei der Alexa Temperaturabfrage der Wert auf dem TV.

                    Edit: wie macht ihr eigentlich das Wort in dieser roten "Code Schrift" ?
                    (Wohnzimmertemperatur)

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

                      @dslraser sagte in DP Wert wieder löschen:

                      achso, ist das ein selbst erstellter Button für eine Routine oder so ? Wenn ja, dann passt es.
                      Also kommt dann bei der Alexa Temperaturabfrage der Wert auf dem TV.

                      Genau

                      Edit: wie macht ihr eigentlich das Wort in dieser roten "Code Schrift" ?

                      mit diesem Zeichen ` vor und nach dem Wort, Satz, ...

                      `Wohnzimmertemperatur`
                      
                      1 Reply Last reply Reply Quote 1
                      • First post
                        Last post

                      Support us

                      ioBroker
                      Community Adapters
                      Donate

                      781
                      Online

                      32.0k
                      Users

                      80.4k
                      Topics

                      1.3m
                      Posts

                      blockly
                      4
                      9
                      460
                      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