Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. [erledigt] Minus Temparaturen in Systemvariable schreiben

    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

    [erledigt] Minus Temparaturen in Systemvariable schreiben

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

      Hallo,

      ich möchte die aktuelle Temperatur aus einem Objekt in eine Systemvariable schreiben.
      Sobald ein minus bei der aktuellen Temperatur steht, wird maximal eine "0" eingetragen bzw. ist diese sichtbar.

      {
       "from": "system.host.raspberrypi.cli",
       "ts": 1585650956321,
       "common": {
         "name": "Actual temperature for today",
         "type": "number",
         "role": "value.temperature",
         "unit": "°C",
         "desc": "Actual temperature",
         "read": true,
         "write": false
       },
       "native": {
         "path": "main.temp",
         "metric": "°C",
         "imperial": "°F",
         "type": "current"
       },
       "acl": {
         "object": 1636,
         "owner": "system.user.admin",
         "ownerGroup": "system.group.administrator",
         "state": 1636
       },
       "_id": "openweathermap.0.forecast.current.temperature",
       "type": "state"
      }
      

      {
       "_id": "hm-rega.0.3094",
       "type": "state",
       "common": {
         "name": "Temperatur [ºC]",
         "type": "number",
         "read": true,
         "write": true,
         "role": "state",
         "min": 0,
         "max": 65000,
         "unit": "ºC",
         "desc": "accuweather"
       },
       "native": {
         "Name": "Temperatur [ºC]",
         "TypeName": "VARDP",
         "DPInfo": "accuweather",
         "ValueMin": 0,
         "ValueMax": 65000,
         "ValueUnit": "ºC",
         "ValueType": 4,
         "ValueSubType": 0,
         "ValueList": ""
       },
       "from": "system.adapter.hm-rega.0",
       "user": "system.user.admin",
       "ts": 1612633190140,
       "acl": {
         "object": 1636,
         "state": 1636,
         "owner": "system.user.admin",
         "ownerGroup": "system.group.administrator"
       }
      }
      

      2021-02-11_104341.jpg

      Ob ich "steuere" oder "Aktuallisiere" nehme, ist vollkommen egal. Trage ich einen negativen Wert direkt ein, wird mir der Wert auch so auf der CCU angezeigt.

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

        @falke69 sagte:

        "min": 0,
        

        Ändere common.min in -40.

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

          @paul53

          DANKE!👍
          manches kann so einfach sein.😊

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

          Support us

          ioBroker
          Community Adapters
          Donate

          814
          Online

          31.8k
          Users

          80.0k
          Topics

          1.3m
          Posts

          2
          3
          151
          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