ebaauw / homebridge-ws

Homebridege plugin for virtual weather station
Apache License 2.0
108 stars 4 forks source link

Accessories are not being replaced as locations are changed in config #14

Closed PedroRA561 closed 4 years ago

PedroRA561 commented 4 years ago

Hello, i was trying to figure out the city name that best matches my location and in the meantime i now have a few locations in accessories. In the config file i only have one location. Is there a workaround so i can remove the previous locations ?

ebaauw commented 4 years ago

Hm, I thought they would be removed when restarting homebridge? If not, temporarily remove homebridge-ws from config.json and run homebridge -R.

nEINSko commented 4 years ago

I cant remove my sensors too. i already deleted plugin in the hope both would go away but they still show up. also while starting homebridge i get this error:

Failed to find plugin to handle accessory xxxxx Failed to find plugin to handle accessory xxxxx

while xxxx represents my city id and the city name, tried it but while i got -40° on both i wanted to delete both. now they are in my homekit and i cant get rid of them.

And of course, i deleted all homebridge-ws related from config.json.

ebaauw commented 4 years ago

Run homebridge -R to remove the stale accessories.

nEINSko commented 4 years ago

this works for me if i am using putty to connect to homebridge via ssh.

but with the user interface on the web browser, it still shows up.

ebaauw commented 4 years ago

Then set -R through the settings in web interface.

nEINSko commented 4 years ago

okay, somehow after the n-th time of restarting it via the webinterface it worked, they are gone in the interfaces "devices" menu, but they still appeared on the homekit app.

I had to delete the bridge and reinstall it.

Thanks for the Help!

ebaauw commented 4 years ago

HomeKit doesn't like configuration changes. It can take hours to sync them to all your devices over iCloud.