I am working on a system to control "workstations" in my shop. An Arduino with buttons and relays will make up most of the system. I do have a couple Z-Wave receptacles and 1 light switch. That said, I am debating changing how I approach MQTT Topics and am looking for some input.
I currently use a series of Topics such as
From there I would go with On/Off or other payload values.
I intend to have a HomeSeer device called Garage Workstation and have each of the 11 Workstations be On/Off Features. I will also have an "Associated Devices" item for each WorkStation which I suspect will also be a Feature. Unless I can have Sub-Features. So for Workstation 01 I would have Feature for called 01 and another called 01 Devices which will house a JSON array.
Tasmota and some other items seem to take a different approach. Either these have all been done by people with more programming knowledge than I and for good reason, or they did it "just because." I am not sure I need the cmnd, stat, and tele prefixes for most items but wondering if there is good reason to have them as prefixes. It seems like more subscriptions are needed for anything using these prefixes. Why not use them (IF needed at all) later in the topic? Why send a regular status?
So for those of you with more MQTT experience, is there reason I should change my topic use? I see there is no standard, but lemmings follow and I see many in other areas talk about some of these as if it is a standard. Or maybe that is my limited view. Regardless, I am asking for some input and hoping to learn a thing or two.
On top of all these questions, an underlying item is how would I then use mcsMQTT and Associate the various Workstation Features?
I currently use a series of Topics such as
Code:
1st_Floor/Garage/Sensors/Temperature/ 1st_Floor/Garage/Sensors/Illuminance/ 1st_Floor/Garage/Workstation/01/ (On/Off payloads at this level) 1st_Floor/Garage/Workstation/01/Cmnd (to change internal settings - a Workstation has 1 or more lights and other devices) 1st_Floor/Garage/AirCompressor/ 1st_Floor/Garage/Light/01/
I intend to have a HomeSeer device called Garage Workstation and have each of the 11 Workstations be On/Off Features. I will also have an "Associated Devices" item for each WorkStation which I suspect will also be a Feature. Unless I can have Sub-Features. So for Workstation 01 I would have Feature for called 01 and another called 01 Devices which will house a JSON array.
Tasmota and some other items seem to take a different approach. Either these have all been done by people with more programming knowledge than I and for good reason, or they did it "just because." I am not sure I need the cmnd, stat, and tele prefixes for most items but wondering if there is good reason to have them as prefixes. It seems like more subscriptions are needed for anything using these prefixes. Why not use them (IF needed at all) later in the topic? Why send a regular status?
So for those of you with more MQTT experience, is there reason I should change my topic use? I see there is no standard, but lemmings follow and I see many in other areas talk about some of these as if it is a standard. Or maybe that is my limited view. Regardless, I am asking for some input and hoping to learn a thing or two.
On top of all these questions, an underlying item is how would I then use mcsMQTT and Associate the various Workstation Features?
Comment