DSC battery 0/1: Empty or OK? #2195
-
I have a bunch of DSC EW-DW4975 contact sensors. If I find this information:
What does Battery=1 mean? That the battery is GOOD or EMPTY? When using mqtt, this translates to a field "battery_ok" from which I would infer battery=1 means GOOD. On the other hand, for a battery sensor in HomeAssistant, battery=1 means EMPTY, so I have to invert the bit in the config:
Interestingly I notice that sometimes devices go offline (become unavailable) even though Battery: 1 ... and sometimes they stay open even though they are closed (indicating that they did not send a message). So maybe battery=0 means GOOD and battery=1 means EMPTY? Hence I want to confirm what the exact meaning of this bit is. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
All reported battery values are "battery_ok" with values 0 – 1. https://triq.org/rtl_433/DATA_FORMAT.html#common-device-data |
Beta Was this translation helpful? Give feedback.
-
My discover (rtl_433(Next)) log looks the same as yours but my MQTT broker doesn't want to display the status, "closed:". Would you mind sharing some of your configuration? |
Beta Was this translation helpful? Give feedback.
All reported battery values are "battery_ok" with values 0 – 1. https://triq.org/rtl_433/DATA_FORMAT.html#common-device-data
Some devices report more fine grained steps. Best to map this to a percentage of "battery level", e.g. x100 for percentage full.