xcomfortd-go icon indicating copy to clipboard operation
xcomfortd-go copied to clipboard

Is it possible to get the name and not the serial number in discovery?

Open hans99 opened this issue 3 years ago • 10 comments

In MQTT integration the name is set to the serial number, but the MQTT info has the real name, would it be possible to get the real name as name instead?

hans99 avatar Dec 30 '21 10:12 hans99

Maybe, let me dig a bit.

karloygard avatar Dec 30 '21 11:12 karloygard

Any progress on this? :)

hans99 avatar Jan 20 '22 07:01 hans99

I attempted a fix for this with 0.51, take a look. It's relatively simplistic, using the common part of the datapoint names for the device (the device itself is never explicitly named in the configuration files).

karloygard avatar Jan 23 '22 12:01 karloygard

Great, I will try it out soon!

hans99 avatar Jan 25 '22 07:01 hans99

Devices looks good, great work! Thanks! Would it be possible to get the names reflected in the entities too?

hans99 avatar Feb 03 '22 08:02 hans99

Can you give me an example?

karloygard avatar Feb 03 '22 09:02 karloygard

I have one:

device: identifiers: 'I have removed value' manufacturer: Eaton model: Dimming Actuator (CDAx-01/xx) name: Backyard Light via_device: CI Stick

And a corresponding entity-sensor is named: sensor.signal_strength_47

Would be nice if it was named: sensor.backyard_light_signal_strength

hans99 avatar Feb 10 '22 10:02 hans99

Yes, it's possible to change the naming, but I'm concerned that the change will cause duplication of entities. I'll investigate a little.

karloygard avatar Feb 10 '22 19:02 karloygard

I think hass will add numbers for duplicates, I think that's we there is a number now. So if "we" assign name that makes duplicates its "our" fault and nothing to be handled by "you" :)

hans99 avatar Feb 11 '22 10:02 hans99

Any progress if entity names can be updated?

hans99 avatar Mar 03 '22 09:03 hans99