stringbean / homebridge-drayton-wiser

Homebridge plugin for Drayton Wiser heating systems
Apache License 2.0
6 stars 3 forks source link

[drayton-wiser] Error during system update Error: #5

Open MingChops opened 3 years ago

MingChops commented 3 years ago

I have an issue with the plugin showing the following information on the Homebridge status page log:

[12/5/2020, 5:07:32 PM] [drayton-wiser] Error during system update Error: system-not-found at WiserClient.request (/usr/local/lib/node_modules/@string-bean/homebridge-drayton-wiser/node_modules/@string-bean/drayton-wiser-client/src/WiserClient.ts:337:15) at runMicrotasks () at processTicksAndRejections (internal/process/task_queues.js:93:5) at WiserClient.fullStatus (/usr/local/lib/node_modules/@string-bean/homebridge-drayton-wiser/node_modules/@string-bean/drayton-wiser-client/src/WiserClient.ts:68:22) at WiserPlatformPlugin.updateSystem (/usr/local/lib/node_modules/@string-bean/homebridge-drayton-wiser/src/WiserPlatformPlugin.ts:101:26)

I have no idea why or what it means? It is quite random in it's appearance in the log. The plugin otherwise seems to work fine.

LewisSpring commented 3 years ago

Similar errors also. https://gist.github.com/thelewiss1/d3de90e5b4064c98e76e14cd63fcff06

LewisSpring commented 3 years ago

Update: It seems to affect my recently added TRV: It often says No Response but also somehow changes the temperature.

DACOOX360X commented 3 years ago

I have exactly the same issue!

The plugin was working seamlessly with HomeKit and Wiser Heat for 3 months. Then added another Wiser TRV to the system and now HomeKit struggles to get the set-point temperature updates (which should follow the Wiser Heat schedule).

Current room temperatures seem to be unaffected and correct.

Speculation: Maybe because the system is constantly polling the current temp, and only issues a set point temp change when the change happens, which Homebridge misses and runs on the old set-point figure. This is just speculation.

See attached screen dump of the errors I now get in the Homebridge terminal log. IMG_0055

LewisSpring commented 3 years ago

@MingChops @DACOOX360X Do either of you have the homebridge-tuya-web plug-in? I found that Drayton-Wiser became much more responsive and worked better when i removed it. [edit (words missing my bad)]

I still get these errors - and a FATAL ERROR: MarkCompactCollector: young object promotion failed Allocation failed - JavaScript heap out of memory a couple hours ago I did not notice (that might be to do with homebridge-tuya though)

DACOOX360X commented 3 years ago

@MingChops @DACOOX360X Do either of you have the homebridge-tuya-web plug-in? I found that Drayton-Wiser became much more responsive and worked better.

I still get these errors - and a FATAL ERROR: MarkCompactCollector: young object promotion failed Allocation failed - JavaScript heap out of memory a couple hours ago I did not notice (that might be to do with homebridge-tuya though)

Thanks for the super fast reply šŸ˜€šŸ‘

No I havenā€™t heard of homebridge-tuya-web until now. I will give it a go and will report back!

Reckon the homebridge-tuya-web plugin helps largely because it polls every 10 seconds?

Can you do us one more favour and share the homebridge-tuya-web settings you use in your setup?

Thanks so much!

LewisSpring commented 3 years ago

@DACOOX360X Just realised my wording: I meant if you have it- disable it. It's for certain wi-fi smart devices

DACOOX360X commented 3 years ago

@DACOOX360X Just realised my wording: I meant if you have it- disable it. It's for certain wi-fi smart devices

No worries, thanks all the samešŸ‘ I really like this plugin but would love it to have more user adjustable features like configurable polling rates and more user friend error logs. Is the dev still supporting this as I donā€™t see many replies to user issues? Maybe his has been busy šŸ˜Š @stringbean

LewisSpring commented 3 years ago

@DACOOX360X Just realised my wording: I meant if you have it- disable it. It's for certain wi-fi smart devices

No worries, thanks all the samešŸ‘ I really like this plugin but would love it to have more user adjustable features like configurable polling rates and more user friend error logs. Is the dev still supporting this as I donā€™t see many replies to user issues? Maybe his has been busy šŸ˜Š @stringbean

I do wonder and understand if so. I did send a tweet to stringbean, which i'd not normally do, but have had no reply.

LewisSpring commented 3 years ago

