Window sensor states
Better Thermostat expects the configured window sensor to behave like a binary sensor:
on,trueoropen— window is open, heating pausesoff,falseorclosed— window is closed, heating resumesunknownorunavailable— Better Thermostat assumes the window is open as a precaution
If the sensor reports anything else, Better Thermostat raises an invalid window sensor state repair issue and ignores the state change.
Common causes
- The configured entity is not a binary sensor — for example a numeric
sensor, an input helper with custom values, or a template that returns
something other than
on/off. - A group helper that aggregates non-binary entities.
How to fix it
-
Check the sensor’s actual state under Developer tools → States.
-
Use a
binary_sensor(device classwindow/door/opening), or a group of binary sensors:group:livingroom_windows:name: Livingroom Windowsicon: mdi:window-open-variantall: falseentities:- binary_sensor.openclose_1- binary_sensor.openclose_2 -
If you template your own sensor, make sure it only ever renders
onoroff.