Setting up a virtual 3-way circuit

Discussions about Z-Way software and Z-Wave technology in general
Post Reply
jensmoes
Posts: 57
Joined: 10 Jan 2015 21:48
Location: San Diego
Contact:

Setting up a virtual 3-way circuit

Post by jensmoes »

Does anyone know how to set up a functional virtual 3-way switch circuit in the HA?
BindDevices is clearly not coded to handle this at all. Just try and cross link two switches and see what happens when you press one.
It begins an infinite loop and a magnificent light show that won't end until you kill the server.
A good way to break your Z-Way HA config :). Make sure you back up the config JSON file.

This probably happens because multiple metric and level change events are being tossed around by the system when various events occur such as Get commands to get the current status. The module listens for these.
Since it has no queue nor uses any sort of state-ful design pattern it is unable to detect circular dependencies and will just keep on switching.

Anyway, I have not been able to find a reliable way to do this. If anyone has I would be extremely interested in learning about it.
jensmoes
Posts: 57
Joined: 10 Jan 2015 21:48
Location: San Diego
Contact:

Re: Setting up a virtual 3-way circuit

Post by jensmoes »

After doing a little debugging, the root cause appears to be that metrics:level and/or metrics:changed are issued regardless of current state. A change event should only be issued when it actually occurs not if the state does not change.
Is this something you plan to correct any time soon?
Post Reply