Page 1 of 2

Motion Sensor not updating?? (HS - FLS100+)

Posted: 21 Aug 2018 18:51
by hp1
Hello,

I just purchased a Homeseer Floorlight sensor, and am having problems getting sensor data. It paired properly, and shows up as a switch (to turn on and off the floodlights, which works great), a general purpose sensor, a luminesce sensor, burglar notification and power management notification.

The luminesce sensor works well. I see the updates being sent during the day. The problem is the general purpose sensor which is a motion sensor. It has either an idle or triggered state. I only see the triggered state if I press the update button once the motion sensor is triggered. It looks like zway sees motion data, but rather as an event and doesn't change it's state.

From the logs, here's some of the relevant parts.

2018-08-20 21:33:15.572] [D] [zway] SETDATA devices.18.data.lastReceived = 0 (0x00000000)
[2018-08-20 21:33:15.573] [D] [zway] SETDATA devices.18.instances.0.commandClasses.32.data.level = 255 (0x000000ff)
[2018-08-20 21:33:17.523] [D] [zway] RECEIVED: ( 01 09 00 04 00 12 03 25 03 FF 3A )
[2018-08-20 21:33:17.524] [D] [zway] SENT ACK
[2018-08-20 21:33:17.524] [D] [zway] SETDATA devices.18.data.lastReceived = 0 (0x00000000)
[2018-08-20 21:33:17.524] [D] [zway] SETDATA devices.18.instances.0.commandClasses.37.data.level = True
[2018-08-20 21:33:25.881] [D] [zway] Job 0x13: deleted from queue
[2018-08-20 21:33:29.934] [D] [zway] RECEIVED: ( 01 10 00 04 00 12 0A 71 05 00 00 00 FF 07 00 01 08 76 )
[2018-08-20 21:33:29.934] [D] [zway] SENT ACK
[2018-08-20 21:33:29.935] [D] [zway] SETDATA devices.18.data.lastReceived = 0 (0x00000000)
[2018-08-20 21:33:29.935] [D] [zway] SETDATA devices.18.instances.0.commandClasses.113.data.7.eventParameters = byte[1]
[2018-08-20 21:33:29.935] [D] [zway] ( 08 )
[2018-08-20 21:33:29.936] [D] [zway] SETDATA devices.18.instances.0.commandClasses.113.data.7.event = 0 (0x00000000)
[2018-08-20 21:33:29.938] [D] [zway] SETDATA devices.18.instances.0.commandClasses.113.data.7.eventString = ""
[2018-08-20 21:33:29.939] [D] [zway] SETDATA devices.18.instances.0.commandClasses.113.data.7.status = 255 (0x000000ff)
[2018-08-20 21:33:29.939] [D] [zway] SETDATA devices.18.instances.0.commandClasses.113.data.7 = Empty
[2018-08-20 21:33:29.965] [D] [zway] RECEIVED: ( 01 09 00 04 00 12 03 20 03 00 C0 )
[2018-08-20 21:33:29.965] [D] [zway] SENT ACK
[2018-08-20 21:33:29.966] [D] [zway] SETDATA devices.18.data.lastReceived = 0 (0x00000000)
[2018-08-20 21:33:29.966] [D] [zway] SETDATA devices.18.instances.0.commandClasses.32.data.level = 0 (0x00000000)
[2018-08-20 21:33:31.930] [D] [zway] RECEIVED: ( 01 09 00 04 00 12 03 25 03 00 C5 )
[2018-08-20 21:33:31.930] [D] [zway] SENT ACK
[2018-08-20 21:33:31.931] [D] [zway] SETDATA devices.18.data.lastReceived = 0 (0x00000000)
[2018-08-20 21:33:31.931] [D] [zway] SETDATA devices.18.instances.0.commandClasses.37.data.level = False
[2018-08-20 21:34:02.772] [core] http://ip/set(%DEVICE%,%VALUE%) : ZWayVDev_zway_18-0-37 : off : http://ip/set(ZWayVDev_zway_18-0-37,off)
[2018-08-20 21:34:02.936] [core] Request was successful
[2018-08-20 21:34:03.039] [core] Request was successful
[2018-08-20 21:34:03.179] [zway] Adding job: SensorBinary Get
[2018-08-20 21:34:03.187] [D] [zway] SENDING (cb 0x33): ( 01 09 00 13 12 02 30 02 25 33 D1 )
[2018-08-20 21:34:03.189] [D] [zway] RECEIVED ACK
[2018-08-20 21:34:03.192] [D] [zway] RECEIVED: ( 01 04 01 13 01 E8 )
[2018-08-20 21:34:03.192] [D] [zway] SENT ACK
[2018-08-20 21:34:03.193] [D] [zway] Delivered to Z-Wave stack
[2018-08-20 21:34:03.208] [D] [zway] RECEIVED: ( 01 05 00 13 33 00 DA )
[2018-08-20 21:34:03.208] [D] [zway] SENT ACK
[2018-08-20 21:34:03.208] [zway] Job 0x13 (SensorBinary Get): Delivered
[2018-08-20 21:34:03.209] [D] [zway] SendData Response with callback 0x33 received: received by recipient
[2018-08-20 21:34:03.209] [D] [zway] SETDATA devices.18.data.lastSendInternal = **********
[2018-08-20 21:34:03.209] [D] [zway] Job 0x13 (SensorBinary Get): success
[2018-08-20 21:34:03.210] [zway] Waiting for job reply: SensorBinary Get
[2018-08-20 21:34:03.228] [D] [zway] RECEIVED: ( 01 09 00 04 00 12 03 30 03 00 D0 )
[2018-08-20 21:34:03.228] [D] [zway] SENT ACK
[2018-08-20 21:34:03.229] [D] [zway] SETDATA devices.18.data.lastReceived = 0 (0x00000000)
[2018-08-20 21:34:03.229] [D] [zway] Received reply on job (SensorBinary Get)
[2018-08-20 21:34:03.229] [D] [zway] SETDATA devices.18.instances.0.commandClasses.48.data.1.level = False
[2018-08-20 21:34:03.230] [D] [zway] SETDATA devices.18.instances.0.commandClasses.48.data.1 = Empty

