Open viprapp opened 7 months ago
For anyone else that has this problem.
{% set entities = [states('binary_sensor.sensor1'), states('binary_sensor.sensor2')] %}
{% if entities | select('equalto', 'off') | list | count == entities | count %}
off
{% else %}
on
{% endif %}
This will set the contact sensor state to "open" if any of the sensors are open or unavailable. Per design this will also combine multiple sensors to one. Simply remove one sensor from the set to get the functionality for one sensor only.
Issue Report: Better Thermostat Unavailability with Window Sensors
📝 Description
Problem Overview: When a window sensor connected to the Better Thermostat is marked as offline or unavailable, the entire thermostat system becomes non-operational. This presents a significant issue since window sensors, typically powered by batteries, may occasionally lose connectivity.
Why It Matters:
🔄 Steps to Reproduce
To encounter this issue, follow these steps:
Expected Behavior
🟢 Operational Thermostat: Despite the window sensor's status, the thermostat should remain functional and fully available within Home Assistant.
Actual Behavior
🔴 Total Unavailability: The thermostat, along with all its entities, becomes unavailable when the connected window sensor goes offline.
📊 Versions
For further assistance or to report similar issues, please reach out to the Better Thermostat support team or consult the Home Assistant Community. 🛠️