Hi all - I think I am making a stupid mistake, but I can’t get my head around it. I have a Zigbee temperature sensor with entity name: sensor.temp005_temperature. It provides regular temperate updates in degrees Celcius with two decimals. I can see the historic temperature which confirms that HA is getting regular updates (once every 1-3 minutes). Temperature is always (slightly) different, which is what I am expecting. No issues here.
In my Configuration.yaml, I have added the following code to create two binary sensors. One to be ‘true / on’ if temperature is rising, and one to be true / on in case temperature is declining.
You are comparing the same states, that won’t work…they will always be identical.
I think you should store the value in f.e. a helper, when the value changes and check that helper versus the actual sensor value, to see if it increased or decreased
If you really want/need something to compare each state change to the last, you could do it with a trigger-based Template sensor, but I would go for the one of the built-in statistics integrations above.
Eager to set up the Trend ‘helper’, another stupid question. I am running the latest home assistant version, yet I can’t get this helper/ integration to be installed.
Click on the button ‘add integration to my HA’, and
followed the manual steps to select Trend from the list of Helpers.
Both do not work:
gives an error that it cannot find the helper and that I should use the latest version of HA (I am using 2023.12.4 for Core and 11.2 for Operating System)
when manually installing, I cannot find the Trend helper in the list shown.