[ST EDGE] Monoprice 4 in 1 Motion Sensor (ZP3111US-5)

@nayelyz This multifunction motion sensor pares with the stock Edge Z-Wave-Sensor Driver using the Zooz-4-in-1 sub-driver. I am using a slightly modified driver that only changed the icon from a contact sensor to a motion sensor. The results are the same with both drivers.

It pare just fine with either driver except that Motion is shown offline. Temperature, Humidity, illuminance, tamper and battery all work.

Do you have any ideas on how to fix this.

The following are the paring logs:

2022-03-04T18:16:58.070881152+00:00 INFO Z-Wave Sensor PCO  <ZwaveDevice: 1a5d52d8-db32-4db1-9261-437ae23ea434 [74] (Monoprice 4-in-1 Motion)> received lifecycle event: added
2022-03-04T18:16:58.082280277+00:00 TRACE Z-Wave Sensor PCO  Received event with handler device_lifecycle
2022-03-04T18:16:58.085684361+00:00 INFO Z-Wave Sensor PCO  <ZwaveDevice: 1a5d52d8-db32-4db1-9261-437ae23ea434 [74] (Monoprice 4-in-1 Motion)> received lifecycle event: doConfigure
2022-03-04T18:16:58.094118277+00:00 TRACE Z-Wave Sensor PCO  Found DeviceLifecycleDispatcher handler in zwave_sensor
2022-03-04T18:16:58.097731402+00:00 INFO Z-Wave Sensor PCO  <ZwaveDevice: 1a5d52d8-db32-4db1-9261-437ae23ea434 [74] (Monoprice 4-in-1 Motion)> emitting event: {"component_id":"main","state":{"value":"clear"},"attribute_id":"tamper","capability_id":"tamperAlert"}
2022-03-04T18:16:58.108030402+00:00 DEBUG Z-Wave Sensor PCO  Monoprice 4-in-1 Motion device thread event handled
2022-03-04T18:16:58.115312486+00:00 TRACE Z-Wave Sensor PCO  Found DeviceLifecycleDispatcher handler in zwave_sensor
2022-03-04T18:16:58.118677194+00:00 DEBUG Z-Wave Sensor PCO  Monoprice 4-in-1 Motion device thread event handled
2022-03-04T18:16:58.125993861+00:00 TRACE Z-Wave Sensor PCO  Found DeviceLifecycleDispatcher handler in zwave_sensor
2022-03-04T18:16:58.132781236+00:00 TRACE Z-Wave Sensor PCO  Found CapabilityCommandDispatcher handler in zwave_sensor
2022-03-04T18:16:58.139584569+00:00 INFO Z-Wave Sensor PCO  <ZwaveDevice: 1a5d52d8-db32-4db1-9261-437ae23ea434 [74] (Monoprice 4-in-1 Motion)> sending Z-Wave command: {args={}, cmd_class="BATTERY", cmd_id="GET", dst_channels={}, encap="AUTO", payload="", src_channel=0, version=1}
2022-03-04T18:16:58.149177944+00:00 TRACE Z-Wave Sensor PCO  Z-Wave command(8d3d9e79) queued for radio transmission: CC:Battery, CID:0x02
2022-03-04T18:16:58.154130152+00:00 INFO Z-Wave Sensor PCO  <ZwaveDevice: 1a5d52d8-db32-4db1-9261-437ae23ea434 [74] (Monoprice 4-in-1 Motion)> sending Z-Wave command: {args={scale=0, sensor_type="TEMPERATURE"}, cmd_class="SENSOR_MULTILEVEL", cmd_id="GET", dst_channels={}, encap="AUTO", payload="\x01\x00", src_channel=0, version=5}
2022-03-04T18:16:58.163472736+00:00 TRACE Z-Wave Sensor PCO  Z-Wave command(21d52bfa) queued for radio transmission: CC:Sensor Multi-level, CID:0x04
2022-03-04T18:16:58.167365652+00:00 INFO Z-Wave Sensor PCO  <ZwaveDevice: 1a5d52d8-db32-4db1-9261-437ae23ea434 [74] (Monoprice 4-in-1 Motion)> sending Z-Wave command: {args={scale=1, sensor_type="LUMINANCE"}, cmd_class="SENSOR_MULTILEVEL", cmd_id="GET", dst_channels={}, encap="AUTO", payload="\x03\x08", src_channel=0, version=5}
2022-03-04T18:16:58.177877777+00:00 TRACE Z-Wave Sensor PCO  Z-Wave command(febb07dc) queued for radio transmission: CC:Sensor Multi-level, CID:0x04
2022-03-04T18:16:58.182111652+00:00 INFO Z-Wave Sensor PCO  <ZwaveDevice: 1a5d52d8-db32-4db1-9261-437ae23ea434 [74] (Monoprice 4-in-1 Motion)> sending Z-Wave command: {args={scale=0, sensor_type="RELATIVE_HUMIDITY"}, cmd_class="SENSOR_MULTILEVEL", cmd_id="GET", dst_channels={}, encap="AUTO", payload="\x05\x00", src_channel=0, version=5}
2022-03-04T18:16:58.192054402+00:00 TRACE Z-Wave Sensor PCO  Z-Wave command(11d29e35) queued for radio transmission: CC:Sensor Multi-level, CID:0x04
2022-03-04T18:16:58.195329444+00:00 DEBUG Z-Wave Sensor PCO  Monoprice 4-in-1 Motion device thread event handled
2022-03-04T18:16:58.203185777+00:00 DEBUG Z-Wave Sensor PCO  Monoprice 4-in-1 Motion device thread event handled
2022-03-04T18:16:58.343251486+00:00 TRACE Z-Wave Sensor PCO  Z-Wave command(8d3d9e79) transmit status: TRANSMIT_COMPLETE_OK
2022-03-04T18:16:58.516505194+00:00 TRACE Z-Wave Sensor PCO  Received event with handler unnamed
2022-03-04T18:16:58.522429777+00:00 INFO Z-Wave Sensor PCO  <ZwaveDevice: 1a5d52d8-db32-4db1-9261-437ae23ea434 [74] (Monoprice 4-in-1 Motion)> received Z-Wave command: {args={battery_level=50}, cmd_class="BATTERY", cmd_id="REPORT", dst_channels={}, encap="S0", payload="2", src_channel=0, version=1}
2022-03-04T18:16:58.533228444+00:00 TRACE Z-Wave Sensor PCO  Received event with handler device_lifecycle
2022-03-04T18:16:58.546686902+00:00 INFO Z-Wave Sensor PCO  <ZwaveDevice: 1a5d52d8-db32-4db1-9261-437ae23ea434 [74] (Monoprice 4-in-1 Motion)> received lifecycle event: infoChanged
2022-03-04T18:16:58.552170902+00:00 TRACE Z-Wave Sensor PCO  Found ZwaveDispatcher handler in zwave_sensor
2022-03-04T18:16:58.555753152+00:00 INFO Z-Wave Sensor PCO  <ZwaveDevice: 1a5d52d8-db32-4db1-9261-437ae23ea434 [74] (Monoprice 4-in-1 Motion)> emitting event: {"component_id":"main","state":{"value":50},"attribute_id":"battery","capability_id":"battery"}
2022-03-04T18:16:58.566735194+00:00 DEBUG Z-Wave Sensor PCO  Monoprice 4-in-1 Motion device thread event handled
2022-03-04T18:16:58.575217444+00:00 TRACE Z-Wave Sensor PCO  Found DeviceLifecycleDispatcher handler in zwave_sensor
2022-03-04T18:16:58.578960152+00:00 DEBUG Z-Wave Sensor PCO  Monoprice 4-in-1 Motion device thread event handled
2022-03-04T18:16:58.614960861+00:00 TRACE Z-Wave Sensor PCO  Z-Wave command(21d52bfa) transmit status: TRANSMIT_COMPLETE_OK
2022-03-04T18:16:58.787146111+00:00 TRACE Z-Wave Sensor PCO  Received event with handler unnamed
2022-03-04T18:16:58.791692444+00:00 INFO Z-Wave Sensor PCO  <ZwaveDevice: 1a5d52d8-db32-4db1-9261-437ae23ea434 [74] (Monoprice 4-in-1 Motion)> received Z-Wave command: {args={precision=2, scale="CELSIUS", sensor_type="TEMPERATURE", sensor_value=21.58, size=2}, cmd_class="SENSOR_MULTILEVEL", cmd_id="REPORT", dst_channels={}, encap="S0", payload="\x01\x42\x08\x6E", src_channel=0, version=1}
2022-03-04T18:16:58.805464527+00:00 TRACE Z-Wave Sensor PCO  Found ZwaveDispatcher handler in zwave_sensor -> zooz 4 in 1 sensor
2022-03-04T18:16:58.810015277+00:00 INFO Z-Wave Sensor PCO  <ZwaveDevice: 1a5d52d8-db32-4db1-9261-437ae23ea434 [74] (Monoprice 4-in-1 Motion)> emitting event: {"component_id":"main","state":{"value":21.58,"unit":"C"},"attribute_id":"temperature","capability_id":"temperatureMeasurement"}
2022-03-04T18:16:58.852149069+00:00 DEBUG Z-Wave Sensor PCO  Monoprice 4-in-1 Motion device thread event handled
2022-03-04T18:16:58.924629027+00:00 TRACE Z-Wave Sensor PCO  Z-Wave command(febb07dc) transmit status: TRANSMIT_COMPLETE_OK
2022-03-04T18:16:59.044031694+00:00 TRACE Z-Wave Sensor PCO  Received event with handler unnamed
2022-03-04T18:16:59.073121361+00:00 INFO Z-Wave Sensor PCO  <ZwaveDevice: 1a5d52d8-db32-4db1-9261-437ae23ea434 [74] (Monoprice 4-in-1 Motion)> received Z-Wave command: {args={precision=2, scale="PERCENTAGE", sensor_type="LUMINANCE", sensor_value=100.0, size=2}, cmd_class="SENSOR_MULTILEVEL", cmd_id="REPORT", dst_channels={}, encap="S0", payload="\x03\x42\x27\x10", src_channel=0, version=1}
2022-03-04T18:16:59.114089236+00:00 TRACE Z-Wave Sensor PCO  Found ZwaveDispatcher handler in zwave_sensor -> zooz 4 in 1 sensor
2022-03-04T18:16:59.143603569+00:00 INFO Z-Wave Sensor PCO  <ZwaveDevice: 1a5d52d8-db32-4db1-9261-437ae23ea434 [74] (Monoprice 4-in-1 Motion)> emitting event: {"component_id":"main","state":{"value":450,"unit":"lux"},"attribute_id":"illuminance","capability_id":"illuminanceMeasurement"}
2022-03-04T18:16:59.172410486+00:00 DEBUG Z-Wave Sensor PCO  Monoprice 4-in-1 Motion device thread event handled
2022-03-04T18:16:59.227217944+00:00 TRACE Z-Wave Sensor PCO  Z-Wave command(11d29e35) transmit status: TRANSMIT_COMPLETE_OK
2022-03-04T18:16:59.338433944+00:00 TRACE Z-Wave Sensor PCO  Received event with handler unnamed
2022-03-04T18:16:59.342916861+00:00 INFO Z-Wave Sensor PCO  <ZwaveDevice: 1a5d52d8-db32-4db1-9261-437ae23ea434 [74] (Monoprice 4-in-1 Motion)> received Z-Wave command: {args={precision=2, scale="PERCENTAGE", sensor_type="RELATIVE_HUMIDITY", sensor_value=39.27, size=2}, cmd_class="SENSOR_MULTILEVEL", cmd_id="REPORT", dst_channels={}, encap="S0", payload="\x05\x42\x0F\x57", src_channel=0, version=1}
2022-03-04T18:16:59.356378402+00:00 TRACE Z-Wave Sensor PCO  Found ZwaveDispatcher handler in zwave_sensor -> zooz 4 in 1 sensor
2022-03-04T18:16:59.360238777+00:00 INFO Z-Wave Sensor PCO  <ZwaveDevice: 1a5d52d8-db32-4db1-9261-437ae23ea434 [74] (Monoprice 4-in-1 Motion)> emitting event: {"component_id":"main","state":{"value":39},"attribute_id":"humidity","capability_id":"relativeHumidityMeasurement"}
2022-03-04T18:16:59.371509194+00:00 DEBUG Z-Wave Sensor PCO  Monoprice 4-in-1 Motion device thread event handled
2022-03-04T18:17:59.906402118+00:00 TRACE Z-Wave Sensor PCO  Received event with handler device_lifecycle
2022-03-04T18:17:59.946212160+00:00 INFO Z-Wave Sensor PCO  <ZwaveDevice: 1a5d52d8-db32-4db1-9261-437ae23ea434 [74] (Monoprice 4-in-1 Motion)> received lifecycle event: infoChanged
2022-03-04T18:17:59.990170576+00:00 TRACE Z-Wave Sensor PCO  Found DeviceLifecycleDispatcher handler in zwave_sensor
2022-03-04T18:18:00.006637535+00:00 DEBUG Z-Wave Sensor PCO  Monoprice 4-in-1 Motion device thread event handled
2022-03-04T18:18:00.453417410+00:00 TRACE Z-Wave Sensor PCO  Received event with handler device_lifecycle
2022-03-04T18:18:00.668920368+00:00 INFO Z-Wave Sensor PCO  <ZwaveDevice: a27b4565-bd22-450a-bf10-2f74d1f43b46 [72] (Front Door Contacts)> received lifecycle event: infoChanged
2022-03-04T18:18:00.698405035+00:00 TRACE Z-Wave Sensor PCO  Received event with handler device_lifecycle
2022-03-04T18:18:00.802510910+00:00 INFO Z-Wave Sensor PCO  <ZwaveDevice: ab061cfe-3cfb-4e9d-baf8-e63d6dd470b9 [5F] (Bmt. Door Contacts)> received lifecycle event: infoChanged
2022-03-04T18:18:00.875205701+00:00 TRACE Z-Wave Sensor PCO  Found DeviceLifecycleDispatcher handler in zwave_sensor
2022-03-04T18:18:00.881472535+00:00 DEBUG Z-Wave Sensor PCO  Aeotec Recessed Door Sensor device thread event handled
2022-03-04T18:18:00.969031618+00:00 TRACE Z-Wave Sensor PCO  Received event with handler device_lifecycle
2022-03-04T18:18:01.061863035+00:00 INFO Z-Wave Sensor PCO  <ZwaveDevice: 9c3ae30e-b0e9-4385-9b7f-a56d260d12ec [60] (Office Door Contacts)> received lifecycle event: infoChanged
2022-03-04T18:18:01.087757160+00:00 TRACE Z-Wave Sensor PCO  Found DeviceLifecycleDispatcher handler in zwave_sensor
2022-03-04T18:18:01.094120576+00:00 DEBUG Z-Wave Sensor PCO  Bmt. Door Contacts device thread event handled
2022-03-04T18:18:01.112822118+00:00 TRACE Z-Wave Sensor PCO  Received event with handler device_lifecycle
2022-03-04T18:18:01.159077285+00:00 INFO Z-Wave Sensor PCO  <ZwaveDevice: 6297aa96-d228-4aed-ad60-7801d9a08dc2 [71] (Back Door Contacts)> received lifecycle event: infoChanged
2022-03-04T18:18:01.164812868+00:00 TRACE Z-Wave Sensor PCO  Found DeviceLifecycleDispatcher handler in zwave_sensor
2022-03-04T18:18:01.180712076+00:00 DEBUG Z-Wave Sensor PCO  Office Door Contacts device thread event handled
2022-03-04T18:18:01.184614618+00:00 TRACE Z-Wave Sensor PCO  Received event with handler device_lifecycle
2022-03-04T18:18:01.223677201+00:00 INFO Z-Wave Sensor PCO  <ZwaveDevice: dd6465cf-dfd1-41c1-8456-0e1f2726297a [6B] (Utilitech Water Leak Sensor)> received lifecycle event: infoChanged
2022-03-04T18:18:01.230880618+00:00 TRACE Z-Wave Sensor PCO  Found DeviceLifecycleDispatcher handler in zwave_sensor
2022-03-04T18:18:01.249950118+00:00 DEBUG Z-Wave Sensor PCO  Back Door Contacts device thread event handled
2022-03-04T18:18:01.260115785+00:00 TRACE Z-Wave Sensor PCO  Found DeviceLifecycleDispatcher handler in zwave_sensor
2022-03-04T18:18:01.267435118+00:00 DEBUG Z-Wave Sensor PCO  Utilitech Water Leak Sensor device thread event handled
2022-03-04T18:19:43.448008672+00:00 TRACE Z-Wave Sensor PCO  Received event with handler unnamed
2022-03-04T18:19:43.454483714+00:00 INFO Z-Wave Sensor PCO  <ZwaveDevice: 1a5d52d8-db32-4db1-9261-437ae23ea434 [74] (Monoprice 4-in-1 Motion)> received Z-Wave command: {args={precision=2, scale="CELSIUS", sensor_type="TEMPERATURE", sensor_value=20.2, size=2}, cmd_class="SENSOR_MULTILEVEL", cmd_id="REPORT", dst_channels={}, encap="S0", payload="\x01\x42\x07\xE4", src_channel=0, version=1}
2022-03-04T18:19:43.462864172+00:00 TRACE Z-Wave Sensor PCO  Found ZwaveDispatcher handler in zwave_sensor -> zooz 4 in 1 sensor
2022-03-04T18:19:43.466719547+00:00 INFO Z-Wave Sensor PCO  <ZwaveDevice: 1a5d52d8-db32-4db1-9261-437ae23ea434 [74] (Monoprice 4-in-1 Motion)> emitting event: {"component_id":"main","state":{"value":20.2,"unit":"C"},"attribute_id":"temperature","capability_id":"temperatureMeasurement"}
2022-03-04T18:19:43.477593964+00:00 DEBUG Z-Wave Sensor PCO  Monoprice 4-in-1 Motion device thread event handled
2022-03-04T18:19:43.559610755+00:00 TRACE Z-Wave Sensor PCO  Received event with handler unnamed
2022-03-04T18:19:43.564865047+00:00 INFO Z-Wave Sensor PCO  <ZwaveDevice: 1a5d52d8-db32-4db1-9261-437ae23ea434 [74] (Monoprice 4-in-1 Motion)> received Z-Wave command: {args={precision=2, scale="PERCENTAGE", sensor_type="RELATIVE_HUMIDITY", sensor_value=38.8, size=2}, cmd_class="SENSOR_MULTILEVEL", cmd_id="REPORT", dst_channels={}, encap="S0", payload="\x05\x42\x0F\x28", src_channel=0, version=1}
2022-03-04T18:19:43.578736547+00:00 TRACE Z-Wave Sensor PCO  Found ZwaveDispatcher handler in zwave_sensor -> zooz 4 in 1 sensor
2022-03-04T18:19:43.582506839+00:00 INFO Z-Wave Sensor PCO  <ZwaveDevice: 1a5d52d8-db32-4db1-9261-437ae23ea434 [74] (Monoprice 4-in-1 Motion)> emitting event: {"component_id":"main","state":{"value":39},"attribute_id":"humidity","capability_id":"relativeHumidityMeasurement"}
2022-03-04T18:19:43.593655547+00:00 DEBUG Z-Wave Sensor PCO  Monoprice 4-in-1 Motion device thread event handled
2022-03-04T18:19:43.658355714+00:00 TRACE Z-Wave Sensor PCO  Received event with handler unnamed
2022-03-04T18:19:43.662838297+00:00 INFO Z-Wave Sensor PCO  <ZwaveDevice: 1a5d52d8-db32-4db1-9261-437ae23ea434 [74] (Monoprice 4-in-1 Motion)> received Z-Wave command: {args={precision=2, scale="PERCENTAGE", sensor_type="LUMINANCE", sensor_value=0.69, size=2}, cmd_class="SENSOR_MULTILEVEL", cmd_id="REPORT", dst_channels={}, encap="S0", payload="\x03\x42\x00\x45", src_channel=0, version=1}
2022-03-04T18:19:43.676605755+00:00 TRACE Z-Wave Sensor PCO  Found ZwaveDispatcher handler in zwave_sensor -> zooz 4 in 1 sensor
2022-03-04T18:19:43.680343214+00:00 INFO Z-Wave Sensor PCO  <ZwaveDevice: 1a5d52d8-db32-4db1-9261-437ae23ea434 [74] (Monoprice 4-in-1 Motion)> emitting event: {"component_id":"main","state":{"value":4,"unit":"lux"},"attribute_id":"illuminance","capability_id":"illuminanceMeasurement"}
2022-03-04T18:19:43.691135339+00:00 DEBUG Z-Wave Sensor PCO  Monoprice 4-in-1 Motion device thread event handled
2022-03-04T18:19:58.253811174+00:00 TRACE Z-Wave Sensor PCO  Received event with handler unnamed
2022-03-04T18:19:58.258117382+00:00 INFO Z-Wave Sensor PCO  <ZwaveDevice: a27b4565-bd22-450a-bf10-2f74d1f43b46 [72] (Front Door Contacts)> received Z-Wave command: {args={}, cmd_class="WAKE_UP", cmd_id="NOTIFICATION", dst_channels={}, encap="NONE", payload="", src_channel=0, version=1}
2022-03-04T18:19:58.273615257+00:00 TRACE Z-Wave Sensor PCO  Found ZwaveDispatcher handler in zwave_sensor
2022-03-04T18:19:58.288473590+00:00 TRACE Z-Wave Sensor PCO  Found ZwaveDispatcher handler in zwave_sensor
2022-03-04T18:19:58.297300049+00:00 TRACE Z-Wave Sensor PCO  Found CapabilityCommandDispatcher handler in zwave_sensor
2022-03-04T18:19:58.302295465+00:00 INFO Z-Wave Sensor PCO  <ZwaveDevice: a27b4565-bd22-450a-bf10-2f74d1f43b46 [72] (Front Door Contacts)> sending Z-Wave command: {args={}, cmd_class="BATTERY", cmd_id="GET", dst_channels={}, encap="AUTO", payload="", src_channel=0, version=1}
2022-03-04T18:19:58.311731215+00:00 TRACE Z-Wave Sensor PCO  Z-Wave command(aabd3266) queued for radio transmission: CC:Battery, CID:0x02
2022-03-04T18:19:58.315424257+00:00 INFO Z-Wave Sensor PCO  <ZwaveDevice: a27b4565-bd22-450a-bf10-2f74d1f43b46 [72] (Front Door Contacts)> sending Z-Wave command: {args={sensor_type="DOOR_WINDOW"}, cmd_class="SENSOR_BINARY", cmd_id="GET", dst_channels={}, encap="AUTO", payload="\x0A", src_channel=0, version=2}
2022-03-04T18:19:58.324376715+00:00 TRACE Z-Wave Sensor PCO  Z-Wave command(9ea41635) queued for radio transmission: CC:Sensor Binary, CID:0x02
2022-03-04T18:19:58.327772632+00:00 DEBUG Z-Wave Sensor PCO  Aeotec Recessed Door Sensor device thread event handled
2022-03-04T18:19:58.522898215+00:00 TRACE Z-Wave Sensor PCO  Z-Wave command(aabd3266) transmit status: TRANSMIT_COMPLETE_OK
2022-03-04T18:19:58.764311049+00:00 TRACE Z-Wave Sensor PCO  Z-Wave command(9ea41635) transmit status: TRANSMIT_COMPLETE_OK
2022-03-04T18:19:58.868334507+00:00 TRACE Z-Wave Sensor PCO  Received event with handler unnamed
2022-03-04T18:19:58.873493882+00:00 INFO Z-Wave Sensor PCO  <ZwaveDevice: a27b4565-bd22-450a-bf10-2f74d1f43b46 [72] (Front Door Contacts)> received Z-Wave command: {args={sensor_value="IDLE"}, cmd_class="SENSOR_BINARY", cmd_id="REPORT", dst_channels={}, encap="S0", payload="\x00", src_channel=0, version=1}
2022-03-04T18:19:58.887109757+00:00 TRACE Z-Wave Sensor PCO  Found ZwaveDispatcher handler in zwave_sensor
2022-03-04T18:19:58.890468382+00:00 WARN Z-Wave Sensor PCO  Attempted to generate event for a27b4565-bd22-450a-bf10-2f74d1f43b46.main but it does not support capability Water Sensor
2022-03-04T18:19:58.893822507+00:00 TRACE Z-Wave Sensor PCO  Found ZwaveDispatcher handler in zwave_sensor
2022-03-04T18:19:58.897489049+00:00 INFO Z-Wave Sensor PCO  <ZwaveDevice: a27b4565-bd22-450a-bf10-2f74d1f43b46 [72] (Front Door Contacts)> emitting event: {"component_id":"main","state":{"value":"closed"},"attribute_id":"contact","capability_id":"contactSensor"}
2022-03-04T18:19:58.907595049+00:00 TRACE Z-Wave Sensor PCO  Found ZwaveDispatcher handler in zwave_sensor
2022-03-04T18:19:58.911573882+00:00 WARN Z-Wave Sensor PCO  Attempted to generate event for a27b4565-bd22-450a-bf10-2f74d1f43b46.main but it does not support capability Motion Sensor
2022-03-04T18:19:58.914903966+00:00 TRACE Z-Wave Sensor PCO  Found ZwaveDispatcher handler in zwave_sensor
2022-03-04T18:19:58.917910716+00:00 TRACE Z-Wave Sensor PCO  Found ZwaveDispatcher handler in zwave_sensor
2022-03-04T18:19:58.921103549+00:00 WARN Z-Wave Sensor PCO  Attempted to generate event for a27b4565-bd22-450a-bf10-2f74d1f43b46.main but it does not support capability Temperature Alarm
2022-03-04T18:19:58.924654716+00:00 DEBUG Z-Wave Sensor PCO  Aeotec Recessed Door Sensor device thread event handled
2022-03-04T18:19:59.302953299+00:00 TRACE Z-Wave Sensor PCO  Received event with handler unnamed
2022-03-04T18:19:59.311784924+00:00 INFO Z-Wave Sensor PCO  <ZwaveDevice: a27b4565-bd22-450a-bf10-2f74d1f43b46 [72] (Front Door Contacts)> received Z-Wave command: {args={battery_level=100}, cmd_class="BATTERY", cmd_id="REPORT", dst_channels={}, encap="S0", payload="\x64\x00", src_channel=0, version=1}
2022-03-04T18:19:59.336876841+00:00 TRACE Z-Wave Sensor PCO  Found ZwaveDispatcher handler in zwave_sensor
2022-03-04T18:19:59.342255091+00:00 INFO Z-Wave Sensor PCO  <ZwaveDevice: a27b4565-bd22-450a-bf10-2f74d1f43b46 [72] (Front Door Contacts)> emitting event: {"component_id":"main","state":{"value":100},"attribute_id":"battery","capability_id":"battery"}
2022-03-04T18:19:59.360115716+00:00 DEBUG Z-Wave Sensor PCO  Aeotec Recessed Door Sensor device thread event handled

