roleoroleo / yi-hack_ha_integration

Home Assistant custom integration for Yi cameras: yi-hack-MStar, yi-hack-Allwinner, yi-hack-Allwinner-v2, yi-hack-v5 and sonoff-hack
GNU General Public License v3.0
205 stars 32 forks source link

MQTT Name changes in 2023.8 #133

Closed dreimer1986 closed 10 months ago

dreimer1986 commented 11 months ago

Recent beta of Home Assistant has some new naming regulations and causes quite some 3rd party addins to fill the logs:

image

Sources: https://developers.home-assistant.io/blog/2023-057-21-change-naming-mqtt-entities/ https://community.home-assistant.io/t/psa-mqtt-name-changes-in-2023-8/598099

Here the fixing commits of Z2M as reference: https://github.com/Koenkk/zigbee2mqtt/commit/f6196107a75f9257366505a3ad5ef7b29ff5bc1c https://github.com/Koenkk/zigbee2mqtt/commit/df93e4c8f9490e503e5896e082fc2578f98c2e0e

roleoroleo commented 10 months ago

Are you using the integration or the auto-discovery feature? My ha is updated and I have no warning messages (using integration).

dreimer1986 commented 10 months ago

That's a good question... I remove the addin and the entities are still there... image This is how my addin page looks right now WITH the addin. I think I have both running now that I think of it: image Soo... likely my fault here ^^

But you are talking about this setting right? image If so... nope, disabled. config (current).zip

To make sure, I attach my config file.

dreimer1986 commented 10 months ago

To be 100% precise. I have the Addin and as it seems at least in the past MQTT Auto discovery/at least entered the MQTT login data to the cam settings. So HA claims the device to be set up twice. And this seems to be absolutely correct.

image

Here a lil search for the animal detection entities of two cams. The sensors are there twice and the MQTT ones are the ones it is mad at. So the addin is correct and thus my report is wrong.

I close this one and pass over to https://github.com/roleoroleo/yi-hack-Allwinner-v2/issues/687 as this is the problem I have, too. (Sure, I can remove the MQTT ones, but for now I am still not sure which ones I wanna keep.)