Page 1 of 1

WORKING NOW - DYI ZigBee switch (TI's CC2530) connecting to Zigbee2MQTT

Posted: Monday 16 October 2023 16:10
by Lemme
Hi all
I am working on a ZigBee switch on a DYI basis. It is based on a CC2530 chip from Texas Instruments using Z-Stack 3.0.2. Everything is released on GitHub:
https://github.com/LemmeDasker/Simple-Z ... igbee2MQTT

The idea is to use Zigbee2MQTT as controller and connect that it to Domoticz.

However - I am stuck with a problem with the C2530 that I can not solve. I do not know if the problem is related to my code or something to do with ZigBee2MQTT converter file.

My hope is that some one with the same interest that have worked with the C2530 before, can help with the last thing to get this to work. The project with the issue is described on GitHub.

I would be greatfull if a kind soul could help look into this...

Br
Lemme

Re: Project stalled - DYI ZigBee switch (TI's CC2530) connecting to Zigbee2MQTT

Posted: Tuesday 17 October 2023 10:27
by gizmocuz
Better post this on the zigbee2mqtt forum. Once it is working there, it will work in Domoticz too.

Re: Project stalled - DYI ZigBee switch (TI's CC2530) connecting to Zigbee2MQTT

Posted: Tuesday 17 October 2023 18:02
by Lemme
I totally agree. But no one in there seems to be working on DYI stuff. No reply at all.

So in desparation I turned to my good old Domoticz forum, hoping that some one have done a similar thing. I could be lucky, or it could be a dead end...

Re: Project stalled - DYI ZigBee switch (TI's CC2530) connecting to Zigbee2MQTT

Posted: Tuesday 17 October 2023 18:42
by Doler
Maybe a useful contact could be Andrew Lamchenko who can be found on Github (smartboxchannel) or YouTube (Andrew EfektaSB). He has a lot of DIY zigbee (zigbee2mqtt) projects.

Re: Project stalled - DYI ZigBee switch (TI's CC2530) connecting to Zigbee2MQTT

Posted: Saturday 21 October 2023 15:43
by Lemme
I am a little reluctant to just contact some stranger and assume they will help. But I did look him up, and found some new inspiration in looking at his code for figuring out the problem.

I made an adjustment to the converter file, and the device is now recognised as 'supported' by Zigbee2MQTT. And the communication seems to be fine.
I also bought another propetary switch device to do some comparison and testing.

This is the status now:
I enabled the plugin: 'MQTT Auto Discovery Client Gateway with LAN interface'
The propetary switch device is nicely imported into Domoticz. But my own device is not.

The strange thing is that the propetary switch device sends these commands to Zigbee2MQTT:
Zigbee2MQTT:info 2023-10-21 14:40:02: MQTT publish: topic 'zigbee2mqtt/0x00124b00279e7339/action', payload 'button_1_single'
Zigbee2MQTT:info 2023-10-21 14:26:41: MQTT publish: topic 'zigbee2mqtt/0x00124b00279e7339/action', payload 'button_1_release'

And my device sends these:
Zigbee2MQTT:info 2023-10-21 15:38:51: MQTT publish: topic 'zigbee2mqtt/0x00124b00279e698d/action', payload 'on'
Zigbee2MQTT:info 2023-10-21 15:39:09: MQTT publish: topic 'zigbee2mqtt/0x00124b00279e698d/action', payload 'off'

From my point of view, both devices sends in the correct format. But my device is not importet into Domoticz.

Any clues...?

UPDATED WITH NEW INFO:
https://github.com/LemmeDasker/Simple-Z ... /README.md

Re: Project stalled - DYI ZigBee switch (TI's CC2530) connecting to Zigbee2MQTT

Posted: Saturday 21 October 2023 16:38
by Lemme
I got it working!!!!!!!!!!!!!!!!!!!!!
It was the ZigBee2MQTT converter file.

FINAL UPDATE:
https://github.com/LemmeDasker/Simple-Z ... /README.md