This project contains four variations of scripts that can display Solar Production and Power Consumption as measured by an Enphase Envoy Communications Gateway.
solar.py connectes to an MQTT server and subscribes to production and consumption messages published by homeassistant and collected by a custom envoy integration. This variation was developed on a Raspberry Pi Zero W.
solar.py reads settings.json for a username, password and serial number. It then obtains a token from enlighten
and uses it to query envoy
locally for consumption and production information. This variotaion was developed on a Raspberry Pi 4, but it would run fine on a Zero W.
Written in CircutPython, code.py reads settings.toml for an ssid and password to make a wifi connecton. Simiar to the python version your username, password and serial number are used to obtain a token from enlighten
which is used to query envoy
locally for consumption and producion information. This variation was developed on a Raspberry Pi Pico W.
Written in CircutPython, code.py reads settings.toml for an ssid and password to make a wifi connecton. Similar to the python MQTT vairant it subscribes to production and consumption messages published by homeassistant and collected by a custom envoy integration. This variation was developed on a Raspberry Pi Pico W.
All four versions use PWM to drive analogue gauges with a 3v range.
I have been using this 15v meter from Amazon and converting them to 3v range by swapping out the internal 15kΩ resistor with a 3kΩ resistor.
face.svg is a bitmap to vector conversion of a screenshot of the designed I used in Cricut Design Space. Not ideal, but it should give you a place to start. (I could not find a way to directly export from Design Space.)