Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. jkret

    NEWS

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    J
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 2
    • Best 0
    • Groups 0

    jkret

    @jkret

    0
    Reputation
    8
    Profile views
    2
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    jkret Follow

    Latest posts made by jkret

    • RE: JSON Datenpunkt auslesen - Problem : Doppelpunkt im Namen

      @mickym : Ich hatte den JSON-Baustein drin, damit ging es nicht. Das es auch ohne geht, hätte ich nicht gedacht.

      @paul53: Dein Variante klappt auch, den JSON aufzuteilen. Danke.

      @ticaki : Dann bin mal auf Dein Script gespannt...

      Danke an Alle - Problem gelöst

      posted in Skripten / Logik
      J
      jkret
    • JSON Datenpunkt auslesen - Problem : Doppelpunkt im Namen

      Hallo,
      ich habe einen ShellyPro3EM und leider erst nach dem Kauf festgestellt, dass das Gerät vom Shelly-Adapter nicht unterstützt wird.
      Deshalb habe ich MQTT aktiviert und habe eine Problem sowohl im Blockly als auch im JavaSript, dass der Pfadname der Variable nicht funktionert, weil ein Doppelpunkt im JSON enthalten ist.
      auszulesender Wert : "params.em:0.total_act_power"
      Wenn ich den Wert "params.ts" auslese, funktioniert es.

      Wie kann ich das Problem beheben?

      {
        "src": "shellypro3em-xxxxxxx",
        "dst": "EnergieSP3/events",
        "method": "NotifyStatus",
        "params": {
          "ts": 1690027815.41,
          "em:0": {
            "id": 0,
            "a_act_power": 241.8,
            "a_aprt_power": 378.2,
            "a_current": 1.607,
            "a_pf": -0.73,
            "a_voltage": 235.5,
            "b_act_power": 168.9,
            "b_aprt_power": 262.1,
            "b_current": 1.113,
            "b_pf": -0.74,
            "b_voltage": 235.5,
            "c_act_power": 71,
            "c_aprt_power": 107.7,
            "c_current": 0.458,
            "c_pf": -0.74,
            "c_voltage": 235.5,
            "n_current": null,
            "total_act_power": 481.782,
            "total_aprt_power": 748.067,
            "total_current": 3.178
          }
        }
      }
      
      posted in Skripten / Logik
      J
      jkret
    Community
    Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
    The ioBroker Community 2014-2023
    logo