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

Random for cover and lights

$
0
0

@Griesi wrote:

Hello all,

how should I do my automation to use my script? Or any other solution to do this? The entity_id should come from a group like group.light_floor_1 or group.cover_floor_1

  light_random_on_test:
    sequence:
      - delay: "00:00:{{ range(3, 15) | random }}"
      - service: light.turn_on
        data_template:
          entity_id: "{{ eid }}"
          
  cover_random_down_test:
    sequence:
      - delay: "00:00:{{ range(5, 25) | random }}"
      - service: cover.set_cover_position
        data_template:
          entity_id: "{{ eid }}"
          position: "{{ range(10, 23) | random }}"

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 95483

Trending Articles



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