This list of features becomes too long, and I’ve split it into several pages.

Main window

Comments
Harvey Specter
Posted at 03:25 December 2, 2020
Armand
Reply
Author

Hello,

Could your firmware be used to control a garage door opener via a relay? It would require activating and deactivating a GPIO for a (configurable?) time interval (e.g. 400 ms). I didn’t see the option.

Harvey Specter
Posted at 04:32 November 21, 2020
Karthick D
Reply
Author

last week exactly on 18th Nov

    Harvey Specter
    Posted at 05:39 November 30, 2020
    Karthick
    Reply
    Author

    Hi Is there any way to achieve the switch function?

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

      The firmware allows you to configure the Switch mode for an input.

        Harvey Specter
        Posted at 09:51 December 2, 2020
        Karthick
        Reply
        Author

        i tried configuring it in switch mode but it works for only ON function, I mean when the LED is turned OFF through app then we press the switch button it turns it ON but it should turn OFF when the button is released that is not happening

          Harvey Specter
          Posted at 11:13 December 2, 2020
          Owner
          Author

          Add the Toggle option.

          Harvey Specter
          Posted at 11:47 December 3, 2020
          Karthick
          Author

          Hi now i can achieve the switch function when use the older version of the configurable software, but it is not working when we generate hex through the latest version of software. Moreover i am looking for your support in a new project for that i am ready to pay, can you give me your email address so that i can send you the details

Harvey Specter
Posted at 08:24 November 20, 2020
Karthick
Reply
Author

Hi PTVO,

I am trying to implement a switch based ON-OFF using this firmware, i used the configuration as below;
Board type: CC2530 + CC2591
Device type: Router
Power saving mode (PSM): No
Default reporting interval (s): 60

Output pins:
P02: Output 1, GPIO, Pull-up, Remember state
P03: Output 2, GPIO, Pull-up, Remember state

Input pins:
P12: Input 1, GPIO, Pull-up, Switch, Link to out 1
P13: Input 2, GPIO, Pull-up, Switch, Link to out 2
but the switch input works as a toggle, could you please correct me if i am doing anything wrong?

    Harvey Specter
    Posted at 11:31 November 20, 2020
    Owner
    Reply
    Author

    The settings look good. When did you download the firmware?

Harvey Specter
Posted at 02:57 November 12, 2020
Wolfgang
Reply
Author

Great piece of software! 🙂
Do you think it‘s possible to add http://fastled.io library or do you already have plans to do so? This would open a whole new world B-)

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

    I’ve tried WS2812B. A separate firmware is required because these LEDs require a lot of memory. In theory, the firmware can support up to 144 LEDs only. I think it is better to use an Arduino for this task, and use my firmware as a UART-Zigbee bridge.

Harvey Specter
Posted at 20:29 November 6, 2020
Doublet
Reply
Author

Finally managed to get the extra features of the firm to work in HA. Here is my recent example for the trigger function:

– platform: mqtt
unique_id: test
name: “Test Switch”
state_topic: “zigbee2mqtt/0x00124b00097331f3”
command_topic: “zigbee2mqtt/0x00124b00097331f3/l1/set”
availability_topic: “zigbee2mqtt/bridge/state”
payload_off: “OFF”
payload_on: ‘{“trigger”: 10000}’
value_template: “{{ value_json.state_l1 }}”
optimistic: false
retain: true

    Harvey Specter
    Posted at 09:04 November 7, 2020
    Owner
    Reply
    Author

    Thank you for sharing!

    Harvey Specter
    Posted at 11:03 November 23, 2020
    Bloubul
    Reply
    Author

    Do you have to use MQTT or can you use the Zigbee HA integration instead?

      Harvey Specter
      Posted at 11:26 November 23, 2020
      Owner
      Reply
      Author

      I develop firmware for a Zigbee device. The higher-level system does not matter. You may use any of them. But I cannot consult how to add a device with my firmware to these systems because I use Zigbee2MQTT only.

Harvey Specter
Posted at 14:04 November 6, 2020
Antonio
Reply
Author

Hello,

maybe I’m doing something wrong but if I change the status of an output (sending the command to ZCL_CLUSTER_ID_GEN_ON_OFF) the device change its state correctly and immediately sends the relative status but the status is always 0 while if I read the status immediately afterwards through a read attributes or if I wait for the report interval the status is correct.

Another problem that i found is that I enable input1 to reset the device and hold down the button until the device restarts and release it after the device has restarted, pairing does not take place.

Can you verify if they are real bugs or i’m doing something wrong please?

Best regards.

Harvey Specter
Posted at 23:33 November 2, 2020
Evhen
Reply
Author

Hello.
There is a desire to control the SG90 servo. Is it possible to get a control signal directly from the firmware? For example, set two positions and switch between them, and the servo motor changed the angle of rotation.
Thanks!

    Harvey Specter
    Posted at 04:59 November 3, 2020
    Owner
    Reply
    Author

    I think the Bistable relay logic is similar to your desire. You may try it.

      Harvey Specter
      Posted at 11:04 November 3, 2020
      Evhen
      Reply
      Author

      Bistable relay mode will not work. The servo is controlled by changing the duty cycle of the PWM. Frequency 50 hertz, pulse length variation between 1000 (0 degrees) and 2000 (180 degrees) microseconds. I tried PWM mode, but the frequency of 1kHz is a lot. Can I lower the frequency? And it is better to immediately determine the upper and lower positions, and be able to switch between them or set the duration through z2m.

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

        Sorry, but my firmware cannot help then. You need a custom firmware.

Harvey Specter
Posted at 16:52 October 2, 2020
Luuk
Reply
Author

Hey! Like you project! I was wondering if you could help, ik wold like to make a 0-10v output controle by zigbee. Whate do you think is the best option, i need to gradualy set the voltige.

Hope you can help!

    Harvey Specter
    Posted at 09:10 October 3, 2020
    Owner
    Reply
    Author

    Hi! You may add a corresponding transitor for the GPIO output or use a relay.

Harvey Specter
Posted at 15:38 September 21, 2020
darksun
Reply
Author

Is it possible to produce this firmware for CC26X2R1 and CC1352P_2? I’m looking to turn a https://www.tindie.com/products/slaesh/cc2652-zigbee-coordinator-or-openthread-router/ stick into a Zigbee Router rather than a coordinator, I have CCS and IAR workbench and zstack I see the sample switch and sample light examples but not sure how I can implement everything from this great firmware

    Harvey Specter
    Posted at 03:23 September 22, 2020
    Owner
    Reply
    Author

    Unfortunately, CC26X2R1 and CC1352P_2 are fully different. It is necessary to create a firmware from scratch.

Harvey Specter
Posted at 12:03 September 16, 2020
kevin
Reply
Author

I find somthing if I publish on topic
zigbee2mqtt/0x00124b001d37a935/set
payload
{
“state”: “ON”
}
The output I1 light ON
but how can we do with the other output?

    Harvey Specter
    Posted at 12:54 September 16, 2020
    Owner
    Reply
    Author

    Hi. There is a mistake or typo. Replace “I1” to “l1”.

Harvey Specter
Posted at 09:27 September 16, 2020
lancereau kevin
Reply
Author

Hello, thanks for your configurator, it’s really an amazing tool. I use Jeedom and Z2M and i read all the input, but i can’t commands any ouput, i use the last firmware of Z2M maybe is the reason. I test lot of command with MQTT Explorer, as zigbee2mqtt/[FRIENDLY_NAME]/set { “state_I1”: “ON”} and other. maybe i miss something.
I test with alexa amazone and surprise it work with only one output.
You do a super project. Thanks a lot

    Harvey Specter
    Posted at 12:55 September 16, 2020
    Owner
    Reply
    Author

    Hi. The correct command { “state_l1”: “ON”} or { “state_l2”: “ON”} (the lower case “l” instead of upper case “I”).

Harvey Specter
Posted at 05:05 August 28, 2020
Richard
Reply
Author

Is it possible to configure so it doesn’t reset & unpair when the power is cycled a few times quickly, leaving only a long press on IN1 as the method to achieve that? I’ve had it where a momentary fault on the power line caused the device to unpair I think due to the turn power on/off 3x to unpair feature.

    Harvey Specter
    Posted at 05:12 August 28, 2020
    Owner
    Reply
    Author

    Sorry, but you cannot disable it.

Harvey Specter
Posted at 13:18 August 27, 2020
Giovanni C
Reply
Author

Hello, is there a way to use this firmware to controlo a curtain motor? this motors need to be powered either to close OR to open but NEVER both at same time, this is normally defined as INTERLOCK, it will be great to be able to have such option in this firwmare!!

    Harvey Specter
    Posted at 14:42 August 27, 2020
    Owner
    Reply
    Author

    Hello, You may use the Bistable relay outputs. It works in the similar way.

      Harvey Specter
      Posted at 16:53 December 3, 2020
      ermanue
      Reply
      Author

      I can’t see how to make a curtain work with the bistable.
      The curtain motor has two wires, which must be activated so that it moves in one direction or another, not an impulse, but continuously as long as you want it to move, so you would need two outputs for two relays, for example outputs 1 and 2, and two linked inputs, configured as a switch, and some option that prevents outputs 1 and 2 from being active simultaneously.
      This is what the Interlock option of the double Aqara relays does, preventing the two relays from operating at the same time.
      With the bistable, as far as I have been able to prove, I can only activate outputs 1 and 2 alternately, without controlling which one I want to activate, and only one pulse.
      Thanks anyway

Harvey Specter
Posted at 12:00 August 24, 2020
Paul Kanthak
Reply
Author

Hi, there is a typo in the description of “GPIO Outputs” – “zigbee2MQTT commands:

Payload: {“trigger”, 5000} -> the ‘,’ need to be changed to ‘:’ -> Payload: {“trigger”: 5000}

Thanks again for this excellent project!

    Harvey Specter
    Posted at 12:02 August 24, 2020
    Owner
    Reply
    Author

    Thank you! Fixed.

Harvey Specter
Posted at 18:37 August 23, 2020
John
Reply
Author

Can you add OUTPUT: True RMS?
I want to use ACS712 for AC current like this:
https://i1.wp.com/modkam.ru/wp-content/uploads/2020/01/Router-ULN-Google-Chrome-2020-01-20-13.46.08.jpg

    Harvey Specter
    Posted at 03:19 August 24, 2020
    Owner
    Reply
    Author

    Hi, ACS712 exists in the sensors list.

Harvey Specter
Posted at 18:03 August 19, 2020
Paul Kanthak
Reply
Author

Hi, I’m trying to use the UART interface with an Arduino Nano and have configured ‘Output 2’ of the CC2530 as described in your configuration specification. Unfortunately I can’t get it to work. Using the Zigbee2MQTT with topic “z2m/[friedly_name]/set/action” and payload “Hello paul” lead to the following error message:

Zigbee2MQTT:error 2020-08-19 19:48:33: Publish ‘set’ ‘action’ to ‘test’ failed: ‘Error: Write 0x00124b001efe861e/1 genMultistateValue({“14”:{“value”:”Hello paul”,”type”:66}}, {“timeout”:10000,”disableResponse”:false,”disableDefaultResponse”:true,”direction”:0,”srcEndpoint”:null,”reservedBits”:0,”manufacturerCode”:null,”transactionSequenceNumber”:null}) failed (Status ‘UNSUP_CLUSTER_COMMAND’)’
Zigbee2MQTT:info 2020-08-19 19:48:33: MQTT publish: topic ‘z2m/bridge/log’, payload ‘{“type”:”zigbee_publish_error”,”message”:”Publish ‘set’ ‘action’ to ‘test’ failed: ‘Error: Write 0x00124b001efe861e/1 genMultistateValue({\”14\”:{\”value\”:\”Hello paul\”,\”type\”:66}}, {\”timeout\”:10000,\”disableResponse\”:false,\”disableDefaultResponse\”:true,\”direction\”:0,\”srcEndpoint\”:null,\”reservedBits\”:0,\”manufacturerCode\”:null,\”transactionSequenceNumber\”:null}) failed (Status ‘UNSUP_CLUSTER_COMMAND’)'”,”meta”:{“friendly_name”:”test”}}’
Zigbee2MQTT:info 2020-08-19 19:48:45: MQTT publish: topic ‘z2m/test’, payload ‘{“state_l2″:”OFF”,”linkquality”:115,”state_l1″:”OFF”,”state_l3″:”OFF”,”state_l4″:”OFF”,”state_l5″:”OFF”,”state_l6″:”OFF”}’

To go ahead I need an idea how to solve this problem. Thanks in advance!

    Harvey Specter
    Posted at 12:27 August 20, 2020
    Paul Kanthak
    Reply
    Author

    OK, serial communication between CC2530 and Arduino is now in place!

    I figured out that the CC2530-P02 is the RX pin (INPUT) and P03 the TX pin (OUTPUT). From my understanding it is confusing as your configuration of the UART defines P02 as output.
    In addition it was necessary to configure ‘Output 1’ for the UART connection (using Output 2 was not working).
    Thanks a lot for your great project. It enables me to move now all my DIY sensors/actors into my Zigbee network.

    Harvey Specter
    Posted at 14:10 August 22, 2020
    Paul Kanthak
    Reply
    Author

    Hi, I’m using the UART interface with an Arduino to transmit several status to my Home Automation. Unfortunately I’m not able to send a JSON string as it seems that the firmware add a slash before the double quotes to escape these characters:

    MQTT publish: topic ‘z2m/sauna’, … ,”action”:”{\”1\”:\”ausgeschaltet\”}”}’
    MQTT publish: topic ‘z2m/sauna’, … ,”action”:”{\”2\”:\”offen\”}”}’
    MQTT publish: topic ‘z2m/sauna’, … ,”action”:”{\”4\”:\”28\”}”}’

    Any chance to change this behaviour???

      Harvey Specter
      Posted at 03:20 August 24, 2020
      Owner
      Reply
      Author

      Hi. The firmware does not escape anything. I can only add a data packet end to the data sent.

Harvey Specter
Posted at 21:15 August 7, 2020
Paul
Reply
Author

Hi, i am using your firmware tool to create own Zigbee devices like switches or temp/humidity sensors, all works fine 😉 Now i want to create UART communication between my Teensy 3.2 microcontroller and zigbee2mqtt (via CC2530 router).
My config looks like this:
Settings: https://ibb.co/VBMNqcZ
Expert: https://ibb.co/L6jyS3R
Device is properly (i think) recognizes by zigbee2mqtt but communication with UART does not work. If i send request to topic: zigbee2mqtt/my_device_id/set with payload: ‘{“action”: [2, 0, 0]}’ i see this error: https://ibb.co/rZwkqkh
Also i periodically(about 2-3s) receive this messages from my device: https://ibb.co/DM6fNQp
I connected P02 pin to RX in my microcontroller and PO3 to TX, on serial port there is no receiving any messages. I would be grateful for any help.
Best regards, Paul 🙂

    Harvey Specter
    Posted at 05:24 August 8, 2020
    Owner
    Reply
    Author

    1. Please, set the “Packet end” option to “None”.
    2. Ensure, that you are using the latest version of z2m.

      Harvey Specter
      Posted at 06:50 August 8, 2020
      Paul
      Reply
      Author

      Thank You for fast reponse 🙂 I set the “Packed end” option to “None” and result is the same: when i try send payload “11” to topic zigbee2mqtt/my_device_id/set/action i receive error. Also i receive random “action” data from cc2530 like previous.
      https://ibb.co/b7C7S5N
      Any idea what i am doing wrong?
      Best regards,
      Paul

        Harvey Specter
        Posted at 08:34 August 8, 2020
        Owner
        Reply
        Author

        Are you using the latest developers version of z2m? Are you using the latest version of the firmware?

          Harvey Specter
          Posted at 10:19 August 8, 2020
          Paul
          Author

          Yes, i am using the latest version of z2m and firmware tool.

          Harvey Specter
          Posted at 22:42 August 8, 2020
          Paul
          Author

          I found a solution, change UART pin to Output 1. It seems that UART does not work correctly on Output 5.

Harvey Specter
Posted at 21:34 August 4, 2020
dclobato
Reply
Author

First, thank you for the firmware. I have a CC2530+CC2591 devboard and I created a custom version of the firmware with no sensors, and just the LED on P24. After flashing the module, the flash attached to P24 and GND does not blink :-/ The configuration I have here is on https://paste.ubuntu.com/p/QbHPzwp328/

What can I be doing wrong?

    Harvey Specter
    Posted at 07:29 August 5, 2020
    Owner
    Reply
    Author

    Hmm. Usually, P24 is not available, because an external oscillator is connected to that pin. But I do not have a firmware for CC2530+CC2591 _without_ the oscillator.

      Harvey Specter
      Posted at 04:32 August 7, 2020
      dclobato
      Reply
      Author

      It worked! Used pin P03

Harvey Specter
Posted at 15:08 August 3, 2020
G
Reply
Author

I have created a firmware with only the Reporting LED feature enabled – the pinout of CC2531USB is available at https://www.ti.com/lit/ug/swru221a/swru221a.pdf . I tried two different variants, using both P00 and P11 for the reporting channel.

