Replies: 1 comment 1 reply
-
I think your proposed usage is wrong because it is mixing physical and logical identifications. If you include the MAC address into logical identification, it means that if you have to replace that wall switch or sonoff thing because of a failure, not only you have to configure the replacement device but you also need to reconfigure your home automation. Imagine that you include MAC addresses of the server in all hostnames on the Internet. As of today I have the following settings:
Where %u is the MqttUser set same as Topic in Tasmota and %c in the ClientID set to %12X in Tasmota (fallback topic is always Just my 2c |
Beta Was this translation helpful? Give feedback.
-
At the moment, %12X can be used as variable for MAC address for MQTT_CLIENT_ID and MQTT_TOPIC. Would love it if it could be also used for MQTT_USER and FRIENDLY_NAME.
MQTT_USER that uses its MAC address is mentioned in Securing your Communication section of https://tasmota.github.io/docs/Securing-your-IoT-from-hacking/. This will help automate the setting of each device, instead of having to find its IP, login and enter the MAC address as MQTT_USER manually.
FRIENDLY_NAME is used in Home Assistant as its device name, and subsequently affecting its entity names. When multiple devices are newly connected (and also after reset), they will default to a same fixed pre-compiled name. This affects the entity names, causing it to have _1, _2, _3 etc suffix. Changing them manually is tedious when dealing with many devices. In configuration reset, this will also break the automation, until entity names are corrected manually. When several devices go through this at the same time, it becomes confusing which one is which device.
Hence, when MQTT_USER and FRIENDLY_NAME can be compiled with %12X variable, as like in MQTT_CLIENT_ID and MQTT_TOPIC, this will be a great help. This will help greatly when flashing large number of devices. Also helps when doing device configuration reset.
Hopefully this features request would be looked at favorably.
Beta Was this translation helpful? Give feedback.
All reactions