Closed AaronLionsheep closed 3 years ago
The Shelly Uni supplies the input voltage on the /info topic with the following data:
/info
{ "wifi_sta": { "connected": true, "ssid": "Highsteads_AC", "ip": "192.168.100.235", "rssi": -41 }, "cloud": { "enabled": false, "connected": false }, "mqtt": { "connected": true }, "time": "20:27", "unixtime": 1614889637, "serial": 32, "has_update": false, "mac": "483FDA6EAD20", "cfg_changed_cnt": 9, "actions_stats": { "skipped": 0 }, "relays": [ { "ison": false, "has_timer": false, "timer_started": 0, "timer_duration": 0, "timer_remaining": 0, "source": "mqtt" }, { "ison": false, "has_timer": false, "timer_started": 0, "timer_duration": 0, "timer_remaining": 0, "source": "mqtt" } ], "inputs": [ { "input": 0 }, { "input": 0 } ], "adcs": [ { "voltage": 12.13 } ], "ext_sensors": {}, "ext_temperature": {}, "ext_humidity": {}, "update": { "status": "idle", "has_update": false, "new_version": "20201124-093042/v1.9.0@57ac4ad8", "old_version": "20201124-093042/v1.9.0@57ac4ad8" }, "ram_total": 49944, "ram_free": 34516, "fs_size": 233681, "fs_free": 140058, "uptime": 3497 }
The data should be accessible through: payload['adcs'][0]['voltage'].
payload['adcs'][0]['voltage']
The Shelly Uni supplies the input voltage on the
/info
topic with the following data:The data should be accessible through:
payload['adcs'][0]['voltage']
.