I have some WiFi bulbs that are not very responsive. In the Yeelight app, I do need to press the ON (or OFF ) multiple times before the command is executed.
How should I reflect this in my automation? Repeating the command. or?
- alias: "Garden North ON"
initial_state: 'on'
trigger:
- platform: numeric_state
entity_id: sun.sun
value_template: "{{ state.attributes.elevation }}"
# Can be a positive or negative number
below: -4.0
action:
- service: light.turn_on
entity_id: light.garden_north_one
- delay: '00:00:01'
- service: light.turn_on
entity_id: light.garden_north_two
########## repeat command on
- delay: '00:00:10'
- service: light.turn_on
entity_id: light.garden_north_one
- delay: '00:00:01'
- service: light.turn_on
entity_id: light.garden_north_two
#################
- alias: "Garden North OFF"
initial_state: 'on'
trigger:
- platform: numeric_state
entity_id: sun.sun
value_template: "{{ state.attributes.elevation }}"
# Can be a positive or negative number
above: -4.0
action:
- service: light.turn_off
entity_id: light.garden_north_one
- delay: '00:00:01'
- service: light.turn_off
entity_id: light.garden_north_two
- delay: '00:00:10'
############# repeat command off
- service: light.turn_off
entity_id: light.garden_north_one
- delay: '00:00:01'
- service: light.turn_off
entity_id: light.garden_north_two
############