**** This was me pressing update
[2018-08-20 21:34:03.249] [core] http://ip/set(%DEVICE%,%VALUE%) : ZWayVDev_zway_18-0-48-1 : off : http://ip/set(ZWayVDev_zway_18-0-48-1,off)
[2018-08-20 21:34:03.404] [core] Request was successful
[2018-08-20 21:34:05.378] [D] [zway] Job 0x13: deleted from queue
[2018-08-20 21:38:09.565] [W] [zway] Node 18:0 CC Alarm: Alarm type 7 is not supported by device
[2018-08-20 21:38:19.904] [W] [zway] Node 18:0 CC Alarm: Alarm type 8 is not supported by device
[2018-08-20 21:38:37.930] [D] [zway] RECEIVED: ( 01 0C 00 04 00 12 06 31 05 03 0A 00 21 FF )
[2018-08-20 21:38:37.930] [D] [zway] SENT ACK
[2018-08-20 21:38:37.931] [D] [zway] SETDATA devices.18.data.lastReceived = 0 (0x00000000)
[2018-08-20 21:38:37.932] [D] [zway] SETDATA devices.18.instances.0.commandClasses.49.data.3.deviceScale = 1 (0x00000001)
[2018-08-20 21:38:37.932] [D] [zway] SETDATA devices.18.instances.0.commandClasses.49.data.3.scale = 1 (0x00000001)
[2018-08-20 21:38:37.936] [D] [zway] SETDATA devices.18.instances.0.commandClasses.49.data.3.scaleString = "Lux"
[2018-08-20 21:38:37.936] [D] [zway] SETDATA devices.18.instances.0.commandClasses.49.data.3.val = 33.000000
[2018-08-20 21:38:37.937] [D] [zway] SETDATA devices.18.instances.0.commandClasses.49.data.3 = Empty
[2018-08-20 21:38:38.136] [core] http://ip/set(%DEVICE%,%VALUE%) : ZWayVDev_zway_18-0-49-3 : 33 : http://ip/set(ZWayVDev_zway_18-0-49-3,33)
[2018-08-20 21:38:38.346] [core] Request was successful
[2018-08-20 21:39:14.727] [D] [zway] RECEIVED: ( 01 0F 00 04 00 12 09 71 05 00 00 00 FF 07 08 00 6B )
[2018-08-20 21:39:14.728] [D] [zway] SENT ACK
[2018-08-20 21:39:14.728] [D] [zway] SETDATA devices.18.data.lastReceived = 0 (0x00000000)
[2018-08-20 21:39:14.728] [D] [zway] SETDATA devices.18.instances.0.commandClasses.113.data.7.eventParameters = byte[0]
[2018-08-20 21:39:14.729] [D] [zway] ( zero-length buffer )
[2018-08-20 21:39:14.729] [D] [zway] SETDATA devices.18.instances.0.commandClasses.113.data.7.event = 8 (0x00000008)
[2018-08-20 21:39:14.733] [D] [zway] SETDATA devices.18.instances.0.commandClasses.113.data.7.eventString = "Motion detected, location unknown"
[2018-08-20 21:39:14.733] [D] [zway] SETDATA devices.18.instances.0.commandClasses.113.data.7.status = 255 (0x000000ff)
[2018-08-20 21:39:14.734] [D] [zway] SETDATA devices.18.instances.0.commandClasses.113.data.7 = Empty
[2018-08-20 21:39:14.794] [D] [zway] RECEIVED: ( 01 09 00 04 00 12 03 20 03 FF 3F )
[2018-08-20 21:39:14.795] [D] [zway] SENT ACK
[2018-08-20 21:39:14.795] [D] [zway] SETDATA devices.18.data.lastReceived = 0 (0x00000000)
[2018-08-20 21:39:14.795] [D] [zway] SETDATA devices.18.instances.0.commandClasses.32.data.level = 255 (0x000000ff)
[2018-08-20 21:39:16.731] [D] [zway] RECEIVED: ( 01 09 00 04 00 12 03 25 03 FF 3A )
[2018-08-20 21:39:16.732] [D] [zway] SENT ACK
[2018-08-20 21:39:16.732] [D] [zway] SETDATA devices.18.data.lastReceived = 0 (0x00000000)
[2018-08-20 21:39:16.733] [D] [zway] SETDATA devices.18.instances.0.commandClasses.37.data.level = True
[2018-08-20 21:39:16.747] [I] [core] http://ip/set(%DEVICE%,%VALUE%) : ZWayVDev_zway_18-0-37 : on : http://ip/set(ZWayVDev_zway_18-0-37,on)

