Hi Guys I’m making a DIY Solar power monitoring system for my small PV setup
I’ve used a NodeMCU and INA219 with ESPHome for this and the ESP Config is as following
esphome: name: solar_power_meter platform: ESP8266 board: nodemcuv2 wifi: ssid: "!SECRET" password: "!SECRET" # Enable logging logger: # Enable Home Assistant API api: ota: #Active I2C buss #Sprcify GPIO pins for ESP board used i2c: sda: 4 scl: 5 scan: True #current-voltage sensor sensor: - platform: ina219 address: 0x40 shunt_resistance: 0.1 ohm current: name: "Solar Current" accuracy_decimals: 3 filters: - multiply: 120 power: name: "Solar Power" filters: - multiply: 120 bus_voltage: name: "Bus Voltage" accuracy_decimals: 3 shunt_voltage: name: "Shunt Voltage" filters: - multiply: 120 accuracy_decimals: 3 max_voltage: 32.0V max_current: 3.2A update_interval: 1s
The INA219 sends the data in every 1 Seconds and I’m able to get the below output in my HA
Now I want to get a “so far accumulate power” and “Day wise accumulated power” generated by the PV system in my HA.
I believe that can be done by a custom sensor with some value template, but I’m no expert in this area, could any one please help me with the above request.