Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Einsteigerfragen
    4. Einbindung von Geräten
    5. [GELOEST] Shelly Pro 3EM über MQTT Alias erstellen

    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

    [GELOEST] Shelly Pro 3EM über MQTT Alias erstellen

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

      Hallo zusammen,
      ich habe einen Pro 3EM eingebaut. Hier MQTT aktiviert und soweit alles OK, Daten kommen an:
      Leider bekomme ich die Lesekonvertierung beim Alias nicht auf die Reihe. Habe es wie folgt probiert,

      JSON.parse(val).params.em.a_act_power
      JSON.parse(val).params.em:0.a_act_power
      JSON.parse(val).a_act_power
      

      Ich wäre für Unterstützung dankbar.

      {
        "src": "shellypro3em-2cbcbba70d78",
        "dst": "shellypro3em/events",
        "method": "NotifyStatus",
        "params": {
          "ts": 1737308347.14,
          "em:0": {
            "id": 0,
            "a_act_power": 0,
            "a_aprt_power": 64.4,
            "a_current": 0.285,
            "a_freq": 50,
            "a_pf": 0.5,
            "a_voltage": 225.7,
            "b_act_power": 0,
            "b_aprt_power": 6.1,
            "b_current": 0.027,
            "b_freq": 50,
            "b_pf": 0,
            "b_voltage": 225.6,
            "c_act_power": 1.7,
            "c_aprt_power": 7.5,
            "c_current": 0.033,
            "c_freq": 50,
            "c_pf": 0.58,
            "c_voltage": 226.9,
            "n_current": null,
            "total_act_power": 1.733,
            "total_aprt_power": 78.091,
            "total_current": 0.346
          }
        }
      }
      
      paul53 1 Reply Last reply Reply Quote 0
      • paul53
        paul53 @senior1418 last edited by

        @senior1418 sagte: Lesekonvertierung beim Alias

        JSON.parse(val).params['em:0'].a_act_power
        
        S 1 Reply Last reply Reply Quote 0
        • S
          senior1418 @paul53 last edited by

          @paul53 sagte in Shelly Pro 3EM über MQTT Alias erstellen:

          JSON.parse(val).params['em:0'].a_act_power

          oh, vielen Dank ! das hätte ich nicht hinbekommen

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

          Support us

          ioBroker
          Community Adapters
          Donate

          806
          Online

          31.9k
          Users

          80.2k
          Topics

          1.3m
          Posts

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