Page 1 of 1

Sonoff Zigbee Bridge?

Posted: Friday 25 September 2020 12:39
by doh
Hi

Has anyone managed to get the Sonoff Zigbee Bridge working with Domoticz at all (or via NodeRED, etc)?

I've got one and re-flashed it with the tasmota-zbbridge firmware and that's all working, but I really don't fancy trying to code everything in NodeRED to read and update the devices.

I've looked at the Domoticz plugin for sonoff tasmota and that doesn't look like it will do the job as it seems to assume that the sonoff device just has one or two switches, whereas the bridge presents many devices, which also means the tasmota built-in domoticz integrations won't work either.

Thoughts?

Re: Sonoff Zigbee Bridge?

Posted: Saturday 17 October 2020 13:31
by Kruu
Did anyone managed to get it working without reflashing it?

Re: Sonoff Zigbee Bridge?

Posted: Sunday 08 November 2020 19:19
by JRRDomoticz
Good afternoon:
Have you somehow managed it without NODORed?

With a Snifer MQTT I see the plot:
tele/zigbeeBrigge/SENSOR = {"ZbReceived":{"0x09CC":{"Device":"0x09CC","Temperature":22.75,"Humidity":81.97,"Endpoint":1,"LinkQuality":47}}}
tele/zigbeeBridge/SENSOR = {"ZbReceived":{"0x6DB4":{"Device":"0x6DB4","Temperature":22.75,"Humidity":81.97,"Endpoint":1,"LinkQuality":47}}}


I've seen in another thread that you can create a rule in Tasmota console, but it doesn't do anything ...
Rule1 ON ZbReceived#0x6DB4#Occupancy=1 DO publish domoticz/in {"idx":23, "nvalue":1} ENDON
Rule1 1

Rule2 ON ZbReceived#0x09CC#Occupancy=1 DO publish domoticz/in {"idx":24, "nvalue":1} ENDON
Rulle2 1


Thanks in advance

Re: Sonoff Zigbee Bridge?

Posted: Monday 09 November 2020 19:36
by JRRDomoticz
JRRDomoticz wrote: Sunday 08 November 2020 19:19 Good afternoon:
Have you somehow managed it without NODORed?

With a Snifer MQTT I see the plot:
tele/zigbeeBrigge/SENSOR = {"ZbReceived":{"0x09CC":{"Device":"0x09CC","Temperature":22.75,"Humidity":81.97,"Endpoint":1,"LinkQuality":47}}}
tele/zigbeeBridge/SENSOR = {"ZbReceived":{"0x6DB4":{"Device":"0x6DB4","Temperature":22.75,"Humidity":81.97,"Endpoint":1,"LinkQuality":47}}}


I've seen in another thread that you can create a rule in Tasmota console, but it doesn't do anything ...
Rule1 ON ZbReceived#0x6DB4#Occupancy=1 DO publish domoticz/in {"idx":23, "nvalue":1} ENDON
Rule1 1

Rule2 ON ZbReceived#0x09CC#Occupancy=1 DO publish domoticz/in {"idx":24, "nvalue":1} ENDON
Rulle2 1


Thanks in advance

Solved:
Tasmota(Zigbee Bridge) To Domoticz
ZbName (SetOption83 0)
Rule1 ON ZbReceived#0x6DB4#Temperature DO var1 %value% ENDON ON ZbReceived#0x6DB4#Humidity DO publish domoticz/in {"idx":24,"svalue":"%var1%;%value%;1"} ENDON
Rule2 ON ZbReceived#0x09CC#Temperature DO var2 %value% ENDON ON ZbReceived#0x09CC#Humidity DO publish domoticz/in {"idx":23,"svalue":"%var2%;%value%;1"} ENDON

Re: Sonoff Zigbee Bridge?

Posted: Friday 05 February 2021 10:08
by kabal
Hi,

I have tried the same with no luck.

