ok. thanks for the quick response. i’ve been having issues trying to load a package. in my configuration.yaml i have the following but it appears i’m getting an error loading the package:
Try copying the value of mqtt_state_topic attribute and pasting into MQTT Topic to Clear" then do the same with mqtt_config_topic`. Confirm that the sensor is gone, then force a state change to recreate the sensor. If you still have issues, please send new screenshots of the source and battery sensor from the states page so I can see the state and attributes.
Thanks for the heads up. I’ll publish an update to switch away from the deprecated json_attibutes to json_attributes_topic once 0.85 is released.
Thanks for the screenshots. I see now that there is an issue with the way attributes storing strings are handled. I need to update the code to handle that use case. I’ll be sure to include the fix it in the next release.
In the meantime, you should be able to workaround it by using templates. Once you change the template and restart, clear the MQTT topics again and force another state change.
Option 1: This option keeps the string values and will remove the %.
I am still having an issue trying to get rid of an old battery entiity which no longer exists… The entity was renamed and now shows up as both the old and new, with the old entity listed as unavailable, causing an error in the log. what mqtt topic(s) need(s) to be removed to clear it away for good?
Those things can be like Zombies!
When it happens to me I delete the MQTT Integration, delete the mosquito addon (I don’t have any config mqtt entries now but if I did I would comment those out as well) then restart home assistant. Then edit the file /config/.storage/core.entity_registry and very carefully delete the zombies and make sure you don’t screw up the brackets etc.
Then restart Home Assistant and make sure they are still gone. Then add back mqtt in config if you use it, add the addon and add the integration and restart home assistant again… all going well everything will be back working with no zombies.
but the sensor battery is ok
[sensor.alessandro_redmi_pro_battery] 23
device_class: battery
battery_level: 23
unit_of_measurement: %
friendly_name: Alessandro Redmi Pro Battery
what would the topics be though? entity is sensor.bog_arum_battery_level
EDIT: strangely… I also have all the other old sensors in my entity register in the dev panel for that same item. It is a xiaomi plant sensor so it also has temp, moisture, conductivity and light level. Again, these were all changed to a new entity name as a whole and there is no longer any code anywhere that relates to ‘bog_arum’ so I don’t know how else to get rid of these. They all show as ‘unavailable’. I’m guessing its all mqtt related?
Dave - the only way I could get rid of the zombies was to follow the steps I posted earlier.
He posted the exact sensor he wants to get rid of… but your posts are too vague to be of any help in deleting the sensor… When I had the same problem someone posted something more specific but I still couldn’t get rid of the zombies. From what you posted I have even less idea what someone should actually practicall do to delete them.
I don’t even understand what you even mean by that. Paste it into where exactly? I did try posting a null string to the MQTT topic for state and cmnd but that didn’t help me either… In the end I did what I posted earlier.
yeah, the plant monitor was also renamed to the new entity so I literally have zero reference to this ‘bog_arum’ plant anywhere in my code. I dont know why HA thinks it needs to look for it still…