diyruz / AirSense

DIY Zigbee CO2 sensor

Home Page:https://modkam.ru/?p=1715

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sometimes both LED2 and LED3 blinking

doctor64 opened this issue · comments

Sensor SenseAir S8
Firmware 4.0.2 DIYRuZ_AirSense_Router_CC2591.hex
Firmware build date 18/01/2021 11:23
Firmware version 18/01/2021 11:23
Sensor works without any noticeable problems, but sometimes both LED2 and LED3 start blinking for ~30 seconds. LED1 not blink in this time.
Looks like this happen only when detected CO2 concentration below first margin, ie below 1000 ppm. When detected level is higher LEDs works as expected.
I checked the sources and found only one place where both LEDs going to blink - in zstack-lib/mhz19.c, function uint16 MHZ19_Read(void). Possible, firmware incorrectly detect connected sensor?

Same shit on 4.0.2.
When CO2 level changed with low difference (I mean CO2 level close to constant), sometimes leds blinks fast (same as without CO2 sensor installed).
When CO2 level changed fast (ie window opened), leds never blinks as described.

commented

Can only confirm have the same problem

Sorry guys for my question, need help!
I still can't get the data, only - null!
But they are somewhere! On HA with a converter from this repo, I clicked something in the GUI zigbee2mqtt such messages in the log:

Received Zigbee message from 'CO2', type 'readResponse', cluster 'msCO2', data '{"516":1000}' from endpoint 1 with groupID 0
Info MQTT publish: topic 'zigbee2mqtt/CO2', payload '{"co2":null,"enable_abc":"ON","humidity":null,"humidity_offset":0,"led_feedback":"ON","linkquality ":112,"pressure":null,"pressure_offset":0,"temperature":null,"temperature_offset":0,"threshold1":1000,"threshold2":2000}'
Debug Received MQTT message on 'zigbee2mqtt/CO2/get' with data '{"enable_abc":""}'
Debug Publishing get 'get' 'enable_abc' to 'CO2'
Debug Received Zigbee message from 'CO2', type 'readResponse', cluster 'msCO2', data '{"514":1}' from endpoint 1 with groupID 0

it turns out: msCO2', data '{"516":1000} get data, but they are not in the device display!