hello
i purposely have not posted a config here because i seek.to elicit best practice rather than critique.
so
i have a 5x smart 240V mains sockets from MiHome and running client software on a pi that includes a mqtt broker.
i have the HA mqtt integration successfully connected to it. ml
my yaml is configured two interface with topics as switches with payloads 'on" and “off” unsurprisingly. anyway it all works
now, the sockets have various purposes and will turn on lights, or a outside water sprayer for the garden, or a heater.
question is…
id like to define “actual” entities that relfect what the sockets are switching, so, light, pump, heater. and i can swap sockets around the home but the “actual” entity is what i turn on and off … so some way of mapping a light to a socket ,a pump to a socket.
how do i do this in general as a concept please…ill. figure out the specifics but i dont know the approach to take
thank you