Please use code tags. Read How to help us help you - or How to ask a good question - Configuration - Home Assistant Community (home-assistant.io)
You need an automation to do that. How will you be controlling the switch entities?
Please use code tags. Read How to help us help you - or How to ask a good question - Configuration - Home Assistant Community (home-assistant.io)
You need an automation to do that. How will you be controlling the switch entities?