Open anon1y4012 opened 4 years ago
Hey thanks for reporting! I'm taking a look into it now and will report back.
@john2691 I think there may be a problem with the auto discovery feature of the plugin. This has turned out to be a bit more challenging than originally anticipated, but as long as you know the IP address of your fan(s), you can skip that entirely by specifying the following:
{
"platform": "ModernForms",
"autoDiscover": false,
"fans": [
{
"ip": "YOUR FANS IP ADDRESS"
}
]
}
That should hopefully get things working for you, but it would be great to understand what's causing this in the first place. Would you mind sharing what platform you're running on (Mac, Linux, Windows, HOOBS device), and if you are running in a Docker container?
I've also pushed an update, 1.0.6
, that should prevent the crash from happening. The issue is I can't seem to determine some network details to make a guess at the range of IP addresses your fan's may be in. I've now provided fallbacks for those missing details, but those fallbacks may align with how your network is configured.
Ok, so I've updated to 1.0.6 and get a different error, with and without the manual IP address of the fan in the config file.
I'll also note that the fan is on the same subnet of the machine running Homebridge, which is a Raspberry Pi 3B+ running Buster.
[8/29/2020, 8:39:32 PM] Error: spawn arp ENOENT at Process.ChildProcess._handle.onexit (internal/child_process.js:267:19) at onErrorNT (internal/child_process.js:469:16) at processTicksAndRejections (internal/process/task_queues.js:84:21)
Thanks for the fast response, let me know what else you need!
@john2691 Okay that's a bummer, will try to reproduce with Buster but might take a little longer 😄.
Did you also add "autoDiscover": false,
to the config?
Just added it, problem solved. Working great now, thanks!
For anyone with this bug in the immediate future, my config looks like this.
{ "platform": "ModernForms", "autoDiscover": false, "fans": [ { "ip": "192.168.X.XX" } ] },
@john2691 Great! Would be super helpful if you could test the auto discovery for me in the future when I push a fix. I'll leave the issue open for now.
Just let me know!
Hi, when I try to run homebridge with the plugin installed I'm hitting the following error.
It actually logs the error twice, with the same timestamp.
Homebridge then crashes. The config looks like this
...... { "platform": "ModernForms" }, .....
Any thoughts?