zigbee2mqtt icon indicating copy to clipboard operation
zigbee2mqtt copied to clipboard

Sonoff ZigBee Bridge

Open akumamg opened this issue 6 years ago β€’ 26 comments

Will there be support for Sonoff ZigBee Bridge in the future ?

akumamg avatar Oct 03 '20 15:10 akumamg

Currently there are no plans, but if anybody is interested in implementing this I can give some support.

Koenkk avatar Oct 03 '20 21:10 Koenkk

I have one! Also a TRV (TS0601) like in issue#3821. What do I have to do to replace the serial connection for a IP socket (socket://[IP]:8888)?

LudoOne avatar Oct 28 '20 00:10 LudoOne

Currently there are no plans, but if anybody is interested in implementing this I can give some support.

I am really interessted in implementing this - But how to? :)

Johndolk avatar Oct 30 '20 10:10 Johndolk

Its simple, Write code

akumamg avatar Oct 30 '20 10:10 akumamg

I hope that Koenkk doesn't delete me for posting this, but I flashed my ZBbridge with T_smo_a, and wrote some Node.js to process the resulting MQTT.

Westcott1 avatar Oct 30 '20 10:10 Westcott1

I tried both: socat: slave: tcp:192.168.1.107:8888,keepalive,nodelay,reuseaddr,keepidle=1,keepintvl=1,keepcnt=5 as https://www.zigbee2mqtt.io/how_tos/how_to_connect_to_a_remote_adapter.html#3-configure: serial: port: 'tcp://192.168.1.107:8888' But resulted in: Zigbee2MQTT:error 2020-11-08 01:42:28: Error while starting zigbee-herdsman Zigbee2MQTT:error 2020-11-08 01:42:28: Failed to start zigbee Zigbee2MQTT:error 2020-11-08 01:42:28: Exiting... Zigbee2MQTT:error 2020-11-08 01:42:28: Error: Failed to connect to the adapter (Error: SRSP - SYS - ping after 6000ms) at ZStackAdapter.<anonymous> (/zigbee2mqtt-1.16.1/node_modules/zigbee-herdsman/dist/adapter/z-stack/adapter/zStackAdapter.js:94:31) at Generator.throw (<anonymous>) at rejected (/zigbee2mqtt-1.16.1/node_modules/zigbee-herdsman/dist/adapter/z-stack/adapter/zStackAdapter.js:25:65) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! [email protected] start: node index.js` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] start script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2020-11-08T00_42_28_346Z-debug.log 2020-11-08T01:42:29: PM2 log: App [npm:0] exited with code [1] via signal [SIGINT] 2020-11-08T01:42:29: PM2 log: App [npm:0] starting in -fork mode- 2020-11-08T01:42:29: PM2 log: App [npm:0] online

[email protected] start /zigbee2mqtt-1.16.1 node index.js`

LudoOne avatar Nov 08 '20 00:11 LudoOne

I hope that Koenkk doesn't delete me for posting this, but I flashed my ZBbridge with T_smo_a, and wrote some Node.js to process the resulting MQTT.

Can you share more of what you did?

CJMarais avatar Nov 09 '20 13:11 CJMarais

Hi CJMarias, You are welcome to what I've done so far. It's an add-on to more Node.js that I wrote to interface between Domoticz and Z2M A config file holds the idx of any Domoticz devices that can be updated from incoming MQTT. The ZBbridge is a coordinator for a separate ZigBee network. It also reads from a Sonoff 433 bridge, also flashed with T-sm-ta.

Westcott1 avatar Nov 09 '20 17:11 Westcott1

after my cc2531 keep dropping device, i got sonoff zigbee. Its disappointed to learn it is not supported by z2m. anyone start working on this? The problem is i dont know where to start.

tyjtyj avatar Nov 22 '20 01:11 tyjtyj

@tyjtyj I 110% agree with you but for the moment its looks like 3 or 4 devs have starting and doing little but not so much for getting it released in public. What i have understanding is EZSP mutch "low level" command that is making mutch work for implanting it but is very powerful and flexible. The sonoff is working good with tasmota zigbee bridge but is little limited in functionality but OK for small system with sensors (Was implanted of one dev in some months from scratch !!). ZHA devs have updating the code in the summer with around 20K lines for implanting the new EZSP protocol and is working well and is stabile and is have good support for real zigbee 3 devices. Its with Rasp/CornBee the most powerful coordinator on the market and much better then first and second gen TI:s. I hope that some devs is going together and getting it working on the Z2M (java)train.

MattWestb avatar Nov 22 '20 11:11 MattWestb

there is another firmware for esp. https://www.zigbee2mqtt.io/information/connecting_cc2530.html it migt work ?

lotohov avatar Nov 27 '20 08:11 lotohov

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days

github-actions[bot] avatar Dec 28 '20 00:12 github-actions[bot]

Any news about this ?

akumamg avatar Dec 29 '20 21:12 akumamg

Did you write code?

On Tue, Dec 29, 2020, 22:12 akumamg [email protected] wrote:

Any news about this ?

β€” You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Koenkk/zigbee2mqtt/issues/4544#issuecomment-752242551, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEG4FTWEX2VJ35LHP72LIXDSXJA5PANCNFSM4SCXN4ZQ .

LudoOne avatar Dec 29 '20 21:12 LudoOne

If it just has a tcp socket and you want to connect zigbee2mqtt without changing code you can checkout this answer. You have socat it’s an app that lets you configure a local virtual serial port that just connects to a tcp socket.

then you can connect zigbee2mqtt to /dev/virtualcom0 which it actually socat that connects to a tcp socket. Changing this inside zigbee2mqtt will require refactoring actual communication to the serial port, but should be doable.

svrooij avatar Jan 06 '21 22:01 svrooij

If it just has a tcp socket and you want to connect zigbee2mqtt without changing code you can checkout this answer. You have socat it’s an app that lets you configure a local virtual serial port that just connects to a tcp socket.

then you can connect zigbee2mqtt to /dev/virtualcom0 which it actually socat that connects to a tcp socket. Changing this inside zigbee2mqtt will require refactoring actual communication to the serial port, but should be doable.

EZSP not supported by z2m yet. So connecting via tcp has not use as the z2m does not speak EZSP language.

tyjtyj avatar Jan 07 '21 00:01 tyjtyj

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days

github-actions[bot] avatar Feb 07 '21 00:02 github-actions[bot]

This is extremely important for me too, has there been any update? This hub is very powerful and using zigbee2mqtt would really simplify a lot of things... Please make it happen

anubisg1 avatar Feb 25 '21 18:02 anubisg1

@anubisg1 this is an opensource project. A lot of work needs to be done before this will happen. Since this issue is already closed (because it was getting old) I would not get your hopes up. Sponsoring Coen €1000 might draw some attention to this topic.

svrooij avatar Feb 25 '21 19:02 svrooij

@anubisg1 this is an opensource project. A lot of work needs to be done before this will happen. Since this issue is already closed (because it was getting old) I would not get your hopes up. Sponsoring Coen €1000 might draw some attention to this topic.

Thanks for the reply... I understand what you say but I think you added an extra 0 without noticing... Probably a typo

anubisg1 avatar Feb 25 '21 19:02 anubisg1