-
Is it expected behavior that the [Settings] -> [Home Assistant] -> [Entity name template] is only available if [MQTT Discovery] is enabled? I'm using the Home Assistant Z-Wave JS integration (instead of MQTT discovery) because I believe it has more features/options available (?), but this configuration doesn't allow me to specify an entity naming template. For example, I have a Z-Wave device with a name of "Ceiling Fan" and a location of "Living Room". The HA Z-Wave JS integration creates an entity named "light.ceiling_fan" but I'd prefer it be named "light.living_room_ceiling_fan" (or whatever else). |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
The entity name template is only for MQTT discovery. The Z-Wave integration decides how to name entities. The only influence you have from zwave-js-ui is by node name. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the information. This is unrelated (and perhaps personal preference) but do you recommend naming the Z-Wave devices to include the location? For example, "Living Room - Ceiling Fan" with location of "Living Room" ? |
Beta Was this translation helpful? Give feedback.
-
It's entirely personal preference, IMO. I don't name anything in zwave-js-ui, and leave it to HA. I do set locations in both places. You'll find entirely different answers from different people. Some people prefer to stick with zwave-js-ui entirely and let the names trickle to HA, but that requires more effort, again IMO. |
Beta Was this translation helpful? Give feedback.
-
I use HA mostly as a visual control board for entities - my automations are in node-red (with some direct z-wave associations). To me, it makes more logical sense to name a light switch in my office, for instance, as "Lights" and assign it to the Office area/location. However, that doesn't work well in the HA UI. So instead, I do name my entities as Office Lights, set the area in zwavejs, and that ensures there aren't any clashing entity id's on the HA side (nothing like "hmm, what does light.lights_3 actually control?"). This way also when using SmartStart, entity_ids are consistent in HA even if I have to factory reset devices or forget to take an NVM backup prior to trying to migrate from one controller stick to another and borking the controller promotion... whoops. |
Beta Was this translation helpful? Give feedback.
The entity name template is only for MQTT discovery. The Z-Wave integration decides how to name entities. The only influence you have from zwave-js-ui is by node name.