Removing devices that were discovered automatically

Hello,

I’m brand new to this, so this might be a silly question. Basically, Hassio went off and auto-discovered 2 of my 3 Yeelights, although I couldn;t get it to auto find the 3rd. So, I gave them static IP addresses and added them into configuration.yaml

I can now see the three devices in Hass, although the original two are still there (Yeelight_rgb_xxxxx). How can I remove them?

Also, there is an automatic entry (gateway_light_xxxx) for the Xiaomi gateway. Is it possible to rename this?

thanks,

It was a bit of a pain in the but, but I commented out the “discovery:” line in configuration.yaml, and set up everything manually and explicitly. My HA instance starts up faster and everything is much more reliable.

Awesome, thanks Steve. I’ll do that. Kinda prefer to manually manage my devices anyway.

Hmm… now I need to add the 2 x google home devices manually.

I found a post saying these are just simple, like

media_player:

  • platform: cast
    name: Whatever Name Home Mini
    host: 192.168.0.21

However, I already have one media_player: (my TV). If I add another media_player section, I get an error… are all media_player’s supposed to be under the one heading? does that make sense?

You will need to add each one individually under media_player: (ie: list each one under platform: cast)

media_players.yaml

  - platform: cast
    name: Kitchen Home
    host: 192.168.0.21
  - platform: cast
    name: Bedroom Home
    host: 192.168.0.22
  - platform: cast
    name: Lounge Home
    host: 192.168.0.23
  - platform: cast
    name: Lounge Speakers
    host: 192.168.0.82

for the issue with discovery, I reverted to this after previously having discovery turned off (and configuraing everything manually) because I noticed that without discovery on for media_players my Google Home groups would not show up.

config.yaml

discovery:
  ignore:
    - yeelight
3 Likes

Great! I can actually leave discovery on (saves me adding Google Home’s manually), and just tell it to ignore the Yeelights. That’s neat, thank you.

I still have my Google Homes manually configured but had to leave the discovery on in order for HA to see the Google Home groups I had created in the GH app

Got ya. Are the groups like rooms?

What do you use them for?

They are just groups of devices in the Google Home app. So I have one that includes all of them, called ‘House’ which allows me to cast music to all rooms at once, in sync, easily. Unfortunately I found by trial and error that the media_player group of google cast devices disappears if discovery is not on, and there doesn’t seem to be a way to hard-code it in.