snOOrz / homebridge-aqara

HomeBridge plugin for Aqara gateway and devices
541 stars 73 forks source link

Save the accessories to config file #55

Open dzhankoy opened 7 years ago

dzhankoy commented 7 years ago

Is it possible to save accessories list with it's names and assigned rooms and their types? Sometimes after rebooting the gateway (developer password looks as changed as well), all the accessories reset their names, so I have to reassign all that stuff. It is very complicated to guess what room is located one of four temperature sensor. I would like to write all the info into config. Please let me know how can I do?

astrojetson8 commented 7 years ago

i have similar issue. the workaround i found is to keep a log accessories name in text file. either when there is a homebridge crash or one of the accessory is offline, it triggers device name reset.

MastroPino commented 7 years ago

@astrojetson8 Can you explain the procedure?

astrojetson8 commented 7 years ago

for example C7e4 Entertainment 285c Iron 51a0 Fan

so when it crashes, i use my log file to match key and input the name instead of turning on/off to find out which one is which.