Start Miele@Home appliances when your SolarEdge inverter produces surplus power.
Why should you want to use this point-to-point integration between your inverter and household devices when more flexible solutions like openHAB.org, FHEM, ioBroker.net, home-assistant.io, etc. exist?
This can be done without opening the inverter. See documentation.
The tool uses the Miele 3rd Party API to communicate with your appliances and requires
API credentials to do so. You can request access at https://www.miele.com/f/com/en/register_api.aspx.
Pass the obtained credentials and your Miele@Home account through MIELE_USERNAME
, MIELE_PASSWORD
, MIELE_CLIENT_ID
,
and MIELE_CLIENT_SECRET
environment variables to mielesolar
.
mielesolar
There are several options to run the tool on a variety of machines, including Raspberry Pi or common NAS hardware. Set
the vg
parameter to the locale where you registered your Miele@Home account, e.g. de-DE
or de-CH
.
go install github.com/ingmarstein/mielesolar
MIELE_USERNAME=xxx MIELE_PASSWORD=xxx MIELE_CLIENT_ID=xxx MIELE_CLIENT_SECRET=xxx mielesolar -inverter $IP -port 502 -vg de-DE -auto 500
docker run --env MIELE_USERNAME=xxx --env MIELE_PASSWORD=xxx --env MIELE_CLIENT_ID=xxx --env MIELE_CLIENT_SECRET=xxx ingmarstein/mielesolar -inverter $IP -port 502 -vg de-DE -auto 500
Alternatively, use the included docker-compose.yml
file as a template if you prefer to use Docker Compose.
Settings
option.Package Sources
tab.Add
Name
section enter Mielesolar
Location
section enter https://ingmarstein.github.io/mielesolar/
OK
Mielesolar
Mielesolar
package then select Install
Agree
when warned about using a package from an unknown publisherDone
to confirm installationIf you upgrade your existing Mielesolar package, no changes will be made to the
mielesolar.conf
file. If you want to overwrite yourmielesolar.conf
configuration with the default one, please uninstall and install the package again.
You can customize the configuration of Mielesolar by using the config file at
/var/packages/mielesolar/target/mielesolar.conf
.
Please stop the package before changing the configuration.
If you have edited the configuration while Mielesolar is running, please restart the Mielesolar package.
When starting your dishwasher, washing machine, tumbler, etc. use the "SmartStart" option which delays the start of a
program until enough solar power is generated or until a specified time, whichever comes first. If this is not
available, enable the SmartGrid option. mielesolar
will find the devices in the PROGRAMMED_WAITING_TO_START
state
and start them whenever your SolarEdge inverter signals sufficient power generation.
A configuration file can be used to define a priority order in which to launch the appliances and to customize their power consumption.
In order to use the configuration file, don't use the -auto
parameter which otherwise defines a common power
consumption value for all appliances and replace it with -config $file
using the following format:
[
{
"id": "000xxxxxxxxx",
"name": "Washing Machine",
"power": 200
},
{
"id": "000yyyyyyyyy",
"name": "Tumble Dryer",
"power": 500
}
]
The order of the devices defines the priority, i.e. the order in which the devices are started if the inverter
produces surplus power.
In the example above, if 600 W power is available, mielesolar
would start the first device consuming 200 W, but the
remaining 400 W are not enough to also start the second.
The power values don't need to be exact and should be chosen large enough to not start the devices too early.
A device's identifier is also called "serial number" or "fabnumber" and can be found in the Miele@Home app (include the leading zeros).