Ankündigung

Einklappen
Keine Ankündigung bisher.

Shelly Pro 3EM einbinden

Einklappen
X
 
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

    Shelly Pro 3EM einbinden

    Lt. Doku wird der Shelly Pro 3EM (noch) nicht unterstützt...

    Wie kann ich ihn trotzdem einbinden?

    Oder kann das Plugin dahingehend einfach erweitert werden damit das Gerät unterstützt wird und dann evtl. auch andere davon profitieren?

    Würe mich über Unterstützung freuen
    cu Yfkt5A
    DALI(ABB DG/S1.1), KODI Odroid, TrueNAS, Zehnder ComfoAir 200 L Luxe
    microk8s-Cluster: HomeAssistant, MusicAssistant, mosquitto, TVHeadend, jellyfin

    #2
    Den kannst Du im Moment gar nicht einbinden. Die nueren Shelly Devices sprechen ein anderes (neues) Payload Protokoll über MQTT.

    Es ist für Dich aber Abhilfe in Sicht. Mit dem kommenden SmartHomeNG Release 1.10 kommt ein neues shelly Plugin, welches auch die neuen Shelly Devices unterstützt. Im develop Branch ist das Plugin bereits enthalten. Es benötigt jedoch den neuen Core und läuft nicht unter SmartHomNG 1.9.x.
    Viele Grüße
    Martin

    There is no cloud. It's only someone else's computer.

    Kommentar


      #3
      Danke für deine Antwort

      Zitat von Msinn Beitrag anzeigen
      Den kannst Du im Moment gar nicht einbinden. Die nueren Shelly Devices sprechen ein anderes (neues) Payload Protokoll über MQTT.
      Habe ich dann falsch verstanden das das Shelly-Plugin nur auf dem MQTT aufbaut?

      Dachte über das MQTT-Plugin könnte ich alles einbinden was MQTT spricht, also auch den neuen Shelly Pro 3EM.

      cu Yfkt5A
      DALI(ABB DG/S1.1), KODI Odroid, TrueNAS, Zehnder ComfoAir 200 L Luxe
      microk8s-Cluster: HomeAssistant, MusicAssistant, mosquitto, TVHeadend, jellyfin

      Kommentar


        #4
        Klar kannst Du das über das mqtt Plugin einbinden, wenn Du Dich vorher in das neue Payload Protokoll von Shelly einarbeitest.

        Du hattest Dich in Deiner Frage auf das shelly Plugin bezogen. Darauf bezog sich meine Antwort.
        Viele Grüße
        Martin

        There is no cloud. It's only someone else's computer.

        Kommentar


          #5
          Danke für die Antwort... versuche schon seit Stunden erfolglos wenigstens 1 Item von dem Shelly zu bekommen

          Grundsätzlich funktioniert die Verbindung zum MQTT-Broker aber, da ich Werte von meinem Wechselrichter bekomme.

          was ich beispielsweise probiert habe:
          Code:
          shelly:
              name: Shelly Pro 3EM 3-Kanal Energiemesser
              online:
                  name: Shelly Pro 3EM online
                  remark: Onlinestatus
                  type: bool
                  mqtt_topic_in: shellypro3em/online
                  
              energie:
                  name: Energiemesser Kanal 0
                              
                  total:
                      name: Verbrauchszähler [Wh]
                      remark: Test
                      type: num
                      mqtt_topic_in: shellypro3em/status/emdata:0/total_act
                  EMData_str:
                      name: EMData als string
                      remark: Test
                      type: str
                      mqtt_topic_in: shellypro3em/status/emdata:0
          
              EMData:
                  type: dict
                  mqtt_topic_in: shellypro3em/status/emdata:0
                  on_change:
                    - ..total_act = value['total_act']
              total_act:
                  type: num
                  
              EM:
                  type: dict
                  mqtt_topic_in: shellypro3em/status/em:0
                  on_change:
                    - ..c_voltage = int(c_voltage)
              c_voltage:
                  type: num
          Im MQTT-Explorer werden u.a. folgende Topics mit ihren Werten angezeigt:

          shellypro3em/online
          true


          shellypro3em/status/em:0
          {"id":0,"a_current":0.028,"a_voltage":0.0,"a_ac t_p ower":0.0,"a_aprt_power":0.0,"a_pf":1.00,"a_freq": 39.5,"b_current":0.027,"b_voltage":0.0,"b_act_powe r":0.0,"b_aprt_power":0.0,"b_pf":1.00,"b_freq": 50. 1,"c_current":0.029,"c_voltage":229.8,"c_act_pow er ":1.2,"c_aprt_power":6.6,"c_pf":0.53,"c_freq": 50.0 ,"n_current":null,"total_current":0.083,"total_ act _power":1.161,"total_aprt_power":6.561, "user_calibrated_phase":[]}


          shellypro3em/status/emdata:0
          {"id":0,"a_total_act_energy":0.03,"a_total_act_ ret _energy":0.00,"b_total_act_energy":0.03,"b_total_a ct_ret_energy":0.00,"c_total_act_energy":361.43,"c _total_act_ret_energy":0.00,"total_act":361.48, "total_act_ret":0.00}​



          Ausserdem habe ich noch folgende Meldungen im Log die ich noch gerne wegbekommen würde:
          Code:
          ERROR    modules.mqtt        _on_log: Caught exception in on_message: 'ip'
          WARNING  modules.mqtt        subscribe_topic: topic 'shellypro3em/status/emdata:0', source 'mqtt-8': Invalid bool_values specified ('['']') - Ignoring bool_values
          WARNING  modules.mqtt        subscribe_topic: topic 'shellypro3em/status/em:0', source 'mqtt-9': Invalid bool_values specified ('['']') - Ignoring bool_values​
          cu Yfkt5A
          DALI(ABB DG/S1.1), KODI Odroid, TrueNAS, Zehnder ComfoAir 200 L Luxe
          microk8s-Cluster: HomeAssistant, MusicAssistant, mosquitto, TVHeadend, jellyfin

          Kommentar


            #6
            Ich habe das mal eben mit meinen ShellyPlusPlugS probiert, die, wenn ich mich nicht irre, ja auch das neue Protokoll verwenden.
            Ich bekomme Daten in die Items:

            Code:
            Shelly:
                Reserve:
                    Online:
                        type: bool
                        mqtt_topic_in: shellyplusplugs-80646fe3880c/online
                    Status:
                        type: dict
                        mqtt_topic_in: shellyplusplugs-80646fe3880c/status/switch:0
                    Events:
                        type: dict
                        mqtt_topic_in: shellyplusplugs-80646fe3880c/events/rpc
            grafik.png

            Sieht das Topic von dem Energiemesser wirklich genau so aus? Kommt mir seltsam vor. Da fehlt mir eine eindeutige Geräte-ID.
            Zuletzt geändert von Sipple; 23.11.2023, 22:43.

            Kommentar


              #7
              Yfkt5A

              Schau doch mal ins Webinterface von deinem Energiemesser, was da eingstellt ist.
              Ich habe da alles aktiv, was es gibt und es klappt bisher tadellos:

              grafik.png

              Und die Firmware aktuell halten.
              Was ich nicht hinbekommen habe, ist ein mqtt_out, weil ich keine Ahnung habe, wie das Topic und die Payload auszusehen hat. Dabei bräuchte ich nur einen einfachen Schaltbefehl.

              Kommentar


                #8
                Vielen Dank für die Antwort und deine Bemühungen...

                Zu deinen Fragen/Hinweisen:
                -Die MQTT Settings bei meinem Shelly sehen genauso aus
                -Update wurde vor ca. 2 Wochen gemacht als ich ihn bekommen habe
                -Das MQTT-Topic habe ich von der ID auf einen sprechenden Namen geändert - habe ich dann aber aus dem MQTT-Explorer kopiert und sollte daher passen


                Wenn ich wieder zu Hause vorm Rechner bin mach ich mal Screenshots...

                Vielleicht kannst du noch was zu den Fehlermeldungen sagen:
                Code:
                WARNING  modules.mqtt        subscribe_topic: topic 'Wechselrichter/device', source 'mqtt-1': Invalid bool_values specified ('['']') - Ignoring bool_values
                WARNING  modules.mqtt        subscribe_topic: topic 'Wechselrichter/version', source 'mqtt-2': Invalid bool_values specified ('['']') - Ignoring bool_values
                WARNING  modules.mqtt        subscribe_topic: topic 'Wechselrichter/mqtt', source 'mqtt-3': Invalid bool_values specified ('['']') - Ignoring bool_values
                WARNING  modules.mqtt        subscribe_topic: topic 'Wechselrichter/total/YieldTotal', source 'mqtt-4': Invalid bool_values specified ('['']') - Ignoring bool_values
                WARNING  modules.mqtt        subscribe_topic: topic 'shellypro3em/online', source 'mqtt-5': Invalid bool_values specified ('['']') - Ignoring bool_values
                WARNING  modules.mqtt        subscribe_topic: topic 'shellypro3em/online', source 'mqtt-8': Invalid bool_values specified ('['']') - Ignoring bool_values
                ERROR    modules.mqtt        _on_log: Caught exception in on_message: 'ip'
                WARNING  modules.mqtt        subscribe_topic: topic 'shellypro3em/status/emdata:0', source 'mqtt-6': Invalid bool_values specified ('['']') - Ignoring bool_values
                WARNING  modules.mqtt        subscribe_topic: topic 'shellypro3em/status/emdata:0', source 'mqtt-10': Invalid bool_values specified ('['']') - Ignoring bool_values
                WARNING  modules.mqtt        subscribe_topic: topic 'shellypro3em/status/emdata:0', source 'mqtt-11': Invalid bool_values specified ('['']') - Ignoring bool_values
                WARNING  modules.mqtt        subscribe_topic: topic 'shellypro3em/events/rpc', source 'mqtt-7': Invalid bool_values specified ('['']') - Ignoring bool_values
                WARNING  modules.mqtt        subscribe_topic: topic 'shellypro3em/status/emdata:0/total_act', source 'mqtt-9': Invalid bool_values specified ('['']') - Ignoring bool_values
                WARNING  modules.mqtt        subscribe_topic: topic 'shellypro3em/status/em:0', source 'mqtt-12': Invalid bool_values specified ('['']') - Ignoring bool_values​
                Die würd ich auch gerne wegbekommen. Muss aber ein anderes Problem sein, da auch das Wechselrichter-Topic auftaucht und von dort bekomm ich Werte rein.
                cu Yfkt5A
                DALI(ABB DG/S1.1), KODI Odroid, TrueNAS, Zehnder ComfoAir 200 L Luxe
                microk8s-Cluster: HomeAssistant, MusicAssistant, mosquitto, TVHeadend, jellyfin

                Kommentar


                  #9
                  Anscheinend funkt das Shelly-Plugin da rein... draufgekommen bin ich über diese Fehlermeldung:
                  Code:
                  ERROR modules.mqtt _on_log: Caught exception in on_message: 'ip'
                  und diesen Beitrag den ich damit gefunden habe:
                  https://knx-user-forum.de/forum/supportforen/smarthome-py/1089334-neues-mqtt-plugin?p=1874487#post1874487

                  ​Darauf habe ich das Shelly-Plugin deaktiviert und nun läufts


                  Bis auf die Meldungen
                  Code:
                  Invalid bool_values specified ('['']') - Ignoring bool_values​
                  die für jedes abonnierte Topic einmalig geloggt wird... Wie bekomm ich die noch weg?
                  cu Yfkt5A
                  DALI(ABB DG/S1.1), KODI Odroid, TrueNAS, Zehnder ComfoAir 200 L Luxe
                  microk8s-Cluster: HomeAssistant, MusicAssistant, mosquitto, TVHeadend, jellyfin

                  Kommentar


                    #10
                    Kann ich nicht sagen, die Meldung kommt bei mir nicht.
                    Dafür habe ich jetzt das richtige Write-Topic und die Payload gefunden und schon laufen meine PlusPlugS.

                    Kommentar


                      #11
                      Hier mal die Items für den Shelly Pro 3EM:
                      Code:
                      # shelly_pro_3em.yaml
                      
                      Shelly_Pro_3EM:
                          name: Shelly Pro 3EM 3-Kanal Energiemesser
                          
                          online:
                              name: Shelly Pro 3EM online
                              remark: Onlinestatus
                              type: bool
                              mqtt_topic_in: shellypro3em/online
                      
                          EMdata:
                              name: Topic EMdata
                              type: dict
                              mqtt_topic_in: shellypro3em/status/emdata:0
                              on_change:
                                - ..gesamt.Verbrauch = value['total_act']
                                - ..gesamt.Erzeugung = value['total_act_ret']
                                - ..PhaseC.Verbrauch = value['c_total_act_energy']
                                - ..PhaseC.Erzeugung = value['c_total_act_ret_energy']
                      
                          EM:
                              name: Topic EM
                              type: dict
                              mqtt_topic_in: shellypro3em/status/em:0
                              on_change:
                                - ..gesamt.Strom = value['total_current']
                                - ..gesamt.activepower = value['total_act_power']
                                - ..gesamt.apparentpower = value['total_aprt_power']
                                - ..PhaseC.Strom = value['c_current']
                                - ..PhaseC.Spannung = value['c_voltage']
                                - ..PhaseC.activepower = value['c_act_power']
                                - ..PhaseC.apparentpower = value['c_aprt_power']
                                - ..PhaseC.powerfactor = value['c_pf']
                                - ..PhaseC.Frequenz = value['c_freq']
                                - ..Neutral.Strom = value['n_current']
                      
                          gesamt:
                              name: Messungen gesamt
                              Verbrauch:
                                  name: Verbrauchszähler gesamt [Wh]
                                  remark: Gesamte Wirkenergie auf allen Phasen, Wh
                                  type: num
                              Erzeugung:
                                  name: Erzeugungszähler gesamt [Wh]
                                  remark: Gesamte rückgespeiste Wirkenergie auf allen Phasen, Wh
                                  type: num
                              Strom:
                                  name: Strom gesamt [A]
                                  remark: (Sum of the current on all phases [A])
                                  type: num
                              activepower:
                                  name: Wirkleistung gesamt [W]
                                  remark: (Sum of the active power on all phases  [W])
                                  type: num
                              apparentpower:
                                  name: Scheinleistung gesamt [VA]
                                  remark: (Sum of the apparent power on all phases  [VA])
                                  type: num
                          
                      #   // Indicates which phase was user calibrated                                     user_calibrated_phase
                      
                          PhaseC:
                              name: Messungen Phase C
                              Verbrauch:
                                  name: Verbrauchszähler Phase C [Wh]
                                  remark: Gesamtwirkenergie in Phase C, Wh
                                  type: num
                              Erzeugung:
                                  name: Erzeugungszähler Phase C [Wh]
                                  remark: Gesamte zurückgegebene Wirkenergie in Phase C, Wh
                                  type: num
                              Strom:
                                  name: Strom Phase C [A]
                                  remark: (Phase C current measurement value, [A])
                                  type: num
                              Spannung:
                                  name: Spannung Phase C [V]
                                  remark: (Phase C voltage measurement value, [V])
                                  type: num
                              activepower:
                                  name: Wirkleistung [W]
                                  remark: (Phase C active power measurement value, [W])
                                  type: num
                              apparentpower:
                                  name: Scheinleistung Phase C [VA]
                                  remark: (Phase C apparent power measurement value, [VA])
                                  type: num
                              powerfactor:
                                  name: power factor Phase C
                                  remark: (Phase C power factor measurement value)
                                  type: num
                              Frequenz:
                                  name: Frequenz Phase C
                                  remark: (Phase C network frequency measurement value)
                                  type: num
                      
                          Neutral:
                              name: Messungen Neutralleiter
                              Strom:
                                  name: Strom Neutralleiter [A]
                                  remark: (Neutral current measurement value, [A])
                                  type: num
                      - getestet mit SmartHomeNG 1.9.3
                      - Phase A + B müssen noch ergänzt werden
                      - Phase C deswegen, weil man zum Test nur eine Phase anschließt es nur mit C funktioniert

                      Code:
                      Invalid bool_values specified ('['']') - Ignoring bool_values​
                      Problem mit dieser Fehlermeldung besteht immer noch
                      cu Yfkt5A
                      DALI(ABB DG/S1.1), KODI Odroid, TrueNAS, Zehnder ComfoAir 200 L Luxe
                      microk8s-Cluster: HomeAssistant, MusicAssistant, mosquitto, TVHeadend, jellyfin

                      Kommentar

                      Lädt...
                      X