Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. [gelöst] Warnung für Script Tankerkönig zu Homematic Variable

    NEWS

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    [gelöst] Warnung für Script Tankerkönig zu Homematic Variable

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

      Hallo, mein Script für die Übergabe des Dieselpreises an eine Homematicvariable scheint zu funktionieren, jedoch bekomme ich folgende Warnung:
      2631_2017-09-17_15_23_32-microsoft_edge.jpg

      Das Script ist eigentlich total unspektakulär:
      2631_2017-09-17_16_07_14-microsoft_edge.png

      Die Variable:
      2631_2017-09-17_16_08_50-microsoft_edge.png

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

        Zeige bitte auch den Inhalt von raw (experten)

        1 Reply Last reply Reply Quote 0
        • S
          schneidy76 last edited by

          {
            "common": {
              "name": "Dieselpreis Aral",
              "type": "number",
              "role": "state",
              "unit": "Euro",
              "min": 0,
              "max": 10,
              "read": true,
              "write": true
            },
            "native": {
              "Name": "Dieselpreis Aral",
              "TypeName": "VARDP",
              "DPInfo": "",
              "ValueUnit": "Euro",
              "ValueList": "",
              "ValueMin": 0,
              "ValueMax": 10,
              "ValueType": 4,
              "ValueSubType": 0
            },
            "acl": {
              "object": 1638,
              "owner": "system.user.admin",
              "ownerGroup": "system.group.administrator",
              "state": 1638
            },
            "_id": "hm-rega.0.18638",
            "type": "state"
          }
          

          Bitte, gern geschehn 😉

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

            Der Preis wird offenbar als String geliefert und muss "nach Zahl" konvertiert weden.

            1 Reply Last reply Reply Quote 0
            • eric2905
              eric2905 last edited by

              Du schreibst den Wert als „String“ in ein Datenfeld, was als „Number“ definiert ist.

              Gruß,

              Eric

              Von unterwegs getippert

              1 Reply Last reply Reply Quote 0
              • S
                schneidy76 last edited by

                d.h. der Befehl "konvertiere den String "diesel short" nach Zahl" fehlt?

                Konvertieren habe ich gefunden in Blockly "nach Zahl",

                aber wo setze ich den Baustein ein?

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

                  144_konvert.jpg

                  1 Reply Last reply Reply Quote 0
                  • S
                    schneidy76 last edited by

                    @Homoran:

                    konvert.jpg `

                    Verdammt, so einfach ist das???????????????? :lol:

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

                    Support us

                    ioBroker
                    Community Adapters
                    Donate

                    778
                    Online

                    31.7k
                    Users

                    79.8k
                    Topics

                    1.3m
                    Posts

                    4
                    8
                    918
                    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