How do i get the gradient value of a trend sensor as a reading?

Hello there,

Im trying to get a sensorreading wich shows me the gradient value of a trend sensor. A normal binary trend sensor gives me only the states on/off but i want the exact gradient reading as a sensor value. Is there any way go get such a value-sensor?

thanks in advance

I’m assuming by “gradient” you mean direction of the trend. If so look at the derivative sensor.

you can know the direction by looking at the sign of the value. It will also tell you how fast the measured sensor is changing.

That was exactly what i was looking for, thanks.
Also i just realised that its possible to use the Value of the Gradient Attribute in the Trend-Sensors directly for automations.

Both approaches do work.

1 Like