Comments (6)
A few theories.
I notice that the update frequency in your log is more frequent than 1 second. Note the update_frequency below. Double check your update frequency is >1.3s, since the DHT11 doesn't have a high refresh rate.
esphome seems to be operating correctly.
Other likely issue is a faulty sensor. Since they're so inexpensive, I'd just try a new sensor.
Maybe wiring issues. You could try adding the recommended resistor to the sensor.
- platform: dht
pin: GPIO33
temperature:
name: "Temperature"
id: console_fan_temperature
accuracy_decimals: 3
...
# the DHT11 can only be read every 1s. Use 1.3s to be safe.
update_interval: 1.3s
from esphome-fan-controller.
Thanks for the reply. The update interval is set at 1.3s from the original code. My feeling is that it is a signal integrity issue. I will occasionally experience warnings as follows:
[18:23:14][W][component:214]: Component dht.sensor took a long time for an operation (0.06 s).
[18:23:14][W][component:215]: Components should block for at most 20-30ms.
[18:23:15][D][sensor:094]: 'Temperature': Sending state 31.79999 °C with 3 decimals of accuracy
[18:23:15][D][sensor:094]: 'Fan Speed (PWM Voltage)': Sending state 20.55629 % with 1 decimals of accuracy
[18:23:15][D][sensor:094]: 'Humidity': Sending state 33.00000 % with 0 decimals of accuracy
[18:23:16][W][component:214]: Component dht.sensor took a long time for an operation (0.05 s).
[18:23:16][W][component:215]: Components should block for at most 20-30ms.
[18:23:17][D][sensor:094]: 'Temperature': Sending state 31.79999 °C with 3 decimals of accuracy
[18:23:17][D][sensor:094]: 'Fan Speed (PWM Voltage)': Sending state 20.55299 % with 1 decimals of accuracy
[18:23:17][D][sensor:094]: 'Humidity': Sending state 33.00000 % with 0 decimals of accuracy
[18:23:17][W][component:214]: Component dht.sensor took a long time for an operation (0.05 s).
[18:23:17][W][component:215]: Components should block for at most 20-30ms.
I have tried two sensors already with similar results. I do have one more from the package I can try. I will also try a 10k pull up since that's minimal effort with some clip leads. I'll provide an update after some tinkering.
from esphome-fan-controller.
Reporting back with my troubleshooting from this weekend. I have tried three different DHT11 sensor modules, but all appear to perform similarly where the temperature reading stops updating for some number of minutes. The 10k pull-up resistor made no noticeable effect, because I think the pull-up may already be included on the PCB of the module I am using.
The last DHT11 module I tried came from a different set ordered from Amazon. It appeared the HiLetGo-brand appeared to have the highest reviews. Using this module combined with shorter 3-inch jumpers wires (rather than the longer 6-inch wires I previous used) appeared to have an improved performance. I'm not sure if it s a better module or the shorter wires was the factor. But visually, the board looks identical to the no-brand-name modules I first used.
At this point I am unsure if the non-updating value is a defect of my board, or if it's actually standard operating function of the sensor. I would expect that the sensor to continue to provide new values since it reports 3-decimal point accuracy and it's highly unlikely that my networking cabinet is remaining to a thousandth-of-a-degree temperature stable. But I was thinking that perhaps the DHT11 has a minimum sensitivity and requires a change of several hundredths of a degree before reporting. I couldn't find any information to confirm with its very limited documentation. I ordered a BME280 module for delivery tomorrow to see if performs any better.
from esphome-fan-controller.
that graph shows it reducing to 88.2 not to 0.0?
My DHT-11
Perhaps your ESP32 board?
Is it really logging during that period or is the ESP32 locked up with memory issues during that period?
from esphome-fan-controller.
Try reducing the update frequency to every 10 seconds. Try a better sensor like the BME280
https://randomnerdtutorials.com/dht11-vs-dht22-vs-lm35-vs-ds18b20-vs-bme280-vs-bmp180/
from esphome-fan-controller.
Use a https://esphome.io/components/sensor/sht3xd.html for better data the dh11 is not that great.
from esphome-fan-controller.
Related Issues (20)
- Reduce flash writes? HOT 4
- Problems using Dallas sensor HOT 9
- Reading multiple tacho signals separate HOT 3
- Offset ?
- make fan stop spinning at zero HOT 44
- One console with two separate connected fans HOT 2
- LED strip control HOT 3
- Set the target temperature from an automation HOT 3
- Tacho connection in documentation HOT 1
- Additional fans HOT 10
- question about external temperature instead of built in dht HOT 1
- Fritzing Img ESP Pinouts? HOT 4
- Manual and thermostat fan control HOT 1
- constantly reboots HOT 13
- Two Sensors HOT 3
- Need advice: Still high temps. What RPM is good? HOT 1
- 3 wire fan HOT 3
- Can I do this project with a fan control with potentiometer? HOT 1
- min_power and max_power from input field HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from esphome-fan-controller.