Hi, i have some lighst, and i notice a difference between the toggle vs on/off function
if i turn off a light, i can turn it on directly after it, and visa versa
if i toggle a light, i can only toggle it again after about 5-10 sec
is this normal behaviour?
when i try it with a switch, its instant, only with my lights
below my code, i have a sensor, that gets the states of the light, every 30 sec
i also do a second service when i turn on/off a light, this service is to change the icon of the light instantly, so i dont have to wait 30 secs, before the icons turns on/off
so when using the service light.on or light.off it seems HA knows thats its on/off
when i use the light.toggle service, also the icon changes instantly, but seems its still waiting for the sensor value
- platform: template
lights:
keukeneiland:
friendly_name: "Keuken Eiland"
value_template: "{{ states.sensor.prog.state[12:14] == '01' }}"
turn_on:
- service: shell_command.dobiss
data_template:
module: 41
id: 04
power: 01
- service: shell_command.dobiss_state
data_template:
power: "on"
name: "Keuken Eiland"
icon: "mdi:lightbulb-on"
api: "light.keukeneiland"
turn_off:
- service: shell_command.dobiss
data_template:
module: 41
id: 04
power: 00
- service: shell_command.dobiss_state
data_template:
power: "off"
name: "Keuken Eiland"
icon: "mdi:lightbulb-on"
api: "light.keukeneiland"
any idea?