...
- tele/zigbee/SENSOR
- tele/zigbee/RESULT
Tasmota Commands
Command | Syntax | Example |
---|---|---|
Set Name for Device | ZbName <device>, <friendlyName> | ZbName 0x0321,Motion_Sensor |
Delete Device | ZbForget <device> or ZbForget <name> | ZbForget 0x0321 |
Send Command to Device | ZbSend{"device":"0x4773","send":{"Power":"On"}} | |
Set Group for Device | ZbSend {"device":"Ikea_Bulb","Send":{"AddGroup":100}} | |
Bind device to group (Required for IKEA BULBS) | ZbBind {"Device":"Ikea_Remote","ToGroup":100,"Endpoint":1,"Cluster":6} ZbBind {"Device":"Ikea_Remote","ToGroup":100,"Endpoint":1,"Cluster":8} ZbBind {"Device":"Ikea_Remote","ToGroup":100,"Endpoint":1,"Cluster":5} | |
Bind device to device | ZbBind {"Device":"<device>", "Endpoint":<endpoint>, "Cluster":<cluster>, "ToDevice":"<to_device>", "ToEndpoint":<to_endpoint>, "ToGroup":<to_group> } | ZbBind {"Device":"0xAAAA","ToDevice":"0xBBBB","Endpoint":1,"ToEndpoint":1,"Cluster":6} |
Unbind a device | ZbUnbind {"Device":"<device>", "Endpoint":<endpoint>, "Cluster":<cluster>, "ToDevice":"<to_device>", "ToEndpoint":<to_endpoint>, "ToGroup":<to_group> } | ZbUnbind {"Device":"<device>", "Endpoint":<endpoint>, "Cluster":<cluster>, "ToDevice":"<to_device>", "ToEndpoint":<to_endpoint>, "ToGroup":<to_group> } ZbUnbind {"Device":"Ikea_Remote","ToDevice":"Ikea_Bulb","Endpoint":1,"ToEndpoint":1,"Cluster":6} |
Homebridge
Motion Sensor - Sonoff Model SNZB-03
...
Code Block |
---|
{
"accessory": "mqttthing",
"type": "switch",
"name": "ikea-onoff",
"url": "http://192.168.1.50:1883",
"topics":
{
"getOn": {
"topic": "tele/zigbee/SENSOR",
"apply": "return JSON.parse(message).ZbReceived['0x0321'].Power;"
}
},
"integerValue": "true"
},
|
Light - IKEA Tradfri Dimmer
MQTT Message
JSON Message sent via MQTT on topic tele/zigbee/SENSOR
Code Block |
---|
{
"ZbReceived":{
"0xE3E9":{
"Device":"0xE3E9",
"Name":"Ikea_Bulb",
"X":30138,
"Y":26909,
"CT":370,
"ColorMode":2,
"RGB":"FAAF5A",
"RGBb":"AB773D",
"Endpoint":1,
"LinkQuality":147
}
}
}
{
"ZbReceived":{
"0xE3E9":{
"Device":"0xE3E9",
"Name":"Ikea_Bulb",
"Power":1,
"Dimmer":173,
"X":30138,
"Y":26909,
"CT":370,
"ColorMode":2,
"RGB":"FAAF5A",
"RGBb":"AB773D",
"Endpoint":1,
"LinkQuality":144
}
}
} |
Homebridge Configuration
Code Block |
---|
{ "accessory": "mqttthing", "type": "lightbulb", "name": "ikea-lightbulb", "url": "http://192.168.1.50:1883", "topics": { "getOn": { "topic": "tele/zigbee/SENSOR", "apply": "return JSON.parse(message).ZbReceived['0xE3E9'].Power;" }, "setOn": { "topic": "cmnd/zigbee/ZbSend", "apply": "return '{\"device\":\"0xE3E9\", \"send\":{\"Power\":' + message + '}}'" } }, "integerValue": "true" }, |
...
Reference | URL |
---|---|
Sonoff Zigbee Bridge | How to flash with Tasmota and setup in Home Assistant with ZHA | https://www.youtube.com/watch?v=SDynPbCGvS0 |
Tasmota Releases | https://github.com/arendst/Tasmota/releases |
Tasmota Zigbee | https://tasmota.github.io/docs/Zigbee/ |
Zigbee Commands | https://tasmota.github.io/docs/Commands/#zigbee |
MQTTThing Homebridge Plugin | https://github.com/arachnetech/homebridge-mqttthing |