*** Razberry changed the light state, but not the motion state

[2018-08-20 21:39:16.877] [I] [core] Request was successful
[2018-08-20 21:39:28.941] [D] [zway] RECEIVED: ( 01 10 00 04 00 12 0A 71 05 00 00 00 FF 07 00 01 08 76 )
[2018-08-20 21:39:28.942] [D] [zway] SENT ACK
[2018-08-20 21:39:28.942] [D] [zway] SETDATA devices.18.data.lastReceived = 0 (0x00000000)
[2018-08-20 21:39:28.943] [D] [zway] SETDATA devices.18.instances.0.commandClasses.113.data.7.eventParameters = byte[1]
[2018-08-20 21:39:28.943] [D] [zway] ( 08 )
[2018-08-20 21:39:28.943] [D] [zway] SETDATA devices.18.instances.0.commandClasses.113.data.7.event = 0 (0x00000000)
[2018-08-20 21:39:28.946] [D] [zway] SETDATA devices.18.instances.0.commandClasses.113.data.7.eventString = ""
[2018-08-20 21:39:28.947] [D] [zway] SETDATA devices.18.instances.0.commandClasses.113.data.7.status = 255 (0x000000ff)
[2018-08-20 21:39:28.947] [D] [zway] SETDATA devices.18.instances.0.commandClasses.113.data.7 = Empty
[2018-08-20 21:39:28.972] [D] [zway] RECEIVED: ( 01 09 00 04 00 12 03 20 03 00 C0 )
[2018-08-20 21:39:28.972] [D] [zway] SENT ACK
[2018-08-20 21:39:28.973] [D] [zway] SETDATA devices.18.data.lastReceived = 0 (0x00000000)
[2018-08-20 21:39:28.973] [D] [zway] SETDATA devices.18.instances.0.commandClasses.32.data.level = 0 (0x00000000)
[2018-08-20 21:39:30.932] [D] [zway] RECEIVED: ( 01 09 00 04 00 12 03 25 03 00 C5 )
[2018-08-20 21:39:30.932] [D] [zway] SENT ACK
[2018-08-20 21:39:30.933] [D] [zway] SETDATA devices.18.data.lastReceived = 0 (0x00000000)
[2018-08-20 21:39:30.933] [D] [zway] SETDATA devices.18.instances.0.commandClasses.37.data.level = False
[2018-08-20 21:39:30.958] [I] [core] http://ip/set(%DEVICE%,%VALUE%) : ZWayVDev_zway_18-0-37 : off : http://ip/set(ZWayVDev_zway_18-0-37,off)
[2018-08-20 21:39:31.095] [I] [core] Request was successful


The notifications are weird. If I turn the burglar status off, I get an error: Unable to update data. devices[18].instances[0].commandClasses[113].Set(7,0)
If I try and turn the power management ON, I get a similar error: Unable to update data. devices[18].instances[0].commandClasses[113].Set(8,255)

Re: Motion Sensor not updating?? (HS - FLS100+)

