Hallo zusammen,
die neuen Plug S von Shelly schicken nun eine JSON...
Kann man das ändern oder kann ich das in FHEM vernünftig umwandeln?
Shelly Alt
Shelly Alt.PNG
defmod Shelly.Plug.S MQTT_DEVICE
attr Shelly.Plug.S DbLogExclude .*
attr Shelly.Plug.S publishSet on off shellies/ID001/relay/0/command
attr Shelly.Plug.S subscribeReading_Online shellies/ID001/online
attr Shelly.Plug.S subscribeReading_state shellies/ID001/relay/0
attr Shelly.Plug.S webCmd on:off
setstate Shelly.Plug.S off
setstate Shelly.Plug.S 2023-03-24 23:42:06 Count 94
setstate Shelly.Plug.S 2023-03-24 23:38:36 Energy 52
setstate Shelly.Plug.S 2023-10-12 12:05:30 IODev Mosquitto
setstate Shelly.Plug.S 2023-10-12 12:18:49 Online true
setstate Shelly.Plug.S 2023-10-12 12:56:11 state off
setstate Shelly.Plug.S 2023-10-12 12:56:11 transmission-state incoming publish received
Shelly Neu
Shelly Neu.PNG
Hier habe ich noch nichts angelegt weil das erst durch "expandJSON" muss und dann das ein oder andere Reading umbenannt werden muss.
z.B. output:true/false zu state:on/off
Hoffe man kann das "einfach" umwandeln lassen.
Danke
Grüße
Gear
Zitatdefmod Shelly.Plug.S MQTT_DEVICE
Selbst schuld.
Danke für die Hilfe :)
Fuer die "Nachwelt": MQTT2_DEVICE dekodiert JSON automatisch, und ist generell Einsteigerfreundlicher als MQTT_DEVICE.
Ich hatte bis dato noch nie was von MQTT2_DEVICE gehört.
Nutze seit damals MQTT_DEVICE, da der Broker auch wegen adneren Sachen läuft. :)
Dann muss ich mich mal mit MQTT2_DEVICE auseinandersetzen.
Grüße
Gear