Page 1 of 2

Fibaro Motion Sensor don't change status

Posted: 21 Jul 2016 14:57
by Sammy
I'm working on a small automation with the Fibaro Motion Sensor FW3.2 and Fibaro Wall Plug.

My problem at the moment ist, that the Motion Sensor doesn't report the General Purpose Alarm Status properly. It changes to ON and stays for 1-2 hours. Then it changes back to Off.

Can somebody please tell me what exactly must be configured to get this Sensor reporting live, so I can use the status to control the wall plug immideately?

Thanks in advance

Re: Fibaro Motion Sensor don't change status

Posted: 21 Jul 2016 16:13
by pz1
Did you read the manual that comes with the device?

I do not have this device, but I think you'll find the parameters to congigure the responses

Re: Fibaro Motion Sensor don't change status

Posted: 21 Jul 2016 16:53
by Sammy
I already read this documentation: http://www.fibaro.com/manuals/en/Motion ... 5.3.14.pdf
I can't find anything that could help me.

I don't know if I wrote the description fully understandable.
The problem is, that once this goes to on. It stays on for hours and doesn't report off when no more motion is detected for couple of hours.(see attachment)

Re: Fibaro Motion Sensor don't change status

Posted: 21 Jul 2016 17:04
by pz1
What is your value of parameter 6 MOTION ALARM CANCELLATION DELAY (See configuration screen?
I guess parameter 3 and 4 determine how long the device waits after a movement detection.
As I said I don't have this device so I must leave further answering to others.
IIRC there have been several post about this device. So it may help to search the forum

Re: Fibaro Motion Sensor don't change status

Posted: 21 Jul 2016 18:05
by Sammy
all parameter are set to default

Re: Fibaro Motion Sensor don't change status

Posted: 22 Jul 2016 11:14
by aƱep

Re: Fibaro Motion Sensor don't change status

Posted: 22 Jul 2016 14:05
by Sammy
Ok, I found that the element left to the red marked one changes the motion status live.
The element called Fibar Group (10.0...).

My problem is, that this element is not listed as an sensor when I want to create logic rules.
Does anybody know if it is possible to redefine this element to the type sensor? This would exactly do this what I want.

At the moment this element switch to ON when motion is detected and switch back to OFF when no motion in the last 30 sec. was detected.

Please give me an advise how to modify this element type to "Sensor"

Thanks a lot

Re: Fibaro Motion Sensor don't change status

Posted: 22 Jul 2016 14:38
by pz1
Sammy wrote:At the moment this element switch to ON when motion is detected and switch back to OFF when no motion in the last 30 sec. was detected.
In my elements screen, I do have a similar virtualDevice (35.0.0) image (door/window sensor) as you have. In the dropdown menu of logicalRule I can select sensor 35.0.48.1
Capture.PNG
Capture.PNG (4.22 KiB) Viewed 13373 times
In your case I would expect somthing with 10.0.48.1 added to the sensor name. If not I think something went wrong there with the device interview.

Re: Fibaro Motion Sensor don't change status

Posted: 22 Jul 2016 15:04
by Sammy
Unfortunately not...
Ok, but I think I have a workaround. I just need a short input from you.

I created a HTTP Device which do a get to: http://localhost:8083/ZWaveAPI/Run.devi ... a[7].event

This responses: {"invalidateTime" :1469112967,"updateTime" :14691885265, "type":"int", "value":8} -> Mean Motion detected.
This responses: {"invalidateTime" :1469112967,"updateTime" :14691885265, "type":"int", "value":0} -> Mean NO Motion detected.

My problem is how do I parse it right in the line "Inline Javascript to parse incoming data to 'on'/'off' strings".
I've no deep knowledge in Javascirpt.

Can somebody help me with the right Javascript line for the HTTP Device module to parse 0 to OFF and 8 to ON?

Thanks

Re: Fibaro Motion Sensor don't change status

Posted: 22 Jul 2016 16:07
by Sammy
Ok friends, finally got this system working now.
For somebody fighting with Fibaro Motion sensor here is the solution that worked for me.

1. Include your Motion Sensor normally in your z-way system.
2. Create a virtual http device with sensor binary and http get request to: http://localhost:8083/ZWaveAPI/Run.devi ... vent.value

This will respond with 0 for no motion and 8 for motion. (I had to deactivate the tamper sensor in the expert ui because as soon as tamper was detected, the device stopped to report 8 for motion).

Javascript to parse value to on/off: $$ == '8' ? 'on' : 'off'

That's it. Now you have a virtual http device reporting on and off status and you can use it in different rules to control switches etc. by detected motion.