Zigbee Configurable Firmware v2.5

The firmware allows creating a device with easily configurable functionality, including inputs, outputs, ADC, pulse counter/generator, I2C, external sensors.

Features overview

I’ve placed all features on a separate page. It is too long.

  • The status LED indicator works now.
  • The firmware supports up to 8 GPIO inputs or outputs.
  • The “switch” mode for inputs.
  • Pull-up and Pull-down options for inputs and outputs.
  • Analog inputs.
  • Internal temperature measurement.
  • Source voltage measurement.
  • UART (only text commands between an external device and a host, look at README.txt).
  • Simple MODBUS master implementation (reading sensors).
  • Some environmental sensors (DS18B20, BMP280, BME280, DHT 11, DHT 22, DHT 12, AM2301, Sonoff SI7021, MHZ19, SenseAir S8, Sensirion SPS30, SI7021 (I2C), CCS811).
  • BH1750 (Ambient Light Sensor).
  • PZEM-004T (Energy Monitor Sensor)INA219 (DC Voltage/Current Sensor), INA3221 (3-channel DC Voltage/Current Sensor), ACS712, ACS758 (Current Sensors)
  • Pulse generator.
  • Pulse counter (infinite, resettable, interval).
  • PWM (hardware, up to 128 kHz).
  • PWM (software, up to 3 kHz).
  • Bi-stable relay.
  • Watchdog timer.
  • Configurable default reporting interval.
  • Expert options (model ID, manufacturer info, network key, etc.).

Download

Download firmware

Your comments and bug reports are welcome :-)!

Changelog

The detailed changelog is placed on a separate page.


Comments
Harvey Specter
Posted at 11:05 April 19, 2024
Konrad Balon
Reply
Author

Hi,
I tested this with BME280 temp sensor. No matter if I choose Router or End device without routing – The board drains arround 25-30 mAmps. No matter if I schedule report every 15 sec or every 500 sec – power drain is always similar (slighlty higher with often reports – arround 30 mA, when idle -20-25 mA)
Why this board does not go to sleep automatically like in a precompiled ZNP with SBL?
do you have maybe .eww workspace with sample I2C temp sensor?
I Installed IAR and loaded standard ZNP with SBL from Z-Stack 3.0.2

    Harvey Specter
    Posted at 13:22 April 19, 2024
    Owner
    Reply
    Author

    Only the “PSM” version can sleep. But it requires the Premium version.

Harvey Specter
Posted at 14:03 March 19, 2024
hackbard
Reply
Author

hi,
so I’m trying to connect my DL-20 CC2530 module, eventually with DS18B20 sensors. Flashed with the configured firmware from ptvo, it gets paired, interview completed (within a sec), but no topic shows up in mqtt explorer or anything beside the interview in the log. When alternativly flashed with the hex from Z-Stack-firmware/router/Z-Stack_Home_1.2/bin/CC2530_router_2020_09_29.zip at least I can see a LED status, and a topic ect.. But there I can’t customize sensors ect.
Here is my hex config as txt:
Board type: CC2530
Device type: End device without routing

device type router, and/or incl. Led, inputs, no better result.
Am I missing something?

    Harvey Specter
    Posted at 04:04 March 20, 2024
    Owner
    Reply
    Author

    You didn’t configure any inputs and outputs. The mentioned old firmware in the archive based on other code.

Harvey Specter
Posted at 08:58 February 8, 2023
Uncle Buzz
Reply
Author

I would like to report over Zigbee some results of any automatic system like a door chicken driven by an ATMEGA328. Instead of using some GPIO as output on ATMEGA328 to send boolean status to the PTVO device to send those statuses over Zigbee, is it possible to send any type of data by “talking” to the PTVO device with serial communication?
For example, sending the time spent to close the door, the maximum current consumed by the motor, a byte word to send a status from an enum instead of some boolean status?
Is your firmware able to do such things (and do you have any documentation or examples ?) or is it only able to drive directly sensors and IO ?

    Harvey Specter
    Posted at 09:11 February 8, 2023
    Owner
    Reply
    Author

    You can send any text data through UART directly to your coordinator.
    https://ptvo.info/zigbee-configurable-firmware-features/uart/

      Harvey Specter
      Posted at 13:28 February 8, 2023
      Uncle Buzz
      Reply
      Author

      Thank you for your answer! But I would like to send over Zigbee some booleans, analog data, bytes, like you do if you directly connect sensors to the PTVO module, but instead of reading ADC pin, Input pin of the PTVO module, sending those values to the PTVO module through UART, who can be text, but I don’t want to send text over Zigbee.
      Maybe your firmware is for standalone sensors/actuators, but it can’t act as a Zigbee frontend for another µcontroller ?

Harvey Specter
Posted at 10:32 May 26, 2022
Mathilde D
Reply
Author

hello,
Can you tell me the card with the smallest format that can operate on battery?
I want to interface a zigbee card with a box to simulate the support of 3 buttons (low state, zero volt when I press a button) with premium firmware
Do you think this solution possible?
Best regards

    Harvey Specter
    Posted at 11:08 May 26, 2022
    Owner
    Reply
    Author

    Why not? You can use the Ebyte E18 module. It is compact.

      Harvey Specter
      Posted at 18:40 May 26, 2022
      Mathilde D
      Reply
      Author

      thank you!
      Is it E18 exists without power amplifier? What are the references that do not have?

        Harvey Specter
        Posted at 03:32 May 27, 2022
        Owner
        Reply
        Author

        You need E18-MS1-PCB. It does not include a power amplifier.
        https://www.ebyte.com/en/product-view-news.aspx?id=122

        Harvey Specter
        Posted at 16:12 July 11, 2023
        FRancis
        Reply
        Author

        Hello Mathilde
        Did you finalize your project using E18 device?
        If Yes I suppose E18-MS1PA2
        does it work well ?
        I just want to have one ON/OFF press button reported to the router using this kind of small device.
        THX for info

