New: the AI firewall watches the whole platform and explains each incident in plain words. See how it works

Reply To: Rules based on time, temperature and sunset for the boiler and balcony light at home

Translated from Türkçe by AI ·

No flow is needed for this, the Rules card on the dashboard is made for exactly this. I did the same at home.First, create a site called “Home” in Sites & Assets, enter its latitude and longitude, and place the ESP32 there. Then add the Rules card to a dashboard and lock the card to that location. Rules:

1) When: A time of day, 06:30, Mon-Fri
   Then: Send a command -> esp32-ev, relay.set {"ch":1,"on":true}

2) When: salon_temp rises above 22, and stays so for 10 minutes
   Then: Send a command -> relay.set {"ch":1,"on":false}

3) When: salon_temp falls below 20
   Then: Send a command -> relay.set {"ch":1,"on":true}

4) When: Sunset, offset 0
   Then: relay.set {"ch":2,"on":true}
5) When: A time of day, 00:30, every day
   Then: relay.set {"ch":2,"on":false}

“rises above” triggers on the edge, so it runs once at the moment it goes above 22, not on every message. The gap between 22 and 20 also prevents the boiler from switching on and off constantly. Sunset needs the location of the place, otherwise it warns “Sunrise and sunset need this place’s location” when you save.When going on holiday, set the place’s Auto/Manual button to Manual; the rules then send nothing. Details: Rules card: triggers.

Sahadan selamlar.
Accepted solution♥ 6