@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