Harvey Specter
Posted at 04:41 May 13, 2022
YONGIL
Reply
Author

Hi, thanks for your great job…
Is it possible to make custom firmware for my prototype project?
it should need cost to me…

    Harvey Specter
    Posted at 05:39 May 13, 2022
    Owner
    Reply
    Author

    Yes, we can discuss it via email.

      Harvey Specter
      Posted at 08:33 May 13, 2022
      YONGIL
      Reply
      Author

      Please, let me get your email if you already know my email…

        Harvey Specter
        Posted at 08:43 May 13, 2022
        Owner
        Reply
        Author

        Yes, please check your inbox.

Harvey Specter
Posted at 17:17 March 21, 2022
Frank
Reply
Author

Which Zigbee stack is used when selecting CC2530 device?

    Harvey Specter
    Posted at 03:44 March 22, 2022
    Owner
    Reply
    Author

    The firmware used Z-Stack 1.2 for CC2530 and CC2531.

Harvey Specter
Posted at 22:21 January 8, 2022
Andy
Reply
Author

Hello,

how to enable the PA control pins for the ebyte modules? I followed your hints on
https://ptvo.info/zigbee-configurable-firmware-features/e18-ms1pa2-ipx/
but nothing happens on P10 and P11 – checked with a oscilloscope. My boards are E18-TBH-01 (E18-MS1PA2-PCB) and E18-TBH-27 (E18-2G4Z27SI) recently bought. Basic functions like in-and output, pulse generator are working, but not the rf part. So I assume the programming is ok. What may I did wrong? Must I declare the pins also as outputs with pull_*? The pins are the right ones – TX and RX enable. There is activity with the original firmware.

Thanks and best regards, Andy

    Harvey Specter
    Posted at 03:51 January 10, 2022
    Owner
    Reply
    Author

    Hello Andy.

    I do not have any ideas for your case. But some users reported that Ebyte changes the amplifier type. Please try to upload the CC2530 + CC2592 or CC2530 + CC2591 firmware type instead.

      Harvey Specter
      Posted at 20:06 January 10, 2022
      Andy
      Reply
      Author

      Hello,

      thanks for the quick reply!
      I assume there must be something go wrong during the creation of the hex-file.
      There should be some activity on the TX- and RX- enable pins, regardless of the amplifier type. I already tested all other variants but I can’t measuere any activities on the pins (P10, P11 or P12, P14) – (stay always low). Must I configure any other pin, eg. P07?

      Or are these expert options only availiable in the premium version?

Harvey Specter
Posted at 15:27 November 6, 2021
Christian
Reply
Author

Hello, so interesting work…
Would you excuse my dummy question, but i didn’t understand if the software only connect with zigbee2mqtt , or is able to connect a zigbee gateway .
thanks for your answer

    Harvey Specter
    Posted at 10:04 November 7, 2021
    Owner
    Reply
    Author

    The firmware can be connected to any Zigbee gateway, but the most of them do not support custom devices. The connected device will appear as unsupported. Z2M is flexible and allows you to add custom converters for DIY devices.

    Harvey Specter
    Posted at 18:31 March 9, 2022
    JohnRob
    Reply
    Author

    This comment is a little late but for others with a similar inquiry.
    I’ve been using the PTVO firmware to connect a CC2530 to my Hubitat Smart Hub. Works great. I do write my own Hubitat drivers however they are pretty basic and simple.
    If additional information would help please look on the Hubitat community. I (or others) will see your post and likely be able to help.
    JohnRob

      Harvey Specter
      Posted at 20:58 December 13, 2022
      rixlumb1
      Reply
      Author

      Hi JohnRob,
      I also use Hubitat and learning groovy for drivers, and make my own sensors, previously with esp boards.
      after creating an end device, I dont see how to pair (button), like a standard zigbee end device
      I have access to buttons and leds onboard (CC2531 dongle)

Harvey Specter
Posted at 19:18 November 2, 2021
Lupu
Reply
Author

Hi,
By any chance, you have in plan to add stepper motor control, with a dedicated driver like A4988, LV8729
and settings for a specific number of steps for the Left-Right direction?
My goal is to build a roller blind controller.

    Harvey Specter
    Posted at 11:03 October 7, 2022
    Danny Mesters
    Reply
    Author

    I would like to know this too. Been looking for a battery powered powered solution to automate tilt function on my blinds. Found thehookup’s tutorial of using a nodemcu to automate and control the tilt function on horizontal blinds, but it is too energy consuming to be used with batteries. Would love to find a build in solution for 2” horizontal blinds for the tilt function, so if anybody knows a way without paying 150$ per blind please let me know.

Harvey Specter
Posted at 16:42 October 19, 2021
wout
Reply
Author

Hello,

Chance to add support VEML6070?

