Closed mboremski closed 4 years ago
Can any body help me get averaging turned off?
add filters: []
to your component configuration.
Thank you. I added this to my config like that:
sensor:
- platform: ina3221
i2c_id: bus_a
address: 0x40
channel_1:
shunt_resistance: 1 ohm
current:
name: "Ch1 Current"
filters: []
power:
name: "Ch1 Power"
filters: []
bus_voltage:
name: "Ch1 Bus Voltage"
filters: []
shunt_voltage:
name: "Ch1 Shunt Voltage"
filters: []
Unfotunately there is no change in behavior of the values. They are still averaged.
This is caused by the default configuration of INA3221, it will use 1024 samples in average mode by default, you can change the config
in ina3221.cpp
(might be located in python_location/site-packages/esphome/components
) according to PR1102
Operating environment/Installation (Hass.io/Docker/pip/etc.):
ESP8266 / D1-Mini & ESP3221 via I2C
Affected component:
I tried to get my INA3221 running. It is giving me data, but has really slow responde when setting update_interval to 1 or 2 seconds.
Description of problem: Slow response. Data seem to be averaged.
Problem-relevant YAML-configuration entries:
Additional information and things you've tried: Here you can see a response with 1s update-Interval with a load of aprox 3A switched ON/OFF on Ch1: (1st running free / 2nd with a Reset of the node)