Problem with Fibaro Motion Sensor

Discussions about RaZberry - Z-Wave board for Raspberry computer
pofs
Posts: 688
Joined: 25 Mar 2011 19:03

Re: Problem with Fibaro Motion Sensor

Post by pofs »

After some research, it appears that even Home Center 2 currently is unable to update their own devices. Firmware update support is planned only in HC2 version 4, which is not even in beta state yet.

So just ignore that error message for now. Motion Sensor will run with a limited functionality.
edafonseca
Posts: 13
Joined: 12 May 2014 22:48

Re: Problem with Fibaro Motion Sensor

Post by edafonseca »

Hello,
I got a new Razberry (previous was from 16-04-2013 and not working.

I can now include my Fibaro motion sensor in Blue UI, and configure it.
But I have a problem, for exemple, I set the parameter 42 to 1 second (report light every 1 second) but my UI is never up to date, to get the last report I have to click on "Update" and wait for the device wakeup, otherwise I never get any information.
This is the same for temperature.
I tried with parameter 40 too ("Illumination report threshold").

And I also have the error in logs "Error returned from _zway_cc_call_handler(zway, command, controller->id, 0, data[4], &data[5]): Wrong packet from Z-Wave network or Discovery got bad data (stick communication failed) (-9)". Is there any solution for this ?

Thanks for your help.
fredaim
Posts: 11
Joined: 16 May 2014 17:38
Location: France

Re: Problem with Fibaro Motion Sensor

Post by fredaim »

edafonseca wrote:Hello,
I got a new Razberry (previous was from 16-04-2013 and not working.

I can now include my Fibaro motion sensor in Blue UI, and configure it.
But I have a problem, for exemple, I set the parameter 42 to 1 second (report light every 1 second) but my UI is never up to date, to get the last report I have to click on "Update" and wait for the device wakeup, otherwise I never get any information.
This is the same for temperature.
I tried with parameter 40 too ("Illumination report threshold").

And I also have the error in logs "Error returned from _zway_cc_call_handler(zway, command, controller->id, 0, data[4], &data[5]): Wrong packet from Z-Wave network or Discovery got bad data (stick communication failed) (-9)". Is there any solution for this ?

Thanks for your help.

I have Fibaro Motion Sensor with razberry. With z-way-server I never see illumination report... I tested with OpenZWave (with Domoticz) and I have it (temperatur and tamper too)
I think 1 second is too much, try with 60 first (for temperature). And do not forget if Motion Sensor wakes up every 300 seconds, we must wait that your changes take effect.

I am currently testing with the Aeon Z-Stick (under OpenZWave) and the motion sensor remains capricious: I lost it regularly and must do re-inclusion. I think that outside the box Fibaro, all the features of Fibaro Motion Sensor can not be used. In any case that I have.
pofs
Posts: 688
Joined: 25 Mar 2011 19:03

Re: Problem with Fibaro Motion Sensor

Post by pofs »

fredaim wrote:With z-way-server I never see illumination report... I tested with OpenZWave (with Domoticz) and I have it (temperatur and tamper too)
I'm not sure how Motion Sensor reports illumination, since its multi channel encapsulation is somewhat broken.
It is also possible it is just not shown in the UI, while collected correctly.
Maybe show us some logs?
fredaim
Posts: 11
Joined: 16 May 2014 17:38
Location: France

Re: Problem with Fibaro Motion Sensor

Post by fredaim »

pofs wrote: I'm not sure how Motion Sensor reports illumination, since its multi channel encapsulation is somewhat broken.
It is also possible it is just not shown in the UI, while collected correctly.
Maybe show us some logs?
Logs for illumination (OpenZWave) :

Code: Select all

2014-06-08 23:05:17.480 Node002,   Received: 0x01, 0x0c, 0x00, 0x04, 0x00, 0x02, 0x06, 0x31, 0x05, 0x03, 0x0a, 0x00, 0x05, 0xcb
2014-06-08 23:05:17.482
2014-06-08 23:05:17.484 Node002, Received SensorMultiLevel report from node 2, instance 1, Luminance: value=5lux
2014-06-08 23:05:17.486 Node002, Refreshed Value: old value=6, new value=5, type=string
2014-06-08 23:05:17.488 Node002, Changes to this value are not verified
and for tamper (two events):

Code: Select all

2014-06-08 23:10:24.818 Node002,   Received: 0x01, 0x0d, 0x00, 0x04, 0x00, 0x02, 0x07, 0x9c, 0x02, 0x02, 0x00, 0xff, 0x00, 0x00, 0x90
2014-06-08 23:10:24.820
2014-06-08 23:10:24.822 Node002, Refreshed Value: old value=255, new value=255, type=uint8
2014-06-08 23:10:24.824 Node002, Changes to this value are not verified
2014-06-08 23:10:24.825 Node002, Received alarm state report from node 2: General = 255
2014-06-08 23:10:24.860 Node002,   Received: 0x01, 0x0d, 0x00, 0x04, 0x00, 0x02, 0x07, 0x9c, 0x02, 0x02, 0x00, 0xff, 0x00, 0x00, 0x90
2014-06-08 23:10:24.862
2014-06-08 23:10:24.864 Node002, Refreshed Value: old value=255, new value=255, type=uint8
2014-06-08 23:10:24.866 Node002, Changes to this value are not verified
2014-06-08 23:10:24.868 Node002, Received alarm state report from node 2: General = 255
edafonseca
Posts: 13
Joined: 12 May 2014 22:48

Re: Problem with Fibaro Motion Sensor

Post by edafonseca »

When I am watching the logs for "RECEIVED" message, I only get thoses from wakeup, and nothing from temperature or light reports.
pofs
Posts: 688
Joined: 25 Mar 2011 19:03

Re: Problem with Fibaro Motion Sensor

Post by pofs »

fredaim wrote:
pofs wrote: I'm not sure how Motion Sensor reports illumination, since its multi channel encapsulation is somewhat broken.
It is also possible it is just not shown in the UI, while collected correctly.
Maybe show us some logs?
Logs for illumination (OpenZWave) :

Code: Select all

2014-06-08 23:05:17.480 Node002,   Received: 0x01, 0x0c, 0x00, 0x04, 0x00, 0x02, 0x06, 0x31, 0x05, 0x03, 0x0a, 0x00, 0x05, 0xcb
2014-06-08 23:05:17.482
2014-06-08 23:05:17.484 Node002, Received SensorMultiLevel report from node 2, instance 1, Luminance: value=5lux
2014-06-08 23:05:17.486 Node002, Refreshed Value: old value=6, new value=5, type=string
2014-06-08 23:05:17.488 Node002, Changes to this value are not verified
and for tamper (two events):

Code: Select all

2014-06-08 23:10:24.818 Node002,   Received: 0x01, 0x0d, 0x00, 0x04, 0x00, 0x02, 0x07, 0x9c, 0x02, 0x02, 0x00, 0xff, 0x00, 0x00, 0x90
2014-06-08 23:10:24.820
2014-06-08 23:10:24.822 Node002, Refreshed Value: old value=255, new value=255, type=uint8
2014-06-08 23:10:24.824 Node002, Changes to this value are not verified
2014-06-08 23:10:24.825 Node002, Received alarm state report from node 2: General = 255
2014-06-08 23:10:24.860 Node002,   Received: 0x01, 0x0d, 0x00, 0x04, 0x00, 0x02, 0x07, 0x9c, 0x02, 0x02, 0x00, 0xff, 0x00, 0x00, 0x90
2014-06-08 23:10:24.862
2014-06-08 23:10:24.864 Node002, Refreshed Value: old value=255, new value=255, type=uint8
2014-06-08 23:10:24.866 Node002, Changes to this value are not verified
2014-06-08 23:10:24.868 Node002, Received alarm state report from node 2: General = 255
Looks like illumination is a standard SensorMultilevel report.
Which UI of z-way are you referring to - Blue UI, or Home Automation UI?

Try querying illumination value from your browser:

Code: Select all

http://razberry:8083/ZWaveAPI/Run/devices[<nodeId>].SensorMultilevel.data[3]
Probably UI doesn't handle multiple sensor types.
edafonseca
Posts: 13
Joined: 12 May 2014 22:48

Re: Problem with Fibaro Motion Sensor

Post by edafonseca »

I'm trying with BlueUI, but it is the same with HA

Result of this for me :

Code: Select all

{"name":"3","type":"NoneType","value":null,"updateTime":1402262552,"invalidateTime":1402262483,"sensorTypeString":{"name":"sensorTypeString","type":"str","value":"Luminiscence","updateTime":1402261087,"invalidateTime":1402261086},"val":{"name":"val","type":"float","value":2,"updateTime":1402262552,"invalidateTime":1402261086},"deviceScale":{"name":"deviceScale","type":"int","value":1,"updateTime":1402262552,"invalidateTime":1402261086},"scale":{"name":"scale","type":"int","value":1,"updateTime":1402262552,"invalidateTime":1402261086},"scaleString":{"name":"scaleString","type":"str","value":"Lux","updateTime":1402262552,"invalidateTime":1402261086}}
pofs
Posts: 688
Joined: 25 Mar 2011 19:03

Re: Problem with Fibaro Motion Sensor

Post by pofs »

edafonseca wrote:I'm trying with BlueUI, but it is the same with HA

Result of this for me :

Code: Select all

{"name":"3","type":"NoneType","value":null,"updateTime":1402262552,"invalidateTime":1402262483,"sensorTypeString":{"name":"sensorTypeString","type":"str","value":"Luminiscence","updateTime":1402261087,"invalidateTime":1402261086},"val":{"name":"val","type":"float","value":2,"updateTime":1402262552,"invalidateTime":1402261086},"deviceScale":{"name":"deviceScale","type":"int","value":1,"updateTime":1402262552,"invalidateTime":1402261086},"scale":{"name":"scale","type":"int","value":1,"updateTime":1402262552,"invalidateTime":1402261086},"scaleString":{"name":"scaleString","type":"str","value":"Lux","updateTime":1402262552,"invalidateTime":1402261086}}
So data is correctly recognised, but not displayed in the UI.
I believe Blue UI doesn't support multiple sensor types.
Home Automation should create device like "Sensor 2:0:49:3" for it (where 2 is node id). If there's no one, make sure you're using the latest HA revision (checkout from git). Also check log for errors.
edafonseca
Posts: 13
Joined: 12 May 2014 22:48

Re: Problem with Fibaro Motion Sensor

Post by edafonseca »

I hâve 3 devices un the UI, Motion, température and luminosity with théier values. The problem is that values never change unless i click on update button and wait for wakeup. I'm not reveiving any report from fibaro Motion sensor.
Post Reply