Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Error/Bug
    4. Fehler nach Update javascript und hm-rega

    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

    Fehler nach Update javascript und hm-rega

    This topic has been deleted. Only users with topic management privileges can see it.
    • paul53
      paul53 @FischerICT last edited by paul53

      @fischerict
      Wie sehen die Objektdaten von "hm-rega.0.35134" aus und wie das Script "Erna_Daten_an_CCU_senden"?
      Bitte in Code tags posten!!

      F 1 Reply Last reply Reply Quote 0
      • F
        FischerICT @paul53 last edited by

        @paul53
        danke für die Rückmeldung. Sorry ich bin noch Anfänger. Hoffe das ich es nun richtig geschrieben und eingetragen habe.
        Die Objektdaten:

        {
          "_id": "hm-rega.0.35134",
          "type": "state",
          "common": {
            "name": "Erna Ladezustand",
            "type": "string",
            "read": true,
            "write": true,
            "role": "state",
            "desc": "Vorwerk VR200 Ladezustand"
          },
          "native": {
            "Name": "Erna Ladezustand",
            "TypeName": "VARDP",
            "DPInfo": "Vorwerk VR200 Ladezustand",
            "ValueMin": null,
            "ValueMax": null,
            "ValueUnit": "",
            "ValueType": 20,
            "ValueSubType": 11,
            "ValueList": ""
          },
          "from": "system.adapter.hm-rega.0",
          "user": "system.user.admin",
          "ts": 1628172898184
        ```{
          "_id": "hm-rega.0.35134",
          "type": "state",
          "common": {
            "name": "Erna Ladezustand",
            "type": "string",
            "read": true,
            "write": true,
            "role": "state",
            "desc": "Vorwerk VR200 Ladezustand"
          }
        

        Das Script:

        <xml xmlns="https://developers.google.com/blockly/xml">
          <block type="comment" id="|18X(.1se@)F*w|d4Hh," x="-959" y="-1005">
            <field name="COMMENT">iobroker Gehäuße Temperatur</field>
            <next>
              <block type="on_ext" id="d88+@z3QxCjS3xNz`*44">
                <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="S:OPTDD#}[baInYWqK=m">
                    <field name="oid">rpi2.0.temperature.soc_temp</field>
                  </shadow>
                </value>
                <statement name="STATEMENT">
                  <block type="control" id="bhFRe-5e61*Rd}},u1I_">
                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                    <field name="OID">hm-rega.0.35161</field>
                    <field name="WITH_DELAY">FALSE</field>
                    <value name="VALUE">
                      <block type="get_value" id=":gSPx-9YnbXnJj0RAnLr">
                        <field name="ATTR">val</field>
                        <field name="OID">rpi2.0.temperature.soc_temp</field>
                      </block>
                    </value>
                  </block>
                </statement>
              </block>
            </next>
          </block>
        </xml>
        

        Vielen Danke für Deine Hilfe und Mühe,

        Grüße Andreas

        paul53 1 Reply Last reply Reply Quote 0
        • paul53
          paul53 @FischerICT last edited by paul53

          @fischerict sagte: Das Script:

          Falsches Skript: "hm-rega.0.35161" != "hm-rega.0.35134"!

          Die SV "Erna Ladezustand" wurde in der (V)CCU als Zeichenkette erstellt. Ist das so gewollt?

          F 1 Reply Last reply Reply Quote 0
          • F
            FischerICT @paul53 last edited by

            @paul53 Hallo, anbei das Script 35161

            {
              "_id": "hm-rega.0.35161",
              "type": "state",
              "common": {
                "name": "iobroker_Gehaeuse_Temp",
                "type": "number",
                "read": true,
                "write": true,
                "role": "state",
                "min": 0,
                "max": 65000,
                "desc": "Temperatur des Gehäuse iobroker",
                "unit": "ºC"
              },
              "native": {
                "Name": "iobroker_Gehaeuse_Temp",
                "TypeName": "VARDP",
                "DPInfo": "Temperatur des Gehäuse iobroker",
                "ValueMin": 0,
                "ValueMax": 65000,
                "ValueUnit": "ºC",
                "ValueType": 4,
                "ValueSubType": 0,
                "ValueList": ""
              },
              "from": "system.adapter.hm-rega.0",
              "user": "system.user.admin",
              "ts": 1628172898703
            }
            

            Oder was war mit dem falschen Script gemeint? Nein - ist es besser die Varable in Zahl umzubauen?
            Danke und Grüße,
            Andreas

            Homoran paul53 2 Replies Last reply Reply Quote 0
            • Homoran
              Homoran Global Moderator Administrators @FischerICT last edited by

              @fischerict sagte in Fehler nach Update javascript und hm-rega:

              Oder was war mit dem falschen Script gemeint?

              Ich kann leider immer noch nicht aus dem Screenshot zitieren, aber da wird ein Script, das die Rega-Variable 35134 ansteuert angemeckert

              Das Script was du posten wolltest (aber den Blockly Export gewählt hattest) ist aber für die Rega-Variable 35161

              Damit können wir nicht sehen wo der Fehler liegt, außer

              @paul53 sagte in Fehler nach Update javascript und hm-rega:

              Die SV "Erna Ladezustand" wurde in der (V)CCU als Zeichenkette erstellt. Ist das so gewollt?

              F 2 Replies Last reply Reply Quote 0
              • F
                FischerICT @Homoran last edited by

                @homoran Sorry aber was genau brauchst Du um das Problem eventuell zu analysieren? Wie schon gesagt, für mich ist das noch Neuland.

                1 Reply Last reply Reply Quote 0
                • F
                  FischerICT @Homoran last edited by FischerICT

                  @homoran sagte in Fehler nach Update javascript und hm-rega:

                  35134
                  Meinst Du das hier?

                  {
                    "_id": "hm-rega.0.35134",
                    "type": "state",
                    "common": {
                      "name": "Erna Ladezustand",
                      "type": "string",
                      "read": true,
                      "write": true,
                      "role": "state",
                      "desc": "Vorwerk VR200 Ladezustand"
                    },
                    "native": {
                      "Name": "Erna Ladezustand",
                      "TypeName": "VARDP",
                      "DPInfo": "Vorwerk VR200 Ladezustand",
                      "ValueMin": null,
                      "ValueMax": null,
                      "ValueUnit": "",
                      "ValueType": 20,
                      "ValueSubType": 11,
                      "ValueList": ""
                    },
                    "from": "system.adapter.hm-rega.0",
                    "user": "system.user.admin",
                    "ts": 1628172898184
                  }
                  
                  javascript.0
                  2021-08-11 11:47:26.284	warn	at processImmediate (internal/timers.js:461:21)
                  javascript.0
                  2021-08-11 11:47:26.284	warn	at Immediate._onImmediate (/opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:5706:41)
                  javascript.0
                  2021-08-11 11:47:26.283	warn	at Object.stateChange (/opt/iobroker/node_modules/iobroker.javascript/main.js:525:29)
                  javascript.0
                  2021-08-11 11:47:26.283	warn	at Object.callback (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1087:38)
                  javascript.0
                  2021-08-11 11:47:26.282	warn	at Object.<anonymous> (script.js.Erna_Daten_an_CCU_senden:11:3)
                  javascript.0
                  2021-08-11 11:47:26.281	warn	at setState (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1439:20)
                  javascript.0
                  2021-08-11 11:47:26.277	warn	You are assigning a number to the state "hm-rega.0.35134" which expects a string. Please fix your code to use a string or change the state type to number. This warning might become an error in future versions.
                  
                  cash 1 Reply Last reply Reply Quote 0
                  • paul53
                    paul53 @FischerICT last edited by paul53

                    @fischerict sagte: Oder was war mit dem falschen Script gemeint?

                    Das gepostete Blockly-XML schreibt in die SV "hm-rega.0.35161". Das ist nicht die SV mit der Warnung.

                    1 Reply Last reply Reply Quote 0
                    • cash
                      cash Most Active @FischerICT last edited by

                      @fischerict said in Fehler nach Update javascript und hm-rega:

                      state "hm-rega.0.35134"

                      Dieser State ist ein String den Du mit einer Zahl befüllst.
                      Entweder Du füllst ihn mit einem String oder Du änderst den State in number.

                      Ich würde den state in number ändern.

                      F 1 Reply Last reply Reply Quote 0
                      • F
                        FischerICT @cash last edited by

                        @cash Servus und danke für die Hilfe. Ich habe das in "number" geändert und die Fehler waren weg.

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

                        Support us

                        ioBroker
                        Community Adapters
                        Donate

                        824
                        Online

                        31.9k
                        Users

                        80.1k
                        Topics

                        1.3m
                        Posts

                        4
                        12
                        798
                        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