Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 103101

Configure automation at sunset/sunrise with +/- random delay (+/-15 minutes) + delay between actions

$
0
0

Hello,

I’m new here, I’ve migrating from my current domoticz setup to home assistant.
I’d like to get everything working the same as with domoticz.

Here’s what I’d like :
(1) I’d like to close my roller shutters at sunset (with a +/- 15 minutes random delay)
(2) I’d like to setup a delay between all those shutters (to simulate a human walking to the buttons and pushing them)

Apparently it’s not possible with th GUI which is fine, I’ve read that it could work by adding some manual code… but I don’t know to which files or how to access them…

I thinck part (1) should work as following

  • event at sunset
  • offset -15min
  • delay random 0-30 min

so something like :

 - event: sunset
    platform: sun
    offset: -00:15:00

[...]

- delay:  "{{ '00:%02i:00'%range(01,30) | random }}"

but in which file ? and how to access the file ?

part (2) - delay between actions in an automation - , honestly no idea so looking for help/pointers here

Thanks in advance :slight_smile:

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 103101

Trending Articles



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