Closed RobertD502 closed 1 year ago
I gave this branch a spin but i'm still getting the same errors
https://www.dropbox.com/scl/fi/y9zy6n1c4j8dejcex6iij/ha_log.txt?rlkey=xl57zi9yjppjsk2lal6qqs0br&dl=0
Use a MQTT client to delete the current topic.
@RobertD502 Thankyou, I used MQTT Explorer to clear all topics and rebooted HA, the same errors are appearing in the log.
Did you delete the topics associated with the MQTT plugin (in Octoprint)? I'd delete those, delete the topic created by this plugin, delete the device in Home Assistant, restart Octoprint, and then restart Home Assistant.
Ok it looks like most of the errors are gone now it's just down to the "hassControl" and "Camera" ones
Are you referring to the Camera snapshot entity? If so, you shouldn't be getting errors on that since the name has been changed for it as well. There must be something retained that is causing this.
I tend to agree with you, I'm just going to nuke everything and start from scratch, thanks for your time!
I tend to agree with you, I'm just going to nuke everything and start from scratch, thanks for your time!
Looking at your logs, if you are referring to the entities that have a unique ID that ends with _CAMERA
, I don't see any mention of entities being created in this code that sets a unique ID with that suffix. Only one I see is _CAMERA_SNAPSHOT
. Is this perhaps originating from another plugin?
Ok looks like you are onto something. A clean install and I am not getting any errors on one of my instances
Thanks @RobertD502 for this contribution.
@cmroche No problem! Just to add, in the release notes, it might be worthwhile directing users to either delete the current topics or to clear the retained flag as some may not be aware that they have MQTT messages set to be retained in the MQTT plugin. Unless they do this, they will continue to see the error.
A change was implemented in Home Assistant 2023.8 that doesn't allow for entity names to be prefixed by a string that is equivalent to the device name. The device name is
OctoPrint
. All entity names are currently prefixed with this device name (e.g.,OctoPrint Emergency stop
). Starting in Home Assistant 2023.8, a warning is logged + repair issue raised for each MQTT entity that is using this naming convention:This PR solves that issue by removing the prefix. I have also edited the names of the entities to follow Home Assistant entity naming guidelines. The first word in the entity name should be capitalized while words that follow should be lowercase (unless it is a brand or the word is capitalized in normal writing). For example
Print Time Left
has been changed toPrint time left
.