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.
Well, With history sensor I’m really confuse how to achieve what I want, would you be able to help me with some more inputs.
I tried the following but I’m not sure what to give in the state
- platform: history_stats
name: Power As of now
entity_id: sensor.solar_power
type: time
start: '{{ now().replace(hour=6).replace(minute=0).replace(second=0) }}'
duration:
hours: 12
Looking at it again, I may have leapt too soon. I assume Power (being in watts) is the power being delivered at a point in time. What you are wanting is total energy produced in watt hours, in other words an integral of the power over time. I probably should have pointed you here https://www.home-assistant.io/components/integration/
Can any one please help me what i need to change in the following script to connect to a particular MQTT Broker server and send messages there. instead of the native HA api:
I believe we can connect to a mqtt with the following, but than what to modify in the sensor part so it will push the messages to the mentioned mqtt broker !
Background:
My initial setup was working fine but after a month or so my Raspberry Pi 4 Memory card got corrupted, I replaced it with another one and after a month or so the other one was also got corrupted, I suspect that as my solar monitoring system sends chunks of messages to Rpi every seconds and it get written in the card the card is getting corrupted.
My workaround:
I had a spare android phone, so I hosted another instance of MQTT Broker and Home assistant in there it is dedicated to this solar monitoring system only. Now in here i want the Solar Monitoring system to send the messages to. but as it is a android device and HA not exactly suppose to with in such env. the discovery is not working properly, so i wanted a manual clear configuration for mqtt
When i tried the following my sensor is getting connected to the broker but not pushing any messages !! Please help what m I missing !!
Hi
I will build the same project. Can you help me wiring INA219 to esp8266 with solar panet and battery POWER (18650). I will know battery power (V) and current (A) and autonomy.
Can you help me ?
Regards
Giloris
Yes can you please post a wiring diagram of this. I am very interested in this setup since I have a few Solar panels around my farm. This would be great information to see.
How did you connect up the INA219? When I tried it seemed to limit the current going to the battery as I had to use thin wires to connect into the device.