I'd like to note i've manually added the hostname/lan name and the issue still happens

DACOOX360X commented 3 years ago

Interestingly, line 80 of the source code file WiserPlatformPlugin.ts seems to print ā€œ'Error during system updateā€ and the cached error to the terminal log if the System Polling Update reports a catch error. So the reason it only happens every now and then or erratically may be due to the system no responding to an update request. Might be something silly like the Wiser Hub dropping out on the WiFi or something. Again Iā€™m probably barking up the wrong tree and itā€™s just speculation. Would love to know what @stringbean thoughts are....

LewisSpring commented 3 years ago

Interestingly, line 80 of the source code file WiserPlatformPlugin.ts seems to print ā€œ'Error during system updateā€ and the cached error to the terminal log if the System Polling Update reports a catch error. So the reason it only happens every now and then or erratically may be due to the system no responding to an update request. Might be something silly like the Wiser Hub dropping out on the WiFi or something. Again Iā€™m probably barking up the wrong tree and itā€™s just speculation. Would love to know what @stringbean thoughts are....

As far as I know, I've only had one real outage of Drayton Wiser a few weeks back. It was overnight, and I'm not too sure why. I did have a network outage today, where I had to reboot WiFi/Internet - but this system-not-found issue has occoured when the network has been stable (at least as far as I could tell)

LewisSpring commented 3 years ago

Even about 10 minutes ago - I was getting system not found errors.

I'm sure it must be a API issue. My HubR is close to the router and i've been using the internet/network fine as far as i can tell.

MingChops commented 3 years ago

No I don't have the Tuya plugin. I only have Hue, Wiser and Xbox.

To be fair the Wiser plugin works flawlessly, never had a single issue in terms of operating it from HomeKit app. Other than the annoying red text on Homebridge home screen you would not know anything was wrong.

My router is ****, NetGear R8000. I hate it, and will be replacing very soon once I've decided what to go with. Perhaps an AP mesh setup and I'll stick an AP very close to the Wider hub... when I change will update.

DACOOX360X commented 3 years ago

Itā€™s certainly a strange one...

I know when the error happens as I notice my Home app reports incorrect heat set point values. Probably because it canā€™t update and uses existing stale data.

When I check the Homebridge Accessory View the setpoint temp values are wrong there too. This should point to the issue being somewhere between the Wiser HUBR and Homebridge, and not between Homebridge and HomeKit.

Then I check the Homebridge Log and the ā€˜system not foundā€˜ errors are there in red.

LewisSpring commented 3 years ago

I'm glad you're having similar issues - though normal operation seems to have improved for me since removing tuya-web - I'm using HOOBS. I know Homebridge and HOOBs are practically the same, there are differences.

ChristopherJohnKelly commented 3 years ago

I am having exactly the same issue. It seemed to go away temporarily when I updated my config to include the (existing) static IP for the Wiser hub, but back today with the same errors as you.

timbojoeNBD commented 3 years ago

Me too - any idea how I can help to support any fix for this? I want to help - but don't know how. Thank you!

andyblac commented 1 year ago

just bought a starter kit, (waiting for it to arrive), s this plugin still working for broken ?

andyblac commented 1 year ago

I have an issue with the plugin showing the following information on the Homebridge status page log:

[12/5/2020, 5:07:32 PM] [drayton-wiser] Error during system update Error: system-not-found at WiserClient.request (/usr/local/lib/node_modules/@string-bean/homebridge-drayton-wiser/node_modules/@string-bean/drayton-wiser-client/src/WiserClient.ts:337:15) at runMicrotasks () at processTicksAndRejections (internal/process/task_queues.js:93:5) at WiserClient.fullStatus (/usr/local/lib/node_modules/@string-bean/homebridge-drayton-wiser/node_modules/@string-bean/drayton-wiser-client/src/WiserClient.ts:68:22) at WiserPlatformPlugin.updateSystem (/usr/local/lib/node_modules/@string-bean/homebridge-drayton-wiser/src/WiserPlatformPlugin.ts:101:26)

I have no idea why or what it means? It is quite random in it's appearance in the log. The plugin otherwise seems to work fine.

just had a quick look at the code, next time it happens try to open a webpage http://xxx.xxx.xxx.xxx/data/domain/ (use your drayton hubr ip address, it just seems like it failed to respond to the data request.

once I get mine, if i get any errors I will try to debug, I mainly know python and not java, but i'll give it a go.