% Change Automation

Hi There.

Im using the Gearbest sensor and I would like to do a % change automation to notify me if the prices have dropped 10% or more. Can anyone help me figure out how to measure that?

If you mean 10% in 24hrs, I would set the stat sensor up to read the price as integer and use 24 hrs as period and low and high as the trigger.

Brilliant! Thank you! Ill give that one a go.

Im not sure how to pull a percentage change from that? If im understanding it correctly that would just give me an average of that sensor.

I was thinking a trigger like

if the high price > 1.1 times low price

or create a new % gain in 24hr template sensor

high price / low price

or

price / low price

I noticed today that the stat sensor add “change” and “ave change” to the attributes which might work for price increase calculations.

Thanks Rob, Ill be playing around with it this weekend and give your suggestions a go.