Battery level of device over JSON

Everything about esp8266 and more.

Moderator: leecollings

Post Reply
svd71
Posts: 6
Joined: Saturday 09 January 2021 17:58
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Battery level of device over JSON

Post by svd71 »

Hi,

The JSON is case sensitive for filed 'Battery'. For example send I the battery status:

Code: Select all

{"idx":8,"name":"IOT10241072","svalue":"21.0;50.7;0;986.5;0","nvalue":0,"battery":71}
and Domoticz ignored it. But worked perfect follows JCODE:

Code: Select all

{"idx":8,"name":"IOT10241072","svalue":"21.0;50.7;0;986.5;0","nvalue":0,"Battery":71}
It is a bug or feature?

PS: Domoticz V2020.2 on "Bionic".
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests