The dashboard visualizes data from a home power station by subscribing to MQTT topics published by rscp2mqtt.
Instead of installing the package, you can simply use an existing Docker image.
- a running rscp2mqtt instance (https://github.com/pvtom/rscp2mqtt), v3.8 or higher
- an existing MQTT broker (TLS is supported)
- an installation of Node-RED (https://nodered.org) including the modules "node-red-dashboard" and "node-red-contrib-aggregator" or
- a Docker environment on your system
Please follow the installation steps on the Node-RED homepage.
Import the file dashboard_flow.json, adjust the broker settings in one of the mqtt nodes and deploy the changes
or
set the parameters as environment variables and start the prepare script (i.e. with bash):
export MQTT_BROKER="localhost"
export TOPIC_PREFIX="e3dc"
cp -a flows.json.template flows.json
./prepare.sh flows.json
afterwards import flows.json into NODE-RED.
These MQTT parameters are available:
- MQTT_BROKER
- MQTT_PORT
- MQTT_CLIENT_ID
- MQTT_USER
- MQTT_PASSWORD
- MQTT_USETLS
- MQTT_EMPTY_TLS_OBJ
- MQTT_TLS_CERT
- MQTT_TLS_KEY
- MQTT_TLS_CA
- MQTT_TLS_CERTNAME
- MQTT_TLS_KEYNAME
- MQTT_TLS_CANAME
- MQTT_TLS_SERVERNAME
- MQTT_TLS_VERIFYSERVERCERT
- MQTT_TLS_ALPNPROTOCOL
- TOPIC_PREFIX
Value ranges can be adjusted with the following parameters:
- MAX_SOLAR_POWER
- MAX_HOME_POWER
- MAX_GRID_POWER
- MAX_BATTERY_POWER
- MAX_STRING_POWER
- MAX_PHASE_POWER
- MAX_BATTERY_RESERVE
The dashboard will be accessible at http://<your_node_red_host>:1880/ui
The chart data is collected over the next 24 hours.