merdok / homebridge-miot

Homebridge plugin for devices supporting the Xiaomi miot protocol
MIT License
364 stars 62 forks source link

Reset sensor names after homebridge reboot #572

Closed grzech1991 closed 2 months ago

grzech1991 commented 4 months ago

Hi,

I have a problem - after changing the name of the sensor in the home app, homebridge does not remember it - after a reboot it is restored to default to Temperature. The same problem applies to humidity sensors.

As long as I do not perform a reboot homebridge is ok.

Zrzut ekranu 2024-02-09 201611

I am writing about the configured name option

merdok commented 4 months ago

Hi, yeah I am aware of that. The issue is that there is a bug in the home app and previously after a reboot all the accessories had the same name and each of them had to be renamed automatically. So I changed that to the current behavior, which is also not optimal but a better one than before. In order to manually store the name I would need to do some re-writing of the plugin, just not sure when I will have the time to tackle that...

grzech1991 commented 4 months ago

Ok thanks, that means this is normal behavior. Is there possibly a halfway solution to default the sensors to names such as:

Temperature Humidifier Temperature Purifier

Or that they can be edited in the json file? Although I guess that doesn't change anything.

Another option, is it possible to delete them? E.g. by unchecking?

You know, I'm thinking of such half-hearted solutions.

merdok commented 4 months ago

Yeah for now this is a normal behavior. You can use the suppressAutoServiceCreation property if you wish to disable some of them.

grzech1991 commented 4 months ago

Can you write me how to do it or is there any instruction on the web? I am closer to an administrator than a programmer

merdok commented 4 months ago

Just check the documentation, the property is described there.