It’s tough to read those logs since there are a few other devices mixed in, but I don’t see a z-wave command from the Monoprice 4-in-1 that would indicate a motion event. Are you seeing any log lines with a received Z-wave command for motion - probably a Notification or Sensor Binary report? It could be different causes depending whether those commands are being mishandled or they just aren’t being produced.

Phil, The following are logs from when I refreshed the sensor and opened it to trigger the tamper switch. I see no motion events. And considering I was handling the device I would expect to see motion. It worked fine with the Zooz 4 in 1 DTH.

2022-03-04T18:22:25.392201194+00:00 INFO Z-Wave Sensor PCO  <ZwaveDevice: 1a5d52d8-db32-4db1-9261-437ae23ea434 [74] (Monoprice 4-in-1 Motion)> received command: {"capability":"refresh","args":[],"positional_args":[],"command":"refresh","component":"main"}
2022-03-04T18:22:25.397847611+00:00 TRACE Z-Wave Sensor PCO  Found CapabilityCommandDispatcher handler in zwave_sensor
2022-03-04T18:22:25.404980361+00:00 INFO Z-Wave Sensor PCO  <ZwaveDevice: 1a5d52d8-db32-4db1-9261-437ae23ea434 [74] (Monoprice 4-in-1 Motion)> sending Z-Wave command: {args={}, cmd_class="BATTERY", cmd_id="GET", dst_channels={}, encap="AUTO", payload="", src_channel=0, version=1}
2022-03-04T18:22:25.415820444+00:00 TRACE Z-Wave Sensor PCO  Z-Wave command(85c1c00f) queued for radio transmission: CC:Battery, CID:0x02
2022-03-04T18:22:25.419610444+00:00 INFO Z-Wave Sensor PCO  <ZwaveDevice: 1a5d52d8-db32-4db1-9261-437ae23ea434 [74] (Monoprice 4-in-1 Motion)> sending Z-Wave command: {args={scale=0, sensor_type="TEMPERATURE"}, cmd_class="SENSOR_MULTILEVEL", cmd_id="GET", dst_channels={}, encap="AUTO", payload="\x01\x00", src_channel=0, version=5}
2022-03-04T18:22:25.429145444+00:00 TRACE Z-Wave Sensor PCO  Z-Wave command(e0040d28) queued for radio transmission: CC:Sensor Multi-level, CID:0x04
2022-03-04T18:22:25.432936361+00:00 INFO Z-Wave Sensor PCO  <ZwaveDevice: 1a5d52d8-db32-4db1-9261-437ae23ea434 [74] (Monoprice 4-in-1 Motion)> sending Z-Wave command: {args={scale=1, sensor_type="LUMINANCE"}, cmd_class="SENSOR_MULTILEVEL", cmd_id="GET", dst_channels={}, encap="AUTO", payload="\x03\x08", src_channel=0, version=5}
2022-03-04T18:22:25.442125861+00:00 TRACE Z-Wave Sensor PCO  Z-Wave command(c4a84d5e) queued for radio transmission: CC:Sensor Multi-level, CID:0x04
2022-03-04T18:22:25.446062861+00:00 INFO Z-Wave Sensor PCO  <ZwaveDevice: 1a5d52d8-db32-4db1-9261-437ae23ea434 [74] (Monoprice 4-in-1 Motion)> sending Z-Wave command: {args={scale=0, sensor_type="RELATIVE_HUMIDITY"}, cmd_class="SENSOR_MULTILEVEL", cmd_id="GET", dst_channels={}, encap="AUTO", payload="\x05\x00", src_channel=0, version=5}
2022-03-04T18:22:25.456207611+00:00 TRACE Z-Wave Sensor PCO  Z-Wave command(b135c06c) queued for radio transmission: CC:Sensor Multi-level, CID:0x04
2022-03-04T18:22:25.459290319+00:00 DEBUG Z-Wave Sensor PCO  Monoprice 4-in-1 Motion device thread event handled
2022-03-04T18:22:33.324083692+00:00 TRACE Z-Wave Sensor PCO  Z-Wave command(85c1c00f) transmit status: TRANSMIT_COMPLETE_NO_ACK
2022-03-04T18:22:40.423156024+00:00 TRACE Z-Wave Sensor PCO  Z-Wave command(e0040d28) transmit status: TRANSMIT_COMPLETE_NO_ACK
2022-03-04T18:22:44.943156315+00:00 TRACE Z-Wave Sensor PCO  Z-Wave command(c4a84d5e) transmit status: TRANSMIT_COMPLETE_OK
2022-03-04T18:22:46.051770481+00:00 TRACE Z-Wave Sensor PCO  Received event with handler unnamed
2022-03-04T18:22:46.057776273+00:00 INFO Z-Wave Sensor PCO  <ZwaveDevice: 1a5d52d8-db32-4db1-9261-437ae23ea434 [74] (Monoprice 4-in-1 Motion)> received Z-Wave command: {args={precision=2, scale="PERCENTAGE", sensor_type="LUMINANCE", sensor_value=0.69, size=2}, cmd_class="SENSOR_MULTILEVEL", cmd_id="REPORT", dst_channels={}, encap="S0", payload="\x03\x42\x00\x45", src_channel=0, version=1}
2022-03-04T18:22:46.064267648+00:00 TRACE Z-Wave Sensor PCO  Found ZwaveDispatcher handler in zwave_sensor -> zooz 4 in 1 sensor
2022-03-04T18:22:46.068312481+00:00 INFO Z-Wave Sensor PCO  <ZwaveDevice: 1a5d52d8-db32-4db1-9261-437ae23ea434 [74] (Monoprice 4-in-1 Motion)> emitting event: {"component_id":"main","state":{"value":4,"unit":"lux"},"attribute_id":"illuminance","capability_id":"illuminanceMeasurement"}
2022-03-04T18:22:46.079343648+00:00 DEBUG Z-Wave Sensor PCO  Monoprice 4-in-1 Motion device thread event handled
2022-03-04T18:22:46.137967189+00:00 TRACE Z-Wave Sensor PCO  Z-Wave command(b135c06c) transmit status: TRANSMIT_COMPLETE_OK
2022-03-04T18:22:46.208442939+00:00 TRACE Z-Wave Sensor PCO  Received event with handler unnamed
2022-03-04T18:22:46.212954856+00:00 INFO Z-Wave Sensor PCO  <ZwaveDevice: 1a5d52d8-db32-4db1-9261-437ae23ea434 [74] (Monoprice 4-in-1 Motion)> received Z-Wave command: {args={precision=2, scale="PERCENTAGE", sensor_type="RELATIVE_HUMIDITY", sensor_value=39.35, size=2}, cmd_class="SENSOR_MULTILEVEL", cmd_id="REPORT", dst_channels={}, encap="S0", payload="\x05\x42\x0F\x5F", src_channel=0, version=1}
2022-03-04T18:22:46.229761689+00:00 TRACE Z-Wave Sensor PCO  Found ZwaveDispatcher handler in zwave_sensor -> zooz 4 in 1 sensor
2022-03-04T18:22:46.233365689+00:00 INFO Z-Wave Sensor PCO  <ZwaveDevice: 1a5d52d8-db32-4db1-9261-437ae23ea434 [74] (Monoprice 4-in-1 Motion)> emitting event: {"component_id":"main","state":{"value":39},"attribute_id":"humidity","capability_id":"relativeHumidityMeasurement"}
2022-03-04T18:22:46.244109648+00:00 DEBUG Z-Wave Sensor PCO  Monoprice 4-in-1 Motion device thread event handled
2022-03-04T18:22:52.009816271+00:00 TRACE Z-Wave Sensor PCO  Received event with handler unnamed
2022-03-04T18:22:52.021464605+00:00 INFO Z-Wave Sensor PCO  <ZwaveDevice: 1a5d52d8-db32-4db1-9261-437ae23ea434 [74] (Monoprice 4-in-1 Motion)> received Z-Wave command: {args={alarm_level=255, alarm_type=7, event="TAMPERING_PRODUCT_COVER_REMOVED", event_parameter="", notification_status="ON", notification_type="HOME_SECURITY", v1_alarm_level=255, v1_alarm_type=7, z_wave_alarm_event="TAMPERING_PRODUCT_COVER_REMOVED", z_wave_alarm_status="ON", z_wave_alarm_type="BURGLAR", zensor_net_source_node_id=0}, cmd_class="NOTIFICATION", cmd_id="REPORT", dst_channels={}, encap="S0", payload="\x07\xFF\x00\xFF\x07\x03\x00\x00", src_channel=0, version=3}
2022-03-04T18:22:52.035404521+00:00 TRACE Z-Wave Sensor PCO  Found ZwaveDispatcher handler in zwave_sensor -> zooz 4 in 1 sensor
2022-03-04T18:22:52.042203188+00:00 INFO Z-Wave Sensor PCO  <ZwaveDevice: 1a5d52d8-db32-4db1-9261-437ae23ea434 [74] (Monoprice 4-in-1 Motion)> emitting event: {"component_id":"main","state":{"value":"detected"},"attribute_id":"tamper","capability_id":"tamperAlert"}
2022-03-04T18:22:52.053412605+00:00 DEBUG Z-Wave Sensor PCO  Monoprice 4-in-1 Motion device thread event handled
2022-03-04T18:22:52.059179771+00:00 DEBUG Z-Wave Sensor PCO  Monoprice 4-in-1 Motion device thread event handled
2022-03-04T18:22:59.918867978+00:00 TRACE Z-Wave Sensor PCO  Received event with handler unnamed
2022-03-04T18:22:59.930655811+00:00 INFO Z-Wave Sensor PCO  <ZwaveDevice: 1a5d52d8-db32-4db1-9261-437ae23ea434 [74] (Monoprice 4-in-1 Motion)> received Z-Wave command: {args={alarm_level=0, alarm_type=7, event="STATE_IDLE", event_parameter="\x03", notification_status="ON", notification_type="HOME_SECURITY", v1_alarm_level=0, v1_alarm_type=7, z_wave_alarm_event=0, z_wave_alarm_status="ON", z_wave_alarm_type="BURGLAR", zensor_net_source_node_id=0}, cmd_class="NOTIFICATION", cmd_id="REPORT", dst_channels={}, encap="S0", payload="\x07\x00\x00\xFF\x07\x00\x01\x03\x00", src_channel=0, version=3}
2022-03-04T18:22:59.945668353+00:00 TRACE Z-Wave Sensor PCO  Found ZwaveDispatcher handler in zwave_sensor -> zooz 4 in 1 sensor
2022-03-04T18:22:59.949473478+00:00 INFO Z-Wave Sensor PCO  <ZwaveDevice: 1a5d52d8-db32-4db1-9261-437ae23ea434 [74] (Monoprice 4-in-1 Motion)> emitting event: {"component_id":"main","state":{"value":"clear"},"attribute_id":"tamper","capability_id":"tamperAlert"}
2022-03-04T18:22:59.960503353+00:00 DEBUG Z-Wave Sensor PCO  Monoprice 4-in-1 Motion device thread event handled
2022-03-04T18:23:02.053757602+00:00 INFO Z-Wave Sensor PCO  <ZwaveDevice: 1a5d52d8-db32-4db1-9261-437ae23ea434 [74] (Monoprice 4-in-1 Motion)> emitting event: {"component_id":"main","state":{"value":"clear"},"attribute_id":"tamper","capability_id":"tamperAlert"}
2022-03-04T18:23:02.064465977+00:00 DEBUG Z-Wave Sensor PCO  Monoprice 4-in-1 Motion device thread event handled

