Magic Mirror module for displaying Growatt inverter data.
This module utilises the Growatt npm package to pull data from the Growatt API and display as a simple table on the Magic Mirror.
- Install MagicMirror
cd <MagicMirrorInstallation>/modules
git clone https://github.com/dekinet/MMM-Growatt.git
cd MMM-Growatt
npm install
There are a number of configuration options available:
Option | Default | Description |
---|---|---|
intervalSecs |
300 | Defines how often to poll the API for data. Don't do this too quickly, or your requests will be rejected by the server. |
plantName |
false | Display the plant name? |
lastUpdated |
true | Display the timestamp of the last time data was sent to the server by the inverter. |
currentPower |
true | Display the current power generated. |
dayTotalGenerated |
true | Display the amount of power generated today. |
monthTotalGenerated |
false | Display the amount of power generated this month. |
totalGenerated |
false | Display the total amount of power generated. |
In addition, the MM config file must include you Growatt server username and password. There are no default values for these.
An entry in the module configuration file might look like this:
{
module: "MMM-Growatt",
position: "top_right",
config: {
intervalSecs: 600,
plantName: true,
user: "my.username",
password: "123456",
},
- MagicMirror
- npm-growatt: Used to retrieve data from the Growatt API server.
A simple styles.css
file is included. The generated data utilises the following classes:
Class Name | Used |
---|---|
growatt-data |
The whole generated div |
growatt-table |
The table containing Growatt data |
growatt-row |
All rows in the table |
growatt-cell |
All cells in the table |
I only have access to one inverter, so recieved data from multiple interverters is not likely handled correctly. Fixes are welcome.