Zigbee2Tasmota
Moderator: leecollings
-
- Posts: 216
- Joined: Saturday 10 November 2018 18:29
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: Hungary
- Contact:
Zigbee2Tasmota
Anyone tried to use Zigbee2Tasmota with Domoticz?
https://tasmota.github.io/docs/Zigbee/
https://tasmota.github.io/docs/Zigbee/
-
- Posts: 2
- Joined: Wednesday 09 September 2020 18:57
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2020.2
- Location: Netherlands
- Contact:
Re: Zigbee2Tasmota
I am busy trying it.... flashed the software without any problem and was struggling to pair my xiaomi devices until I realised that there were too many 2.4Ghz devices very close by. The solution was taking the Sonoff bridge further away. Pairing was suddenly easy.
The biggest problem is getting some information in Domoticz.... I really haven’t got a clue on how to do that. Maybe we will need an add-on ?
Did you get any further?
The biggest problem is getting some information in Domoticz.... I really haven’t got a clue on how to do that. Maybe we will need an add-on ?
Did you get any further?
- gizmocuz
- Posts: 2350
- Joined: Thursday 11 July 2013 18:59
- Target OS: Raspberry Pi / ODroid
- Domoticz version: beta
- Location: Top of the world
- Contact:
Re: Zigbee2Tasmota
The problem (as the above page already mentions) is that it is "Similar to Zigbee2MQTT" but ... it is not.
If the MQTT protocol had been the same as Zigbee2MQTT Domoticz was able to work with it thanks to the Python plugin from Stas.
I understand some more developers are going to make support for Zigbee via another library, probably other output as well.
Life would be so nice if there was a developed 'standard' ...
https://github.com/stas-demydiuk/domoti ... issues/403
If the MQTT protocol had been the same as Zigbee2MQTT Domoticz was able to work with it thanks to the Python plugin from Stas.
I understand some more developers are going to make support for Zigbee via another library, probably other output as well.
Life would be so nice if there was a developed 'standard' ...
https://github.com/stas-demydiuk/domoti ... issues/403
Quality outlives Quantity!
-
- Posts: 2
- Joined: Wednesday 09 September 2020 18:57
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2020.2
- Location: Netherlands
- Contact:
Re: Zigbee2Tasmota
That would be great!
Unfortunately I don’t have enough knowledge to build something myself so I am dependent on others.
Thanks for your answer..
Unfortunately I don’t have enough knowledge to build something myself so I am dependent on others.
Thanks for your answer..
-
- Posts: 29
- Joined: Tuesday 28 March 2017 13:05
- Target OS: Linux
- Domoticz version:
- Contact:
Re: Zigbee2Tasmota
Have not used Zigbee2Tasmota myself however I believe that later versions of Z2T can also as an alternative option emulate/mimic the protocol of a Philips Hue Bridge, so maybe you can connect to that interface using Domoticz (selecting Philips Hue Bridge as a hardware type?)?
https://www.domoticz.com/wiki/Philips_Hue_Lights
But as I read it you then still first need to set that Hue Emulation for each individual device inside Zigbee2Tasmota, so maybe not very user-friendly:
https://tasmota.github.io/docs/Zigbee/
Zigbee and Hue Emulation for Alexa
Z2T now supports Hue Emulation for Zigbee lights. It will mimic most of Zigbee gateways, and allows you to control Zigbee lights directly with Alexa, without any MQTT broker nor Alexa skill.
Command ZbLight configures a Zigbee device to be Alexa controllable. Specify the number of channels the light supports:
0 Simple On/Off light
1 White Light with Dimmer
2 White Light with Dimmer and Cold/Warm White
3 RGB Light
4 RGBW Light
5 RGBCW Light, RGB and Cold/Warm White
To set the light, use ZbLight <device>,<nb_of_channels. Ex:
ZbLight 0x1234,2
ZbLight Kitchen_Light,1 (see ZbName)
https://www.domoticz.com/wiki/Philips_Hue_Lights
But as I read it you then still first need to set that Hue Emulation for each individual device inside Zigbee2Tasmota, so maybe not very user-friendly:
https://tasmota.github.io/docs/Zigbee/
Zigbee and Hue Emulation for Alexa
Z2T now supports Hue Emulation for Zigbee lights. It will mimic most of Zigbee gateways, and allows you to control Zigbee lights directly with Alexa, without any MQTT broker nor Alexa skill.
Command ZbLight configures a Zigbee device to be Alexa controllable. Specify the number of channels the light supports:
0 Simple On/Off light
1 White Light with Dimmer
2 White Light with Dimmer and Cold/Warm White
3 RGB Light
4 RGBW Light
5 RGBCW Light, RGB and Cold/Warm White
To set the light, use ZbLight <device>,<nb_of_channels. Ex:
ZbLight 0x1234,2
ZbLight Kitchen_Light,1 (see ZbName)
Code: Select all
ZbLight 0x1234,2
ZbLight Kitchen_Light,1 (see ZbName)
-
- Posts: 29
- Joined: Tuesday 28 March 2017 13:05
- Target OS: Linux
- Domoticz version:
- Contact:
Re: Zigbee2Tasmota
Regarding this other mentioned library as an alternative way to add Zigbee support to Domotic.
FYI, pipiche (pipiche38 on GitHub) has started initial developing of an new proof-of-concept plugin for Domoticz which if it comes to fruition could allow to you to ulitze Zigbee2Tasmota and control Zigbee devices a completly different way, without MQTT or Hue emulation.
If and when it becomes usable it would allow you to use a TCP serial-server inside Tasmota to take direct control of the Zigbee chip that Zigbee2Tasmota is connected to and then connect to Zigbee devices without any further involvement on Tasmota (which via its TCP serial-server only will only act as a dumb pass-through WiFi-to-serial bridge without any knowledge of what the data that it is trafficing between Domotics and the remote Zigbee chip).
This is already possible with Zigbee2Tasmota when used toegther with ZHA integration component Home Assistant to give it native Zigbee support:
https://www.digiblur.com/2020/07/how-to ... -with.html
Technical concept dicussion thread about how that zigpy library (and its radio libraries) could possibly bring support for Zigbee adapters from many different manufacturers inside one plugin, including direct-attached USB-dongles and Zigbee modules connected remotley via ser2net on Raspberry Pi or the serial-server inside Zigbee2Tasmota and other ESP8266 firmware:
viewtopic.php?f=31&t=29101
POC code of the plugin can be found here, but be warned that is the POC code an very early stage of developmen so it cannot be used at all yet, thus only developer help wanted at this point
https://github.com/pipiche38/Domoticz-Zigpy
Again, please note that the proof-of-concept plugin by pipiche is still in extremly early development and have not yet gotten to user testing stage
-
- Posts: 29
- Joined: Tuesday 28 March 2017 13:05
- Target OS: Linux
- Domoticz version:
- Contact:
Re: Zigbee2Tasmota
By the way, that Sonoff ZBBridge is inexpensive but contain great Zigbee hardware with potensial for different types of Zigbee controller uses:Gamester17 wrote: ↑Friday 11 September 2020 11:32 This is already possible with Zigbee2Tasmota when used toegther with ZHA integration component Home Assistant to give it native Zigbee support:
https://www.digiblur.com/2020/07/how-to ... -with.html
Technical concept dicussion thread about how that zigpy library (and its radio libraries) could possibly bring support for Zigbee adapters from many different manufacturers inside one plugin, including direct-attached USB-dongles and Zigbee modules connected remotley via ser2net on Raspberry Pi or the serial-server inside Zigbee2Tasmota and other ESP8266 firmware:
viewtopic.php?f=31&t=29101
https://sonoff.tech/product/smart-home- ... y/zbbridge
Inside it has a ESP8266 WiFi SoC/MCU connected via UART to a very powerful Silicon Labs EFR32MG2 (Mighty Gecko Series 2) Zigbee SoC/MCU:
https://www.itead.cc/sonoff-zbbridge.html
As mentioned it's already supported by Zigbee2Tasmota (Z2T) and Tasmota has a serial-server so can use pass-through to your computer over WiFi.
My guess is that the only thing that is not great about it is the default eWeLink firmware it comes shipped with from ITead.
-
- Posts: 82
- Joined: Monday 01 December 2014 13:28
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: London, UK
- Contact:
Re: Zigbee2Tasmota
Has anyone got this working yet? I've now got my Sonoff Zigbree bridge working and paired to a few test devices and am trying to figure out how to get Domoticz to read/update them. I'm starting to look at Node-RED to see if that helps.
-
- Posts: 1601
- Joined: Friday 18 October 2013 23:33
- Target OS: Raspberry Pi / ODroid
- Domoticz version: BETA
- Location: Arnhem/Nijmegen Nederland
- Contact:
Re: Zigbee2Tasmota
Is there someone that resell a flashed Tasmota zigbee coordinator? [ Dutch ]
Xu4: Beta Extreme antenna RFXcomE,WU Fi Ping ip P1 Gen5 PVOutput Harmony HUE SolarmanPv OTG Winddelen Alive ESP Buienradar MySensors WOL Winddelen counting RPi: Beta SMAspot RFlinkTest Domoticz ...Different backups
-
- Posts: 32
- Joined: Saturday 11 March 2017 11:06
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 3.5877
- Contact:
Re: Zigbee2Tasmota
Yes, I got it working without Node-RED or special plugin. I don't like any specialties and would like to have as much as possible in the default way.
The problem here is that Tasmota is transfering the data to MQTT but Domoticz doesn't accept any MQTT message other then domoticz/in. To solve this you need to convert the incoming message to a MQTT message compatible with the Domoticz MQTT format.
Please find what I did below, please fill in the text below in the Tasmota console. Replace the 0x1085 with your own Zigbee code and 355 with your own Domoticx idx value.
Rule1 ON ZbReceived#0x1085#Occupancy=1 DO publish domoticz/in {"idx":355, "nvalue":1} ENDON
Rule1 1
The second row is to activate the Rule.
I hope this helps.
Last edited by TyzzyT on Sunday 08 November 2020 12:15, edited 1 time in total.
-
- Posts: 32
- Joined: Saturday 11 March 2017 11:06
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 3.5877
- Contact:
Re: Zigbee2Tasmota
I only have one Sonoff Zigbee Bridge, which I flashed myself and which I'm actively using. If you already have a Sonoff Zigbee Bridge you may send it to me so I can flash it with Tasmota and send it back to you. If you don't have a Sonoff Zigbee Bridge yet I can also order one for you on AliExpress, but that will take some time
-
- Posts: 4
- Joined: Sunday 08 November 2020 19:07
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Zigbee2Tasmota
It doesn't work for me.TyzzyT wrote: ↑Saturday 07 November 2020 21:09Yes, I got it working without Node-RED or special plugin. I don't like any specialties and would like to have as much as possible in the default way.
The problem here is that Tasmota is transfering the data to MQTT but Domoticz doesn't accept any MQTT message other then domoticz/in. To solve this you need to convert the incoming message to a MQTT message compatible with the Domoticz MQTT format.
Please find what I did below, please fill in the text below in the Tasmota console. Replace the 0x1085 with your own Zigbee code and 355 with your own Domoticx idx value.
Rule1 ON ZbReceived#0x1085#Occupancy=1 DO publish domoticz/in {"idx":355, "nvalue":1} ENDON
Rule1 1
The second row is to activate the Rule.
I hope this helps.
Is the rule well written?
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}} }
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
-
- Posts: 4
- Joined: Sunday 08 November 2020 19:07
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Zigbee2Tasmota
Solution "Tasmota To Domoticz":
Console Tasmota:
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
Console Tasmota:
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
-
- Posts: 32
- Joined: Saturday 11 March 2017 11:06
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 3.5877
- Contact:
Re: Zigbee2Tasmota
Aah okay. Because you're working with the Temperature sensor you have to rewrite the rule. I used the PIR Motion Sensor so that's why I used the Occupancy option.
Re: Zigbee2Tasmota
I have 2 spares (located in Belgium). Accidently bought too many. You can buy one from me if you like. PM for details. Price is what I paid on AliExpress. I'm planning to flash my own. If easy, I can immediately flash yours as well <edit> flashing was easyTyzzyT wrote: ↑Saturday 07 November 2020 21:12I only have one Sonoff Zigbee Bridge, which I flashed myself and which I'm actively using. If you already have a Sonoff Zigbee Bridge you may send it to me so I can flash it with Tasmota and send it back to you. If you don't have a Sonoff Zigbee Bridge yet I can also order one for you on AliExpress, but that will take some time
-
- Posts: 5
- Joined: Tuesday 08 December 2020 10:16
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Zigbee2Tasmota
Hi,
I am exploring the whole zigbee side of things.. I currently have a mixture of RF 433mhz and Sonoff basic (tasmota) devices all happily working with Domoticz....
a few weeks ago i got the Sonoff Zigbee bridge which I flashed with Tasmota. I successfully paired some Sonoff Zigbee temperature sensors and use rules to send the info to Domoticz... this all works ok.
So I have now bought some of Lidl Smart plugs.
last night I got the Plugs to pair with the Sonoff Zgbee bridge.. I can issue the ZBsend command (from the tasmota console)to turn it on or off. this works ok.
Is there a way to send information from Domoticz to turn on plug? maybe MQTT...
i have looked at Zigbee2MQTT but as I dont have the hardware associated with this it will not find anything
any hints and Tips greatly received.
Cheers
Andy
I am exploring the whole zigbee side of things.. I currently have a mixture of RF 433mhz and Sonoff basic (tasmota) devices all happily working with Domoticz....
a few weeks ago i got the Sonoff Zigbee bridge which I flashed with Tasmota. I successfully paired some Sonoff Zigbee temperature sensors and use rules to send the info to Domoticz... this all works ok.
So I have now bought some of Lidl Smart plugs.
last night I got the Plugs to pair with the Sonoff Zgbee bridge.. I can issue the ZBsend command (from the tasmota console)to turn it on or off. this works ok.
Is there a way to send information from Domoticz to turn on plug? maybe MQTT...
i have looked at Zigbee2MQTT but as I dont have the hardware associated with this it will not find anything
any hints and Tips greatly received.
Cheers
Andy
-
- Posts: 37
- Joined: Monday 30 March 2020 7:30
- Target OS: NAS (Synology & others)
- Domoticz version:
- Contact:
Re: Zigbee2Tasmota
Hello, I have aqara sensor. Can you help me what is the correct code?
tele/tasmota_E265A8/SENSOR = {"ZbReceived":{"0xA055":{"Device":"0xA055","Name":"Rezges","AqaraVibrationMode":"vibrate","Endpoint":1,"LinkQuality":168}}}
is it necessary to install something under domoticz?
-
- Posts: 30
- Joined: Sunday 31 May 2015 11:04
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2020.2
- Location: The Netherlands, Veenendaal
- Contact:
Re: Zigbee2Tasmota
I have also some issues to get the correct syntax to publish a measurement via mqtt to Domoticz. Cannot push the power usage from a Xiaomi wall socket to domoticz:
This is what I get from the Sonoff Zigbee bridge:
I have tried to publish it via:
but get an error that the mqtt date is 'invalid'
Am I missing something here?
Update: Figured it out (I was too quick to dump the question on the forum)
correct syntax:
This is what I get from the Sonoff Zigbee bridge:
Code: Select all
tele/tasmota_E3257B/SENSOR = {"ZbReceived":{"0x4EC4":{"Device":"0x4EC4","Name":"Wall_Socket","0600/0000":1,"ActivePower":3,"EnergyTotal":0,"Endpoint":1,"LinkQuality":123}}}
Code: Select all
Rule1 ON ZbReceived#0x4EC4#ActivePower DO %value% publish domoticz/in {"idx":3,"svalue":"%value%;1"} ENDON
Rule1 1
Am I missing something here?
Update: Figured it out (I was too quick to dump the question on the forum)
correct syntax:
Code: Select all
Rule1 ON ZbReceived#0x4EC4#ActivePower DO publish domoticz/in {"idx":3,"svalue":"%value%"} ENDON
Rule1 1
-
- Posts: 30
- Joined: Sunday 31 May 2015 11:04
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2020.2
- Location: The Netherlands, Veenendaal
- Contact:
Re: Zigbee2Tasmota
I am also looking for a solution to control a Xiaomi power plug from domoticz. My domoticz is also running the mqtt broker mosquitto and I can see all incoming mqtt messages from the Sonoff Zigbee bridge which is flashed with Tasmota.AndrewmHull wrote: ↑Wednesday 09 December 2020 17:52 Hi,
I am exploring the whole zigbee side of things.. I currently have a mixture of RF 433mhz and Sonoff basic (tasmota) devices all happily working with Domoticz....
a few weeks ago i got the Sonoff Zigbee bridge which I flashed with Tasmota. I successfully paired some Sonoff Zigbee temperature sensors and use rules to send the info to Domoticz... this all works ok.
So I have now bought some of Lidl Smart plugs.
last night I got the Plugs to pair with the Sonoff Zgbee bridge.. I can issue the ZBsend command (from the tasmota console)to turn it on or off. this works ok.
Is there a way to send information from Domoticz to turn on plug? maybe MQTT...
i have looked at Zigbee2MQTT but as I dont have the hardware associated with this it will not find anything
any hints and Tips greatly received.
Cheers
Andy
But when I want to send /out some messages, nothing is showed in the console on the Zigbee bridge.
Code: Select all
mosquitto_pub -h localhost -m '{"cmnd": "device":"0x4EC4", "send":{"Power":"On" }' -t 'domoticz/out'
I cannot find/address the correct syntax to send a mqtt message from the client to be received by the bridge and control a connected device.
Like in the link post how to convert the syntax:
Code: Select all
topic: 'cmnd/tasmota_xxxxxx/ZbSend' payload '{ "device":"0x9F9F", "send":{"Power":"Off"} }'
Any help?
Update:
I get some output on the zigbee2tasmota console with this command:
Code: Select all
mosquitto_pub -h localhost -t cmnd/tasmota/ZbSend -m {\"device\":\"0x4EC4", "send":\"Power\":\"On"}
Finally, a working solution
Code: Select all
mosquitto_pub -h localhost -t cmnd/tasmota/ZbSend -m '{"device":"0x4EC4","send":{"Power":"Off"}}'
mosquitto_pub -h localhost -t cmnd/tasmota/ZbSend -m '{"device":"0x4EC4","send":{"Power":"On"}}'
-
- Posts: 66
- Joined: Tuesday 10 February 2015 20:38
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2021.1
- Location: Sweden
- Contact:
Re: Zigbee2Tasmota
I've just start to dig into the Zigbee world. Today I'm using Domoticz with 433Mhz temp sensors and power plugs, but I´m sick of the lousy reliability the one-way 433Mhz communication protocol provides. Temp sensors work quite well, but it's a nightmare to replace batteries since this will create new devices. It needs a lot of work to be able to pick up the history of the old devices once you have replaced 10+ batteries.....
So I have looked into the Hue gateway, Xiaomi GW ets, but you seem to get stuck in a proprietary solutions which will limit the scope of compatible devices. Finally I found the cc2531 sniffer combined with the zigbee2mgtt server and corresponding Domoticz plugin, and I was almost ready to order a USB sniffer and a few devices and start to play around. But then I found this thread and I realize there are more options...
So what is the main advantage to go for zigbee2tasmota and potentially the Sonoff gateway compared to my plan above?
So I have looked into the Hue gateway, Xiaomi GW ets, but you seem to get stuck in a proprietary solutions which will limit the scope of compatible devices. Finally I found the cc2531 sniffer combined with the zigbee2mgtt server and corresponding Domoticz plugin, and I was almost ready to order a USB sniffer and a few devices and start to play around. But then I found this thread and I realize there are more options...
So what is the main advantage to go for zigbee2tasmota and potentially the Sonoff gateway compared to my plan above?
Who is online
Users browsing this forum: Google [Bot] and 1 guest