Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Motion Sensor notifications #36

Closed
Jerem-35 opened this issue Feb 27, 2019 · 6 comments
Closed

Motion Sensor notifications #36

Jerem-35 opened this issue Feb 27, 2019 · 6 comments

Comments

@Jerem-35
Copy link

Hello,

I am currently facing issues with motions sensors notifications with a Fibaro FGMS-001 (I did try with another motion sensor with the same result).

How am I supposed to be notified when a motion is detected? I thought it would work with the "NodeUpdated" callback from ZWaveController but it never raises such event.

I dit try to use SensorBinary.Get(node) but as a result I am notifiied that the device is in sleeping mode.

Thank you.

Jérémy

@Jerem-35 Jerem-35 changed the title Motion Sensor Motion Sensor notifications Feb 27, 2019
@Bounz
Copy link
Collaborator

Bounz commented Feb 27, 2019

Have you added your controller to the Association Group 3 in sensor settings?

@Jerem-35
Copy link
Author

Thank you for your quick answer!

I did not! Is it something that has to be configured in zwavenodes.xml ?
I did not find anything about association groups.

@Bounz
Copy link
Collaborator

Bounz commented Feb 27, 2019

No, you configure it in node settings.
image

image

You have to add your controller (usually node 1) to this group.

@Jerem-35
Copy link
Author

If I refer to the code, it is something that can be done with the following function of Association.cs?

public static ZWaveMessage Set(ZWaveNode node, byte groupid, byte targetNodeId)
(In this case with, groupeid=3, targetnodid=1)

From which application your screenshots are taken?

@Bounz
Copy link
Collaborator

Bounz commented Feb 27, 2019

Yes, this code should work.
Screenshots were taken from HomeGenie home automation system https://github.com/genielabs/HomeGenie

@Jerem-35
Copy link
Author

Thank you a lot for your answers. I did not know anything about these groups, sorry for that.
Here is the code I used for the ones who face the same issue :

ZWaveNode node0 = controller.GetNode(14); // My motion sensor
Association.Set(node0 , 3, 1);

Now motion notifications are correctly raised.

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

No branches or pull requests

2 participants