Hi,
I’ve got a soil moisture sensor (sensor.soil_moisture) which sends the moisture value (%) via MQTT every minute. Is it possible to create some kind of a counter that will show how many % soil moisture dropped during the last 24 hours (or every 6, 12 hours etc.)?
For example: day 1 at 8AM soil moisture was 50%, day 2 at 8AM soil moisture was 45% - I want the counter to show something like “Decrease 5% in last 24 hours”.
Can someone point me in the right direction how to achieve this?