Sonoff Basic ZBR3 with the configurable firmware

You may use the latest version of my configurable firmware with Sonoff Basic ZBR3. But only one external sensor is tested (Si7021)

Sonoff Basic ZBR3
Sonoff Basic ZBR3 internals
Firmware settings

Of course, the device works as a router.


Comments
Harvey Specter
Posted at 14:47 May 19, 2022
Marlor
Reply
Author

Can we get an updated Picture of the options?
Or a preset for the BASICZBR3?

    Harvey Specter
    Posted at 09:23 May 20, 2022
    Owner
    Reply
    Author

    What is wrong on the existing picture?

      Harvey Specter
      Posted at 08:29 May 21, 2022
      Marlor
      Reply
      Author

      For example the GPIO you now cant delete from Output1
      and the new bind command.
      Makes it unsure what to choose

        Harvey Specter
        Posted at 08:39 May 21, 2022
        Owner
        Reply
        Author

        You can simply remove the check mark before “Output 1”.

Harvey Specter
Posted at 16:54 June 5, 2021
kds
Reply
Author

The picture of zigbee cc2530 pcb, says DAT P2_2…
Shouldn’t it be P2_1 in fact, which is indeed DATA on cc2530?

(and similarly CLK should be marked as P2_2 and not P2_1…)
I just tried with CC debugger and it is in error in what is written above as DAT P2_2 is connected to debugger pin 3 (and CLK P2_1 to pin 4), while it works the other way around.

This picture needs to be corrected, isn’t it?

    Harvey Specter
    Posted at 03:33 June 7, 2021
    Owner
    Reply
    Author

    Hmm. Maybe you have another revision of this board.

      Harvey Specter
      Posted at 08:14 August 12, 2021
      Oguz
      Reply
      Author

      Yeaah you right
      I can see its v1.1
      hmm anybody else have this issue ?

        Harvey Specter
        Posted at 10:33 August 12, 2021
        Oguz
        Reply
        Author

        Ohh sorry about my last reply
        I can see that the board v1.0 and not 1.1 like i wrote earlier
        My sonoff is exacly like the picture in the post (above)

Harvey Specter
Posted at 11:29 February 3, 2021
Oguz
Reply
Author

Is there any one that , maybe can explain how to flash this for a beginner?
Kinda step by step guide, could be awesome…

Some info:
I have a Sonoff basiczbr3 /zigbee and i want “power on state” configuration
I think i have created a firmware (hex file) but has no clue how to flash it 🙂
I have a little experince with esp8266 flashing and some flashing with ftdi devices (rx tx)

Thanks in advice 🙂

Harvey Specter
Posted at 16:46 December 15, 2020
WojteK
Reply
Author

Hello, thank you for your hint,i flashed zbr3 with latest firmare but with router and works, before i used firmare without routing as enddevice.
Now i have temperature from DS18b20 in I1, but i have problem to prepare right automation. So i would like to set if temperature decrase as example 25C Then switch I2 would be on. In automation i don’t have in device temperature I1, but onet in State, but this not works ,automation does not work. Please take a look on movie https://youtu.be/QFfA6Ku8OoQ

Maybe you will have idea how to prepare automation that it will work.
The
Wojtek

    Harvey Specter
    Posted at 04:22 December 16, 2020
    Owner
    Reply
    Author

    I’m sorry, but I don’t know your automation system works. I don’t have any ideas about how to configure it.

Harvey Specter
Posted at 22:47 December 5, 2020
Moreno
Reply
Author

Many Thanks for your help!

Harvey Specter
Posted at 08:44 November 17, 2020
Jamie
Reply
Author

Hi This looks great.

Is it possible to flash the Sonoff Zigbee so an external switch can be used on one of the GPIO pins like Sonoff basic?

Many Thanks

    Harvey Specter
    Posted at 08:55 November 17, 2020
    Owner
    Reply
    Author

    Hi! What Sonoff Zigbee device do you mean?

      Harvey Specter
      Posted at 09:01 November 17, 2020
      Jamie
      Reply
      Author

      Apologies I meant the Sonoff Basic ZBR3.

      I currently have sonoff basics connected to two way rocker switches on GPIO pins, and wondered if the same could be done with your firmware?

      Many thanks for the quick reply.

        Harvey Specter
        Posted at 09:13 November 17, 2020
        Owner
        Reply
        Author

        There are only 3 pins that you may use P1_3, P2_1, P2_2. I’m not sure if it is enough in your case.