Posted: 22 Aug 2018 04:56
by hp1
Just a bit more on this, the motion sensor works, and the razberry definitely sees the activity, however, it seems like a notification is triggered but a state change on 0-48-1 isn't:

[2018-08-21 18:31:08.607] [D] [zway] RECEIVED: ( 01 0F 00 04 00 12 09 71 05 00 00 00 FF 07 08 00 6B )
[2018-08-21 18:31:08.608] [D] [zway] SENT ACK
[2018-08-21 18:31:08.610] [D] [zway] SETDATA devices.18.data.lastReceived = 0 (0x00000000)
[2018-08-21 18:31:08.611] [D] [zway] SETDATA devices.18.instances.0.commandClasses.113.data.7.eventParameters = byte[0]
[2018-08-21 18:31:08.619] [D] [zway] ( zero-length buffer )
[2018-08-21 18:31:08.620] [D] [zway] SETDATA devices.18.instances.0.commandClasses.113.data.7.event = 8 (0x00000008)
[2018-08-21 18:31:08.626] [D] [zway] SETDATA devices.18.instances.0.commandClasses.113.data.7.eventString = "Motion detected, location unknown"
[2018-08-21 18:31:08.627] [D] [zway] SETDATA devices.18.instances.0.commandClasses.113.data.7.status = 255 (0x000000ff)
[2018-08-21 18:31:08.628] [D] [zway] SETDATA devices.18.instances.0.commandClasses.113.data.7 = Empty
[2018-08-21 18:31:23.608] [D] [zway] RECEIVED: ( 01 10 00 04 00 12 0A 71 05 00 00 00 FF 07 00 01 08 76 )
[2018-08-21 18:31:23.609] [D] [zway] SENT ACK
[2018-08-21 18:31:23.611] [D] [zway] SETDATA devices.18.data.lastReceived = 0 (0x00000000)
[2018-08-21 18:31:23.612] [D] [zway] SETDATA devices.18.instances.0.commandClasses.113.data.7.eventParameters = byte[1]
[2018-08-21 18:31:23.613] [D] [zway] ( 08 )
[2018-08-21 18:31:23.614] [D] [zway] SETDATA devices.18.instances.0.commandClasses.113.data.7.event = 0 (0x00000000)
[2018-08-21 18:31:23.619] [D] [zway] SETDATA devices.18.instances.0.commandClasses.113.data.7.eventString = ""
[2018-08-21 18:31:23.620] [D] [zway] SETDATA devices.18.instances.0.commandClasses.113.data.7.status = 255 (0x000000ff)
[2018-08-21 18:31:23.622] [D] [zway] SETDATA devices.18.instances.0.commandClasses.113.data.7 = Empty

If during the trigger period, I issue a get, then it seems like the Sensor knows it has data.

[2018-08-21 18:31:57.485] [zway] Adding job: SensorBinary Get
[2018-08-21 18:31:57.493] [D] [zway] SENDING (cb 0x9d): ( 01 09 00 13 12 02 30 02 25 9D 7F )
[2018-08-21 18:31:57.496] [D] [zway] RECEIVED ACK
[2018-08-21 18:31:57.499] [D] [zway] RECEIVED: ( 01 04 01 13 01 E8 )
[2018-08-21 18:31:57.500] [D] [zway] SENT ACK
[2018-08-21 18:31:57.503] [D] [zway] Delivered to Z-Wave stack
[2018-08-21 18:31:57.515] [D] [zway] RECEIVED: ( 01 05 00 13 9D 00 74 )
[2018-08-21 18:31:57.516] [D] [zway] SENT ACK
[2018-08-21 18:31:57.517] [zway] Job 0x13 (SensorBinary Get): Delivered
[2018-08-21 18:31:57.519] [D] [zway] SendData Response with callback 0x9d received: received by recipient
[2018-08-21 18:31:57.520] [D] [zway] SETDATA devices.18.data.lastSendInternal = **********
[2018-08-21 18:31:57.521] [D] [zway] Job 0x13 (SensorBinary Get): success
[2018-08-21 18:31:57.523] [zway] Waiting for job reply: SensorBinary Get
[2018-08-21 18:31:57.537] [D] [zway] RECEIVED: ( 01 09 00 04 00 12 03 30 03 FF 2F )
[2018-08-21 18:31:57.538] [D] [zway] SENT ACK
[2018-08-21 18:31:57.539] [D] [zway] SETDATA devices.18.data.lastReceived = 0 (0x00000000)
[2018-08-21 18:31:57.541] [D] [zway] Received reply on job (SensorBinary Get)
[2018-08-21 18:31:57.542] [D] [zway] SETDATA devices.18.instances.0.commandClasses.48.data.1.level = True
[2018-08-21 18:31:57.544] [D] [zway] SETDATA devices.18.instances.0.commandClasses.48.data.1 = Empty
[2018-08-21 18:31:57.583] [core] http://IP/set(%DEVICE%,%VALUE%) : ZWayVDev_zway_18-0-48-1 : on : http://IP/set(ZWayVDev_zway_18-0-48-1,on)
[2018-08-21 18:31:57.786] [core] Request was successful
[2018-08-21 18:31:59.654] [D] [zway] Job 0x13: deleted from queue

