materik / homebridge-harmonyhub-plugin

Logitech HarmonyHub plugin for Homebridge
39 stars 2 forks source link

re-creates activities when restarting homebridge #29

Closed nathsea closed 3 years ago

nathsea commented 5 years ago

HI I recently installed this plugin, works a treat. I have since rebooted my server a couple of times and it re-adds the activities every time as favourites and they appear on the front page ... a bit annoying, what am i doing wrong?

Cheers Nath

materik commented 5 years ago

This shouldn't happen if you only restarts the homebridge. It should pick up the server settings from the cachedaccessories and persistent folders so if you haven removed them it should be fine. If you restart harmonyhub however it might get a new id which setups new activities in homekit. Please send the debug log on startup if it happens again.

nathsea commented 5 years ago

cheers, will do.

nathsea commented 5 years ago

Hi I’ve noticed the same issue again tonight , but it doesn’t re add the activities it just turns on the favourites switch so they repopulate the home page Nath

materik commented 5 years ago

ok. can you post the log?

nathsea commented 5 years ago

Yeah ... maybe , is there an easy way to view it 😬 the logs page doesn’t show loads , so I need to enable more thorough logs ?

nathsea commented 5 years ago

B7443F96-7D0D-4642-8984-F7BD6E82D9AA

materik commented 5 years ago

hehe. you can enable debug by running homebridge with -D flag. but what i can see from this log it seems to start the bridge correctly from cached accessories. do you see that issue with the activities being favorited after this?

nathsea commented 5 years ago

B20FF210-4C28-4109-ACC4-E2940A42E40E D7F55F82-AFCE-46E2-A976-13066FEC06C6 D8123EDF-6157-430D-889D-51AEA18BF2EA 5FDDEE20-F0F8-45C8-9027-1D42EF5AAFE6

Hi hope this works ?? Yep it’s just done it again

jelzeinvmw commented 5 years ago

I'm seeing the same issue above -- activities reset to defaults after restarting homebridge. Consistent, every time.

Log error: [8/14/2019, 10:40:54 PM] [homebridge-harmonyhub-plugin] {HarmonyHub} handleError: TypeError: Cannot read property 'result' of undefined at wsClient.sendRequest.then (/homebridge/node_modules/homebridge-harmonyhub-plugin/node_modules/@harmonyhub/client-ws/dist/harmonyclient.js:134:34) at process._tickCallback (internal/process/next_tick.js:68:7)

materik commented 3 years ago

Sorry for my lack in response. Since this is so old I would guess you have moved on and it's fine to close it. If not, please reopen this. Thanks!