Skip to content
This repository has been archived by the owner on May 31, 2022. It is now read-only.

linkDevice issue #33

Open
PaulWieland opened this issue Dec 15, 2019 · 2 comments
Open

linkDevice issue #33

PaulWieland opened this issue Dec 15, 2019 · 2 comments

Comments

@PaulWieland
Copy link
Contributor

The first issue is that if linkDevice doesn't seem to work with battery operated devices. I put the battery device in awake mode (press and hold the set button so the LED flashes), then tried to run await linkDevice. The modem LED begins flashing, but the program never progresses passed this point.

The second thing I noticed if an invalid address, or a device is otherwise unresponsive is given to the linkDevice command, the modem becomes stuck in this state and is unresponsive to any other commands. After a while the modem will give a long buzz, and then it seems to work again.

Attempting to link an invalid device address on my other home controller results in a message that says "Unable to determine insteon engine", so possibly we need to send a query message first before putting the modem into link mode?

@apearson
Copy link
Owner

I agree, we need to send a engine query first to determine how to start linking. This will also stop invalid addresses from putting the modem into a frozen state.

The modem's long buzz happens after 4 or 5 mins and is the modem's linking state timing out.

@PaulWieland
Copy link
Contributor Author

Third thing that is closely related - when unlinking a device, it should ping/query the device first to unlink it, but even if there is no response from the device the modem to remove it's own links.

Right now when I try and unlink a battery powered device which isn't awake, it fails with a timeout. If the device were physically broken or missing there would be no way to remove it from the PLM as it stands.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants