How about creating a listener for the state change?
I just looked in the events dev tool and saw this example for a zwave device:
Event 323 fired 10:02:
{
"event_type": "state_changed",
"data": {
"entity_id": "zwave.kitchen_ms6",
"old_state": {
"entity_id": "zwave.kitchen_ms6",
"state": "ready",
"attributes": {
"node_id": 27,
"node_name": "AEON Labs ZW100 MultiSensor 6",
"manufacturer_name": "AEON Labs",
"product_name": "ZW100 MultiSensor 6",
"query_stage": "Complete",
"is_awake": true,
"is_ready": true,
"is_failed": false,
"is_info_received": true,
"max_baud_rate": 40000,
"is_zwave_plus": true,
"capabilities": [
"listening",
"zwave_plus",
"routing",
"beaming"
],
"neighbors": [
32,
1,
6,
7,
11,
12,
17,
24,
29,
30,
31
],
"sentCnt": 40,
"sentFailed": 0,
"retries": 0,
"receivedCnt": 2113,
"receivedDups": 5,
"receivedUnsolicited": 2092,
"sentTS": "2020-12-01 10:01:43:730 ",
"receivedTS": "2020-12-01 10:02:28:528 ",
"lastRequestRTT": 192,
"averageRequestRTT": 110,
"lastResponseRTT": 2415,
"averageResponseRTT": 1836,
"battery_level": 100,
"wake_up_interval": 240,
"application_version": "1.10",
"friendly_name": "Kitchen MS6"
},
"last_changed": "2020-12-01T00:37:57.332952+00:00",
"last_updated": "2020-12-01T02:02:28.632795+00:00",
"context": {
"id": "2bfdaf53b6aa56aea9e903134283d53e",
"parent_id": null,
"user_id": null
}
},
"new_state": {
"entity_id": "zwave.kitchen_ms6",
"state": "ready",
"attributes": {
"node_id": 27,
"node_name": "AEON Labs ZW100 MultiSensor 6",
"manufacturer_name": "AEON Labs",
"product_name": "ZW100 MultiSensor 6",
"query_stage": "Complete",
"is_awake": true,
"is_ready": true,
"is_failed": false,
"is_info_received": true,
"max_baud_rate": 40000,
"is_zwave_plus": true,
"capabilities": [
"listening",
"zwave_plus",
"routing",
"beaming"
],
"neighbors": [
32,
1,
6,
7,
11,
12,
17,
24,
29,
30,
31
],
"sentCnt": 40,
"sentFailed": 0,
"retries": 0,
"receivedCnt": 2114,
"receivedDups": 5,
"receivedUnsolicited": 2093,
"sentTS": "2020-12-01 10:01:43:730 ",
"receivedTS": "2020-12-01 10:02:28:687 ",
"lastRequestRTT": 192,
"averageRequestRTT": 110,
"lastResponseRTT": 2415,
"averageResponseRTT": 1836,
"battery_level": 100,
"wake_up_interval": 240,
"application_version": "1.10",
"friendly_name": "Kitchen MS6"
},
"last_changed": "2020-12-01T00:37:57.332952+00:00",
"last_updated": "2020-12-01T02:02:28.791187+00:00",
"context": {
"id": "948372869934719e63fb95c2faa293aa",
"parent_id": null,
"user_id": null
}
}
},
"origin": "LOCAL",
"time_fired": "2020-12-01T02:02:28.791187+00:00",
"context": {
"id": "948372869934719e63fb95c2faa293aa",
"parent_id": null,
"user_id": null
}
}
Without spending much time looking at the above I’m not sure but perhaps in your event stream you would see the device updating when motion is detected?