However, after flashing, it seems like the firmware is not booting properly. Sometimes the LED starts blinking, sometimes it doesn’t. Tried resetting the dongle with the “reset” button of the SmartRF40 and by power-cycling it, sometimes it works fine (LED starts blinking immediately), sometimes it starts blinking after an unpredictable amount of time, most of the time it doesn’t start at all.

Tested with multiple sticks, to exclude any hardware problem. Also tested the old router firmware, and it starts blinking every time I reset/power cycle the stick.

Any idea?

    Harvey Specter
    Posted at 07:34 August 5, 2020
    Owner
    Reply
    Author

    Please, try the firmware for CC2530 without oscillator.

      Harvey Specter
      Posted at 09:08 August 5, 2020
      G
      Reply
      Author

      That indeed did the trick, thanks!

Harvey Specter
Posted at 09:30 July 26, 2020
John
Reply
Author

Why bistable relay ON/OFF can’t work for OUTPUT1 and OUTPUT2?

    Harvey Specter
    Posted at 04:07 July 27, 2020
    Owner
    Reply
    Author

    Please, re-download the firmware. This bug has been fixed.

Harvey Specter
Posted at 07:25 July 26, 2020
John
Reply
Author

I want to control Nice Gates Motor.
It have inputs for a buttons: OPEN, CLOSE, STOP and State output for a lamp (open = 24V, close = 0V)

Instead of OPEN, CLOSE, STOP buttons I use simple relay + CC2530 gpio, Instead of lamp I use pc817 + CC2530 gpio. OPEN = P16, CLOSE = P13, STOP = P12.

Cause button press is impulse, I config ptvo with bistable relay.

Board type: CC2530 + CC2592
Power saving mode (PSM): No
Status LED: Yes (Inversed)
Default reporting interval (s): 30

Output pins:
P16: Output 3, Bistable relay ON, Pull-up (500, 0)
P13: Output 4, Bistable relay OFF, Pull-up (500)
P12: Output 5, Bistable relay ON, Pull-up (500, 0)
P17: Output 6, Bistable relay OFF, Pull-up (500)
P23: Output 7, GPIO, Pull-up

Input pins:
P04: Input 7, GPIO, Pull-up, Switch, Link to out 7

Trouble: I can’t config 3 bistable ON relay, only 2 is works.

Temp solution is Bistable1 ON = OPEN ( P16), Bistable1 OFF = CLOSE (P13), Bistable2 ON = STOP (P12).
But in rebooting Bistable1 is OFF and CLOSE command running. I dont want it.

Can you tell me how using 3 bistable relay ON in ptvo?

    Harvey Specter
    Posted at 04:11 July 27, 2020
    Owner
    Reply
    Author

    Hi. I see only two bistable relays in our configuration.

Harvey Specter
Posted at 07:04 July 26, 2020
John
Reply
Author

z2m works fine

Harvey Specter
Posted at 17:37 July 19, 2020
James
Reply
Author

Hi,

I have a CC2530 module and baseboard (Waveshare ZB502) that I have flashed with the latest version of the configurable firmware with settings as shown below:

Board type: CC2530
Power saving mode (PSM): No
Status LED: Yes (Inversed)

Output pins:
P14: Output 1, GPIO, Pull-up, Remember state
P04: Output 2, GPIO, Pull-up, Remember state
P11: Output 3, GPIO, Pull-up, Remember state
P12: Output 4, DS18B20, Pull-up (AA-BB-CC-DD-EE-FF-01-02)

Input pins:
P01: Input 1, GPIO, Pull-up, Switch, Link to out 1
P20: Input 2, GPIO, Pull-up, Switch, Link to out 2

There are two buttons connected to pins P0_1 and P2_0, two LEDs connected to pins P1_1 and P1_4, and a DS18B20 connected to pin P1_2. The board is connected to my zigbee2mqtt network and I am using MQTT Exporer to monitor the network and publish to devices.
when I press a button (P2_0) on the ZB502 board I get the following response:

ZB502_01 = {“state_bottom_left”:”OFF”,”linkquality”:126,”state_bottom_right”:”ON”,”state_top_left”:”OFF”,”state_undefined”:”ON”}

(Where ZB502_01 is the zigbee2mqtt friendly name.)

However, I am unable to publish to the device to get or set the state of the LEDs or buttons. I am using the following to try and set/get pin states:

