Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set _TZE200_vrfecyku as sensor with fall function #4859

Merged
merged 5 commits into from
Oct 31, 2022

Conversation

korzenek
Copy link
Contributor

I own _TZE200_vrfecyku
In current implementation I get lots of NOT RECOGNIZED DP 117
see: Koenkk/zigbee2mqtt#12733

After this fix, its properly recognised as fall related packets

@Koenkk Koenkk merged commit a17dc15 into Koenkk:master Oct 31, 2022
@Koenkk
Copy link
Owner

Koenkk commented Oct 31, 2022

Thanks!

Mephistofeles pushed a commit to Mephistofeles/zigbee-herdsman-converters that referenced this pull request Dec 13, 2022
…Koenkk#4859)

* Set _TZE200_vrfecyku as sensor with fall function

* Update tuya.js

* Update tuya.js

* Update fromZigbee.js

* Update toZigbee.js

Co-authored-by: Koen Kanters <[email protected]>
@salopette
Copy link

@Koenkk Can you please fix this? I still have errors

@Koenkk
Copy link
Owner

Koenkk commented Dec 15, 2022

@salopette if it is about the dp errors, please check https://www.zigbee2mqtt.io/advanced/support-new-devices/03_find_tuya_data_points.html how to find out what these mean.

@salopette
Copy link

Hello, I have now checked all data points and made a list.

  • Presence State code: "1"
    Sensitivity code: "2"
    Reset Flag code: "101"
    Motion State code: "102"
    Illumination code: "103"
    Detection Data code: "104"
    Radar Check End code: "107"
    Radar Check Start code: "108"
    HW Version code: "109"
    SW Version code: "110"
    Radar ID code: "111"
    Scene code: "112"
    Motion Direction code: "114"
    Motion code: "115"

@Koenkk
Copy link
Owner

Koenkk commented Dec 17, 2022

@salopette what dp gives the error? (NOT RECOGNIZED DP XX ?)

@salopette
Copy link

salopette commented Dec 17, 2022

.

@Koenkk
Copy link
Owner

Koenkk commented Dec 18, 2022

What is the manufacturer name of your device? (provide me the data/database.db entry). For _TZE200_vrfecyku this error should not appear.

@salopette
Copy link

salopette commented Dec 21, 2022

What is the manufacturer name of your device? (provide me the data/database.db entry). For _TZE200_vrfecyku this error should not appear.

data/database.db entry

{"id":42,"type":"Router","ieeeAddr":"0xb4e3f9fffe47d131","nwkAddr":9263,"manufId":4098,"manufName":"_TZE200_vrfecyku","powerSource":"Mains (single phase)","modelId":"TS0601","epList":[1],"endpoints":{"1":{"profId":260,"epId":1,"devId":81,"inClusterList":[0,4,5,61184],"outClusterList":[25,10],"clusters":{"genBasic":{"attributes":{"65503":"\u0000\u0000\u0000\u0000\u0005\u0000\u0000\u0000\u0000\u0012\u0000\u0000\u0000\u0000\u0012\u0000\u0000\u0000\u0000\u0005\u0000\u0000\u0000\u0000\u0005","65506":31,"65508":0,"stackVersion":0,"dateCode":"","appVersion":72}}},"binds":[],"configuredReportings":[],"meta":{}}},"appVersion":72,"stackVersion":0,"hwVersion":1,"dateCode":"","zclVersion":3,"interviewCompleted":true,"meta":{"configured":-1341608118},"lastSeen":1671652548068,"defaultSendRequestWhen":"immediate"}

log.txt

sshot-3

@salopette
Copy link

sshot-1
sshot-2
1

@Koenkk
Copy link
Owner

Koenkk commented Dec 22, 2022

Can you check with the following external converter? https://gist.github.com/Koenkk/16e84ce2166611a0ba24d28490279d64

Could you check if the issue is fixed with the following external converter:

  • save this as file next to configuration.yaml as ext_converter.js
  • add it to configuration.yaml:
external_converters:
  - ext_converter.js
  • start z2m

  • The errors should be gone now

  • Under the "State" tab extra properties should appear now starting with TODO_, can you figure out if they are useful and what they mean?

@salopette
Copy link

salopette commented Dec 22, 2022

Hi, I've done it this way.
No settings can be made, a message always appears. e.g. (No converter available for 'radar_sensitivity' (8))

{
"TODO_detection_data_code": "0000",
"TODO_hw_version_code": "MR24D11B1D",
"TODO_radar_id_code": "4505c0251383434373838",
"TODO_reset_flag_code": false,
"TODO_sw_version_code": "G24VDA41D-210907-D",
"fall_down_status": "none",
"fall_sensitivity": 10,
"illuminance_lux": 23,
"last_seen": "2022-12-22T20:19:57.754Z",
"linkquality": 98,
"motion_direction": "moving_forward",
"motion_speed": 85,
"radar_scene": "default",
"radar_sensitivity": 6,
"tumble_alarm_time": 4,
"tumble_switch": 1,
"occupancy": null,
"presence": null,
"static_dwell_alarm": null
}

2022-12-22 21:22:13Exception while calling fromZigbee converter: Value '1' is not allowed, expected one of false,true}

@Koenkk
Copy link
Owner

Koenkk commented Dec 23, 2022

I can fix the issues, but can you provide the debug log of: 2022-12-22 21:22:13Exception while calling fromZigbee converter: Value '1' is not allowed, expected one of false,true}

See https://www.zigbee2mqtt.io/guide/usage/debug.html on how to enable debug logging.

@salopette
Copy link

2022-12-23 20:42:18Received Zigbee message from '0xb4e3f9fffe47d131', type 'commandDataReport', cluster 'manuSpecificTuya', data '{"dpValues":[{"data":{"data":[1],"type":"Buffer"},"datatype":4,"dp":1}],"seq":10264}' from endpoint 1 with groupID 0
2022-12-23 20:42:18Received Zigbee message from '0xb4e3f9fffe47d131', type 'commandDataReport', cluster 'manuSpecificTuya', data '{"dpValues":[{"data":{"data":[1],"type":"Buffer"},"datatype":4,"dp":1}],"seq":10264}' from endpoint 1 with groupID 0
2022-12-23 20:42:18Received Zigbee message from '0xb4e3f9fffe47d131', type 'commandDataReport', cluster 'manuSpecificTuya', data '{"dpValues":[{"data":{"data":[1],"type":"Buffer"},"datatype":4,"dp":1}],"seq":10264}' from endpoint 1 with groupID 0
2022-12-23 20:42:18Received Zigbee message from '0xb4e3f9fffe47d131', type 'commandDataReport', cluster 'manuSpecificTuya', data '{"dpValues":[{"data":{"data":[1],"type":"Buffer"},"datatype":4,"dp":1}],"seq":10264}' from endpoint 1 with groupID 0
2022-12-23 20:42:19Received Zigbee message from '0xb4e3f9fffe47d131', type 'commandDataReport', cluster 'manuSpecificTuya', data '{"dpValues":[{"data":{"data":[1],"type":"Buffer"},"datatype":4,"dp":1}],"seq":10264}' from endpoint 1 with groupID 0
2022-12-23 20:42:19Received Zigbee message from '0xb4e3f9fffe47d131', type 'commandDataReport', cluster 'manuSpecificTuya', data '{"dpValues":[{"data":{"data":[1],"type":"Buffer"},"datatype":4,"dp":1}],"seq":10264}' from endpoint 1 with groupID 0
2022-12-23 20:42:19Received Zigbee message from '0xb4e3f9fffe47d131', type 'commandDataReport', cluster 'manuSpecificTuya', data '{"dpValues":[{"data":{"data":[1],"type":"Buffer"},"datatype":4,"dp":102}],"seq":10520}' from endpoint 1 with groupID 0
2022-12-23 20:42:19Received Zigbee message from '0xb4e3f9fffe47d131', type 'commandDataReport', cluster 'manuSpecificTuya', data '{"dpValues":[{"data":{"data":[0],"type":"Buffer"},"datatype":4,"dp":114}],"seq":10776}' from endpoint 1 with groupID 0
2022-12-23 20:42:19Received Zigbee message from '0xb4e3f9fffe47d131', type 'commandDataReport', cluster 'manuSpecificTuya', data '{"dpValues":[{"data":{"data":[2],"type":"Buffer"},"datatype":4,"dp":102}],"seq":10776}' from endpoint 1 with groupID 0
2022-12-23 20:42:19Received Zigbee message from '0xb4e3f9fffe47d131', type 'commandDataReport', cluster 'manuSpecificTuya', data '{"dpValues":[{"data":{"data":[0,0,0,7],"type":"Buffer"},"datatype":2,"dp":115}],"seq":10776}' from endpoint 1 with groupID 0
2022-12-23 20:42:19Received Zigbee message from '0xb4e3f9fffe47d131', type 'commandDataReport', cluster 'manuSpecificTuya', data '{"dpValues":[{"data":{"data":[1],"type":"Buffer"},"datatype":4,"dp":114}],"seq":10776}' from endpoint 1 with groupID 0
2022-12-23 20:42:24Received Zigbee message from '0xb4e3f9fffe47d131', type 'commandDataReport', cluster 'manuSpecificTuya', data '{"dpValues":[{"data":{"data":[0,0,0,11],"type":"Buffer"},"datatype":2,"dp":115}],"seq":10776}' from endpoint 1 with groupID 0
2022-12-23 20:42:28Received Zigbee message from '0xb4e3f9fffe47d131', type 'commandDataReport', cluster 'manuSpecificTuya', data '{"dpValues":[{"data":{"data":[0,0,0,7],"type":"Buffer"},"datatype":2,"dp":115}],"seq":10776}' from endpoint 1 with groupID 0
2022-12-23 20:42:33Received Zigbee message from '0xb4e3f9fffe47d131', type 'commandDataReport', cluster 'manuSpecificTuya', data '{"dpValues":[{"data":{"data":[0,0,0,9],"type":"Buffer"},"datatype":2,"dp":115}],"seq":10776}' from endpoint 1 with groupID 0

@salopette
Copy link

log.txt

@salopette
Copy link

salopette commented Dec 23, 2022

2022-12-23 20:50:19Received Zigbee message from '0xb4e3f9fffe47d131', type 'commandDataReport', cluster 'manuSpecificTuya', data '{"dpValues":[{"data":{"data":[1],"type":"Buffer"},"datatype":4,"dp":114}],"seq":5632}' from endpoint 1 with groupID 0
2022-12-23 20:50:23Received Zigbee message from '0xb4e3f9fffe47d131', type 'commandDataReport', cluster 'manuSpecificTuya', data '{"dpValues":[{"data":{"data":[1],"type":"Buffer"},"datatype":4,"dp":1}],"seq":5632}' from endpoint 1 with groupID 0
2022-12-23 20:50:23Received Zigbee message from '0xb4e3f9fffe47d131', type 'commandDataReport', cluster 'manuSpecificTuya', data '{"dpValues":[{"data":{"data":[2],"type":"Buffer"},"datatype":4,"dp":102}],"seq":5888}' from endpoint 1 with groupID 0
2022-12-23 20:50:26Received Zigbee message from '0xb4e3f9fffe47d131', type 'commandDataReport', cluster 'manuSpecificTuya', data '{"dpValues":[{"data":{"data":[1],"type":"Buffer"},"datatype":4,"dp":1}],"seq":5888}' from endpoint 1 with groupID 0
2022-12-23 20:50:26Received Zigbee message from '0xb4e3f9fffe47d131', type 'commandDataReport', cluster 'manuSpecificTuya', data '{"dpValues":[{"data":{"data":[1],"type":"Buffer"},"datatype":4,"dp":102}],"seq":6144}' from endpoint 1 with groupID 0
2022-12-23 20:50:26Received Zigbee message from '0xb4e3f9fffe47d131', type 'commandDataReport', cluster 'manuSpecificTuya', data '{"dpValues":[{"data":{"data":[0],"type":"Buffer"},"datatype":4,"dp":114}],"seq":6400}' from endpoint 1 with groupID 0
2022-12-23 20:50:26Received Zigbee message from '0xb4e3f9fffe47d131', type 'commandDataReport', cluster 'manuSpecificTuya', data '{"dpValues":[{"data":{"data":[2],"type":"Buffer"},"datatype":4,"dp":102}],"seq":6400}' from endpoint 1 with groupID 0
2022-12-23 20:50:27Received Zigbee message from '0xb4e3f9fffe47d131', type 'commandDataReport', cluster 'manuSpecificTuya', data '{"dpValues":[{"data":{"data":[1],"type":"Buffer"},"datatype":4,"dp":114}],"seq":6400}' from endpoint 1 with groupID 0
2022-12-23 20:50:28Received Zigbee message from '0xb4e3f9fffe47d131', type 'commandDataReport', cluster 'manuSpecificTuya', data '{"dpValues":[{"data":{"data":[0,0,0,9],"type":"Buffer"},"datatype":2,"dp":115}],"seq":6400}' from endpoint 1 with groupID 0

2022-12-23 20:51:32Received Zigbee message from '0xb4e3f9fffe47d131', type 'commandDataReport', cluster 'manuSpecificTuya', data '{"dpValues":[{"data":{"data":[0,0,0,1],"type":"Buffer"},"datatype":2,"dp":115}],"seq":6912}' from endpoint 1 with groupID 0
2022-12-23 20:51:32Received Zigbee message from '0xb4e3f9fffe47d131', type 'commandDataReport', cluster 'manuSpecificTuya', data '{"dpValues":[{"data":{"data":[2],"type":"Buffer"},"datatype":4,"dp":102}],"seq":6912}' from endpoint 1 with groupID 0
2022-12-23 20:51:33Received Zigbee message from '0xb4e3f9fffe47d131', type 'commandDataReport', cluster 'manuSpecificTuya', data '{"dpValues":[{"data":{"data":[1],"type":"Buffer"},"datatype":4,"dp":114}],"seq":6912}' from endpoint 1 with groupID 0
2022-12-23 20:51:36Received Zigbee message from '0xb4e3f9fffe47d131', type 'commandDataReport', cluster 'manuSpecificTuya', data '{"dpValues":[{"data":{"data":[0,0,0,7],"type":"Buffer"},"datatype":2,"dp":115}],"seq":6912}' from endpoint 1 with groupID 0
2022-12-23 20:51:37Received Zigbee message from '0xb4e3f9fffe47d131', type 'commandDataReport', cluster 'manuSpecificTuya', data '{"dpValues":[{"data":{"data":[1],"type":"Buffer"},"datatype":4,"dp":1}],"seq":6912}' from endpoint 1 with groupID 0
2022-12-23 20:51:38Received Zigbee message from '0xb4e3f9fffe47d131', type 'commandDataReport', cluster 'manuSpecificTuya', data '{"dpValues":[{"data":{"data":[1],"type":"Buffer"},"datatype":4,"dp":102}],"seq":7168}' from endpoint 1 with groupID 0
2022-12-23 20:51:38Received Zigbee message from '0xb4e3f9fffe47d131', type 'commandDataReport', cluster 'manuSpecificTuya', data '{"dpValues":[{"data":{"data":[0],"type":"Buffer"},"datatype":4,"dp":114}],"seq":7424}' from endpoint 1 with groupID 0
2022-12-23 20:51:38Received Zigbee message from '0xb4e3f9fffe47d131', type 'attributeReport', cluster 'genBasic', data '{"65503":"\u0000\u0000\u0000\u0000\u0005"}' from endpoint 1 with groupID 0

@salopette
Copy link

Debug 2022-12-23 21:13:13Received Zigbee message from 'Radar-Sendor', type 'commandDataReport', cluster 'manuSpecificTuya', data '{"dpValues":[{"data":{"data":[0],"type":"Buffer"},"datatype":1,"dp":103}],"seq":29952}' from endpoint 1 with groupID 0
Info 2022-12-23 21:13:14MQTT publish: topic 'zigbee2mqtt/Radar-Sendor', payload '{"duration_of_absence":0,"duration_of_attendance":33,"last_seen":"2022-12-23T20:13:14.668Z","led_state":false,"linkquality":105,"presence":true}'
Debug 2022-12-23 21:13:14Received Zigbee message from '0xb4e3f9fffe47d131', type 'commandDataReport', cluster 'manuSpecificTuya', data '{"dpValues":[{"data":{"data":[1],"type":"Buffer"},"datatype":4,"dp":1}],"seq":36864}' from endpoint 1 with groupID 0
Error 2022-12-23 21:13:14Exception while calling fromZigbee converter: Value '1' is not allowed, expected one of false,true}
Debug 2022-12-23 21:13:14Error: Value '1' is not allowed, expected one of false,true at Object.from (/app/node_modules/zigbee-herdsman-converters/lib/tuya.js:1228:35) at Object.convert (/app/node_modules/zigbee-herdsman-converters/lib/tuya.js:1643:57) at Receive.onDeviceMessage (/app/lib/extension/receive.ts:143:51) at EventEmitter.emit (node:events:525:35) at EventBus.emitDeviceMessage (/app/lib/eventBus.ts:102:22) at Controller. (/app/lib/zigbee.ts:106:27) at Controller.emit (node:events:513:28) at Controller.selfAndDeviceEmit (/app/node_modules/zigbee-herdsman/src/controller/controller.ts:515:14) at Controller.onZclOrRawData (/app/node_modules/zigbee-herdsman/src/controller/controller.ts:726:18) at ZStackAdapter. (/app/node_modules/zigbee-herdsman/src/controller/controller.ts:144:70)
Info 2022-12-23 21:13:15MQTT publish: topic 'zigbee2mqtt/0xb4e3f9fffe47d131', payload '{"TODO_detection_data_code":"0000","TODO_hw_version_code":"MR24D11B1D","TODO_radar_id_code":"4505c0251383434373838","TODO_reset_flag_code":false,"TODO_sw_version_code":"G24VDA41D-210907-D","fall_down_status":"none","fall_sensitivity":10,"illuminance_lux":19,"last_seen":"2022-12-23T20:13:15.641Z","linkquality":120,"motion_direction":"standing_still","motion_speed":23,"occupancy":"true","presence":null,"radar_scene":"default","radar_sensitivity":6,"static_dwell_alarm":null,"tumble_alarm_time":4,"tumble_switch":1}'
Debug 2022-12-23 21:13:15Received Zigbee message from '0xb4e3f9fffe47d131', type 'commandDataReport', cluster 'manuSpecificTuya', data '{"dpValues":[{"data":{"data":[1],"type":"Buffer"},"datatype":4,"dp":102}],"seq":37120}' from endpoint 1 with groupID 0
Info 2022-12-23 21:13:15

@salopette
Copy link

