So I have a number of smart plugs (Hue plugs to be precise). Every year I re-purpose these plugs to control the Christmas lighting, but the rest of the year they are re-used to control things like Air Fresheners or Fans.
I’m struggling to get my head around the logic of how to structure my setup so that I can easily choose (from a dropdown?) what the function of a smart plug is rather than having to continually delve into my automations to change the plug numbers around christmas and then again in january!!
I am imaging I can use a template sensor (or multiple thereof) of some kind to help me control what a smart plug is controlling but I dont know if you can template the actual entity id in a template or not or even if this is the correct way of thinking??!!
Thanks Bob but not really the answer I was looking for(!), I need to utilise what I have already rather than buying more to fix this issue. Thanks for the suggestion though
Maybe you could try to figure out somehow based on elapsed time and current used what is hooked up to those smart plugs.
But as someone already said I will also go with smart outlets. I’m gradually installing smart outlets and going to abandon smart plugs where ever is possible.
ok so lets assume im not going to buy smart outlets or more smart plugs, then what…
To give further info, I have around 8 smart plugs. Attached to those will be various changeable things from a list (xmas tree, air freshener 1, air freshener 2… etc)
I then have various automations that are currently based around a plug entity but my plan is to base my automations around the items in the list
To give a (very crude) example:
Current automation
** Turn on “Plug1” at 9am on 25th December
Planned automation
** Turn on “Xmas Tree” at 9am on 25th December
… where “Xmas Tree” will know to reference “Plug1” through some sort of templated entity (where I’ve chosen the use-case from a dropdown list)
I believe what you are trying to do will be very complex.
Perhaps not impossible, but since it will be a year between each reconfiguration then I would at least have forgotten most of how it’s set up and what to do.
I believe the best option is to create two automations one for most of the year and one for Christmas.
Then you buy a label machine and you print labels with what each plug is in your automations.
Like “air freshener 1 & Christmas tree”.
Unplug, read where it’s going and place it there then disable the normal automation and enable Christmas automation.
im wondering if something similar to this might work, where I create a new entity (template?) by adding the existing entity_id to the use_case selected to create a brand new entity that can then be automated upon
i wouldn’t know how to go about achieving this though