I have changed the IP Address for a Google Home Mini and it now appears twice in the ‘discovered’ items. How can I flush these items?
Is there anyway to find out what the configuration of the discovered items is? Where is this data held?
I have changed the IP Address for a Google Home Mini and it now appears twice in the ‘discovered’ items. How can I flush these items?
Is there anyway to find out what the configuration of the discovered items is? Where is this data held?
I had the same issue with an auto discovered MQTT device. Even though I physically removed it from the network it never disappeared from HA.
I ended up hiding it in customize.yaml
What is very strange is that these devices don’t even appear in config files so not sure how HA stores these devices
Yes it is irritating. I have just re-jigged my whole network with a load of static IPs and now I have 2 of everything!
Anyone moving ISP and getting a new router will have the same issue.
This is because your MQTT broker still has the information being output. MQTT posts topics that never get removed. Remove the topic from the broker side and the device will disappear.
Do these devices have the same name in your config? You could always remove discovery and configure each device manually to ensure this never happens.
They are auto discovered so do not appear in my config at all.
I meant states, not config. You should be able to see the names inside the states, do they have the same name?
Looks like this
I changed the Google Home Mini’s IP address (to a static one).
If its just that device, turn off discover and manually put in the device in your config:
media_player:
platform: cast
If it’s not a google cast device, you’ll need to find the correct platform.
Then comment out discovery.
But that is a sticking plaster and defeats the point of having discovery in the first place. I suggest there should be a proper fix to allow the discovery cache to be flushed.
What if I have 2 such devices?
I understand, i’m just trying to get you up and running. Leave discovery on, but you’ll have to deal with the 2 media players. Clearly there is an issue somewhere that needs a dev to look at it. But if you want the 2nd sensor gone, turn off discovery and hard code it. If you can live with it, leave discovery on.
Had to reboot the DHCP server and now I have 3 entries for some devices…
IP changed again?
Yes - new DHCP lease from the rebooted router I guess.
You may want to make the IP of your media device static. I did that at the start of my home assistant process and I have never gotten a second media device. I’m not sure how to clear the media devices from Home assistant. Maybe deleting your history will remove the ‘left over’ devices.
Most of them are static now, stil doe snot solve the duplicates. I’m going to rebuild the local Hass.io docker I have and start from scratch. Annoying though.
What version are you running? 0.63 had some changes related to unique id’s for media players. Maybe upgrading to 0.63 will fix your issue. Upgrading to 0.63 incorrectly filtered out my second zone for yamaha receivers.
The other option is to debug into your media player component and find out why you could be getting duplicates. I might have time later to night to give it a look.
Thanks. Where is the discovery information stored and can it just be flushed? Is there anyway to review the discovery information, like the IP address?
It would be good to be able to tell discovery to ignore specific items it finds.
If you see the device in your history, just delete your database or purge it. If you see it in the states object, then the code needs to be debugged to see why you are getting 2 devices. So I’m not familiar with google home mini. Do you know if it is treated as a Google Cast device? How many do you have connected to your network? Can you share your configuration.yaml?