# Sonoff ZBridge Sonoff Zigbee to Wifi bridge # Sonoff ZbBridge Rules ``` Rule1 on ZbReceived#osram1#Power do publish stat/andreas/zigbee/osram1/power %value% endon on ZbReceived#osram1#Dimmer do publish stat/andreas/zigbee/osram1/dimmer %value% endon on ZbReceived#osram2#Power do publish stat/andreas/zigbee/osram2/power %value% endon on ZbReceived#osram2#Dimmer do publish stat/andreas/zigbee/osram2/dimmer %value% endon on ZbReceived#osram3#Power do publish stat/andreas/zigbee/osram3/power %value% endon on ZbReceived#osram3#Dimmer do publish stat/andreas/zigbee/osram3/dimmer %value% endon on ZbReceived#osram4#Power do publish stat/andreas/zigbee/osram4/power %value% endon on ZbReceived#osram4#Dimmer do publish stat/andreas/zigbee/osram4/dimmer %value% endon ``` ``` Rule2 on ZbReceived#sonoff_door_sensor#Contact do publish stat/andreas/zigbee/sonoff_door_sensor/open %value% endon on ZbReceived#light_sensor#Illuminance do publish stat/andreas/zigbee/light_sensor/illuminance %value% endon on ZbReceived#temp_sensor_outdoor#Temperature do publish stat/andreas/zigbee/temp_sensor_outdoor/temperature %value% endon on ZbReceived#temp_sensor_outdoor#Humidity do publish stat/andreas/zigbee/temp_sensor_outdoor/humidity %value% endon on ZbReceived#temp_sensor_outdoor#Pressure do publish stat/andreas/zigbee/temp_sensor_outdoor/pressure %value% endon on ZbReceived#temp_sensor_indoor#Temperature do publish stat/andreas/zigbee/temp_sensor_indoor/temperature %value% endon on ZbReceived#temp_sensor_indoor#Humidity do publish stat/andreas/zigbee/temp_sensor_indoor/humidity %value% endon on ZbReceived#temp_sensor_indoor#Humidity do publish stat/andreas/zigbee/temp_sensor_indoor/humidity %value% endon ``` ``` Rule3 on ZbReceived#sonoff_small_button_1#Power do publish stat/andreas/zigbee/sonoff_small_button_1/click %value% endon on ZbReceived#aqara_big_button_1#Click do publish stat/andreas/zigbee/aqara_big_button_1/click %value% endon on ZbReceived#aqara_button_1#Click do publish stat/andreas/zigbee/aqara_button_1/click %value% endon on ZbReceived#aqara_button_2#Click do publish stat/andreas/zigbee/aqara_button_2/click %value% endon on ZbReceived#aqara_button_3#Click do publish stat/andreas/zigbee/aqara_button_3/click %value% endon on ZbReceived#aqara_button_4#Click do publish stat/andreas/zigbee/aqara_button_4/click %value% endon ``` # Sonoff ZbBridge Commands **ZbName** This command can be used to give nicknames to the zigbee devices to be used instead of their HEX-value names. Example: ``` ZbName 0x8C19,osram_bulb ``` This gives the nickname *osram\_bulb* to the devices identified by *0x8C19*. **ZbSend** With this command you can send information in JSON format to a zigbee device. Example: ``` ZbSend {"device":"osram_bulb","Send":{"AddGroup":100}} ``` By using this command the zigbee device identified by *osram\_bulb* is added to the zigbee group 100. You can also use the HEX-value device ID instead of the nickname. # Sensor #### **Packaging**
[](https://bookstack.greinet.com/uploads/images/gallery/2023-07/sonoff-zbridge-pack-front.png) | [](https://bookstack.greinet.com/uploads/images/gallery/2023-07/sonoff-zbridge-pack-back.png) |
[](https://bookstack.greinet.com/uploads/images/gallery/2023-07/sonoff-zbridge-pack-left.png) | [](https://bookstack.greinet.com/uploads/images/gallery/2023-07/sonoff-zbridge-pack-right.png) |