running latest esphome, I made a change to my yaml (renamed device/hostname)
recompiled and uploaded. now the sensor data (power /wattage) is flooding my screen. “sending state 0.00000 W with 1 decimals of accuracy” about a million times
I changed logger level to INFO and this stopped. but now I don’t see any info at all. if i set to DEBUG, it goes back to the scrolling off the screen of the above mentioned statement.
is this a bug or is there a way to throttle? I don’t recall this behavior with previous versions of esphome.
Yes you can throttle, best to do this as a polled sensor (e.g. send very 30 seconds) with the option to send additional updates if there is a significant change (>> larger then your noise floor).
Share your device config if you want help with this.
sensor:
- platform: cse7766
current:
name: $devname "Current"
filters:
- or:
- throttle: 10s # periodic update interval
- delta: 5.0 # will send the value immediately if latest value is more than the last value by this amount
power:
name: $devname "Power"
filters:
- or:
- throttle: 10s # periodic update interval
- delta: 5.0 # will send the value immediately if latest value is more than the last value by this amount
Make sure you set the delta option to a sensible value. It must be more than the noise between readings, but not so high that it never triggers. It will be different for each of the sensors.
There is about +/- 0.02A noise on the signal. So the delta should be set higher than that. To catch big brief spikes like the one shown, a good setting would be delta: 0.1