I have a Yeelight YLKG12YL switch with a mode switched to smart mode and zigbee bulb added to DeConz and I would like to make automation to once turn the switch on and once off.
Smart mode in Yeelight YLKG12YL does that the lamp is connected all the time on the L line, and when clicked cuts the L line - in Home Assistant changes the state of the bulb as turn_off
for a while.
How to make automation to: turn on once, ant turn off once the light bulb with the physical switch YLKG12YL?