-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error when setting temperature on PRTHW-TS WiFi RF #2
Comments
Ah! Looking at the |
OK so I think what is needed is a model setting in the config, using the list at https://github.com/carlossg/heatmiser-node/blob/master/lib/wifi.js#L40. It's the fourth parameter to wifi.new, so it should be easy enough to pass in. I'll send a PR! |
Hi, i didn't have homebridge working anymore. I'll accept your PR, 'model' could be an optional paremeter for settings |
After a bit of experimentation, I've found that the heatmiser-node library configures itself for the right model without a problem, as long as you've read something from the stat before you try to write. Because the code in this module creates a new object each time it writes, the autoconfiguration doesn't work. I can fix it without extra config by making the wifi object persistent, rather than recreated each time. This will also DRY up the code. |
Hm, https://github.com/carlossg/heatmiser-node/blob/master/lib/wifi.js#L167 should mean that the read-before-write isn't required, but it's not working for some reason. (sorry for the stream of debugging notes, hope you don't mind @pumamood) |
I'm coming back to this now after having a break from homebridge; if I can get it working and debug my issues, I would be happy to take on maintenance of the plugin. |
@Floppy I have the same problem with my PRTHW model. Did you ever get it to work? |
Turns out the pandemic is still going on and my life remains a mess, so no, not really. Also I'm playing with homeassistant now rather than homebridge; not that I've got that working either :) |
Ok I understand. Good luck
Thanks for getting back to me
Iain
…On Thu, 4 Feb 2021 at 11:15, James Smith ***@***.***> wrote:
Turns out the pandemic is still going on and my life remains a mess, so
no, not really. Also I'm playing with homeassistant now rather than
homebridge; not that I've got that working either :)
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#2 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AODIAOPXBKLQPV44NTSOQ7DS5J6V3ANCNFSM4GXYCI6A>
.
|
Fix for Issue #2 I originally called it Fix pumamood#3, it's actually a fix for Issue #2 at pumamood/ homebridge-heatmiser Error when setting temperature on PRTHW-TS WiFi RF #2 It needs additional lines in config.json, see README.md
hi guys you can PR what you need or became collaborator if you want |
Hello I’m not planning to take this much further, just a few bug fixes and
tweaks maybe. Either way works for me. Thanks
…On Fri, 5 Feb 2021 at 21:10, Puma ***@***.***> wrote:
hi guys you can PR what you need or became collaborator if you want
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#2 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AODIAOMJKASOXHM26NDFNYLS5RNEJANCNFSM4GXYCI6A>
.
|
@pumamood you can close this now |
Reading temperature works fine, but setting it results in:
Running latest homebridge and heatmiser plugin on node 8.11.
The text was updated successfully, but these errors were encountered: