Closed oroGithub closed 2 months ago
Edit: It seemed contradictory to use an external converter and then also manipulate a source file to add the undefined keys. This now also happens in the external converter.
Thanks a lot for your work, it worked instantly for me!
There are a few things I do not understand though: Why are there multiple None delay times? There are: time (sec), time min, time sec I think the first one (None delay time (Hold delay(seconds)) is supposed to be Hold delay time (sec)?
Do None delay time sec & min add together?
Hey, I was wondering about exactly the same thing. And I think you're right with your guess. The first value (28800 seconds) is the same as the other two converted to seconds (479 * 60 + 60). Maybe the makers of the sensor didn't know exactly which format was the right one in the end and they exposed both to the outside. I haven't had time to look into the sensor any further.
I can find the device and everything shows up but I am not able to find presence as a trigger when creating a flow.
I used detection of change in the presence-state as a trigger and it’s working just fine for me. Just search for the device name and it should be part of the quite long selection of available entities.
I used detection of change in the presence-state as a trigger and it’s working just fine for me. Just search for the device name and it should be part of the quite long selection of available entities.
Thanks, I have tried that but the only things I can place as triggers from that entity is "Unknown" "Unavailable" or "Any state"
I used detection of change in the presence-state as a trigger and it’s working just fine for me. Just search for the device name and it should be part of the quite long selection of available entities.
Thanks, I have tried that but the only things I can place as triggers from that entity is "Unknown" "Unavailable" or "Any state"
You can simply enter „large movement“ yourself and it works just fine ^^
This device does not have a Boolean (true/false) status output. Instead, it uses the five states "none", "presence", "peaceful", "small movement" and "large movement". Of these states, however, I have only observed "none", "peaceful" and "large movement" in both the Tuya Smart app and in z2m.
I used detection of change in the presence-state as a trigger and it’s working just fine for me. Just search for the device name and it should be part of the quite long selection of available entities.
Thanks, I have tried that but the only things I can place as triggers from that entity is "Unknown" "Unavailable" or "Any state"
You can simply enter „large movement“ yourself and it works just fine ^^
Ah thanks mate!
Could you make a pull request to add out-of-the-box support for this device?
This can be done by clicking here
I would like to add your converter tho I'll get the following error when I wanna save it:
[2024-07-10 18:48:48] error: z2m: Request 'zigbee2mqtt/bridge/request/extension/save' failed with error: 'ConstructorClass is not a constructor' [2024-07-10 18:48:48] info: z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/bridge/response/extension/save', payload '{"data":{},"error":"ConstructorClass is not a constructor","status":"error","transaction":"xmxdo-23"}'
When I create it via the File editor and try to run it:
2024-07-10 19:19:27] error: z2m: Failed to call 'ExternalExtension' 'start' (TypeError: ConstructorClass is not a constructor at ExternalExtension.loadExtension (/app/lib/extension/externalExtension.ts:95:33) at ExternalExtension.loadUserDefinedExtensions (/app/lib/extension/externalExtension.ts:100:13) at ExternalExtension.start (/app/lib/extension/externalExtension.ts:20:9) at Controller.callExtensions (/app/lib/controller.ts:372:17) at Controller.start (/app/lib/controller.ts:191:9) at start (/app/index.js:154:5))
Edit: Tho I'm getting this error, the converter seems to work for the most part. I'm only getting peaceful and large movement tho.
Could you make a pull request to add out-of-the-box support for this device?
This can be done by clicking here
I tried it. But I got a lint error that I couldn't fix :=)
Any update on this?
Great, will be supported out-of-the-box in the 1 August release.
Link
https://aliexpress.com/item/1005007050686755.html?spm=a2g0o.order_list.order_list_main.291.430518020D83P3
Database entry
{"id":56,"type":"Router","ieeeAddr":"0xa4c13824fb7652a2","nwkAddr":38162,"manufId":4417,"manufName":"_TZE204_dapwryy7","powerSource":"Mains (single phase)","modelId":"TS0601","epList":[1,242],"endpoints":{"1":{"profId":260,"epId":1,"devId":81,"inClusterList":[4,5,61184,0],"outClusterList":[25,10],"clusters":{"genBasic":{"attributes":{"65503":"(N\u0018.i(N\u0018.i*N\u0018.i,N\u0018.i","65506":56,"65508":0,"65534":0,"modelId":"TS0601","manufacturerName":"_TZE204_dapwryy7","powerSource":1,"zclVersion":3,"appVersion":74,"stackVersion":0,"hwVersion":1,"dateCode":""}}},"binds":[],"configuredReportings":[],"meta":{}},"242":{"profId":41440,"epId":242,"devId":97,"inClusterList":[],"outClusterList":[33],"clusters":{},"binds":[],"configuredReportings":[],"meta":{}}},"appVersion":74,"stackVersion":0,"hwVersion":1,"dateCode":"","zclVersion":3,"interviewCompleted":true,"meta":{"configured":332242049},"lastSeen":1720022889064}
Comments
Hi, I have created a new external converter and it seems to work fine. I have taken the keywords from the Tuya Standard Instruction Set. Because none of these keys were defined in lib/tuya.ts, I added them there.
Should I try to use already defined keys? I would like to contribute further, but have no idea how to use github.
I also don't know how to name the model. There is no name on it. Tuya says Product Name: HPD ZB MS58
External definition