0],"type":"Buffer"},"datatype":1,"dp":103}],"seq":42496}' from endpoint 1 with groupID 0 Info 2022-12-23 21:14:21MQTT publish: topic 'zigbee2mqtt/Radar-Sendor', payload '{"duration_of_absence":0,"duration_of_attendance":34,"last_seen":"2022-12-23T20:14:21.732Z","led_state":false,"linkquality":105,"presence":true}' Debug 2022-12-23 21:14:22Received Zigbee message from '0xb4e3f9fffe47d131', type 'commandDataReport', cluster 'manuSpecificTuya', data '{"dpValues":[{"data":{"data":[1],"type":"Buffer"},"datatype":4,"dp":1}],"seq":37888}' from endpoint 1 with groupID 0 Error 2022-12-23 21:14:22Exception while calling fromZigbee converter: Value '1' is not allowed, expected one of false,true} Debug 2022-12-23 21:14:22Error: Value '1' is not allowed, expected one of false,true at Object.from (/app/node_modules/zigbee-herdsman-converters/lib/tuya.js:1228:35) at Object.convert (/app/node_modules/zigbee-herdsman-converters/lib/tuya.js:1643:57) at Receive.onDeviceMessage (/app/lib/extension/receive.ts:143:51) at EventEmitter.emit (node:events:525:35) at EventBus.emitDeviceMessage (/app/lib/eventBus.ts:102:22) at Controller.<anonymous> (/app/lib/zigbee.ts:106:27) at Controller.emit (node:events:513:28) at Controller.selfAndDeviceEmit (/app/node_modules/zigbee-herdsman/src/controller/controller.ts:515:14) at Controller.onZclOrRawData (/app/node_modules/zigbee-herdsman/src/controller/controller.ts:726:18) at ZStackAdapter.<anonymous> (/app/node_modules/zigbee-herdsman/src/controller/controller.ts:144:70) Info 2022-12-23 21:14:22MQTT publish: topic 'zigbee2mqtt/0xb4e3f9fffe47d131', payload '{"TODO_detection_data_code":"0000","TODO_hw_version_code":"MR24D11B1D","TODO_radar_id_code":"4505c0251383434373838","TODO_reset_flag_code":false,"TODO_sw_version_code":"G24VDA41D-210907-D","fall_down_status":"none","fall_sensitivity":10,"illuminance_lux":19,"last_seen":"2022-12-

@Koenkk
Copy link
Owner

Koenkk commented Dec 23, 2022

Please check if https://gist.github.com/Koenkk/16e84ce2166611a0ba24d28490279d64 fixes your issues

@salopette
Copy link

It doesn't want to start with the converter.

[11:52:56] INFO: Preparing to start...
[11:52:56] INFO: Socat not enabled
[11:52:56] INFO: Zigbee Herdsman debug logging enabled
[11:52:56] INFO: Starting Zigbee2MQTT...
/app/dist/util/externally-loaded.js:18
trueFalse: valueConverterBasic.lookup({true: 1, false: 0}),
^
ReferenceError: valueConverterBasic is not defined
at /app/dist/util/externally-loaded.js:18:16
at Script.runInContext (node:vm:141:12)
at Script.runInNewContext (node:vm:146:17)
at Object.runInNewContext (node:vm:306:38)
at loadModuleFromText (/app/lib/util/utils.ts:148:8)
at loadModuleFromFile (/app/lib/util/utils.ts:155:12)
at Object.getExternalConvertersDefinitions (/app/lib/util/utils.ts:165:25)
at getExternalConvertersDefinitions.next ()
at new ExternalConverters (/app/lib/extension/externalConverters.ts:12:20)
at new Controller (/app/lib/controller.ts:84:58)

sshot-1

@Koenkk
Copy link
Owner

Koenkk commented Dec 24, 2022

@salopette
Copy link

Now it's started!
I just saw that in the log.

Error 2022-12-24 13:11:09Exception while calling fromZigbee converter: Value '0' is not allowed, expected one of 1,2}

@salopette
Copy link

log.txt

@salopette
Copy link

if i change radar_scene to another setting, it immediately jumps back to dafault. it is the same with tumble_switch and the tumble_alarm_time too.

sshot-2

{
"TODO_detection_data_code": "0000",
"TODO_hw_version_code": "MR24D11B1D",
"TODO_radar_id_code": "4505c0251383434373838",
"TODO_reset_flag_code": false,
"TODO_sw_version_code": "G24VDA41D-210907-D",
"fall_down_status": "none",
"fall_sensitivity": 1,
"illuminance_lux": 64,
"last_seen": "2022-12-24T20:38:25.837Z",
"linkquality": 69,
"motion_direction": "standing_still",
"motion_speed": 53,
"occupancy": "true",
"presence": "true",
"radar_scene": "default",
"radar_sensitivity": 0,
"static_dwell_alarm": null,
"tumble_alarm_time": 0,
"tumble_switch": 1
}

@Koenkk
Copy link
Owner

Koenkk commented Dec 25, 2022

if i change radar_scene to another setting, it immediately jumps back to dafault. it is the same with tumble_switch and the tumble_alarm_time too.

Can you provide the debug log of this?

Error 2022-12-24 13:11:09Exception while calling fromZigbee converter: Value '0' is not allowed, expected one of 1,2}

This seems to be related to occupancy, we need to figure out what 0 means. When you see this error, should occupancy be true or false?

@salopette
Copy link

salopette commented Jan 7, 2023

I've tried something else, but I haven't seen any errors.
Only that the values are not accepted.

