homebridge-evohome icon indicating copy to clipboard operation
homebridge-evohome copied to clipboard

Evohome devices randomly reset in My Home UI

Open cjastennett opened this issue 4 years ago β€’ 37 comments

I have been successfully using this plugin with homekit for a while now. Great work on creating this fantastic plugin. However, over the last few months, usually triggered by a reboot of my homebridge, Apple Home forgets all room allocations and updated names of my evohome items - thermostats and evohome mode switches - everything ends up in their default settings, and also dropps out of scenes. It is almost like (and I assume here) that homebridge is forgetting/not caching the old device ids, and issuing new ones which are effectively new to Apple Home, and it treats them as new devices.

I am on the latest version of everything, and am running on Raspberry Pi platform.

Is anyone else struggling with this problem? Is there a resolution through configuration? Or is this a bug?

Thanks for your help,

Chris

cjastennett avatar Sep 27 '20 09:09 cjastennett

I recognize this problem. This also happens to me when I restart Homebridge and the Evohome plugin cannot logon to the Evohome services. Too many attempts are then made and then the accessories are not created. Opening the official app from Honeywell and then restart Homebridge does the trick. But, you need to set al the accessories again πŸ™

tomsteenbakkers avatar Sep 27 '20 10:09 tomsteenbakkers

Thanks tomsteenbakkers - appreciate your comments..

The devices always seem to appear in my case without any interactions with the Evohome app - looking at the log, there don'l seem to be any refused logins to Honeywell on startup that I can see. I'll do some more digging.

cjastennett avatar Sep 27 '20 10:09 cjastennett

I've seen this behavior as well. No clear idea where this is coming from...

luc-ass avatar Oct 07 '20 15:10 luc-ass

Could it be caused by changing deviceIDs? Perhaps the homebridge accessory uuid should be changed to the name: e.g. change this.uuid_base = systemId + ":" + deviceId; into this.uuid_base = systemId + ":" + name; or this.uuid_base = "EvoHome" + ":" + name;

rooi avatar Dec 06 '20 16:12 rooi

This sounds like a good idea. Have you tested it?

luc-ass avatar Jan 17 '21 10:01 luc-ass

Same Issue here!

djsomi avatar Dec 22 '21 17:12 djsomi

Same here too

psculthorpe avatar Feb 01 '22 19:02 psculthorpe

Any news on this? Thanks!

djsomi avatar Mar 22 '22 19:03 djsomi

Sadly I wasn't able to invest any time into this. It is still on my to-do list...

luc-ass avatar Mar 24 '22 08:03 luc-ass

HI - this is unfortunately happening with regularity now, whenever I have a power cut, and it is a real challenge as I have rules and triggers that rely on evohome devices, and when it this happens all the evohmoe devices are reset and dissapear out of rules and scenes. Sorry to be a pain, but is there anything you can do to expedite fixing this? Thanks for your support - I love this plugin, and I really want to continue to rely on it.

cjastennett avatar May 31 '22 09:05 cjastennett

Seems to be connected to this: https://github.com/homebridge/homebridge/issues/874#issuecomment-455867267

Could not find a quick way to implement this, but perhaps someone else has the time to work it out?

luc-ass avatar May 31 '22 15:05 luc-ass

@cjastennett could you have a look at your ~/.homebridge/persists/IdentifierCache.xxxxxxxxxxxx.json and see if the entries are repeating over and over?

luc-ass avatar May 31 '22 16:05 luc-ass

Just a prompt that this is still an issue, anything we can do to assist? Love the plugin 😁

metaljay avatar Jul 13 '22 20:07 metaljay

@cjastennett could you have a look at your ~/.homebridge/persists/IdentifierCache.xxxxxxxxxxxx.json and see if the entries are repeating over and over?

You could have a look into the file above. I'm still not sure why the identifier includes a randomized part.

luc-ass avatar Jul 20 '22 09:07 luc-ass

@luc-ass I have lots of repeating entries in my IdentifierCache.xxxxx.json file - that's all I can do to help though - I have no idea what the repetition means or how it might fix the issue, but I too get the issue reported. If my Pi running homebridge is restarted, all my sensors default to one room.

I can share the file if it helps (and if safe to do so...) or if not I can do a search and replace on the unique identifiers to protect myself but still show where each one is unique.

psculthorpe avatar Jul 20 '22 10:07 psculthorpe

weirdly I don't have any files within ~/.homebridge/ or Pi for that matter

metaljay avatar Jul 22 '22 07:07 metaljay

Yeah, I noticed as well, that the last update to that file is quite old. Seems homebridge changed something under the hood - it's about time I found some (time) to rewrite this plugin using the modern template.

luc-ass avatar Jul 22 '22 13:07 luc-ass

Okay, I think I got a little further. Can someone check in the Home.app if your serial number isn't set as well? Default-SerialNumber Bildschirmfoto 2022-08-20 um 16 31 16

luc-ass avatar Aug 20 '22 14:08 luc-ass

Getting the same

On Sat, 20 Aug 2022 at 15:32, Lucas Gasenzer @.***> wrote:

Okay, I think I got a little further. Can someone check in the Home.app if your serial number isn't set as well? Default-SerialNumber [image: Bildschirmfoto 2022-08-20 um 16 31 16] https://user-images.githubusercontent.com/3263257/185751528-0c4a95de-7f49-4c67-b0cc-a1bc5ab9ac7f.jpg

