Temperature / Humidity sensors not refreshing
See original GitHub issueDescribe the bug Sensors data does not updated after deploy.
To Reproduce Steps to reproduce the behavior: 0. Sorry for my English
- Added esp8266 (sonoff-tasmota via mqtt) with DHT11 (named in my case TEMP1 and HUM1)
- Added to HomeKit as two sensors
- Same mqtt topic added to HomeBridge via plugin, also 2 sensors (named HB-T1 and HB-H1)
- I can see mqtt data (and HomeKit payload) changed in debug section, but Home app still shows old values.
Expected behavior Sensors should update values in time.
Flow
[{"id":"3609d299.26b05e","type":"mqtt in","z":"e30f7e41.5db1f8","name":"","topic":"tele/nodemcu3/SENSOR","qos":"2","broker":"8ffaf78f.89bdb","x":130,"y":30,"wires":[["ab38bd31.515bf"]]},{"id":"ab38bd31.515bf","type":"json","z":"e30f7e41.5db1f8","name":"","property":"payload","action":"","pretty":true,"x":310,"y":30,"wires":[["6f10bc33.07b8fc","c94c3964.719798"]]},{"id":"6f10bc33.07b8fc","type":"template","z":"e30f7e41.5db1f8","name":"Temp","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"{{payload.DHT11.Temperature}}","output":"str","x":110,"y":140,"wires":[["4ce50a37.d60d14"]]},{"id":"c94c3964.719798","type":"template","z":"e30f7e41.5db1f8","name":"Hum","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"{{payload.DHT11.Humidity}}","output":"str","x":110,"y":190,"wires":[["b5466621.6cb0d"]]},{"id":"b5466621.6cb0d","type":"change","z":"e30f7e41.5db1f8","name":"","rules":[{"t":"move","p":"payload","pt":"msg","to":"payload.CurrentRelativeHumidity","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":280,"y":190,"wires":[["d64ce61d.69c8e8"]]},{"id":"d64ce61d.69c8e8","type":"homekit-service","z":"e30f7e41.5db1f8","bridge":"1f4da0a9.4023c7","name":"HUM1","serviceName":"HumiditySensor","topic":"","manufacturer":"ptath","model":"Default Model","serialNo":"Default Serial Number","characteristicProperties":"{}","x":450,"y":190,"wires":[["4ad25156.dee63"]]},{"id":"4ce50a37.d60d14","type":"change","z":"e30f7e41.5db1f8","name":"","rules":[{"t":"move","p":"payload","pt":"msg","to":"payload.CurrentTemperature","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":280,"y":140,"wires":[["7c5c5ca5.d4a694"]]},{"id":"7c5c5ca5.d4a694","type":"homekit-service","z":"e30f7e41.5db1f8","bridge":"1f4da0a9.4023c7","name":"TEMP1","serviceName":"TemperatureSensor","topic":"","manufacturer":"ptath","model":"Default Model","serialNo":"Default Serial Number","characteristicProperties":"{}","x":460,"y":140,"wires":[["4ad25156.dee63"]]},{"id":"4ad25156.dee63","type":"debug","z":"e30f7e41.5db1f8","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":620,"y":170,"wires":[]},{"id":"8ffaf78f.89bdb","type":"mqtt-broker","z":"","name":"dragon","broker":"192.168.1.10","port":"1883","clientid":"","usetls":false,"compatmode":true,"keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthRetain":"false","birthPayload":"","closeTopic":"","closeQos":"0","closeRetain":"false","closePayload":"","willTopic":"","willQos":"0","willRetain":"false","willPayload":""},{"id":"1f4da0a9.4023c7","type":"homekit-bridge","z":"","bridgeName":"villa-test","pinCode":"111-11-111","port":"","allowInsecureRequest":false,"manufacturer":"ptath","model":"raspberry pi zeroW","serialNo":"12345678"}]
Screenshots Same sensor in homekit-bridged (HUM1 — outdated data) and homebridge (HB-H1 — actual data)
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:14 (9 by maintainers)
Top Results From Across the Web
Aqara temperature/humidity sensor not updating - Domoticz
Hi all, I am running a zigbee network for a few months now, with zigbee2mqtt(z2m) and the domoticz domoticz-zigbee2mqtt-plugin.
Read more >Temperature And / Or Humidity Showing Dashes
If the temperature and / or humidity are showing dashes (–), and all of the other sensors are updating, it is possible the...
Read more >Zigbee: Aqara Temp/Humidity sensors not updating with BV ...
I've tried using two Xiaomi Aqara Temperature/Humidity sensors. While they were recognized, somehow I don't get any updates. Both are shown as ...
Read more >Xiaomi Aqara Sensors not "refreshing" : r/homeassistant - Reddit
In the Mi Home app every sensor works fine too. Any idea what could cause this? This is the temperature sensor, as you...
Read more >Sonoff TH16 temperature sensors stopped refreshing the ...
Looks to me like the temperature sensor is defective. Happened here too a while ago. After having replaced it all went back to...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@ptath I am gonna focus on fixing it now.
So after a week of testing the solution is to restart node-red after every redeploy. Then all works perfectly!