You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 25, 2021. It is now read-only.
We can init an err variable and then trigger an error
var err = null; // in case there were any problems
...
err = new Error("Polling failed");
Or use a boolean like the dead attribute:
var err = null; // in case there were any problems
var isAccReachable = false; // Set Reachability
isAccReachable ? err = null : err = new Error("Polling failed");
Fake Outlet hap-nodejs test
I did a test with hap-nodejs et that file: Outlet_accessory.js.
If I change isAccReachable to true, the Outlet become reachable withHomeKit
pi@raspberrypi:/usr/lib/node_modules/homebridge/node_modules/hap-nodejs $ sudo nodejs Core.js
HAP-NodeJS starting...
Are we on? No.
Are we on? No.
Are we on? No.
Do you think it could be implemented? I can help for testing.
Regards
The text was updated successfully, but these errors were encountered:
Hello,
I would report unresponsive accessories to HomeKit app. For exemple if device is not powered on, the HC2 REST API reports is as dead:
dead: "true",
I found explanations here on the HAP-NodeJS github Change updateValue to return not responding status #556
Explanations
We can init an err variable and then trigger an error
Or use a boolean like the dead attribute:
Fake Outlet hap-nodejs test
I did a test with hap-nodejs et that file:
Outlet_accessory.js.
If I change isAccReachable to true, the Outlet become reachable withHomeKit
Do you think it could be implemented? I can help for testing.
Regards
The text was updated successfully, but these errors were encountered: