Quantcast
Channel: ESPHome - Home Assistant Community
Viewing all articles
Browse latest Browse all 1486

Dynamic update interval

$
0
0

@C0UNT3RP01NT wrote:

So I’m trying to develop an automated gardening system. I’m using ESPHome and so far so good until now. I’ve got a moisture sensor and a solenoid valve controlled by a relay on two separate ESP’s, I’ve got the automation through Hassio working correctly. Basically when the value of the moisture level falls below a certain level, the solenoid valve opens which then rewaters the whole system, and then when the moisture level gets above a certain level it shuts.

This is automated via the ‘update_interval:’ Hassio receives for the automation to work. However, I don’t need to update/publish/receive the reading every 10s when it’s freshly watered, however I cannot afford to check it every 30 minutes when it’s dry.

How could I create a dynamic update interval differs dependent on the value the sensor receives.

I’m pretty darn new at this, so I may using the ‘update_interval:’ line in an improper fashion.

Thanks!

C

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 1486

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>