β€” Reply to this email directly, view it on GitHub https://github.com/luc-ass/homebridge-evohome/issues/61#issuecomment-1221325208, or unsubscribe https://github.com/notifications/unsubscribe-auth/AT4A6BJR27A6JDLYO2MHTPLV2DT7DANCNFSM4R3OWNFA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

SeaneyC avatar Aug 20 '22 15:08 SeaneyC

Below is the information from my installation

Manufacturer Serial Number Default-SerialNumber Model Firmware HomeKit Certified Honeywell HeatingZone 086

Sent from my iPhone

On 20 Aug 2022, at 15:32, Lucas Gasenzer @.***> wrote:

ο»Ώ Okay, I think I got a little further. Can someone check in the Home.app if your serial number isn't set as well? Default-SerialNumber

β€” Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.

5xPa avatar Aug 20 '22 17:08 5xPa

Okay people, release v0.9.0 does now include a serial number. I have no way of testing wether homebridge will remember thermostats after an outage now, but I have high hopes... 🀞

Please let me know your results. Cheers.

luc-ass avatar Aug 20 '22 22:08 luc-ass

Hi Luc, Great that you're still working on this!

I installed 0.9.0 and this works perfect. I got in serial number in the properties.

The only thing I needed to do is remove the Evohome Child bridge (which removes all accessory's). After the update it's seems everything is working but you can change the thermostat in the Home App. You get an error like Set to follow schedule.

But after adding the bridge and configure the accessory's after works like a charm.

tomsteenbakkers avatar Aug 21 '22 08:08 tomsteenbakkers

That's good to hear! πŸŽ‰

The only thing I needed to do is remove the Evohome Child bridge (which removes all accessory's). After the update it's seems everything is working but you can change the thermostat in the Home App. You get an error like Set to follow schedule.

But after adding the bridge and configure the accessory's after works like a charm.

Please feel free to open another issue, if you keep encountering such problems. Work is slow, but we will eventually get to the bottom of it 😁

luc-ass avatar Aug 21 '22 08:08 luc-ass

Serial number is populated now, everything still seems to be working in Home app fine. Will update if any issues, many thanks!

On Sun, 21 Aug 2022 at 09:22, Lucas Gasenzer @.***> wrote:

That's good to hear! πŸŽ‰

The only thing I needed to do is remove the Evohome Child bridge (which removes all accessory's). After the update it's seems everything is working but you can change the thermostat in the Home App. You get an error like Set to follow schedule.

But after adding the bridge and configure the accessory's after works like a charm.

Please feel free to open another issue, if you keep encountering such problems. Work is slow, but we will eventually get to the bottom of it 😁

β€” Reply to this email directly, view it on GitHub https://github.com/luc-ass/homebridge-evohome/issues/61#issuecomment-1221497102, or unsubscribe https://github.com/notifications/unsubscribe-auth/AT4A6BN3D7BXH5PKBH46ZKLV2HRNBANCNFSM4R3OWNFA . You are receiving this because you commented.Message ID: @.***>

SeaneyC avatar Aug 21 '22 09:08 SeaneyC

Bad news: My Homebridge just reset my Thermostats again. 😞 The journey continues...

luc-ass avatar Aug 23 '22 19:08 luc-ass

I talked to @ebaauw (who makes homebridge-hue) and found out, that the plugin as it is right now needs to wait for the evohome-server to be reachable before letting homebridge start (and thereby delaying the start of homebridge). Not exactly an ideal solution. The other way would be a complete refactoring of the code using the dynamic platform accessory model. That's my preferred way but way more work...

luc-ass avatar Aug 24 '22 06:08 luc-ass

Not exactly an ideal solution.

Just run evohome in a child bridge. Then the behaviour would be very similar to systems with native HomeKit support: the accessories show as No Response until the server is available.

ebaauw avatar Aug 24 '22 06:08 ebaauw

I've also encounter this issue. When I restart my homebridhe few times, I've got error in log: [Evohome] Error during login: attempt_limit_exceeded and all my automatizations are gone.

MonsterArtur1 avatar Sep 26 '22 18:09 MonsterArtur1

This must by why I don’t seem to have any issues then, good to know.

Thanks

On Wed, 24 Aug 2022 at 07:58, Erik Baauw @.***> wrote:

Not exactly an ideal solution.

Just run evohome in a child bridge. Then the behaviour would be very similar to systems with native HomeKit support: the accessories show as No Response until the server is available.

β€” Reply to this email directly, view it on GitHub https://github.com/luc-ass/homebridge-evohome/issues/61#issuecomment-1225280444, or unsubscribe https://github.com/notifications/unsubscribe-auth/AT4A6BKURT6IFUDTJNF6FRLV2XBZFANCNFSM4R3OWNFA . You are receiving this because you commented.Message ID: @.***>

SeaneyC avatar Oct 11 '22 07:10 SeaneyC

Do you know what triggered the reset? I’ve dropped power to my rPi a couple of times by accident as it runs off PoE with no real issues recently.

On Tue, 23 Aug 2022 at 20:57, Lucas Gasenzer @.***> wrote:

Bad news: My Homebridge just reset my Thermostats again. 😞 The journey continues...

β€” Reply to this email directly, view it on GitHub https://github.com/luc-ass/homebridge-evohome/issues/61#issuecomment-1224761855, or unsubscribe https://github.com/notifications/unsubscribe-auth/AT4A6BOXMHGDGRPMJSHHWXLV2UUJNANCNFSM4R3OWNFA . You are receiving this because you commented.Message ID: @.***>

SeaneyC avatar Oct 11 '22 08:10 SeaneyC