Anyone have any ideas how this can be fixed? Can an automation module bind to notifications and force the get on -0-48-1?

Re: Motion Sensor not updating?? (HS - FLS100+)

Posted: 23 Aug 2018 01:41
by PoltoS
Check three things:
Do you have the sensor Sensor Binary suppressed (check settings of the device in smart home)

In expert UI check device settings - it certainly allows to change the type of events sent on Motion event.

Check that life line is set

Re: Motion Sensor not updating?? (HS - FLS100+)

Posted: 23 Aug 2018 05:00
by hp1
Thanks for the response PoltoS!

1. I don't see anywhere where sensor binary can be suppressed. If I go into expert settings and SensorBinary, I get click on GET and in the logs I see the device sending information. In the Expert UI under Sensors, it shows up as a 'General Purpose' Device type and not a motion type however. The LUX sensor that works properly shows that it's a Luminiscence sensor.

2. I don't see anywhere in the ExpertUI in either Configuration or Expert Settings that allow changing the type of events. I do notice in the ExpertUI that when motion events occur, the Burglar Notification shows the 'Motion Detected' string.

3. Yes. (#1) Z-Way

Plan B is to tail the logs and when the string "[D] [zway] SETDATA devices.18.instances.0.commandClasses.113.data.7.eventString =" then issue a
wget "http: //IP:8083/ZWaveAPI/Run/devices%5B18%5D.instances%5B0%5D.commandClasses%5B48%5D.Get()" Seems really clunky, so I'm hoping you have an idea on how to properly fix this!!

Re: Motion Sensor not updating?? (HS - FLS100+)

Posted: 23 Aug 2018 06:46
by hp1
Also, if this matters, the device does show as a 'notification sensor' on the interview page:

Brand HomeSeer Technologies
Device type Notification Sensor

I've kludged together a script that so far updates the sensor and keeps my automation system happy. Be great to find a z-way-server way to fix this however!

#!/bin/bash

#get a authentication cookie
wget -q --header "Accept: application/json" --header "Content-Type: application/json" --post-data '{"form":true,"login":"admin","password":"password","keepme":false,"default_ui":1}' http://127.0.0.1:8083/ZAutomation/api/v1/login --keep-session-cookie --save-cookie ./zway-cookie.txt -O - 1>&2 >/dev/null

#monitor the file
tail -Fn0 /var/log/z-way-server.log | \
while read line ; do
echo "$line" | grep "commandClasses.113.data.7.eventString"
if [ $? = 0 ]
then
#echo "$line"
wget -q --load-cookies ./zway-cookie.txt "http://127.0.0.1:8083/ZWaveAPI/Run/devi ... B48%5D.Get()" -O - 1>&2 >/dev/null
fi
done

Re: Motion Sensor not updating?? (HS - FLS100+)

Posted: 27 Aug 2018 00:51
by hp1
PoltoS, any other suggestions? This script gives me the result I am looking for, however it would be great if zway updated the device rather than relying on parsing the logs.

Re: Motion Sensor not updating?? (HS - FLS100+)

Posted: 29 Aug 2018 10:01
by PoltoS
Give use remote access to have a look

Re: Motion Sensor not updating?? (HS - FLS100+)

Posted: 04 Sep 2018 05:23
by hp1
Hi PoltoS, I PM'd you a few days ago. Did you manage to have a look?

Re: Motion Sensor not updating?? (HS - FLS100+)

Posted: 07 Sep 2018 00:58
by PoltoS
Not yet. Was on IFA trade show in Berlin. Will have a look

Re: Motion Sensor not updating?? (HS - FLS100+)

Posted: 07 Sep 2018 12:50
by aivs
A FLS100+ supports COMMAND_CLASS_NOTIFICATION_V4, it's a "113.data.7.status".
COMMAND_CLASS_SENSOR_BINARY only needed for compatibility with old devices.

The problem is that z-way should generate widget for event: 'devices.18.instances.0.commandClasses.113.data.7.eventString = "Motion detected, location unknown"'

At first try to update z-way to latest 2.3.8-rc6 and re-include device. I'll check a similar sensor in the meantime.