Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better Thermostat Unavailability with Window Sensors #1333

Open
viprapp opened this issue Apr 13, 2024 · 1 comment
Open

Better Thermostat Unavailability with Window Sensors #1333

viprapp opened this issue Apr 13, 2024 · 1 comment
Assignees
Labels
new bug incoming bug issue

Comments

@viprapp
Copy link

viprapp commented Apr 13, 2024

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:

  • Reliability: The thermostat becomes completely unusable in scenarios where a window sensor goes offline.
  • Functionality: This dependency on the window sensor's status undermines the usability of the Better Thermostat system in environments where window sensors are crucial for energy efficiency.

🔄 Steps to Reproduce

To encounter this issue, follow these steps:

  1. Integration Setup: Add a new thermostat via the Better Thermostat integration in Home Assistant.
  2. Sensor Configuration: Configure the thermostat to utilize a window sensor.
  3. Sensor Status: Observe the behavior when the window sensor goes offline.

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

  • Better Thermostat: v1.5.0
  • Home Assistant: 2024.4.2 (Docker installation)
  • Hardware Affected:
    • 2x Sonoff TRVZB (Firmware: 1.1.5)
    • 2x IKEA PARASOLL Door/Window Sensor (Firmware: 1.0.19)
  • Software: Z2M 1.36.1-1

For further assistance or to report similar issues, please reach out to the Better Thermostat support team or consult the Home Assistant Community. 🛠️

@viprapp viprapp added the new bug incoming bug issue label Apr 13, 2024
@viprapp
Copy link
Author

viprapp commented Apr 14, 2024

Workaround

For anyone else that has this problem.

  • Use a template sensor that always returns a valid state as a workaround.
{% 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new bug incoming bug issue
Projects
None yet
Development

No branches or pull requests

2 participants