Tradfri / ZBbridge (zigbee) / Tasmota commands in Node-Red

Struggling to find the correct syntax for power on / off a tradfri lightbulb with a SonOff ZBbridge with Tasmota on it from Node-Red.
I have lots of other switches witch I control from Node-red, but the ZBbridge in between makes it a litte complex for me
A normal switch works with

t[{"id":"63456e41.361b2","type":"mqtt out","z":"338d727f.43c00e","name":"","topic":"cmnd/Bureau/power","qos":"","retain":"","broker":"58f75f51.08c4d","x":660,"y":620,"wires":[]},{"id":"e2956ba8.e045c8","type":"inject","z":"338d727f.43c00e","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"ON","payloadType":"str","x":300,"y":620,"wires":[["63456e41.361b2"]]},{"id":"58f75f51.08c4d","type":"mqtt-broker","z":"","name":"Localhost","broker":"localhost","port":"1883","clientid":"","usetls":false,"compatmode":false,"keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","closeTopic":"","closeQos":"0","closePayload":"","willTopic":"","willQos":"0","willPayload":""}]

Putting ZbSend {"Device":"0x7509","Send":{"Power":"off"}} in the web console of the Tasmota ZBridge works, I can switch the bulb.
But I cannot figure out what/how to send from node-red.
When I have one correct flow, I can probable figure out other things such as hue, color etc.
Anybody who would help me out?

1 Like

I dont have a zigbee bridge (yet) - how is it working for you ? Does it has enough range ?

For the command i suspect you can use:

{
  "topic":"cmnd/yourbridge/ZbSend",
  "payload":{"Device":"0x7509","Send":{"Power":"off"}}
}

Thanks, funny how people can overlook simple things :blush:
That was the answer!

I do not have exact data for distance, but I brought 2 bulbs and a remote.
The remote works with the bridge through 1 concrete wall with linkQuality 13.
20 cm from the bridge the quality is 225
But I have not tried out putting another bulb between the two, to see if the signal changes.
Lots of measuring fun yet to happen. :grin:

From what I understand, is that zigbee forms a mesh network.
And then there are (Tradfi) repeaters for not to much money so to say.
And if I understand the zigbee protocol correct ,all the parts relay the message.
Had some trouble to join the switch, but that was more due to my impatiences

Most zigbee devices which are wall powered (sorry, don't know the exact word for it) do relay. Battery powered like my aqara door contact or temperature sensor do not relay, since this would consume too much power.
So I placed some Ikea tradfri bulbs in different areas and my whole house with three floors is meshed now! No need for a additional gateway or repeater!

Yes, looks like the Zigbee protocol is not a bad choice.
And you have full control in your own home, not a server in China/US/Sweden.
Bit sick of the TUA and other WiFi devices witch are now almost not to re-flash with Tasmota or other own software anymore.
No re-flash necessary with zigbee, only the bridge wifi/zigbee.

Sorry to hijack this thread a bit. I'm trying to get my Sonoff ZB Bridge working with NodeRED too. Sending an individual command is easy - as you've described above. How are you handling getting feedback from sensors, etc? It seems each message includes the unique device ID which makes picking it up and parsing it a nighmare!
Ta

I use a mqtt in node

tele/yourbridge/SENSOR/#

Then use some code to select the wanted device
You can give your devices in tasmota friendly names

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.