I want to have a delay between services is it possilbe? If yes could you help me with this?
- platform: template
switches:
mr_light_1:
friendly_name: MR Light 1
value_template: >
{% if is_state('group.mainlightstat1', 'on') %}
true
{% else %}
false
{% endif %}
turn_on:
- service: switch.turn_on
data:
entity_id: switch.main_light
- service: light.turn_on
data:
entity_id:
- light.ty65243476600194fc3752
- light.ty65243476d8f15bca69a5
turn_off:
- service: light.turn_off
data:
entity_id:
- light.ty65243476600194fc3752
- light.ty65243476d8f15bca69a5
- service: switch.turn_off
data:
entity_id: switch.main_light
icon_template: mdi:lightbulb-group-outline
So there are 2 services for light.turn_on and switch.turn_on however I want to add delay between these two services. Is it possible? Any help would be great. Thanks