You have to repeat same code for all devices.
Can create a decluttering card to reuse a code.
In case you had a clear relation between a switch & device_tracker - you could use auto-entities (google it). But it could be difficult for you.
You have to repeat same code for all devices.
Can create a decluttering card to reuse a code.
In case you had a clear relation between a switch & device_tracker - you could use auto-entities (google it). But it could be difficult for you.