So I work at a turtle conservation center and I have installed Tasmota sensors in all of their tanks that monitor temperature. Initially, it was simple enough to just set the sensor as a specific turtle, but the turtles move a lot between tanks. The sensors are all listed as tanks like “tank 1”.
Essentially what I would like to do is create a “patient” and then be able to move him and then whichever tank he moves to, the temperature logs under him. Sort of like how a device works with entities connected to it. For example Crush is in “tank 1”, then the temperature logs to tank 1 and to Crush and then I move him to tank 2 and now the temperature logs to Crush and tank 2.
I hope it makes sense what I am trying to do, please let me know if it does. I have been trying to find creative ways to do this, but I have not been succeeding.
I’d probably make each turtle a template sensor. In the template look up what tank the turtle is currently in (maybe an input select per tank, Killer is in one, Claude is in two, make sure that when you move a turtle you always clear the tank he WAS in…) and just dupe over the sensors from the tank he’s currently in.
Yes, I’d also go the template sensor way. If you name the tank sensor entity id’s smart you can probably use an input helper to switch locations if you need it to be very dynamic. You can then use the input helper to determinte the entity id for the sensor.