Harvey Specter
Posted at 12:21 November 4, 2020
Moreno
Reply
Author

Hi, I’m having a problem with basicZBR3 firmware router mode, when I change the status from the button (on the zigbee2mqtt interface), nothing happens on the device, the relay doesn’t change state. If instead I press the physical button P_13 on the device, the ralay changes position ON-OFF. It seems as if the device does not read the topic:

INFO: MQTT publish: topic ‘zigbee2mqtt/0x00124b001e72230e’, payload ‘{“linkquality”:21,”state”:”OFF”}’

What am I doing wrong?

Thanks
Moreno

    Harvey Specter
    Posted at 03:40 November 5, 2020
    Owner
    Reply
    Author

    Hi. Try the following:
    Tipic: zigbee2mqtt/0x00124b001e72230e/l1/set
    Payload: OFF

    l1 can be changed to your channel number (l1…l8).

Harvey Specter
Posted at 21:44 November 1, 2020
Moreno
Reply
Author

Hi, great job. I have performed the procedure as explained above but I am unable to pair ZBR3. I’ve tried a lot time the procedure (Power on, wait 2 seconds, power off, repeat this cycle three times.) but nothing happens. Other device with original firmware join properly. Can you help me please? Thanks a lot

    Harvey Specter
    Posted at 03:52 November 2, 2020
    Owner
    Reply
    Author

    Please, try to configure the firmware for Input 2 / Output 2 instead.

      Harvey Specter
      Posted at 08:19 November 2, 2020
      Moreno
      Reply
      Author

      Fantastic! It Works Thank you!

Harvey Specter
Posted at 13:21 October 12, 2020
Wojtek
Reply
Author

Hello; Could you please provide me some hints how to configure your Firmare with sensor DS18b20 with BasicZBR3?
If i’m good understand i have to connect DATA pin of the sensor and P22, GND->GND, VDD -> +3.3V ?
Thx

    Harvey Specter
    Posted at 14:07 October 16, 2020
    Owner
    Reply
    Author

    Sorry about the delay. Yes, you are correct. Of course, you should configure the corresponding pin in my firmware for DS18B20.

      Harvey Specter
      Posted at 17:28 November 7, 2020
      Wojtek
      Reply
      Author

      Hello, could you please configure for me your firmware for DS18B20 and attach here, so i can check how to? thx Wojtek

Harvey Specter
Posted at 13:24 June 26, 2020
Frans Hettinga
Reply
Author

