Fibaro Motion Sensor FGMS-001 cannot set associations

I’ve decided I hate Z-Wave motion sensors they are a pain in the arse to setup. I still had no joy setting the association in the UI7 web GUI and still no reply from Vera support on email.

So I reached out to Vesternet and their technical support manager Martyn kindly gave me some insight. Here is what he said:

Nice to hear from you!

I took a quick look at your thread on the Vera forum and based on the log files Vera is having trouble carrying out the initial security exchange that occurs when it needs to communicate with a secure device.

You can see this from the “cannot get nonce” and then the subsequent “can’t encrypt” messages.

Unfortunately these types of problem can be tricky to troubleshoot, but usually what’s happening is that other devices attempt to communicate with Vera at the same time, which interrupts that initial security exchange.

In the first instance, I would suggest trying to see if you can repeatedly and consistently get the device to wake up (by triple-clicking the B-Button) while observing the log files. You really want to be able to see that whole process complete without interruption and error before going further.

The other problem is that it’s difficult to know when to wake a battery powered device up when trying to set Associations from Vera, because typically you click Save in the Vera UI and then it does a whole bunch of stuff (perhaps restarting the LUUP engine and sending a boat load of commands out on the Z-Wave network at the same time).

What you can do, is try and send the Association command directly using raw Z-Wave LUUP calls from the LUUP test window.

This can still be tricky to get the timing right, but doing it this way you can at least watch the logs until a quiet period before you click the “go” button on the LUUP test window and then triple-click the B-Button on the device with reasonably accurate timing.

luup.call_action('urn:micasaverde-com:serviceId:ZWaveNetwork1','SendData',{Node='91',Data='133 1 2 85'},1)

91 - Motion Sensor Z-Wave Node ID
133 - Association Command Class
1 - Set
2 - Group you want to use
85 - Dimmer 2 Z-Wave Node ID

Please let me know if that helps?

NOTE: The NodeID is the altid in Vera on the devices Advanced page.

I ran the LUUP command:

luup.call_action('urn:micasaverde-com:serviceId:ZWaveNetwork1','SendData',{Node='91',Data='133 1 2 85'},1)

And the Dimmer 2 module started turning on the lights when motion was detected and off again after the default 30 second time out, so the association was set and working !

The direct association set between the two devices using this command method, doesn’t make the configured association information appear under “Device Options” and the “Associations” section of the UI7 GUI though, that is all still blank.

image

Here is what Martyn said about that:

Yeah you won’t see anything there because that’s just a LUUP variable that Vera uses internally. Sending raw Z-Wave command bypasses that.

You can check on the Advanced → Variables tab and look for “AssociationGet” and “ConfiguredAssoc”, the first is what Vera “got” from the device, so they are what have been set and the latter is what Vera has stored internally and is what drives the Associations section on the UI.

My “ConfiguredAssoc” was empty as expected, however I don’t have a “AssociationGet” field listed at all on the Motion Sensor.

If you want to delete the association:

Change the Set (1) to a Remove (4):

luup.call_action('urn:micasaverde-com:serviceId:ZWaveNetwork1','SendData',{Node='91',Data='133 4 2 85'},1)

Get Association:

You can also send a Get (2) to check what it’s set to, but you’d need to interpret the reply from the log.

These are my current device parameters set on the Fibaro Motion Sensor.

I bought this Fibaro Motion Sensor to replace a Neo CoolCam one that said it was Z-Wave Plus but wasn’t included in to Vera in Secure Mode and therefore the Neo CoolCam couldn’t control the Fibaro Dimmer 2 that was also in Secure Mode via direct association.

I did have the Neo CoolCam controlling the Dimmer 2 via PLEG logic for a while, but found it wasn’t fast enough and instant like direct association is.