I want to make trend sensors for temperature and humidity in my house. I noticed that Netatmo offers non binary sensors that output up, down or stable. But I cannot find the settings behind this.
I want to recreate those sensors for my Aqara temperature sensors. But I don’t have an idea how to do this. The Trend integrations creates a binary sensor (and therefore there is no stable option).
What you do is creating an extra sensor that replaces the two binary sensors with a template sensor that can have three states: Rising, Falling or Stable.
The state depends on the states of the two binary sensors.
{% if is_state('binary_sensor.temp_rising', 'on') %}
Rising
So if the binary_sensor.temp_rising is on the state will be Rising. Etc.
So this template sensor is not a binary sensor. You could call it a “triple” sensor.
“My” trend sensors are just the ones from the Home Assistant Trend integration doc.
There are a lot of configuration options to play with to adapt them to your specific sensors, but I bed that this can give you a very reliable output.