How can yo flash this module? Do i need to get in into a boatloader mode?
When connecting the debugger, the devices power on and works normaly, but Flash Programmer doesn’t recognize the CC2530, so i can’t flash.
used this diagram to connect: https://ptvo.info/wp-content/uploads/2018/06/smartrf04eb-pinout.png

    Harvey Specter
    Posted at 08:29 November 8, 2020
    Wojtek
    Reply
    Author

    Hello, i asked you to help me set corectly your firmare.
    So i need ZBR3 as end devide with sensor ds18b20.
    I flashed with your changed firmare settings like on the movie https://youtu.be/3UjxpMMEJuo but after that ZBR3 can’t pair see movie https://youtu.be/5twaA0MNm2s
    Please take a look on that and help me set your firmare corectly.
    If you can please send me your example hex.
    thx Wojtek

      Harvey Specter
      Posted at 09:05 November 8, 2020
      Owner
      Reply
      Author

      Please, configure DS18B20 on the first input, your button on Input2, and a relay on Output2.

        Harvey Specter
        Posted at 21:52 November 8, 2020
        Wojtek
        Reply
        Author

        Hello, it works paired. Question i configure DS18B20 on the first input as P22, and connected DATA pin of the sensor to P22, GND->GND, VDD -> +3.3V but in logs i have
        payload ‘{“linkquality”:49,”state”:”OFF”,”state_l2″:”ON”,”temperature”:35.62}’
        what do add to the configuration ?
        – platform: “mqtt”
        state_topic: “zigbee2mqtt/0x00124b001b78b5df/I1”
        availability_topic: “zigbee2mqtt/bridge/state”
        unit_of_measurement: “°C”
        device_class: “temperature”
        value_template: “{{ value_json.temperature }}”

        thx Wojtek

          Harvey Specter
          Posted at 08:41 November 9, 2020
          Owner
          Author

          You are receiving a temperature value. What would you like to add?

          Harvey Specter
          Posted at 19:20 November 9, 2020
          Wojtek
          Author

          Hello

          Mqtt shows me log with temperature, but this is not the temperature from DS18B20
          The Value doesn’t change and has 35.62.
          Zigbee2MQTT:info 2020-11-09 20:15:43: MQTT publish: topic ‘zigbee2mqtt/0x00124b001b78b5df’, payload ‘{“linkquality”:54,”state”:”OFF”,”state_l2″:”ON”,”temperature”:35.62}’
          I think this is sonof zbr3 temp and not from external DS18B20.

          Harvey Specter
          Posted at 03:59 November 10, 2020
          Owner
          Author

          It looks like the firmware cannot detect your sensor. Try to power off the device and start again.

          Harvey Specter
          Posted at 19:55 November 9, 2020
          Wojtek
          Author

          Hi , according to
          https://www.zigbee2mqtt.io/devices/ptvo.switch.html
          ZBR3 should read input 1 with P22 where i conected DS18B20 to DATA

          sensor:
          – platform: “mqtt”
          state_topic: “zigbee2mqtt/”
          availability_topic: “zigbee2mqtt/bridge/state”
          value_template: “{{ value_json.l1 }}”

        Harvey Specter
        Posted at 21:29 December 9, 2020
        Wojtek
        Reply
        Author

        Hello, i used ZBR3 with DS18B20 with your firmare and from time to time ZBR3 lost conection and i have to pair it again. Can you help on that issue ?
        Logs from mqtt

        Zigbee2MQTT:error 2020-12-09 22:24:59: Publish ‘set’ ‘state’ to ‘0x00124b001b78b5df’ failed: ‘Error: Command 0x00124b001b78b5df/2 genOnOff.on({}, {“timeout”:10000,”disableResponse”:false,”disableRecovery”:false,”disableDefaultResponse”:false,”direction”:0,”srcEndpoint”:null,”reservedBits”:0,”manufacturerCode”:null,”transactionSequenceNumber”:null}) failed (Timeout – 1681 – 2 – 178 – 6 – 11 after 10000ms)’
        Zigbee2MQTT:info 2020-12-09 22:24:59: MQTT publish: topic ‘zigbee2mqtt/bridge/log’, payload ‘{“message”:”Publish ‘set’ ‘state’ to ‘0x00124b001b78b5df’ failed: ‘Error: Command 0x00124b001b78b5df/2 genOnOff.on({}, {\”timeout\”:10000,\”disableResponse\”:false,\”disableRecovery\”:false,\”disableDefaultResponse\”:false,\”direction\”:0,\”srcEndpoint\”:null,\”reservedBits\”:0,\”manufacturerCode\”:null,\”transactionSequenceNumber\”:null}) failed (Timeout – 1681 – 2 – 178 – 6 – 11 after 10000ms)'”,”meta”:{“friendly_name”:”0x00124b001b78b5df”},”type”:”zigbee_publish_error”}’

          Harvey Specter
          Posted at 03:36 December 10, 2020
          Owner
          Author

          Please, update the firmware. This problem may appear on some routers. I’ve fixed it in the latest version.

Harvey Specter
Posted at 14:06 June 25, 2020
Filip
Reply
Author

Hey!

Would it be possible to disable the router feature with your firmware configurator?

I have an issue with two Sonoffs (CC2530) struggling to route the signal (they are so weak…). The outcome is that another CC2530 (DYI light switch) connects to both of them instead of picking “stronger” routers (that it was connecting before). Finally, it often loses the signal from those two Sonoffs and does not pick the better routers…

    Harvey Specter
    Posted at 14:53 June 25, 2020
    Owner
    Reply
    Author

    The current version does not have such a feature.

      Harvey Specter
      Posted at 12:21 June 28, 2020
      Filip
      Reply
      Author

      Do you consider implementing such feature in the future? It would be much useful.

      Anyways thanks for your work! This is so cool.

Harvey Specter
Posted at 13:54 June 2, 2020
Sergey
Reply
Author

One additional observation…
Each time I turn on the board configured with DHT22 as Output2, P0_2 has the next logic:
– near 1s – pin is released
– 20s – pulled down
– released all the time
Seems like step 2 should be 18ms instead of 20s and then fw should listen for DHT22 sensor
Also, if sensor is offline than fw can repeat all the steps after N seconds (e.g 10-30s)
PS: Pulse generator was tested and works fine on P0_2

Harvey Specter
Posted at 12:12 May 29, 2020
Serhii
Reply
Author

Hi! Could you help me with SonoffZBR3? Does it support DHT22? Can’t configure it (

Thanks!

    Harvey Specter
    Posted at 12:19 May 29, 2020
    Owner
    Reply
    Author

    Hi. I don’t see unused pins to connect an external sensor. You may try to configure my firmware to use P22 for that sensor. But the sensor should be detachable. Connect DATA pin of the sensor and P22. GND->GND, VDD -> +3.3V.

      Harvey Specter
      Posted at 14:20 May 30, 2020
      Sergey
      Reply
      Author

      Still can’t work =(

      I tried all the cases:
      OUT2 P22 DHT22 ExtPullUp
      INP2 P22 DHT22 ExtPullUp
      With/without external pullUp resistor
      I tried P21 instead of P22

      But always I have similar results like “{“state_bottom_left”:”OFF”,”linkquality”:94,”state”:”OFF”}” without temp and humid

      Do you have any idea whats wrong?

      Harvey Specter
      Posted at 14:22 May 30, 2020
      Sergey
      Reply
      Author

      Sensor is Ok. Just tested it with RaspberryPi
      * Also I tried 3.3v and 5v as input…

        Harvey Specter
        Posted at 09:24 May 31, 2020
        Owner
        Reply
        Author

        Did you configure a report interval? Did you wait for a value this time?

          Harvey Specter
          Posted at 10:27 May 31, 2020
          Sergey
          Author

          Yes
          I configured Input2 (or output2) P22 DHT22 External pullup
          I configured reporting interval 20s
          After flashing I connected P22 to led (to see status of p22)
          So, seems like P22 works as input and don’t send any signals to DHT22
          Maybe we can discuss it by skype?

          Harvey Specter
          Posted at 04:45 June 1, 2020
          Owner
          Author

          Sorry, I don’t have skype. Do you have the possibility to try to connect another sensor? For example, DS18b20?

          Harvey Specter
          Posted at 17:58 June 1, 2020
          Sergey
          Author

          Hi
          Unfortunately I don’t have another type of sensors
          DHT22 still not works. I tried all the cases. Seems like FW doesn’t pull down pin for 18ms to initiate DHT
          I soldered an additional wire to P02. It works well as GPIO input/output. It works as software PWM output (I see it into mqtt logs as “l2″:255” but I can’t change it by mqtt commands
          zigbee2mqtt/0x00124b001e731483/set/l2
          zigbee2mqtt/0x00124b001e731483/l2/set
          and any number 0-255 as data doesn’t work as expected

          I’m ready to test your fw with sonoff zbr3 but I’d like do it a bit faster
          I don’t really like skype but maybe you can register a new account? I’ll be able to send you video how it works for me
          Also I’m waiting for another cc2530 chips so I’ll be ready to test them too

          Thanks

Harvey Specter
Posted at 11:38 May 28, 2020
Andreas
Reply
Author

FYI, SuperHouse also has a very good video here where he goes through Sonoff BasicZBR3 Zigbee PCB:

https://www.youtube.com/watch?v=yFwJAQFndEo

He quickly figures out its connections/pins with a multimeter and data sheet using a microscope.

Leave a Reply to Owner
Cancel Reply