I have two switches that I always use together, and was wondering if it’s possible to make a custom entity that is both switches together?
Yes. Use a group and switch the group.
For lights there is a special ‘light group’ that exposes the other attributes as well (brightness, colour, etc…), but as you have switches the standard group is all you need.
1 Like
Perfect, that’s just what I was looking for. Would control it by:
group.turn_on
group.turn_off
I don’t think those services exist. You would use:
homeassistant.turn_on
and
homeassistant.turn_off
1 Like
Great, I’ll give it a try. Thanks
If the group only contains switches I’m pretty sure you can use the switch services as well:
switch.turn_on
switch.turn_off
It would be safer to use the homeassistant service though.
1 Like