sleevezipper / hass-workstation-service

Provide useful sensors and services from your workstation to Home Assistant.
Apache License 2.0
613 stars 54 forks source link

Name prefix not being added #157

Open cromelex opened 2 years ago

cromelex commented 2 years ago

Hi,

Currently having an issue where the prefix name is not being added to the sensors. When I check the general setting.json, the prefix is set, so I don't know why it does not show. HassWS seems to be dropping the prefix name randomly, and I can't exactly point when/how.

The Prefix is set to {"NamePrefix":"Matebook"}

I cleaned all the old sensor states on the MQTT and restarted everything to make sure this was clear. If I change the name to remove the caps this still seems to happen, ie the prefix is dropped on the name randomly.

HassSW set up https://imgur.com/lpDW1f2

MQTT topic showing the sensors without prefix. https://imgur.com/SfCl6Qi

Edit: I do realise I can change the name of the sensor directly as a workaround, but I thought I'd report that I am seeing the issue with the prefix specifically.

Thanks

ITensEI commented 2 years ago

I've had the same experience where the prefix would work on some sensors then after updating something they stopped being updated in HA. Trying to remove and re-add the sensor adds it without the prefix