#Device quick swap
1 messages · Page 1 of 1 (latest)
should i "simply" create a helper for each real "hot-plugable" device i have?
It's difficult to understand what you mean, but have you looked at blueprints?
sorry for the late resposen, i know i formulated this quit bad what im trying to do is to: have a "thing" with the name of the device its controlling which i will be using in my automations and such going on. I can then assign the new switch/smart plug to this "thing" so i dont have to change it in all automations.
this could be done using helpers, but i cant be bothered making a helper for all devices in my house, thats why im asking for help here - to find a better solution
heres a "map" of what im trying to do:
# HA -> Switch(this changes) -> Helper(Device) -> Device
Just use entity_ids in your automations rather than device IDs. When you change devices, just assign the appropriate entity_id to the entity provided by the new device and your automations will work with the new device. Assuming of course that the old and new devices have the same capabilities.
I do find it is best practice to avoid referencing the device in automations. The actions and options available via the device are also sometimes significantly more limited than what you can set by using the actions directly.
exactly what i wanted! thanks mate