Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [22:18:11][D][ina228:041]: read_s20_4_ 0x04, ret= 0, raw 0x00105900
- [22:18:11][D][ina228:167]: read_volt_shunt_ OK, 0x00000591, adc_range=0
- [22:18:11][D][sensor:094]: 'INA228 Shunt Voltage': Sending state 0.44531 mV with 5 decimals of accuracy
- [22:18:11][D][ina228:041]: read_s20_4_ 0x05, ret= 0, raw 0x00100000
- [22:18:11][D][ina228:182]: read_voltage_ OK, 0x00000001
- [22:18:11][D][sensor:094]: 'INA228 Bus Voltage': Sending state 0.00020 V with 5 decimals of accuracy
- [22:18:11][D][ina228:022]: read_u16_ 0x06, ret= 0, raw 0xE00B
- [22:18:11][D][ina228:195]: read_die_temp_ OK, 0x0BE0
- [22:18:11][D][sensor:094]: 'INA228 DIE Temperature': Sending state 23.75000 °C with 5 decimals of accuracy
- [22:18:11][D][ina228:041]: read_s20_4_ 0x07, ret= 0, raw 0x00004A00
- [22:18:11][D][ina228:204]: read_current_ is TRUE, 0x000004A0, current_lsb=0.000038
- [22:18:11][D][sensor:094]: 'INA228 Current': Sending state 0.04517 A with 5 decimals of accuracy
- [22:18:11][D][ina228:213]: read_power_1 ret= 0, 0x00040000
- [22:18:11][D][ina228:216]: read_power_2 ret= 0, 0x00000004
- [22:18:11][D][sensor:094]: 'INA228 Power': Sending state 0.00049 W with 5 decimals of accuracy
- [22:18:11][D][ina228:022]: read_u16_ 0x0B, ret= 0, raw 0x0320
- [22:18:11][D][ina228:264]: read_diagnostics_and_act_ OK, 0x2003
- [22:18:11][D][ina228:227]: read_energy_1 ret_err= 0, raw 0x3C00000000
- [22:18:11][D][ina228:231]: read_energy_2 ret_err= 0, 0x3C, current_lsb=0.000038, overflow_cnt=0
- [22:18:11][D][sensor:094]: 'INA228 Energy': Sending state 0.11719 J with 5 decimals of accuracy
- [22:18:11][D][ina228:243]: read_charge_1 ret_err= 0, 0xBCA7000000
- [22:18:11][D][ina228:255]: read_charge_2 ret_err=0, 0xA7BC, current_lsb=0.000038, overflow_cnt=0
- [22:18:11][D][sensor:094]: 'INA228 Charge': Sending state 1.63803 C with 5 decimals of accuracy
- [22:18:13][D][ina228:041]: read_s20_4_ 0x04, ret= 0, raw 0x00D05800
- [22:18:13][D][ina228:167]: read_volt_shunt_ OK, 0x0000058D, adc_range=0
- [22:18:13][D][sensor:094]: 'INA228 Shunt Voltage': Sending state 0.44406 mV with 5 decimals of accuracy
- [22:18:13][D][ina228:041]: read_s20_4_ 0x05, ret= 0, raw 0x00100000
- [22:18:13][D][ina228:182]: read_voltage_ OK, 0x00000001
- [22:18:13][D][sensor:094]: 'INA228 Bus Voltage': Sending state 0.00020 V with 5 decimals of accuracy
- [22:18:13][D][ina228:022]: read_u16_ 0x06, ret= 0, raw 0xDE0B
- [22:18:13][D][ina228:195]: read_die_temp_ OK, 0x0BDE
- [22:18:13][D][sensor:094]: 'INA228 DIE Temperature': Sending state 23.73438 °C with 5 decimals of accuracy
- [22:18:13][D][ina228:041]: read_s20_4_ 0x07, ret= 0, raw 0x00D04900
- [22:18:13][D][ina228:204]: read_current_ is TRUE, 0x0000049D, current_lsb=0.000038
- [22:18:13][D][sensor:094]: 'INA228 Current': Sending state 0.04505 A with 5 decimals of accuracy
- [22:18:13][D][ina228:213]: read_power_1 ret= 0, 0x00040000
- [22:18:13][D][ina228:216]: read_power_2 ret= 0, 0x00000004
- [22:18:13][D][sensor:094]: 'INA228 Power': Sending state 0.00049 W with 5 decimals of accuracy
- [22:18:13][D][ina228:022]: read_u16_ 0x0B, ret= 0, raw 0x0320
- [22:18:13][D][ina228:264]: read_diagnostics_and_act_ OK, 0x2003
- [22:18:13][D][ina228:227]: read_energy_1 ret_err= 0, raw 0x3C00000000
- [22:18:13][D][ina228:231]: read_energy_2 ret_err= 0, 0x3C, current_lsb=0.000038, overflow_cnt=0
- [22:18:13][D][sensor:094]: 'INA228 Energy': Sending state 0.11719 J with 5 decimals of accuracy
- [22:18:13][D][ina228:243]: read_charge_1 ret_err= 0, 0xF1B0000000
- [22:18:13][D][ina228:255]: read_charge_2 ret_err=0, 0xB0F1, current_lsb=0.000038, overflow_cnt=0
- [22:18:13][D][sensor:094]: 'INA228 Charge': Sending state 1.72794 C with 5 decimals of accuracy
- [22:18:14][D][api.connection:197]: ESPHome Logs 2023.12.7 (192.168.0.80) requested disconnected
- INFO Processing expected disconnect from ESPHome API for current-shunt @ 192.168.0.234
- WARNING Disconnected from API
- PS C:\_elektro\FVE\esphome> esphome run .\CurrentShunt.yaml
- INFO ESPHome 2023.12.7
- INFO Reading configuration .\CurrentShunt.yaml...
- INFO Updating https://github.com/latonita/esphome-ina228.git@None
- INFO Generating C++ source...
- INFO Compiling app...
- Processing current-shunt (board: esp32-c3-devkitm-1; framework: arduino; platform: platformio/espressif32@5.4.0)
- ------------------------------------------------------------------------------------------------------------------------Verbose mode can be enabled via `-v, --verbose` option
- CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/esp32-c3-devkitm-1.html
- PLATFORM: Espressif 32 (5.4.0) > Espressif ESP32-C3-DevKitM-1
- HARDWARE: ESP32C3 160MHz, 320KB RAM, 4MB Flash
- DEBUG: Current (cmsis-dap) External (cmsis-dap, esp-bridge, esp-builtin, esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa)
- PACKAGES:
- - framework-arduinoespressif32 @ 3.20005.220925 (2.0.5)
- - tool-esptoolpy @ 1.40400.0 (4.4.0)
- - toolchain-riscv32-esp @ 8.4.0+2021r2-patch5
- LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
- LDF Modes: Finder ~ off, Compatibility ~ soft
- Found 32 compatible libraries
- Scanning dependencies...
- Dependency Graph
- |-- WiFi @ 2.0.0
- |-- ESPmDNS @ 2.0.0
- |-- Update @ 2.0.0
- |-- Wire @ 2.0.0
- Building in release mode
- Retrieving maximum program size .pioenvs\current-shunt\firmware.elf
- Checking size .pioenvs\current-shunt\firmware.elf
- Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
- RAM: [= ] 11.1% (used 36292 bytes from 327680 bytes)
- Flash: [==== ] 44.9% (used 823060 bytes from 1835008 bytes)
- ============================================= [SUCCESS] Took 2.74 seconds =============================================
- INFO Successfully compiled program.
- INFO Resolving IP address of current-shunt.local
- INFO -> 192.168.0.234
- INFO Uploading .\.esphome\build/current-shunt\.pioenvs\current-shunt\firmware.bin (837104 bytes)
- Uploading: [============================================================] 100% Done...
- INFO Upload took 9.51 seconds, waiting for result...
- INFO OTA successful
- INFO Successfully uploaded program.
- INFO Starting log output from current-shunt.local using esphome API
- INFO Successfully connected to current-shunt @ 192.168.0.234 in 2.769s
- INFO Successful handshake with current-shunt @ 192.168.0.234 in 0.106s
- [22:18:34][I][app:102]: ESPHome version 2023.12.7 compiled on Jan 18 2024, 22:12:25
- [22:18:34][I][app:104]: Project tahc81.current-shunt version 1.0.0
- [22:18:34][C][wifi:573]: WiFi:
- [22:18:34][C][wifi:405]: Local MAC: C0:4Exxx
- [22:18:34][C][wifi:410]: SSID: 'xxxx'
- [22:18:34][C][wifi:411]: IP Address: 192.168.0.234
- [22:18:34][C][wifi:413]: BSSID: FC:3xxx
- [22:18:34][C][wifi:414]: Hostname: 'current-shunt'
- [22:18:34][C][wifi:416]: Signal strength: -77 dB ▂▄▆█
- [22:18:34][C][wifi:420]: Channel: 1
- [22:18:34][C][wifi:421]: Subnet: 255.255.255.0
- [22:18:34][C][wifi:422]: Gateway: 192.168.0.1
- [22:18:34][C][wifi:423]: DNS1: 192.168.0.102
- [22:18:34][C][wifi:424]: DNS2: 8.8.8.8
- [22:18:34][C][logger:439]: Logger:
- [22:18:34][C][logger:440]: Level: DEBUG
- [22:18:34][C][logger:441]: Log Baud Rate: 115200
- [22:18:34][C][logger:443]: Hardware UART: USB_SERIAL_JTAG
- [22:18:34][C][i2c.arduino:053]: I2C Bus:
- [22:18:34][C][i2c.arduino:054]: SDA Pin: GPIO5
- [22:18:34][C][i2c.arduino:055]: SCL Pin: GPIO4
- [22:18:34][C][i2c.arduino:056]: Frequency: 400000 Hz
- [22:18:34][C][i2c.arduino:059]: Recovery: bus successfully recovered
- [22:18:34][I][i2c.arduino:069]: Results from i2c bus scan:
- [22:18:34][I][i2c.arduino:075]: Found i2c device at address 0x40
- [22:18:34][C][uptime.sensor:031]: Uptime Sensor 'Uptime Sensor'
- [22:18:34][C][uptime.sensor:031]: Device Class: 'duration'
- [22:18:34][C][uptime.sensor:031]: State Class: 'total_increasing'
- [22:18:34][C][uptime.sensor:031]: Unit of Measurement: 's'
- [22:18:34][C][uptime.sensor:031]: Accuracy Decimals: 0
- [22:18:34][C][uptime.sensor:031]: Icon: 'mdi:timer-outline'
- [22:18:34][C][ina228:276]: INA228:
- [22:18:34][C][ina228:277]: Address: 0x40
- [22:18:34][C][ina228:283]: Update Interval: 2.0s
- [22:18:34][C][ina228:284]: Shunt resistance = 0.001130 Ohm
- [22:18:34][C][ina228:285]: Max current = 40.000000 A
- [22:18:34][C][ina228:286]: ADCRANGE = 0 (±163.84 mV)
- [22:18:34][C][ina228:287]: Configured: CURRENT_LSB = 0.000038
- [22:18:34][C][ina228:288]: Configured: SHUNT_CAL = 564
- [22:18:34][C][ina228:290]: Shunt Voltage 'INA228 Shunt Voltage'
- [22:18:34][C][ina228:290]: Device Class: 'voltage'
- [22:18:34][C][ina228:290]: State Class: 'measurement'
- [22:18:34][C][ina228:290]: Unit of Measurement: 'mV'
- [22:18:34][C][ina228:290]: Accuracy Decimals: 5
- [22:18:34][C][ina228:291]: Bus Voltage 'INA228 Bus Voltage'
- [22:18:34][C][ina228:291]: Device Class: 'voltage'
- [22:18:34][C][ina228:291]: State Class: 'measurement'
- [22:18:34][C][ina228:291]: Unit of Measurement: 'V'
- [22:18:34][C][ina228:291]: Accuracy Decimals: 5
- [22:18:34][C][ina228:292]: Die Temperature 'INA228 DIE Temperature'
- [22:18:34][C][ina228:292]: Device Class: 'temperature'
- [22:18:34][C][ina228:292]: State Class: 'measurement'
- [22:18:34][C][ina228:292]: Unit of Measurement: '°C'
- [22:18:34][C][ina228:292]: Accuracy Decimals: 5
- [22:18:34][C][ina228:293]: Current 'INA228 Current'
- [22:18:34][C][ina228:293]: Device Class: 'current'
- [22:18:34][C][ina228:293]: State Class: 'measurement'
- [22:18:34][C][ina228:293]: Unit of Measurement: 'A'
- [22:18:34][C][ina228:293]: Accuracy Decimals: 5
- [22:18:34][C][ina228:294]: Power 'INA228 Power'
- [22:18:34][C][ina228:294]: Device Class: 'power'
- [22:18:34][C][ina228:294]: State Class: 'measurement'
- [22:18:34][C][ina228:294]: Unit of Measurement: 'W'
- [22:18:34][C][ina228:294]: Accuracy Decimals: 5
- [22:18:34][C][ina228:295]: Energy 'INA228 Energy'
- [22:18:34][C][ina228:295]: Device Class: 'energy'
- [22:18:34][C][ina228:295]: State Class: 'measurement'
- [22:18:34][C][ina228:295]: Unit of Measurement: 'J'
- [22:18:34][C][ina228:295]: Accuracy Decimals: 5
- [22:18:34][C][ina228:296]: Charge 'INA228 Charge'
- [22:18:34][C][ina228:296]: Device Class: 'energy'
- [22:18:34][C][ina228:296]: State Class: 'measurement'
- [22:18:34][C][ina228:296]: Unit of Measurement: 'C'
- [22:18:34][C][ina228:296]: Accuracy Decimals: 5
- [22:18:34][C][restart:068]: Restart Switch 'ESP32-CS restart'
- [22:18:34][C][restart:070]: Icon: 'mdi:restart'
- [22:18:34][C][restart:091]: Restore Mode: always OFF
- [22:18:34][C][mdns:115]: mDNS:
- [22:18:34][C][mdns:116]: Hostname: current-shunt
- [22:18:34][C][ota:097]: Over-The-Air Updates:
- [22:18:34][C][ota:098]: Address: current-shunt.local:3232
- [22:18:34][C][api:139]: API Server:
- [22:18:34][C][api:140]: Address: current-shunt.local:6053
- [22:18:34][C][api:144]: Using noise encryption: NO
- [22:18:34][C][wifi_signal.sensor:009]: WiFi Signal 'WiFi Signal Sensor'
- [22:18:34][C][wifi_signal.sensor:009]: Device Class: 'signal_strength'
- [22:18:34][C][wifi_signal.sensor:009]: State Class: 'measurement'
- [22:18:34][C][wifi_signal.sensor:009]: Unit of Measurement: 'dBm'
- [22:18:34][C][wifi_signal.sensor:009]: Accuracy Decimals: 0
- [22:18:34][C][wifi_info:009]: WifiInfo IPAddress 'ESP IP Address'
- [22:18:34][C][wifi_info:011]: WifiInfo SSID 'ESP Connected SSID'
- [22:18:34][D][ina228:041]: read_s20_4_ 0x04, ret= 0, raw 0x00601600
- [22:18:34][D][ina228:167]: read_volt_shunt_ OK, 0x00000166, adc_range=0
- [22:18:34][D][sensor:094]: 'INA228 Shunt Voltage': Sending state 0.11187 mV with 5 decimals of accuracy
- [22:18:34][D][ina228:041]: read_s20_4_ 0x05, ret= 0, raw 0x0070000C
- [22:18:34][D][ina228:182]: read_voltage_ OK, 0x0000C007
- [22:18:34][D][sensor:094]: 'INA228 Bus Voltage': Sending state 9.60137 V with 5 decimals of accuracy
- [22:18:34][D][ina228:022]: read_u16_ 0x06, ret= 0, raw 0xE70B
- [22:18:34][D][ina228:195]: read_die_temp_ OK, 0x0BE7
- [22:18:34][D][sensor:094]: 'INA228 DIE Temperature': Sending state 23.80469 °C with 5 decimals of accuracy
- [22:18:34][D][ina228:041]: read_s20_4_ 0x07, ret= 0, raw 0x0030A000
- [22:18:34][D][ina228:204]: read_current_ is TRUE, 0x00000A03, current_lsb=0.000038
- [22:18:34][D][sensor:094]: 'INA228 Current': Sending state 0.09777 A with 5 decimals of accuracy
- [22:18:34][D][ina228:213]: read_power_1 ret= 0, 0x000E1F00
- [22:18:34][D][ina228:216]: read_power_2 ret= 0, 0x00001F0E
- [22:18:34][D][sensor:094]: 'INA228 Power': Sending state 0.97046 W with 5 decimals of accuracy
- [22:18:34][D][ina228:022]: read_u16_ 0x0B, ret= 0, raw 0x0320
- [22:18:34][D][ina228:264]: read_diagnostics_and_act_ OK, 0x2003
- [22:18:34][D][ina228:227]: read_energy_1 ret_err= 0, raw 0x3B0E000000
- [22:18:34][D][ina228:231]: read_energy_2 ret_err= 0, 0xE3B, current_lsb=0.000038, overflow_cnt=0
- [22:18:34][D][sensor:094]: 'INA228 Energy': Sending state 7.11523 J with 5 decimals of accuracy
- [22:18:34][D][ina228:243]: read_charge_1 ret_err= 0, 0x4F2A010000
- [22:18:34][D][ina228:255]: read_charge_2 ret_err=0, 0x12A4F, current_lsb=0.000038, overflow_cnt=0
- [22:18:35][D][api:102]: Accepted 192.168.0.101
- [22:18:35][D][api.connection:1121]: Home Assistant 2024.1.2 (192.168.0.101): Connected successfully
- [22:18:37][D][ina228:041]: read_s20_4_ 0x04, ret= 0, raw 0x00701600
- [22:18:37][D][ina228:167]: read_volt_shunt_ OK, 0x00000167, adc_range=0
- [22:18:37][D][sensor:094]: 'INA228 Shunt Voltage': Sending state 0.11219 mV with 5 decimals of accuracy
- [22:18:37][D][ina228:041]: read_s20_4_ 0x05, ret= 0, raw 0x00A0FB0B
- [22:18:37][D][ina228:182]: read_voltage_ OK, 0x0000BFBA
- [22:18:37][D][sensor:094]: 'INA228 Bus Voltage': Sending state 9.58633 V with 5 decimals of accuracy
- [22:18:37][D][ina228:022]: read_u16_ 0x06, ret= 0, raw 0xE80B
- [22:18:37][D][ina228:195]: read_die_temp_ OK, 0x0BE8
- [22:18:37][D][sensor:094]: 'INA228 DIE Temperature': Sending state 23.81250 °C with 5 decimals of accuracy
- [22:18:37][D][ina228:041]: read_s20_4_ 0x07, ret= 0, raw 0x0030A500
- [22:18:37][D][ina228:204]: read_current_ is TRUE, 0x00000A53, current_lsb=0.000038
- [22:18:37][D][sensor:094]: 'INA228 Current': Sending state 0.10082 A with 5 decimals of accuracy
- [22:18:37][D][ina228:213]: read_power_1 ret= 0, 0x00D21D00
- [22:18:37][D][ina228:216]: read_power_2 ret= 0, 0x00001DD2
- [22:18:37][D][sensor:094]: 'INA228 Power': Sending state 0.93188 W with 5 decimals of accuracy
- [22:18:37][D][ina228:022]: read_u16_ 0x0B, ret= 0, raw 0x0320
- [22:18:37][D][ina228:264]: read_diagnostics_and_act_ OK, 0x2003
- [22:18:37][D][ina228:227]: read_energy_1 ret_err= 0, raw 0x112000000
- [22:18:37][D][ina228:231]: read_energy_2 ret_err= 0, 0x1201, current_lsb=0.000038, overflow_cnt=0
- [22:18:37][D][sensor:094]: 'INA228 Energy': Sending state 9.00195 J with 5 decimals of accuracy
- [22:18:37][D][ina228:243]: read_charge_1 ret_err= 0, 0x843E010000
- [22:18:37][D][ina228:255]: read_charge_2 ret_err=0, 0x13E84, current_lsb=0.000038, overflow_cnt=0
- [22:18:37][D][sensor:094]: 'INA228 Charge': Sending state 3.11050 C with 5 decimals of accuracy
- [22:18:39][D][ina228:041]: read_s20_4_ 0x04, ret= 0, raw 0x00601600
- [22:18:39][D][ina228:167]: read_volt_shunt_ OK, 0x00000166, adc_range=0
- [22:18:39][D][sensor:094]: 'INA228 Shunt Voltage': Sending state 0.11187 mV with 5 decimals of accuracy
- [22:18:39][D][ina228:041]: read_s20_4_ 0x05, ret= 0, raw 0x0070F70B
- [22:18:39][D][ina228:182]: read_voltage_ OK, 0x0000BF77
- [22:18:39][D][sensor:094]: 'INA228 Bus Voltage': Sending state 9.57324 V with 5 decimals of accuracy
- [22:18:39][D][ina228:022]: read_u16_ 0x06, ret= 0, raw 0xE90B
- [22:18:39][D][ina228:195]: read_die_temp_ OK, 0x0BE9
- [22:18:39][D][sensor:094]: 'INA228 DIE Temperature': Sending state 23.82031 °C with 5 decimals of accuracy
- [22:18:39][D][ina228:041]: read_s20_4_ 0x07, ret= 0, raw 0x0030A500
- [22:18:39][D][ina228:204]: read_current_ is TRUE, 0x00000A53, current_lsb=0.000038
- [22:18:39][D][sensor:094]: 'INA228 Current': Sending state 0.10082 A with 5 decimals of accuracy
- [22:18:39][D][ina228:213]: read_power_1 ret= 0, 0x004F1D00
- [22:18:39][D][ina228:216]: read_power_2 ret= 0, 0x00001D4F
- [22:18:39][D][sensor:094]: 'INA228 Power': Sending state 0.91589 W with 5 decimals of accuracy
- [22:18:39][D][ina228:022]: read_u16_ 0x0B, ret= 0, raw 0x0320
- [22:18:39][D][ina228:264]: read_diagnostics_and_act_ OK, 0x2003
- [22:18:39][D][ina228:227]: read_energy_1 ret_err= 0, raw 0xBF15000000
- [22:18:39][D][ina228:231]: read_energy_2 ret_err= 0, 0x15BF, current_lsb=0.000038, overflow_cnt=0
- [22:18:39][D][sensor:094]: 'INA228 Energy': Sending state 10.87305 J with 5 decimals of accuracy
- [22:18:39][D][ina228:243]: read_charge_1 ret_err= 0, 0x9552010000
- [22:18:39][D][ina228:255]: read_charge_2 ret_err=0, 0x15295, current_lsb=0.000038, overflow_cnt=0
- [22:18:39][D][sensor:094]: 'INA228 Charge': Sending state 3.30647 C with 5 decimals of accuracy
- [22:18:39][D][api.connection:197]: ESPHome Logs 2023.12.7 (192.168.0.80) requested disconnected
Add Comment
Please, Sign In to add comment