-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
use sensor battery status to give to homekit #26
Comments
I have no sensor device to test with and I don't know the format of the getSensorInfo response so I wouldn't know how to implement that, although it should be quite simple yes: something along the lines:
|
Does this help ? ;-) devices/list: device/info: sensor/info: sensors/list: |
From the API
with no batteryinfo:
{"id":"9044149","name":"Garage inne","lastUpdated":1478118807,"ignored":0,"client":"130828","clientName":"Torodd1","online":"1","editable":1,"battery":254,"keepHistory":0,"protocol":"fineoffset","model":"temperaturehumidity","sensorId":"231"}
with battery OK
{"id":"7877912","name":"Utetemp norrsida","lastUpdated":1478118860,"ignored":0,"client":"130828","clientName":"Torodd1","online":"1","editable":1,"battery":253,"keepHistory":0,"protocol":"oregon","model":"EA4C","sensorId":"130"},
in homekit set StatusLowBattery = 0
and with "battery":255
set StatusLowBattery = 1
Otherwise with 0-100 % use set low battery at maybe 5% ?
(because the temperaturesensor in homekit don't support percentage, only ok or low battery)
The text was updated successfully, but these errors were encountered: