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

Xiaomi, Ikea TRÅDFRI, Philips Hue and more.

Moderator: leecollings

Post Reply
Lemme
Posts: 45
Joined: Sunday 31 January 2016 13:50
Target OS: Windows
Domoticz version: Dev
Location: DK
Contact:

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

Post 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
Last edited by Lemme on Tuesday 24 October 2023 22:16, edited 1 time in total.
User avatar
gizmocuz
Posts: 2548
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

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

Post by gizmocuz »

Better post this on the zigbee2mqtt forum. Once it is working there, it will work in Domoticz too.
Quality outlives Quantity!
Lemme
Posts: 45
Joined: Sunday 31 January 2016 13:50
Target OS: Windows
Domoticz version: Dev
Location: DK
Contact:

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

Post 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...
Doler
Posts: 147
Joined: Friday 31 July 2015 21:02
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Sint-Oedenrode, Netherlands
Contact:

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

Post 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.
Mark: Domoticz Beta on Raspberry Pi 4 running Debian Bookworm - Z-Stick 7 - RFXCom - P1 - MySensors - SolarEdge - Dahua - Philips Hue - Docker - Zigbee2mqtt (plugin) - Zwave-js-ui - dzVents - Nodered
Lemme
Posts: 45
Joined: Sunday 31 January 2016 13:50
Target OS: Windows
Domoticz version: Dev
Location: DK
Contact:

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

Post 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
Lemme
Posts: 45
Joined: Sunday 31 January 2016 13:50
Target OS: Windows
Domoticz version: Dev
Location: DK
Contact:

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

Post by Lemme »

I got it working!!!!!!!!!!!!!!!!!!!!!
It was the ZigBee2MQTT converter file.

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

Who is online

Users browsing this forum: Bing [Bot] and 1 guest