This object is in archive! 
Battery level through MQTT
Answered
Hi
is it possible to catch battery level information of devices through MQTT API for Zipabox?
No connection
Real-time notifications may not work
Hi
it is possible to get it through API calls request/devices/UUID/info and request/devices/{uuid}/status. Its response body is as follows:
"state":
{ "batteryTimestamp": "2020-04-21T14:53:37Z",
"sentTimestamp": "2020-04-22T09:56:57Z",
"online": true,
"trouble": false,
"receiveTimestamp": "2020-04-22T09:56:57Z",
"transactionId": "0eedffcf-ffc1-4340-bbb0-867f07498304",
"onlineState": "ONLINE",
"timestamp": "2020-04-22T13:25:05Z",
"batteryLevel": 89,
"mainsPower": false }
Hi
it is possible to get it through API calls request/devices/UUID/info and request/devices/{uuid}/status. Its response body is as follows:
"state":
{ "batteryTimestamp": "2020-04-21T14:53:37Z",
"sentTimestamp": "2020-04-22T09:56:57Z",
"online": true,
"trouble": false,
"receiveTimestamp": "2020-04-22T09:56:57Z",
"transactionId": "0eedffcf-ffc1-4340-bbb0-867f07498304",
"onlineState": "ONLINE",
"timestamp": "2020-04-22T13:25:05Z",
"batteryLevel": 89,
"mainsPower": false }
Hi Dino
Can you explain more ? Which request to send in MQTT for obtain battery level ?
Actually I receive MQTT info from all my devices with topic : /attributes/UUID/value{value} and I can send commands with topic : /request/attributes/UUID/value
Thanks for your help
Hi Dino
Can you explain more ? Which request to send in MQTT for obtain battery level ?
Actually I receive MQTT info from all my devices with topic : /attributes/UUID/value{value} and I can send commands with topic : /request/attributes/UUID/value
Thanks for your help
Hi
please find in the attachment the lastest MQTT documentation (v2.9) where under Device topics (pages 23 & 24) you can find part about retreving device data.
Regarding battery level data, it will be published when its value is changed.
Hi
please find in the attachment the lastest MQTT documentation (v2.9) where under Device topics (pages 23 & 24) you can find part about retreving device data.
Regarding battery level data, it will be published when its value is changed.
Hi
here is attached updated MQTT documentation - version 3.1.
Hi
here is attached updated MQTT documentation - version 3.1.
Replies have been locked on this page!