Harvey Specter
Posted at 15:02 October 15, 2021
Mario
Reply
Author

Hi, is there a way to read the pm1006 sensor? It is a sensor present in the “AIR QUALITY SENSOR VINDRIKTNING” of ikea. It can be implemented with a common ESP board (https://github.com/Hypfer/esp8266-vindriktning-particle-sensor) it would be great if it also works with the zigbee network

    Harvey Specter
    Posted at 08:01 October 16, 2021
    Owner
    Reply
    Author

    Hi Mario. Sorry, but I cannot add all sensors in the world, and I will add the most popular sensors.

Harvey Specter
Posted at 03:50 September 4, 2021
JohnRob
Reply
Author

Does your software (which is awesome) able to read the AHT21 Temperature/Humidity sensor?
http://www.aosong.com/en/productslist-1.html

You have DHT22 listed which I believe is the same interface (maybe same part) but it is listed under 1 wire and the configuration software does not allow me to set an address for a DHT22 (so I think it is a different part)

If all this is true, will you be considering adding the ASONG AHT21?

Thanks
John

    Harvey Specter
    Posted at 06:12 September 4, 2021
    Owner
    Reply
    Author

    Hi John, I’m sorry, but the firmware does not support AHT21 and I didn’t place to add it. The firmware supports many others humidity and temperature sensors.

Harvey Specter
Posted at 02:37 August 5, 2021
JohnRob
Reply
Author

Again, thank you for you firmware and your support (answering questions) 🙂

I see Sensor Si7021 is supported. While I am waiting for mine to be delivered can you tell me if the heater commands are implemented?

    Harvey Specter
    Posted at 03:24 August 5, 2021
    Owner
    Reply
    Author

    Hi! What do you mean by “heater commands”?

      Harvey Specter
      Posted at 00:55 August 6, 2021
      JohnRob
      Reply
      Author

      The SI7012 has an internal heater. It can be energized and different levels to help remove moisture from the humidity sensor (on a cycle basis).

        Harvey Specter
        Posted at 03:51 August 6, 2021
        Owner
        Reply
        Author

        Oh. I see. No, the firmware does not use the internal heater at all.

    Harvey Specter
    Posted at 14:26 September 4, 2021
    JohnRob
    Reply
    Author

    Thank you for you’re quick response. You firmware does many awesome things, I understand it can’t do everything 🙂

Harvey Specter
Posted at 21:23 July 18, 2021
Lukasz
Reply
Author

I have one question, if i buy one license, u will send me a premium software (with serial number for my one board, and for that one board i can compile diffrent option for test) or u just compile program that i want and send me just hex ?
I want use power-saving features but first i need play on that board a little 🙂

    Harvey Specter
    Posted at 03:25 July 19, 2021
    Owner
    Reply
    Author

    I’ll send you a license key. You’ll enter it in the program on your computer when you save HEX

      Harvey Specter
      Posted at 18:19 August 7, 2021
      Łukasz
      Reply
      Author

      And other question is, how i can connect to my ZigBee main coordinator device that i make with yours configurator ? I need add some button to put in pairing mode ?

Harvey Specter
Posted at 16:38 July 11, 2021
Dr. No
Reply
Author

My Home automation use a Raspberry Pi, Domoticz, with KOENKK Zigbee2MQTT. Browsing supported devices, I just find DIY PTVO which is perfect to me. As a pure hardware man, I searched such a firmware since a while.

I need to create some IOT Modules which don’t exist like an automatic watering with several channels or a dry contact switch (mains or DC powered) 2 examples among many others.

I intend to use one of EBYTE radio modules; the E18-MS1PA1-PCB for example:
https://www.ebyte.com/en/product-view-news.aspx?id=121

– What do you think of this module, may I use it?
– KOENKK don’t describe how to pair this device a little help would be welcome.
– Do I need a button to initiate pairing? Which port?

    Harvey Specter
    Posted at 03:43 July 12, 2021
    Owner
    Reply
    Author

    1. It is a good and well-known module for DC-powered devices.
    2. The firmware starts pairing immediately after flashing (https://ptvo.info/zigbee-configurable-firmware-features/general-info/).
    3. It is optional. You can configure it on any pin and the “Input #1” channel.

      Harvey Specter
      Posted at 10:39 July 12, 2021
      Dr. No
      Reply
      Author

      Many thanks for your quick answer
      By continuing to read your blog (there is a lot to read), I just saw that you were already using EBYTE modules.
      Still one point; The LED, wired to GND or VDD?

        Harvey Specter
        Posted at 03:21 July 13, 2021
        Owner
        Reply
        Author

        In my case, it is wired to GND.

Harvey Specter
Posted at 10:04 June 19, 2021
Olivier
Reply
Author

Hello from France,
Great job, and your work seems very helpful for people who want to make their own sensor.
I’m interested in power battery mode, but not by a wake up by PIN trigger.
My aim is to wake up every X seconds, to send data then, to sleep.
I know the the power consumption is greater than a full wake up, but I have no choice when there is no PIN to trigger.
1 – Is this functionaliy is planned in the futur ?
2 – Is is possible to test the PSM mode before to get Premium ?

Thanks a lot for your involvement.

    Harvey Specter
    Posted at 09:23 June 20, 2021
    Owner
    Reply
    Author

    Hi.

    The device with the PSM firmware will work as you described if you enabled periodic reports (an interval is not zero). Sorry, but you can’t test PSM without the Premium version.

Harvey Specter
Posted at 17:12 June 15, 2021
Angel
Reply
Author

Hello, I have a problem with the stability of the software. I have prepared a separate kit for the test:
Software: Zigbee2MQTT version 1.18.3.
Transmitter: CC2538 + CC2592 Firmware: 20201010.

I programmed two different models and made the pairing. Everything works fine for 24-48 hours. After this time, both client devices stop connecting. It does not help to disconnect the devices and the transmitter from the power supply.
After switching the transmitter to the permit_join:true mode, the devices will pair themselves again. Where is the problem?

I am sending a link to the zigbee2mqtt logo and settings uploaded to client devices.
For information, other Xiaomi devices, etc. are working properly, I do not have to pair again every 24 hours.

http://sysiq.pl/dane/pliki/210615/foto_01.jpg
http://sysiq.pl/dane/pliki/210615/log.txt

I am asking for help, it is impossible to use the software with such a problem.

    Harvey Specter
    Posted at 03:39 June 16, 2021
    Owner
    Reply
    Author

    Hello. Do you use CC2538 + CC2592 as a coordinator? Please, try to enable the “Disable device resettings by power-off cycle” option on the “Expert” tab.

Harvey Specter
Posted at 12:44 June 3, 2021
frederic
Reply
Author

About “Added an option to disable resetting by a power on/off cycle.”

Thanks for adding this feature !

    Harvey Specter
    Posted at 16:38 June 3, 2021
    Owner
    Reply
    Author

    You are welcome!

Harvey Specter
Posted at 10:14 May 5, 2021
George
Reply
Author

Good day!
please tell me, your firmware supports TDS, NTC and PH sensors, if not, how can I help you to add them?

    Harvey Specter
    Posted at 10:26 May 5, 2021
    Owner
    Reply
    Author

    Hi. The firmware does not support these sensors directly, but it can measure analog signal levels.

Harvey Specter
Posted at 12:57 April 26, 2021
Henri
Reply
Author

Hi,

Thanks for this great project, I do have a small question. When assigning P07, P10 or P11 on a board type CC2530 + CC2592 I get an error message that these outputs are usually used for PA control. I tried to find any reference to this error on your site but could not find any. Can you explain what is causing this error ?

    Harvey Specter
    Posted at 13:04 April 26, 2021
    Owner
    Reply
    Author

    Hi,
    You cannot use these pins on a board type CC2530 + CC2592 because CC2592 already uses these pins.

      Harvey Specter
      Posted at 15:22 April 26, 2021
      Henri
      Reply
      Author

      Thanks for the quick answer, It seems that is was documented wrong on the site, it stated that I it was a CC2530 + CC2592 but it actually is CC2530 board. I will re-compile and upload it. Another nice feature would also be to be able to link a button directly to 2 outputs. When controlling blinds or shutters, you want to activate 1 relais for ‘down’ or 2 relais for ‘up’. Of course you can program this in node-red but direct link would still allow control even if mqtt server or node-red is down.

Harvey Specter
Posted at 19:25 April 23, 2021
SorryLady
Reply
Author

I turned off the gpio status report, why when reset the device still reports the status of endpoin? Can you help me turn it off?

    Harvey Specter
    Posted at 06:19 April 24, 2021
    Owner
    Reply
    Author

    Did you set the reporting interval to 0? Did you enable the “Disable configuring the interval remotely” option on the Expert tab?

Harvey Specter
Posted at 18:03 March 11, 2021
Pinoxl
Reply
Author

Hi everyone, how do I introduce a sensor (Sonoff Si7021 BMP 280). on CC2530 in which which P0 … input or output. many thanks for any information

    Harvey Specter
    Posted at 03:27 March 12, 2021
    Owner
    Reply
    Author

    You may use any free pin on “Output.”

Harvey Specter
Posted at 12:53 March 9, 2021
Ivan
Reply
Author

Hello, If I set up one of the outputs as PWM, how can I control it?

Harvey Specter
Posted at 22:38 March 1, 2021
Frans
Reply
Author

Have two quick questions about this great firmware:
1. I see the Sensirion SPS30 is supported, can i also use the SCD30 (CO2) sensor? Or do you need to add this sensor?
2. Do you think a battery powered end-device will be possible in future firmware updates?

    Harvey Specter
    Posted at 03:42 March 2, 2021
    Owner
    Reply
    Author

    Hi,
    1. Yes, I should add this sensor before.
    2. Yes, I’m working on it.

Harvey Specter
Posted at 20:43 February 26, 2021
m0wlheld
Reply
Author

Hi,

just flashed your firmware to a cheap CC2531 (see below) stick in order to use it to control my „smart“ power meter. I already configured and tested a counter and it works.

However, I don‘t know neither the correct firmware settings for the onboard LED, nor how to configure „internal temperature“ and „voltage“.

Any chance you might help, please?

Device: https://www.itead.cc/cc2531-usb-dongle.html

Harvey Specter
Posted at 09:08 February 25, 2021
Petr
Reply
Author

Hi, I don’t know what I’m doing wrong, but I’m using a few cc2530 with the latest FW and zigbee2mqtt and Home Assistant, unfortunately I can’t configure more than 5 outputs, although they see 8 in HA, but they don’t work from 6. Thank you for your help.

    Harvey Specter
    Posted at 03:45 February 26, 2021
    Owner
    Reply
    Author

    Sorry, but I cannot help with HA. Could you try to send commands directly through MQTT and zigbee2mqtt?

Harvey Specter
Posted at 20:48 February 22, 2021
EmU
Reply
Author

Hey thanks a lot for your great software. Have it already used in some nice projects
Would it be a possible (with a reasonable effort for you) to add a rotary encoder to the supported device list. I was planing to build this media knob as a battery powered device and the cc2530 seems to be a good micro controller for this type of project. But till now your Firmware seems to be the only where I can just imagine to get this thing up and running.

https://blog.prusaprinters.org/3d-print-an-oversized-media-control-volume-knob-arduino-basics_30184/

And maybe a rotary encoder could also be used for other great projects with the cc2530 and your firmware.

Thanks a lot just for a answer

    Harvey Specter
    Posted at 06:22 February 23, 2021
    Owner
    Reply
    Author

    Sorry, I do not plan to add this encoder.

Harvey Specter
Posted at 14:44 February 1, 2021
Wojciech
Reply
Author

Hello,
please take a look on this project https://github.com/kakaki/esphome_dietrich.
This is connection with Boiler Die Dietrich using ESP8266 base on wifi chip.
It is possible that your Firmware can do this using CC2530 somehow with zigbee ?
What do you think?
Thx
Wojtek

    Harvey Specter
    Posted at 03:35 February 2, 2021
    Owner
    Reply
    Author

    Hello. No, my firmware cannot communicate with Dietrich.

      Harvey Specter
      Posted at 07:32 February 11, 2021
      Giovanni
      Reply
      Author

      Hi, are there linux or mac versions available?

        Harvey Specter
        Posted at 07:33 February 11, 2021
        Owner
        Reply
        Author

        Hi,
        Sorry, but no.

          Harvey Specter
          Posted at 09:06 February 19, 2021
          gio
          Author

          Hi, i’m preparing a site where i would like to publish my works with a zigbee board (that i designed) and this firmware. Can i link there your site and use screenshots of your software?
          If you want you can also use my projects designes in your cookbook section.
          Let me know, thank you.

          Harvey Specter
          Posted at 09:16 February 19, 2021
          Owner
          Author

          Hi, Yes, of course, you can link to my website and use images and screenshots.

Harvey Specter
Posted at 05:11 February 1, 2021
Xap
Reply
Author

Hello,

First of all, THANK YOU, I tried to use the TI environment but this firmware did my life really easy.

I want to request one feature… as you know the output power of gpio is only 4ma (except two pins). To use in some applications is not enougth, but we have 19-4ma pins.

Using more than one pin for the same output, to reinforce output power, can do our life even easier.

For example SSR G3MB requires about 10ma. With ESP I use directly connected to 5v and GND to open-gate, but to do the same with cc2530 I’m limited to two SSRs.

In any case… thanks for all.

    Harvey Specter
    Posted at 06:30 February 1, 2021
    Owner
    Reply
    Author

    Sorry, but I can only offer to add an external transistor. I think it is a bad practice to connect several outputs to one wire.

      Harvey Specter
      Posted at 06:58 February 1, 2021
      Xap
      Reply
      Author

      Using open-gate and low shouldn’t be a problem. Using high and low yes because during some clock steps can be a shortcut.

      Yes, I know a ttl fet is the best way.

      Thank you for your answerd.

Harvey Specter
Posted at 15:42 January 30, 2021
Jim
Reply
Author

Hello,

First , Thanks for your work !

I have a little issue with this bistable relay (https://i.stack.imgur.com/GOItR.jpg), I try to connect it to the CC2530 with a power suply 5V and I don’t know how configure the firmware to work with the relay.

I tried “Bistable Relay ON/OFF” function , “Pulse Switch” and “GPIO” on Output 1 pin P06 and connect it to the T pin of the relay but I always have the same issue that I need to switch two times the switch l1 in my home assistant to activate 1 time the relay. So each OFF command are send, the relay move but I would like that the relay move each ON and OFF commands like a basic switch.

I hope you’ve an idea how I can configure the firmware.

Thanks in advance for your answer.

    Harvey Specter
    Posted at 03:40 February 1, 2021
    Owner
    Reply
    Author

    You need the “Pulse switch” output in the firmware. Remember state: off. Restore state: Off. Maybe, you should try to enable the “Inversed” option. Also, check the voltage on the “T” output. It should not be more than 3.3v.

Harvey Specter
Posted at 10:31 January 29, 2021
Casey (Spain)
Reply
Author

Hello,
First of all thank you for the amazing firmware.
I am currently trying to set it up with a Conbee II stick with Deconz running on HA, using a CC2530+CC2591.
I would like to achieve 4 x (Single click , Double click and long click) so this can trigger scenes in HA.
I have used P01,P02,P03 and P04. Configured as GPIO Pull-UP and checked the Long and Double box.
Output 1 configured as GPIO Pull-down on P13, for no particular reason really.
Firmware loaded to the CC and connected to Deconz with no issues.
I can see the 4 End Points created. And the Multistate Input (Basic) of each endpoint.
I have binded to the coordinator.
But I do not see how the atribute should be added since it is a write only with a current value of 103.
Read Config fails obviousy on the attribute editor.
Could you please give me some advide on this? I must be missing something obviously.
It is not shown in Phoscon BTW.
And I do not detect any event in the deconz_event in HA.
Thank you very much.

    Harvey Specter
    Posted at 21:56 January 29, 2021
    Casey (Spain)
    Reply
    Author

    Hi Again,
    Just seen that there is a Beta version for Phoscon that came out end of last year that mentions:
    -Enable light bindings for PTVO switch relay 4/8 and DIYRUZ devices
    So might be best to wait for the next stable version to see if that way i can get it in via phoscon to HA.
    Any help is of course appreciated
    Thanks for all the work again.

Harvey Specter
Posted at 02:26 January 28, 2021
HL
Reply
Author

I want to use the CC2530 for motion sensor using HFS-DC06 Microwave radar. I flashed my board successfully as below. The device is added to Home Assistant successfully as well. However, I do not know how to get the info from Home Assistant as a switch. Could you please help me! Thank you.

——
Board type: CC2530 + CC2591
Device type: Router
Transmit enable (TXEN): P12Receive enable (RXEN): P14
Update firmware’s timestamp : 2021-01-28
Default reporting interval (s): 60

Input pins:
P06: Input 2, GPIO, Pull-down, Switch

    Harvey Specter
    Posted at 03:57 January 28, 2021
    Owner
    Reply
    Author

    Please, do the following:
    1. Add output2 with any unused pin: Output2, GPIO, Pull-up, Remember state off
    2. Link your Input2 to Output2.
    3. Delete your device in Z2M and HA.
    4. Repair the device.

      Harvey Specter
      Posted at 00:28 February 10, 2021
      Roman
      Reply
      Author

      Hi, after a long search I found this great firmware.really amazing effort.
      Ordered some 2530 for testing now.
      I was seeking for a possibility UART an esp32 to send data (e.g. 12 x ds18b20, etc.) via cc2530 to zigbee2mqtt.
      Might this be possible with your firmware?

      🙂 if it would work in both directions the esp could also be used to switch etc.

      The esp32 can be programmed in micropython. So it would be universal for somebody like me lacking the knowledge to write firmware.
      Thank you for your time doing such a great job!

        Harvey Specter
        Posted at 03:27 February 11, 2021
        Owner
        Reply
        Author

        My firmware can send data to an external device through UART and send it back to a coordinator. But the firmware does not parse it. It would help if you had a custom converter on the coordinator side.

Harvey Specter
Posted at 08:29 January 17, 2021
Richard
Reply
Author

Hi, Amazing work! Is this (/could it be?) compatible with Philips Hue bridges for a single PWM output to show up as a lamp with brightness control?

    Harvey Specter
    Posted at 11:50 January 17, 2021
    Owner
    Reply
    Author

    Sorry, but I didn’t test my firmware with these bridges.

      Harvey Specter
      Posted at 22:15 January 24, 2021
      gio
      Reply
      Author

      Hi, great work! It would be possible to use your firmware in small projects to sell on Tindie or similar? Donations would be enough to compensate your work in this case? Thank you.

        Harvey Specter
        Posted at 08:13 January 25, 2021
        Owner
        Reply
        Author

        Hi! No problem. It would be great if you can also add a link to my website with the firmware.

Harvey Specter
Posted at 09:59 January 16, 2021
Moji
Reply
Author

This is amazing, thank you very much. could you please show us some examples of good hex files?

    Harvey Specter
    Posted at 11:49 January 17, 2021
    Owner
    Reply
    Author

    What hex files do you mean?

Harvey Specter
Posted at 22:37 January 14, 2021
Raymond
Reply
Author

Would it be possible to use this Firmware to flash it into a Gledopto LED-driver, which has a TI CC2530, and control RGB+CCT lights? so 5 channels? Gledopto’s has wierd bugs.

    Harvey Specter
    Posted at 03:30 January 15, 2021
    Owner
    Reply
    Author

    Sorry, but I didn’t test my firmware with this device. I don’t know how to configure firmware for it.

      Harvey Specter
      Posted at 17:55 January 18, 2021
      Raymond
      Reply
      Author

      I’ve hooked some wires to the device. CC-tool says Firmware is locked. When I find out which output-pin is connected to which pin of the Mosfet-driver. Do you recon it would be possible?

        Harvey Specter
        Posted at 03:28 January 19, 2021
        Owner
        Reply
        Author

        If a chip is locked, you should Erase it the first time.

Harvey Specter
Posted at 15:28 January 14, 2021
Marco
Reply
Author

Hi,

I want to build a battery zigbee led strip device with this E18-MS1-PCB (http://www.ebyte.com/en/product-view-news.html?id=122).
This firmware could be set up for client device only, with max energy save mode setting (deep sleep) activated?

Thanks you

    Harvey Specter
    Posted at 03:31 January 15, 2021
    Owner
    Reply
    Author

    Hmm, a LED strip and power saving. Are you sure? Your LED strip will consume much more energy than CC2530. In any case, the firmware does not support power saving yet.

Harvey Specter
Posted at 22:07 January 12, 2021
Wojciech
Reply
Author

Would it be easy to add InfraRed (IR) receiver, for example to receive IR signal from IR sensor conected to CC2531. I would like to use it with Hob2Hood induction cooking plate.

    Harvey Specter
    Posted at 03:36 January 13, 2021
    Owner
    Reply
    Author

    Sorry, but I do not plan to add IR to the firmware. You can use an external Arduino board to decode an IR signal and send data through UART.

Harvey Specter
Posted at 21:01 January 8, 2021
Smartict
Reply
Author

With support for the new E18-MS1PA2 I double checked the old PCB Usermanual for the E18-MS1PA1 series. The E18-MS1PA1 already used the pins p1.0 and p1.1 and it had the same compiler directive for the HAL_PA_LNA directive. So with earlier versions of your tool i always used the board type CC2530 + CC2592 (as this is indeed under the hood in the older E18-MS1PA1). Would you suggest now to keep using this board type or would you suggest to move to the CC2530 + RFX2401 board type with the adjusted TXEN and RXEN setting to P11/P10 for the older E18-MS1PA1 type? Your suggestion is highly appreciated.

    Harvey Specter
    Posted at 03:57 January 11, 2021
    Owner
    Reply
    Author

    Leave CC2530 + CC2592 for MS1PA1. It is a proven and working solution.

Harvey Specter
Posted at 14:00 January 5, 2021
Gianpi
Reply
Author

Hello,
does the firmware is suitable to build battery-powered sensors?
Thanks

    Harvey Specter
    Posted at 06:17 January 7, 2021
    Owner
    Reply
    Author

    No, yet.

Harvey Specter
Posted at 16:32 December 22, 2020
David
Reply
Author

Hello,

I just bought 2 repeaters zigbee-cc2530+cc2592
thinking it was compatible with deconZ an could be extend my network.

When I start one it is not recognized by phoscom, dconZ through the graphic interface.

But after a while I can see the node in dconZ but no connections are created with my other zigbee components.

The stock firmware is zigbee-switch-configurable-firmware-v2-210

My config:
raspberry 3b+
deconZ raspbee
sensors door/window xiaomi

Do you have maybe an idea about that issue, please?

Thank you for your time.

Best regards,
David

    Harvey Specter
    Posted at 03:39 December 24, 2020
    Owner
    Reply
    Author

    Hi David. I’m sorry, but I cannot answer questions about the dconZ because I didn’t try it at all.
    If you can successfully pair a device with your network, new connections may appear after a while. It is not a fast process.

      Harvey Specter
      Posted at 20:47 February 23, 2021
      mamra
      Reply
      Author

      you can change under expert settings:
      – manufacture to ‘LUMI’
      – Model ID to ‘lumi.router’
      and will be seen in phoscon but connections will show only with routers, no end devices

Harvey Specter
Posted at 20:30 December 5, 2020
galdaka
Reply
Author

Hi! I have flashed the CC2530 with the end_device firmware and added it to Home assistant.

I only need one ouput and I don’t know the default output pins of the firmware.

State_l1 in which PIN is assigned by default to turn on or off?

    Harvey Specter
    Posted at 06:54 December 6, 2020
    Owner
    Reply
    Author

    Hi! You can use any pin from P01-P6, P12-P17 as output. If you do not need other channels in HA, you may adjust your device configuration (in HA) and delete unused channels.

      Harvey Specter
      Posted at 09:35 December 6, 2020
      galdaka
      Reply
      Author

      Hi. Thank you for answering so quickly. None of the pins you refer to works for state_l1 when I send payload: “{\” state_l1 \ “: \” OFF \ “}” or payload: “{\” state_l1 \ “: \” ON \ “}” the voltage is always the same

        Harvey Specter
        Posted at 03:49 December 7, 2020
        Owner
        Reply
        Author

        Then you should show your full configuration. What pin did you configure as Output 1? Did you select the pull-up mode?

    Harvey Specter
    Posted at 11:07 January 5, 2021
    galdaka
    Reply
    Author

    I had everything working for a month.

    topic: zigbee2mqtt / Air Wick / l1 / set
    payload: “{\” trigger \ “: 1}”

    It no longer works in Home Assistant.

    PS: I don’t have the latest firmware on the CC2530

      Harvey Specter
      Posted at 06:17 January 7, 2021
      Owner
      Reply
      Author

      Hi. Are you sure that the 1ms interval is enough to get any feedback on your device?

Harvey Specter
Posted at 15:46 November 27, 2020
Simon
Reply
Author

Hi, great site and thanks for posting your hard work for all to share. I was looking in your downloads and noticed that you haven’t posted a version of coordinator for CC2530 without an amplifier. I’ve found that the Z-Stack 1.2 won’t run on my basic board and was looking for alternatives and ended up on your site. Have you ever compiled and tested 1.2 coordinator against a plain CC2530?

    Harvey Specter
    Posted at 05:15 November 28, 2020
    Owner
    Reply
    Author

    Hello. The coordinator firmware for a simple CC2530 is useless. Therefore I didn’t make it.

Harvey Specter
Posted at 13:46 November 26, 2020
Yusuf
Reply
Author

Thank you for this great project, I hope you continue.

I have a question, do you have detailed information about battery consumption? I am thinking of designing some products with CR2032 batteries and I am thinking of meeting the software needs from this project. (Of course I am planning a high donation for this in order to remain ethical)

    Harvey Specter
    Posted at 03:38 November 27, 2020
    Owner
    Reply
    Author

    Currently, the firmware does not support the power-saving mode. I collect donations for this feature. Consumption: 26 mA in the active mode (measurements) or 0.4uA in the sleep mode.

Harvey Specter
Posted at 20:23 November 24, 2020
Jürgen
Reply
Author

Thank you for your amazing work! It’s making things so easy!
I have problems when using BMP280 with CC2530.
It reports the values only 2-4 times, then it doesn’t respond anymore until i reset the device. I tried different ports (e.g. same like in your documentation) , watchdog, etc but always the same result.
Do you have a hint?

    Harvey Specter
    Posted at 04:31 November 25, 2020
    Owner
    Reply
    Author

    Hello. Did you try EndDevice or Router firmware?

      Harvey Specter
      Posted at 22:34 November 25, 2020
      Jürgen
      Reply
      Author

      Your absolutely right, thanks! The End-Device firmware works like a charm with my E18-MS1-PCB.
      Is it a limitation or a bug?

        Harvey Specter
        Posted at 03:24 November 26, 2020
        Owner
        Reply
        Author

        I do not know :). Maybe, the router does not free resources for polling BME280 correctly.

          Harvey Specter
          Posted at 11:59 November 29, 2020
          Sergey
          Author

          hello.
          looking like similar problem with ACS712
          doesn’t respond after same minutes in router mode and work correctly in end-device mode…
          any chance to resolve that?

          Harvey Specter
          Posted at 06:09 November 30, 2020
          Owner
          Author

          I’m working on this problem.

Harvey Specter
Posted at 16:09 November 20, 2020
Maui
Reply
Author

Hey guys,
when I change from routing to Endpoint, is this some kind of Power Saving?
Has anyone of you tested this?

    Harvey Specter
    Posted at 06:23 November 21, 2020
    Owner
    Reply
    Author

    Hi. No. The firmware does not support power saving yet.

      Harvey Specter
      Posted at 18:44 November 25, 2020
      Verydarksheep
      Reply
      Author

      Hi! How much coffee would it take to support power saving? 🙂

        Harvey Specter
        Posted at 03:27 November 26, 2020
        Owner
        Reply
        Author

        Hi! Maybe, 10 liters of coffee :).

Harvey Specter
Posted at 18:12 November 18, 2020
Bennic
Reply
Author

Great configurator! Thank you for your work.
Bought you 3 coffee 🙂

    Harvey Specter
    Posted at 03:34 November 19, 2020
    Owner
    Reply
    Author

    Thank you 🙂

Harvey Specter
Posted at 17:38 November 11, 2020
Doublet
Reply
Author

I have connected 4 DS18B20 to port P15 on CC2530 (external pull-up) like you described with no ID per sensor. The 4 sensors are reporting values, but all on l1 in a random order.
Here is an example of one report via MQTT:
{“device_l1″:”28-CB-FE-E3-08-00-00-99″,”device_l2″:”AA-BB-CC-DD-EE-FF-01-02″,”device_l3″:”AA-BB-CC-DD-EE-FF-01-03″,”device_l4″:”AA-BB-CC-DD-EE-FF-01-04″,”l1″:18.875,”l2″:0,”l3″:0,”l4″:0,”l5″:26,”linkquality”:110,”temperature_l1″:18.9,”temperature_l2″:0,”temperature_l3″:0,”temperature_l4″:0,”temperature_l5″:26}

How can I get these 4 sensors to report separately on l1, l2, l3, l4 ?

Harvey Specter
Posted at 07:18 November 9, 2020
Dmitry
Reply
Author

Thank you very match for your amazing job. Hope you’ll continue and we’ll see control of addressable led one day.

Harvey Specter
Posted at 09:31 November 7, 2020
Dave
Reply
Author

Hello!

Would it be possible to use Z-Stack 3.0.x? According to this: https://github.com/Koenkk/Z-Stack-firmware/tree/master/coordinator it would support more direct children.

I already use quite a few DIY routers with your firmware and it works flawlessly. (Thanks!) One thing that I noticed is that every router has only 5 routes at maximum. I have a pretty large network and possibility to increase routes number per router is really tempting. I feel that I may lack some “bandwidth” as all my DIY routers are already at their limits.

Cheers!

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

    Sorry, but I do not plan to use Z-Stack 3 for CC2530 and CC2531. I think ‘direct children’ are applicable for a coordinator only.

      Harvey Specter
      Posted at 11:40 November 10, 2020
      Dave
      Reply
      Author

      Ok, that’s fine. Thanks for such a quick reply! 🙂
      I’m not sure if ‘direct children’ are applicable to coordinator only. I just can’t tell because I use ConBee with deCONZ and see only 5 routes from DIY routers, routes for sensors are simply not shown in deCONZ.
      I will trust your knowledge cause I don’t have anything to back up my feeling 😉

      PS I’m looking forward to PSM! And thanks for recent update with “firmware for end devices (without routing)” – that will be much useful in some places.

      Harvey Specter
      Posted at 11:48 November 10, 2020
      Dave
      Reply
      Author

      PS I just wanted to donate, however I can’t do so via Yandex.
      It’s in Russian and I cannot change the language, and for some reason it does not accept my credit card. Please consider providing buymeacoffee.com or PayPal donation options. I will certainly back up your hard work 🙂

        Harvey Specter
        Posted at 12:22 November 10, 2020
        Owner
        Reply
        Author

        The page detects geolocation and shows the appropriate variant :-). Thank you for the info about buymeacoffee.com. I’ve added that button too.

          Harvey Specter
          Posted at 10:12 November 11, 2020
          Dave
          Author

          That’s great, thanks!

« Older Comments

Leave a Reply to mamra
Cancel Reply