zigbee2mqtt/ZB502_01/l1/set # turn a LED on
zigbee2mqtt/ZB502_01/l3/set/state:ON # turn a LED on
zigbee2mqtt/ZB502_01/l3/set/state:OFF # turn a LED off
zigbee2mqtt/ZB502_01/l1/get # read the state of button on l1
zigbee2mqtt/ZB502_01/l4/get # read the temperature form the DS18B20

None of these work. I have also tried sending commands from Node-Red but again, nothing seems to work. It appears the the CC2530 can transmit data but is not receiving commands. I am not sure if the is a hardware problem or if I am missing something in the configuration or MQTT publishing strings.

Any help or advice would be appreciated.

    Harvey Specter
    Posted at 03:33 July 20, 2020
    Owner
    Reply
    Author

    Hi. You use the old versoin of Z2M. In your case you should change l1->bottom_left, l3->bottom_right.

Harvey Specter
Posted at 14:18 July 14, 2020
John
Reply
Author

I flashed cc2530 + bmp280, try to use it in hassio.
Its cluster data error.
For ZHA no objects created with sensjrs data.
For Zigbee2Mqtt I see objects with any different data.

sensor.0x00124b001d38d3c6_linkquality
l6: 29.93
device: ’77’
temperature: 29.9
linkquality: 0
pressure: 99633
altitude: 141.8
humidity: 56.1
unit_of_measurement: lqi
friendly_name: ptvo_bmp280_linkquality
icon: ‘mdi:signal’

Can you fix Cluster arrays for bmp280?

    Harvey Specter
    Posted at 14:27 July 14, 2020
    Owner
    Reply
    Author

    Hi John,

    Clusters are correct if you see data in Z2M. You should add sensors in HA manually because it is not possible to create it for all possible configurations.
    Look here for examples: https://www.zigbee2mqtt.io/devices/ptvo.switch.html

      Harvey Specter
      Posted at 12:01 July 16, 2020
      Max
      Reply
      Author

      Hi,
      John has not tell clear about the problem. I clarify.
      There are one inconvenience and one bug.

      Inconvenience – all data reported in AnalogInput cluster – temperature, pressure etc, but in ZCL we have separate clusters for each values. So, some software not expect, for example, the temperature value inside AnalogInput cluster, but expect it in temperature cluster.

      Bug – when the sensor, connected to the some output, printed not one value (for example, BMP280 has 3 values – temperaure, humidity and pressure), the data transmited to coordinator under the same endpoint and cluster id. It is not possible in that situation to differenciate the values. The only difference – it is “description”, what makes it almost impossible to use that values in almost all software, which not do, of course, the synaxis analize of “description” attribute.

        Harvey Specter
        Posted at 13:29 July 16, 2020
        Owner
        Reply
        Author

        1. Unfortunately, I cannot implement a separate cluster for each the value type. It requires a lot of memory.
        2. See #2. Also, I did it for identical sensors on the same endpoint (DS18B20). Zigbee2MQTT can successfully parse this data.

Harvey Specter
Posted at 22:52 July 4, 2020
Alan
Reply
Author

Hi. Could you please clarify under the section GPIO Outputs / Zigbee2MQTT commands what would be the channel number of Output 1 with the configuration shown here: https://www.dropbox.com/s/qq1edgmqzifd0qz/ptvo%20configuration.jpg?dl=0

At the moment l1 is the Input 1 Counter and l2 is Input Temperature.

Also, Input 1 Counter is linked to Output 1. Does linking work for Counters? At the moment an LED on Output 1 is always ON but the Input 1 is low (OFF). [Output 1 Inverse is not selected].