That is my ZIGbee Xiaomi Aquara temp sensor:
zigbee2mqtt/SENSOR = {"ZbReceived":{"0x021A":{"Device":"0x021A","Name":"Temp_Salon","Temperature":21.99,"Humidity":43.48,"Pressure":1003,"PressureScale":-1,"PressureScaledValue":10032,"SeaPressure":1003,"Endpoint":1,"LinkQuality":181}}}
10:00:48 ZIG: ZbZCLRawReceived: {"0x021A":{"0403/0000":1003,"0403/0014":-1,"0403/0010":10032,"Endpoint":1,"LinkQuality":181}}

On Sonoff ZbBridge cmd ->
Rule1 ON ZbReceived#0x021A#Temperature DO var1 %value% ENDON ON ZbReceived#0x021A#Humidity DO publish domoticz/in {"idx":63,"svalue":"%var1%;%value%;1"} ENDON

*idx 63 is my Domoticz temp&hum sensor.

When i check mosquitto_sub -h localhost -v -t domoticz/in I don't have any message from zigbee bridge and I don't have any message in tasmota console for zbrige neither.

But if I run the mosquitto_sub -h localhost -v -t zigbee2mqtt/SENSOR on Raspberry I can see the message without any problem.
So the problem is as if RULE 1 doesnt convert the message from 0x021A device to domoticz/in.

Re: Sonoff Zigbee Bridge?

Posted: Friday 05 February 2021 10:56
by kabal
Problem solved! I did not see that Rule1 = OFF so at the end of line I have added "Rule1 1"

Rule1 ON ZbReceived#0x021A#Temperature DO var1 %value% ENDON ON ZbReceived#0x021A#Humidity DO publish domoticz/in {"idx":63,"svalue":"%var1%;%value%;1"} ENDON Rule1 1

Re: Sonoff Zigbee Bridge?

Posted: Friday 05 February 2021 11:46
by HarleyK
Ok, i solved problem for myself:

If got Mijia Light Sensor ZigBee 3.0 + SONOFF ZBBridge (Tasmota)

Console gives me:
11:35:25.492 MQT: tele/ZbBridge/SENSOR = {"ZbReceived":{"0xC5F2":{"Device":"0xC5F2","Name":"Illumination_sensor","Illuminance":29996,"Endpoint":1,"LinkQuality":123}}}
I write this rule:
Rule1 ON ZbReceived#0xC5F2#Illuminance DO publish domoticz/in {"idx":69,"nvalue":0,"svalue":"%value%"} ENDON
Rule1 1
Console answers:
RUL: ZBRECEIVED#0XC5F2#ILLUMINANCE performs "publish domoticz/in {"idx":69,"nvalue":0,"svalue":"29996"}"
MQT: domoticz/in = {"idx":69,"nvalue":0,"svalue":"29996"}
Domoticz log shows:
MQTT: Topic: domoticz/in, Message: {"idx":69,"nvalue":0,"svalue":"29996"}
Later i'll try this for Temperature/Humidity sensor

Re: Sonoff Zigbee Bridge?

Posted: Wednesday 12 May 2021 13:49
by pedemo
HarleyK thanks for this info I finally got my Miija Light Sensor working.

Re: Sonoff Zigbee Bridge?

Posted: Tuesday 17 January 2023 19:10
by ssk17051980
my console show this:
tele/ZbBridge/SENSOR = {"ZbReceived":{"0x7EFB":{"Device":"0x7EFB","Temperature":23.66,"Endpoint":1,"LinkQuality":40}}}
tele/ZbBridge/SENSOR = {"ZbReceived":{"0x7EFB":{"Device":"0x7EFB","Humidity":95.82,"Endpoint":1,"LinkQuality":40}}}

it's about a SNZB-02 SONOFF TEMP/HUM senzor.
i'm not able to make the rule.
cand somebody help me?
i use this :
Rule1 ON ZbReceived#0x7EFB#Occupancy=1 DO publish domoticz/in {"idx":98, "nvalue":1} ENDON
Rule1 1
but no succes.