i want to make an automation with energy production sensor as an trigger.
When the energy production is increasing then it should trigger an automation.
How can i do that, i could only find status change but it updates every 30seconds without increasing, so i cannot use status change.
I tried the derivative sensor you suggested, but thats a certain rate of kwh, i only want to know if the energy production sensor increased with 1 kwh or 0.5 kwh or another value based on the production each hour.
if the energy production sensor updates but stays at the same value it should not trigger my automation.
the sensor updates each 30 seconds. The purpose is to enable an boiler to heat up when the energy production is starting to increase at a certain value of kwh. below an example of the energy production sensor of tarif 1.
Do someone know?
I tried the trigger_state_from and trigger_state _to but the trigger gets triggered each 30seconds when the sensor updates but the value is the same. I only want it to trigger when the value increase.
For example when the energy sensor is at this moment 868.743 kwh. After the next sensorupdate the value is changed into 869.345 kwh it should trigger the automation. When the value is 868.743 kwh and after the next sensor update it’s still 868.743 kwh it should NOT trigger the automation.
The automation below ought to work without the condition due to the inclusion of not_from (see the docs: if it’s triggering with the same state, it must be an attribute that’s changing), but include it if it’s needed: