I installed hass.io on a raspberrypi and I was impressed how many devices have been automatically detected. Some of them can be renamed. I can give a different name, but it looks like this is not useful, because in diagrams the entity ID is used. The name seams to be useless.
Also on start up I can see how more and more yeelight lamps are detected. It looks like the automatic name is based on the yeelight type and the Mac address. But I can’t find a way to assign a name or to change the entity ID. The gear icon is missing. Is it not possible to rename or change the ID? Should I manually add all these lamps?
BTW, how is the name created for sensors? Some MI aqara Temperatur / humidity sensors have been detected (how this magic works?) and also some door sensors. But there is also one illumination sensor and I have no idea which this could be. Is it one of my homematic sensors? But why only one and not two? Any other homematic devices have not been detected, so I think, it is something different.
Is it a sensor of the MI gateway?
What is the best way to know which sensors have been detected?
platform: yeelight
devices:
192.168.1.64:
name: Lamp Shade
192.168.1.xx:
name: Coridor
192.168.1.zz:
name: Bedroom
192.168.1.zz:
name: Entry
192.168.1.zz:
name: Master Bedroom Light
If they are entered automatically you can go to the configuration and then click on customize and rename the entry there
The same applies to the Sensors as well
I also added all the yeelights manually, but now I have them twice: my manually added devices and a second time automatically added devices.
Where and how can I remove the automatically detected devices and how can I avoid to come back again after the next restart?
If they are entered automatically you can go to the configuration and then click on customize and rename
that’s the issue, there is no “customize” gear on the yeelights.
you can use the ignore section of discovery: to prevent them being detected automatically, that way only using the manually added versions. That’s what I do because I like to have all my devices manually configured.
OK, I got the idea:
I used the the customize.yaml to hide them. This way I can keep discovery on for new devices but I have more control about the entity name, when I add them manually. Because I did not found how to disable discovery only for yeelight detection.
But I see, this is not yet the solution. They are still listed in the state and in the history, but I want them exclude from hassio at all.
I will try to configure discovery
discovery:
ignore:
- yeelight
this should not work, because by the description this parameter is not for all yeelight, but only for “Yeelight Sunflower bulb”
But it works. The description on the website is wrong. I added a pull request for changing the wrong description.
BTW - Restarting the hassio every time takes so many many time… compared to fhem, which I use for some years, before I tried to explore hassio since yesterday. In fhem I can change settings and configurations on the fly with no need to restart everything and waiting minutes.
But Phyton is much easier for me than Perl and also the discovery feature is great. My first impression of hassio is still very good.
the above coed should work fine to exclude all of your yeelights. Thats the same config I use. The only thing I use discovery for is google cast because there is no other way of detecting / configuring cast ‘groups’ that are set up in the Google Home app. Like I said, I prefer to have control over what is on my system by configuring them all manually.