<script type="module">
import pimaticHomeConnect from 'https://cdn.skypack.dev/pimatic-home-connect';
</script>
README
pimatic-home-connect
Pimatic plugin for connecting Home-Connect devices to Pimatic
Installation
HOME-CONNECT
Create an application in your account on the developers site of Home-connect.
For the simulator usage Authorisation Code Grant Flow as authorisation type and http://localhost:3000/o2c as redirect uri. The ClientId and ClientSecret of this application must be used as clientIdSim and clientSecretSim in the plugin.
For live usage create another application and use Device Flow as authorisation type. The ClientId and ClientSecret of this application must be used as clientId and clientSecret in the plugin.
PIMATIC
install the plugin via the plugins page
add your credentials; clientId and clientSecret (for live) and clientIdSim and clientSecretSim (for simulator)
set the plugin in simulator or live (simulator = false)
restart Pimatic
create a HomeconnectManager device
start discovery and add discovered devices
The devices CoffeeMaker, Washer, DishWasher, Oven, Dryer, FridgeFreezer, Hood and CleaningRobot are implemented. In simulator mode the approval of the Home-Connect access rights is handled by the plugin. No popup screen!
In Live mode the approval is done via the gui. In the HomeconnectManager device the link in the label is used for the authentication uri.
Devices must be added via the device discovery.
All devices are of the HomeconnectDevice class.
Switching from Simulator mode to Live mode is done in the plugin config. After that a restart is required. Simulator devices are offline in Live mode and Live devices are offline in Simulator mode.
Actions
Actions can be executed via rules. The rule syntax is
homeconnect <device id or name> [start, startopts
lt;programOptionsVariable>, pause, resume, stop]
Whether an action is available, is depending on the device capabilities and the allowed control scope.
The used syntax for the program name, option name and option value must be exactly as defined in the api documentation. See the Programs and options for syntax definitions. For an example see the CoffeeMaker API-DOCS. For the name part after the last dot is used for the value its also the part after the last dots (in case of enum) or the value itself. If a program or option parameter is not used in the option variable, the current setting for that parameter is used.
For the interface with the Home-Connect api the homeconnect_api.js is used. This lib is written by Alexander Thoukydides.
Programs and options
The following program and options settings are the maximum available for a device. A specific type / brand of a device will probably use a subset of these values. See your device manual to check what is available for your device.