Skip to content

3. Energy Router as a standalone Python script

frtz13 edited this page Dec 10, 2022 · 1 revision

Installation

Copy EnergyRouter.py and EnergyRouterModel.ini to some folder. Copy or rename EnergyRouterModel.ini to EnergyRouter.ini.

Configuration

Edit EnergyRouter.ini

[grid] section

Enter the MQTT topic carrying the power reading of the energy meter.

[mqtt] section

Configure access to your MQTT broker.

[grid] section

Enter the MQTT topic, where the power consumption/injection of the household is available.

Please see below for more parameters.

Operation

Energy Router should permanently run in the background. You can use the screen utility while experimenting, and later launch it as a cron job.

The following parameters of the .ini file are updated once a minute during run-time, so you do not have to restart the Energy Router script every time, to try out different values:

  • from the [regulation] section: prop, integ, gridpower_bias,
  • from the [router] section: loglevel.

Clone this wiki locally