Trigger Miele SmartStart with SolarEdge inverters
100K+
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.
mielesolarThere 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 get 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.
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",
"power": 200
},
{
"id": "000yyyyyyyyy",
"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).
Content type
Image
Digest
sha256:88cdbaa89…
Size
5.4 MB
Last updated
almost 2 years ago
docker pull ingmarstein/mielesolar