Get power generation from ZeverSolar Inverter and present it to front end as a sensor for Hass.IO
This AppDaemon application gets the generated solar power from a ZeverSolar Inverter and presents it to the front end of Hass.IO through a component.
Notes:
- Application is written for AppDaemon 4. (I have modified it for AppDaemon 4 but I can't really remember all the steps.)
- This will supersede my other project HA_AppDaemonZeverSolar as that project uses MQTT. This is a simpler implementation and has no reliance on MQTT.
- No changes need to be made to configuration.yaml as the component will appear to the Hass front end once it runs.
- I am running my Hass.IO on a Raspberry Pi.
- Reading is updated every 2 minutes (and this can be easily changed in the code).
To implement this sensor:
- Install AppDaemon 4.
- Configure AppDaemon and make sure that you can run the helloworld application.
- Download this code and put it into the "/config/appdaemon/apps/" folder in your Hass.IO device.
- In the code, you need to change the IP address to your ZeverSolar Inverter "zeverSolarURL".
- Data is updated every 2 minutes. Change the value of "refreshInterval" to have a different value.
- In your "/config/appdaemon/apps/apps.yaml" file, put in the following lines of code.
zeversolar_sensor:
module: appd_ZeverSolarSensor
class: ZeverSolarSensor
How do you know if its working?
- In your AppDaemon log screen, you should be able to see the log as below:
- In the Hass.IO, Developer Tools > States, you can see the below:
Examples of images:
Enjoy! 👍