#Device quick swap

1 messages · Page 1 of 1 (latest)

ancient briar
#

I have a bunch of automations using the same device. While the device itself stays the same the switch controlling it changes quit often. I heard in some video that I can use service calls in some way so I will only have to change one thing to get all automations up and running again using the new switch.

ancient briar
#

should i "simply" create a helper for each real "hot-plugable" device i have?

austere thorn
#

It's difficult to understand what you mean, but have you looked at blueprints?

ancient briar
# austere thorn 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
dense token
#

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.

ancient briar