I don’t see any there either. Since nothing’s coming into the hub I would tend to blame the device. First thing I would check is whether the hub node is in Association Group 1 - if that didn’t happen as part of inclusion then it can certainly cause problems.

Or, if you haven’t tried it already, exclude/include. I’ve had some difficulty with the Zooz branded ones before. Never tracked down the cause, but they seemed to prefer including close to the hub.

BTW - I find logs to be more readable on the forum if they’re in a code block. Putting three ``` (the backwards quote that shares the tilde key) on a separate line above and below the logs will do that. It also makes the forum more accessible for those that use screen readers.

I have included and excluded the device a many times or the last few days with no difference. It worked fine with the old DTH.

I always pare battery operated and some hard wired devices next to my hub. They I let them set for a couple minutes before I do anything.

I will check the association group.

How would I check the Association Group?

It’s a sleepy device, so the only way to interact with it is in a function that’s called on wakeup. That driver already has it set up though - you’d add any lines you want called to the update_preferences function of zwave-sensor/src/init.lua.

This will get the association group nodes in group 1:

device:send(Association:Get({grouping_identifier = 1}))
1 Like

Thank you for your input, @philh30, it’s really helpful.

@Paul_Oliver, did you only change the device profile?
When working with subdrivers, there’s a function called can_handle which checks if the device is accepted by it or not.
If you didn’t add the corresponding values in ZOOZ_4_IN_1_FINGERPRINTS for this device, then, that might be causing the issue…

1 Like

I pared it with both the stock driver and the one I modified and got the same results.

In the modified version I only charged the profile for the multi-functional-motion. I changed “categories: -name” from MultiFunctionalSensor to MotionSensor to get the correct icon.

Would you add the to the main driver or the Zooz sub-driver?

The main driver

Phil,

That seems to have fixed it.

I substituted you suggestion device:send(Association:Get({grouping_identifier = 1}))
for
device:send(Association:Set({grouping_identifier = value.grouping_identifier, node_ids = _node_ids})) that was in the original code.

Thank you very much for taking the time to help me again.

2 Likes

Excellent! I’m glad you got it working! I do remember Kevin having logic in his 4-in-1 DTH to double check that the hub node is in group 1, so it might be something with this device where it occasionally fails to pick that up when added. Now that you have this device set up, you can delete (or comment out so it’s there in the future if you have trouble with another of these) that Association:Set command so it doesn’t waste battery by sending that every time your device wakes up.

Also, if you haven’t done as @nayelyz suggested, then you need to add your fingerprint to the sub-driver’s can-handle. If you didn’t do that, your device is only using the main driver, and isn’t picking up any of the handlers defined in the sub-driver. The sub-driver has logic to handle the z-wave commands for tamper, motion, and lux that doesn’t match the default handlers that the main driver would use.

2 Likes

The Monoprice fingerprint was already in the stock version of the sub-driver.

How do you comment out at line in a Edge Driver? I know you used // in a DTH.

1 Like
-- This single line is commented

--[[
This
entire
block
of
code
is
commented.
--]]

For the block comment, you can add a third hyphen to the top line (e.g. ---[[) to easily toggle the code back to being active.

2 Likes

Hello @philh30 and @paul_Oliver

Indeed, with that format it looks better, but if the log is a bit long, it blocks the mobile browser, (chrome android), for a while or always, when the thread is opened and it forces to see it on the PC, I don’t know if you this happens too.

Another way to put the logs or photos, which another user taught me and that does not clutter the post, is to put it as Hide Details, by clicking on the gear icon, top right

Picture

Logs:
2022-03-05T11:32:55.669828702+00:00 TRACE Z-Wave Switch  Received event with handler capability
2022-03-05T11:32:55.759244035+00:00 INFO Z-Wave Switch  <ZwaveDevice: bd5c15c7-76f5-4430-b95d-c8ea349e9f61 [1E] (Luz Entrada)> received command: {"component":"switch1","capability":"switch","positional_args":[],"command":"on","args":[]}
2022-03-05T11:32:55.788305369+00:00 TRACE Z-Wave Switch  Found CapabilityCommandDispatcher handler in zwave_switch
2022-03-05T11:32:55.857030702+00:00 TRACE Z-Wave Switch  SWITCH_BINARY supported.
2022-03-05T11:32:55.934287036+00:00 INFO Z-Wave Switch  <ZwaveDevice: bd5c15c7-76f5-4430-b95d-c8ea349e9f61 [1E] (Luz Entrada)> sending Z-Wave command: {args={duration=0, target_value="ON_ENABLE"}, cmd_class="SWITCH_BINARY", cmd_id="SET", dst_channels={2}, encap="AUTO", payload="\xFF\x00", src_channel=0, version=2}
2022-03-05T11:32:56.040529369+00:00 TRACE Z-Wave Switch  Z-Wave command(cab3ad73) queued for radio transmission: CC:Switch Binary, CID:0x01
2022-03-05T11:32:56.077159036+00:00 DEBUG Z-Wave Switch  Luz Entrada device thread event handled
2022-03-05T11:32:56.104420036+00:00 DEBUG Z-Wave Switch  Luz Entrada device thread event handled
2022-03-05T11:32:56.186697036+00:00 TRACE Z-Wave Switch  Z-Wave command(cab3ad73) transmit status: TRANSMIT_COMPLETE_OK

Hi @Paul_Oliver did you ever get this device to connect properly? I can’t get motion working. Tried pairing/unpairing multiple times and it’s not picking up motion. Let me know which driver you’re using. Thanks

Sorry for the delay in responding. The following is your solution.

Excellent! Thank you