When I add my binary sensors (for instance binary_sensor.front_door_keypad_battery), the state_map config does not map the on/off values to 100/0% as desired.
How to reproduce
See config below. Note that these sensors are reported as "?" rather than 100/0. See the screenshot.
I tried various "from" states: plain off/on, 0/1, "off"/"on", "Off"/"On"... nothing triggers. From the debug state it looks like "off" should work.
Expected behavior
Batteries should show up as 100% or 0% according to off/on state of sensor.
Describe the bug
When I add my binary sensors (for instance
binary_sensor.front_door_keypad_battery
), thestate_map
config does not map the on/off values to 100/0% as desired.How to reproduce See config below. Note that these sensors are reported as "?" rather than 100/0. See the screenshot.
I tried various "from" states: plain off/on, 0/1, "off"/"on", "Off"/"On"... nothing triggers. From the debug state it looks like "off" should work.
Expected behavior Batteries should show up as 100% or 0% according to off/on state of sensor.
YAML configuration
Entity debug data
Dev console errors None
Screenshots
Version Latest, 3.2.1