Create an on\off switch where on call one action and off calls another

Hi

I’ve installed Home Assistant and added my Philips Dynalite device to it, which added all devices and entities allowing me to control my house.

I noticed that some actions in Dynalite has a separate device for the On action and a separate one for the Off action.

So if I want to turn on the boiler, there are two separates devices for that.

How can I create a simple On\Off switch in the dashboard where On turns on one device and Off turns off another device ?

You seem to mean Template Switch - Home Assistant

There is also an example you can use for.

2 Likes