I have a KNX switch for a luminaire that turns on the power supply separately and the luminaire separately
how to realize this on Home Assistant, so that there is one switch that turns on both power and light and also I need a delay after the power supply for the command to turn on the luminaire to pass
Let’s say I control the luminaire in the following way
switch:
- name: “Power for main light”
address: “1/1/37”
state_address: “1/1/38”
How and where to connect everything into one switch and add a delay ?
Am I right to use the switch type for power on ? or can it be light or something else ?
Sorry for the delay, I couldn’t figure it all out at once.
I was unable to run the scripts from your example (I changed the names to my own, of course), but it ran like this
Template Switch I created in the visual editor and it works correctly, I also like to write everything in code but I can not find where to store its code, in which yaml file to look for it ?
With out see the code in the template switch it going to be hard to see what wrong
Off top of head think it could be the value_template that is what controls the switch weather it’s on /off