device id: 0xb4e3f9fffe47d131 |  

log.txt

@Koenkk
Copy link
Owner

Koenkk commented Jan 8, 2023

@salopette can you check my 2 questions from #4859 (comment)

@salopette
Copy link

I've now tried the settings for 15 minutes, but there are no more errors in the log.
Only the on/off will not be taken over and it always goes back to default.

sshot-1

@salopette
Copy link

sshot-2

Koenkk added a commit that referenced this pull request Jan 8, 2023
@Koenkk
Copy link
Owner

Koenkk commented Jan 8, 2023

@salopette I've integrated and fixed that now. Can you check without the external converter and with the latest dev in 1 hour from now?

Changes will be available in the dev branch in a few hours from now. (https://www.zigbee2mqtt.io/advanced/more/switch-to-dev-branch.html)

@salopette
Copy link

Can this be checked in Ext.converter? I really hate driving the dev branch.

@Koenkk
Copy link
Owner

Koenkk commented Jan 9, 2023

@salopette
Copy link

I have a video of how this works. With the new external converter nothing is saved either.

zigbee2mqtt-home-assistant-google-chrome-2023-01-09-18-57-19_ejtFiDkA.mp4

@Koenkk
Copy link
Owner

Koenkk commented Jan 9, 2023

can you provide the debug log when changing the values?

See https://www.zigbee2mqtt.io/guide/usage/debug.html on how to enable debug logging.

@salopette
Copy link

log.txt

@Koenkk
Copy link
Owner

Koenkk commented Jan 10, 2023

I've fixed the issue with the tumble_switch: https://gist.github.com/Koenkk/16e84ce2166611a0ba24d28490279d64 , are there any more issues?

@salopette
Copy link

Yes, the switch now saves the position.

  1. radar_scene jumps to default every time, is not adopted.
  2. radar_sensitivity only goes from 1-9, if you set it to 10 it goes back to the old value.
  3. tumble_alarm_time always jumps back to 1 no matter if you set 1, 2, 3, 4 or 5.
  4. static_dwell_alarm is always displayed as NULL.?

I think that was all I could think of at first.

@Koenkk
Copy link
Owner

Koenkk commented Jan 12, 2023

radar_scene jumps to default every time, is not adopted.

can you provide the debug log of this?

radar_sensitivity only goes from 1-9, if you set it to 10 it goes back to the old value.

limited it to 9 (I think sensor doesn't support more)

tumble_alarm_time always jumps back to 1 no matter if you set 1, 2, 3, 4 or 5.

Did this work before? If yes can you provide the debug log of this

static_dwell_alarm is always displayed as NULL.?

Was this also the case before?

@cdemi
Copy link
Contributor

cdemi commented Feb 3, 2023

@Koenkk @korzenek it looks like this change has broken _TZE200_lu01t0zl model MIR-HE200-TY occupation and presence sensors: Koenkk/zigbee2mqtt/issues/16467

In Zigbee2MQTT I can see the sensors updating, however in Home Assistant they are being marked as Unknown:
image
image

On the other hand the attribute on the sensor shows as a correct boolean:

image

@alexebner
Copy link

Same issue here
I have worked around and konfigure the triggers as MQTT topic

trigger:

platform: mqtt
topic: homeassistant/binary_sensor/pm_kuche_presence/presence
payload: '"true"'

@ajunio3
Copy link

ajunio3 commented Feb 28, 2023

Yes, the switch now saves the position.

  1. radar_scene jumps to default every time, is not adopted.
  2. radar_sensitivity only goes from 1-9, if you set it to 10 it goes back to the old value.
  3. tumble_alarm_time always jumps back to 1 no matter if you set 1, 2, 3, 4 or 5.
  4. static_dwell_alarm is always displayed as NULL.?

I think that was all I could think of at first.

Issue persists with the radar_scene setting

@ajunio3
Copy link

ajunio3 commented Feb 28, 2023

another point: This sensor publishes one message every 5sec no matter what setting it has. Woudn't this be an issue with several sensors in the same network?

@ajunio3
Copy link

ajunio3 commented Feb 28, 2023

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants