Tried to create an external definition for this existing device, however I was unable to get the definition to work correctly or send the data to MQTT so it will appear in Home Assistant.
I was trying to add support for:
Showing the physical switch state ("cluster":"genBinaryInput","attribute":"presentValue")
On time delay ("cluster":"OnOff","attribute":"onTime")
Off time delay ("cluster":"OnOff","attribute":"offTime")
Purpose for wanting this support is so an automation can be crated to "toggle" the power as the "Power-On behavior" is not a supported attribute for the devices I have installed.
What does/doesn't work with the external definition?
There seems to be a syntax error in my code and I cant find / understand what is preventing it from loading. I have spent a few hours attempting to get it working with no luck.
Hoping someone can help by enhancing the support for this device within Zigbee2MQTT.
Link
https://www.zigbee2mqtt.io/devices/3025CSGZ.html
Database entry
{"id":6,"type":"Router","ieeeAddr":"0x705464fffe290a7f","nwkAddr":49654,"manufId":4190,"manufName":"Schneider Electric","powerSource":"Mains (single phase)","modelId":"CH/Socket/2","epList":[1,2,242],"endpoints":{"1":{"profId":260,"epId":1,"devId":256,"inClusterList":[0,3,4,5,6,15,2821],"outClusterList":[25],"clusters":{"genBasic":{"attributes":{"dateCode":""}},"genOnOff":{"attributes":{"onOff":0}}},"binds":[{"cluster":6,"type":"endpoint","deviceIeeeAddress":"0x00124b0024c129dd","endpointID":1}],"configuredReportings":[{"cluster":6,"attrId":0,"minRepIntval":0,"maxRepIntval":65000,"repChange":1}],"meta":{}},"2":{"profId":260,"epId":2,"devId":256,"inClusterList":[0,3,4,5,6,15,2821],"outClusterList":[],"clusters":{"genBasic":{"attributes":{"dateCode":""}},"genOnOff":{"attributes":{"onOff":0}}},"binds":[{"cluster":6,"type":"endpoint","deviceIeeeAddress":"0x00124b0024c129dd","endpointID":1}],"configuredReportings":[{"cluster":6,"attrId":0,"minRepIntval":0,"maxRepIntval":65000,"repChange":1}],"meta":{}},"242":{"profId":41440,"epId":242,"devId":97,"inClusterList":[],"outClusterList":[33],"clusters":{},"binds":[],"configuredReportings":[],"meta":{}}},"appVersion":1,"stackVersion":6,"hwVersion":1,"dateCode":"","swBuildId":"01.01.10 0\u0000","zclVersion":3,"interviewCompleted":true,"meta":{"configured":332242049},"lastSeen":1731220740521}
Zigbee2MQTT version
1.41.0
Comments
Tried to create an external definition for this existing device, however I was unable to get the definition to work correctly or send the data to MQTT so it will appear in Home Assistant.
I was trying to add support for:
Purpose for wanting this support is so an automation can be crated to "toggle" the power as the "Power-On behavior" is not a supported attribute for the devices I have installed.
External definition
What does/doesn't work with the external definition?
There seems to be a syntax error in my code and I cant find / understand what is preventing it from loading. I have spent a few hours attempting to get it working with no luck.
Hoping someone can help by enhancing the support for this device within Zigbee2MQTT.