Thank you
Alan

    Harvey Specter
    Posted at 11:33 July 10, 2020
    Owner
    Reply
    Author

    Hi Alan. The LED state may depend on your electronics. It may inverse the signal state.

      Harvey Specter
      Posted at 11:57 July 11, 2020
      Alan
      Reply
      Author

      Hi. I have simplified the circuit and made some more tests. I removed the Link from the Counter input to the LED output and made a new push button input with a link to the LED. So now I have:
      – Input 1(P0.3) Red Push Button 3.3v is config as Counter internal Pull-down (20k)
      – Input 2 (P0.2) is config as Internal Temperature – no external hardware
      – Input 3 (P0.4) Yellow Push Button 3.3v is config as GPIO internal Pull-down (20k) Inversed & Link to Output 3
      – Output 3 (P1.6) Red LED to Ground is config as GPIO internal Pull-down (20k) & Remember State
      Circuit diagram here: https://www.dropbox.com/s/xg2uus5my7cb4mv/CC2530%20Testing%20Circuit%20v3.jpg?dl=0
      Firmware config screen here: https://www.dropbox.com/s/3gq5nbxa76cjseo/ptvo%20configuration%20V3%20with%2010mins%20and%20Input%202.jpg?dl=0
      The firmware is set to report every 10 minutes.

      Testing:

      1. Input 1 Counter. Pressing push button increments counter as shown in the regular 10 min. reporting.
      But publishing message zigbee2mqtt/Solar S0 Counter/get/l1 + payload 1 FAILS with no converter available for ‘ptvo.switch’ with cluster ‘genAnalogInput’ and type ‘raw’ and data ‘{“type”:”Buffer”,”data”:[24,42,1,85,0,0,57,0,0,64,64,28,0,0,66]}’
      Devices.js for ptvo.switch here: https://www.dropbox.com/s/yt60eip4oasintt/Devices%20js%20definition%20for%20the%20ptvo%20switch%20re%20S0%20Counter.txt?dl=0
      Also resetting counter with ‘zigbee2mqtt/Solar S0 Counter/set/l1 ‘ with data ‘0’
      FAILS with error No converter available for ‘l1 ‘ (0)

      2. Input 2 Temperature with message zigbee2mqtt/Solar S0 Counter/get/l2 + payload 1 receives message with temperature OK: {“state_bottom_left”:”OFF”,”linkquality”:105, “state_bottom_right”:”OFF”,”l1″:6,”l2″:28,”temperature”:28,”state_top_left”:”OFF”,”l3″:32,”last_seen”:”2020-07-10T22:25:35.794Z”}

      3. Input 3 Pressing push button makes the LED come on when the button is released BUT it stays ON. Pressing push button again makes the LED go off when the button is released. Looks like the GPIO is behaving as a Latch not a momentary make/break circuit.
      Publishing zigbee2mqtt/Solar S0 Counter/get/l3 + payload 1 to get the push button state is OK: state is ON or OFF as shown by the LED.

      In summary.:
      1. Counter: Cannot read(get) or write(set) counter – errors “no converter available”
      2. GPIO push button input is acting as a latch switch

      Hope this helps. Many thanks.
      Alan

        Harvey Specter
        Posted at 12:11 July 13, 2020
        Owner
        Reply
        Author

        Hi,
        2. It seems you use an old version of z2m. It does not have the corresponding converter.
        3. Enable the ‘switch’ option and it will work as expected.

          Harvey Specter
          Posted at 22:16 July 14, 2020
          Alan
          Author

          Hi. I’m running zigbee2mqtt under docker. I installed the latest image 1.14.1 dated 2020-06-30 16:45:15. I still get the same error: “No converter available for ‘ptvo.switch'”. Here is a copy of the ptvo.switch entry in the devices.js file https://www.dropbox.com/s/hmsw8uxozmf764o/ptvo_switch_1_14_1.txt?dl=0 + the fromZigbee.js file https://www.dropbox.com/s/s1w4azpfusnbp11/ptvo_fromZigbee_1_14_1.txt?dl=0 + the toZigbee,js file https://www.dropbox.com/s/csysdqn1u7lkyni/ptvo_toZigbee_1_14_1.txt?dl=0

          Whilst this is all new to me, I see in the zigbee2mqtt log the response is:
          type ‘raw’, cluster ‘genAnalogInput’, data ‘{“type”:”Buffer”,”data”:[24,12,1,85,0 ……….
          whereas I was expecting to see something like:
          type ‘readResponse’, cluster ‘genAnalogInput’, data ‘{“presentValue”:123, “description”:”Counter”}’

          Maybe I need a new version of the firmware? I’m on cc2530_io_1.2.2a.44539_firmware

          Thanks,
          Alan

          Harvey Specter
          Posted at 20:39 July 22, 2020
          Alan
          Author

          Hi. I would appreciate if you have any further thoughts on getting the Counter function working. Thank you. Alan

          Harvey Specter
          Posted at 04:41 July 23, 2020
          Owner
          Author

          Hi Alan. I’ve tested the counter and it works.

Harvey Specter
Posted at 07:38 May 25, 2020
Andreas
Reply
Author

Leave a Reply