deconz-community / node-red-contrib-deconz

Node-Red Nodes for deCONZ connectivity.
GNU General Public License v3.0
81 stars 16 forks source link

Battery Homekit status issue #212

Closed Nazarbayevv closed 1 year ago

Nazarbayevv commented 1 year ago

Current Behavior

node-red-contrib-deconz v2.3.3

image

image

I don't see battery value from homekit outputs. From output config type I can see battery status and outher values:

{"battery":100,"offset":0,"on":true,"reachable":true}

Expected Behavior

No response

Steps To Reproduce

No response

Example flow

paste your flow here

[{"id":"7d83f01ae41e232f","type":"tab","label":"Flow 1","disabled":false,"info":"","env":[]},{"id":"3c475a812a54efbf","type":"debug","z":"7d83f01ae41e232f","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":1070,"y":260,"wires":[]},{"id":"a08478a1562797de","type":"deconz-battery","z":"7d83f01ae41e232f","name":"","topic":"","config_version":2,"server":"da76db0b.163948","statustext":"","statustext_type":"auto","search_type":"device","device_list":["sensors/uniqueid/00:15:8d:00:07:d3:a5:0a-01-0402"],"device_name":"","query":"{}","outputs":2,"output_rules":[{"type":"config","format":"single","onstart":true,"uniqueId":"ui-id-51"},{"type":"homekit","format":"single","onstart":true,"uniqueId":"ui-id-52"}],"x":860,"y":280,"wires":[["3c475a812a54efbf"],["b8ccf42b955f5ac1"]]},{"id":"b8ccf42b955f5ac1","type":"debug","z":"7d83f01ae41e232f","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":1070,"y":300,"wires":[]},{"id":"da76db0b.163948","type":"deconz-server","name":"Deconz","config_version":1,"ip":"192.168.88.9","port":"80","ws_port":"443","secure":false,"polling":"15"}]

Environment

Zehir commented 1 year ago

The automatic payload for HomeKit don't include battery by default, did you see the BatteryLevel option in the select ?

Zehir commented 1 year ago

Is is ok for you @Nazarbayevv ?

Nazarbayevv commented 1 year ago

Hello, for chack battery lavel I use this one: image

And all my nodes, befor global migration to new deconz version, show battery status for HomeKit correctly?

Where should I find BatteryLevel option?

Zehir commented 1 year ago

You can find it in the output configuration image

Nazarbayevv commented 1 year ago

Yes, I received BetteryLevel from "in" node. Previously, I used bettery node for this. What is role of Battery node nowadays?

Zehir commented 1 year ago

None, battery node is keept for legacy reason. It's may be deprecated soon

Nazarbayevv commented 1 year ago

Ok. I close issue.

Thanks for support