Moin,
wenn ich das richtig sehe, dann schickt ein Shelly Plus 1PM "nur" den Timestamp, Schaltzustand, die durchschnittliche Energie (aenergy) per MQTT raus?!
{"src":"shellyplus1pm-xxxxxxxxxxxx","dst":"Pumpe1/events","method":"NotifyStatus","params":{"ts":1652534701.92,"switch:0":{"id":0,"aenergy":{"by_minute":[16114.056,9709.834,0.000],"minute_ts":1652534699,"total":25.824}}}}
Per Statusabfrage http://192.168.178.22/rpc/Shelly.GetStatus bekommt man aber deutlich mehr Informationen:
{
"ble": {},
"cloud": {
"connected": false
},
"input:0": {
"id": 0,
"state": null
},
"mqtt": {
"connected": true
},
"switch:0": {
"id": 0,
"source": "button",
"output": true,
"apower": 958.6,
"voltage": 221.0,
"current": 4.897,
"aenergy": {
"total": 444.846,
"by_minute": [2132.617, 15966.060, 15945.943],
"minute_ts": 1652533926
},
"temperature": {
"tC": 58.8,
"tF": 137.9
}
},
"sys": {
"mac": "xxxxxxxxxxxx",
"restart_required": false,
"time": "15:12",
"unixtime": 1652533930,
"uptime": 2126,
"ram_size": 254868,
"ram_free": 155892,
"fs_size": 458752,
"fs_free": 221184,
"cfg_rev": 18,
"available_updates": {
"beta": {
"version": "0.10.2-beta1"
}
}
},
"wifi": {
"sta_ip": "192.168.178.22",
"status": "got ip",
"ssid": "xxxx",
"rssi": -48
}
}
Jetzt ist die Frage:
Wie kriege ich Power, Voltage, Current, Temperature, etc per MQTT versendet?
Vielen Dank und beste Grüße,
Chris