Aqara temperature sensor dont give any info beside pressure
Since I switched from the CC2531 to the CC2530. My 2 temperature sensors only give the pressure. Very occasionally I do get a report of the temperature but it disappears again. I also get no notification of the humidity. The log (debug) can be seen via the link below. Have been trying for hours but no success.
https://docs.google.com/document/d/1Jgn3LXeBwNKABXBDFnQvoFN8ekpvQV0st2eZ9j84PyY/edit?usp=sharing
The CC2530 i use is: https://nl.aliexpress.com/item/CC2530-Zigbee-UART-Wireless-Core-Board-Development-Board-CC2530F256-Serial-Port-Wireless-Module-24MHz/32767470382.html
With: https://nl.aliexpress.com/item/ZigBee-CC2530-Sensor-Node-Baseboard-Functional-Module-Expansion-Board-USB-Port-24MHz-256KB/32767498002.html
Can you try repairing the device?
@Koenkk I have reinstalled home assistant with a backup before is used zigbee2mqtt and installed everything from scatch without old data from the cc2531 that i have used earlier. I have repaired one of the temperature senors but still the only info i got is the pressure.
Here is the new log https://docs.google.com/document/d/1mgcvilOgsXE3a7FNrizDup8033rRrAj4LUdifogASgg/edit?usp=sharing
@Koenkk When I look in the log file I see the information below. Could it be that the CC2530 gets through other locations than the CC2531? 1 is the battery, 100 the temperature, 101 the air humidity and 102 the pressure. What the other values ββare is not entirely clear to me.
2018-06-30T15:32:43.512Z - debug: Recieved zigbee message with data {"cid":"genBasic","data":{"65281":{"1":3005,"4":5032,"5":22,"6":[0,1],"10":0,"100":2637,"101":5869,"102":100316}}}
Are you sure these are the correct temperature and humidity values? Can you do some more tests with this? (e.g. blowing into the sensor should increase humidity to 90+ %)
The cluster is genBasic while for humidity/temperature msRelativeHumidity and msTemperatureMeasurement should be used.
@Koenkk I do not get that report constantly and it has been a while since the last time. So I can not test it by blowing in it. Also i can not reproduce this message. The problem is with both temperature sensors own. strange thing is at the beginning I see only the pressure and later I get also the battery info. I have repaired the sensor again after deleting all the info . Below the log of this. Strange is with the CC2531 the problem is not present.
spinlock: false []
2018-7-1 08:32:13 DEBUG Recieved zigbee message with data {"cid":"msPressureMeasurement","data":{"16":10048,"20":-1,"measuredValue":1004}}
2018-7-1 08:32:13 INFO New device with address 0x00158d00022c9452 connected!
2018-7-1 08:32:13 INFO MQTT publish, topic: 'zigbee2mqtt/bridge/log', payload: '{"type":"device_connected","message":"0x00158d00022c9452"}'
2018-7-1 08:32:16 DEBUG Recieved zigbee message with data {"cid":"msPressureMeasurement","data":{"16":10048,"20":-1,"measuredValue":1004}}
2018-7-1 08:32:16 INFO MQTT publish, topic: 'homeassistant/sensor/0x00158d00022c9452/temperature/config', payload: '{"unit_of_measurement":"Β°C","icon":"mdi:temperature-celsius","value_template":"{{ value_json.temperature }}","json_attributes":["battery","voltage"],"state_topic":"zigbee2mqtt/0x00158d00022c9452","availability_topic":"zigbee2mqtt/bridge/state","name":"0x00158d00022c9452_temperature","unique_id":"0x00158d00022c9452_temperature_zigbee2mqtt"}'
2018-7-1 08:32:16 INFO MQTT publish, topic: 'homeassistant/sensor/0x00158d00022c9452/humidity/config', payload: '{"unit_of_measurement":"%","icon":"mdi:water-percent","value_template":"{{ value_json.humidity }}","json_attributes":["battery","voltage"],"state_topic":"zigbee2mqtt/0x00158d00022c9452","availability_topic":"zigbee2mqtt/bridge/state","name":"0x00158d00022c9452_humidity","unique_id":"0x00158d00022c9452_humidity_zigbee2mqtt"}'
2018-7-1 08:32:17 INFO MQTT publish, topic: 'homeassistant/sensor/0x00158d00022c9452/pressure/config', payload: '{"unit_of_measurement":"Pa","icon":"mdi:speedometer","value_template":"{{ value_json.pressure }}","json_attributes":["battery","voltage"],"state_topic":"zigbee2mqtt/0x00158d00022c9452","availability_topic":"zigbee2mqtt/bridge/state","name":"0x00158d00022c9452_pressure","unique_id":"0x00158d00022c9452_pressure_zigbee2mqtt"}'
2018-7-1 08:32:17 INFO MQTT publish, topic: 'zigbee2mqtt/0x00158d00022c9452', payload: '{"pressure":1004}'
2018-7-1 08:32:19 DEBUG Recieved zigbee message with data "0x00158d00022c9452"
2018-7-1 08:32:23 DEBUG Recieved zigbee message with data "0x00158d00022c9452"
2018-7-1 08:32:26 DEBUG Recieved zigbee message with data "0x00158d00022c9452"
2018-7-1 08:32:29 DEBUG Recieved zigbee message with data "0x00158d00022c9452"
2018-7-1 08:32:32 DEBUG Recieved zigbee message with data "0x00158d00022c9452"
2018-7-1 08:32:36 DEBUG Recieved zigbee message with data "0x00158d00022c9452"
2018-7-1 08:32:39 DEBUG Recieved zigbee message with data "0x00158d00022c9452"
2018-7-1 08:32:39 DEBUG Recieved zigbee message with data "0x00158d00022c9452"
2018-7-1 08:32:39 INFO Device incoming...
2018-7-1 08:32:39 INFO MQTT publish, topic: 'zigbee2mqtt/bridge/log', payload: '{"type":"pairing","message":"device incoming"}'
2018-7-1 08:32:39 DEBUG Recieved zigbee message with data "online"
2018-7-1 08:32:42 DEBUG Recieved zigbee message with data {"cid":"msPressureMeasurement","data":{"16":10047,"20":-1,"measuredValue":1004}}
2018-7-1 08:32:42 INFO MQTT publish, topic: 'zigbee2mqtt/0x00158d00022caa0f', payload: '{"pressure":1004}'
2018-7-1 08:32:45 DEBUG Recieved zigbee message with data {"cid":"msPressureMeasurement","data":{"16":10048,"20":-1,"measuredValue":1004}}
2018-7-1 08:32:45 INFO MQTT publish, topic: 'zigbee2mqtt/0x00158d00022c9452', payload: '{"pressure":1004}'
Can you try with the following firmware: https://drive.google.com/open?id=1EXQu6JQIUkamt-1bIsCmOV5FmjCFLQvl
@Koenkk This version of the firmware is not working. When i flash the board only 1 of the 4 leds (see pictures on this link ) on de baseboard light up. This is the error i got:
[Info] Configuration file found. Will overwrite configurable fields with values from add-on configuration
[Info] Configuration written to /share/zigbee2mqtt/configuration.yaml
[2018-07-01 13:03:59] PM2 log: Launching in no daemon mode
[2018-07-01 13:03:59] PM2 log: Starting execution sequence in -fork mode- for app name:npm id:0
[2018-07-01 13:03:59] PM2 log: App name:npm id:0 online
> [email protected] start /app
> node index.js
2018-7-1 13:04:07 DEBUG Using zigbee-shepherd with settings:
{
"net": {
"panId": 6754,
"channelList": [
11
]
},
"dbPath": "/share/zigbee2mqtt/database.db",
"sp": {
"baudrate": 115200,
"rtscts": true
}
}
2018-7-1 13:04:07 INFO Starting zigbee2mqtt version 0.0.0 (commit #7cec5f2)
2018-7-1 13:04:07 INFO Starting zigbee-shepherd
2018-7-1 13:04:10 INFO Error while starting zigbee-shepherd, attemping to fix... (takes 60 seconds)
2018-7-1 13:05:10 INFO Starting zigbee-shepherd
2018-7-1 13:05:13 ERROR Error while starting zigbee-shepherd!
2018-7-1 13:05:13 ERROR Press the reset button on the stick (the one closest to the USB) and start again
2018-7-1 13:05:13 ERROR Failed to start
{"message":"request timeout","stack":"Error: request timeout
at CcZnp.<anonymous> (/app/node_modules/cc-znp/lib/ccznp.js:254:22)
at Object.onceWrapper (events.js:315:30)
at emitOne (events.js:116:13)
at CcZnp.emit (events.js:211:7)
at Timeout.<anonymous> (/app/node_modules/cc-znp/lib/ccznp.js:233:18)
at ontimeout (timers.js:475:11)
at tryOnTimeout (timers.js:310:5)
at Timer.listOnTimeout (timers.js:270:5)"}
@ptvoinfo do you know how to compile the ZNP firmware for CC2530?
@1981nick1982 can you try with this firmware: https://github.com/Koenkk/Z-Stack-firmware/tree/master/coordinator/CC2530/bin
@koenkk I am at work now but when i'm home I will give it a try.
@Koenkk The problem is still present. After flashing the CC2530 only 1 led is on. Maybe I'm downloading the file from Github incorrectly? I download the file by right-clicking on raw and then downloading the link.
@kirovilya does this firmware work for you?
@Koenkk I can not check this firmware (not have cc2530 now). Early I used this firmware https://github.com/kirovilya/files/blob/master/CC2530ZNP-Pro-Secure_LinkKeyJoin.hex
@1981nick1982 On my baseboard with cc2530+cc2591 1 red led is on too. And it works!
been moving from cc2531 to cc2530+cc2590, I've been encountering the same kind of issues.
I'm on vacation at the moment. When i'm back home this saterday i will give it another try.