Hi community,
I seem to be adding more and more things to MQTT and that is a good thing.
But so far I have just taken the topics as they were defined by whatever I added:
Sonoff Tasmota:
- platform: mqtt
name: "Ensuite Fan"
command_topic: "cmnd/sonoff_ensuite_fan/power"
state_topic: "stat/sonoff_ensuite_fan/POWER"
Battery Sensors:
homeassistant/sensor/
BRUH LED Lights:
- platform: mqtt
name: "Holiday Lights"
command_topic: "bruh/mqttstrip/setpower"
state_topic: "bruh/mqttstrip/setpowerpub"
rgb_state_topic: "bruh/mqttstrip/setcolorpub"
rgb_command_topic: "bruh/mqttstrip/setcolor"
brightness_state_topic: "bruh/mqttstrip/setbrightnesspub"
brightness_command_topic: "bruh/mqttstrip/setbrightness"
and all of this works. But it feels like there should be some design behind it.
Maybe there is and I just can’t see it?
I was wondering if anybody has put some thoughts into their topic setup?
How are you running your topics?
edit adding some ideas:
TYPE / BRAND / NAME / ATTRIBUTE / COMMAND|STATUS
switch/sonoff/<sonoff name>/power/command
switch/sonoff/<sonoff name>/power/status
light/bruh/<light name>/setpower/command
light/bruh/<light name>/setpower/status
not sure how to fit the battery sensors here …