Miele Baustein for Gira Homeserver (LBS 14360)
See the YouTube movie I made for some examples of what's possibe!
miele_v1.1.png
Inputs and Outputs
Input 1: Debug (0=off, 1=on, will only show output on the Homeserver VGA display or VMWare console when connected)
Input 2: Client ID (text)
Input 3: Client Secret (text)
Input 4: Username (text, i.e. email@mydomain.com )
Input 5: Password (text)
Input 6: Account Language (text, i.e. nl-NL or de-DE)
Input 7: Device (text, i.e. 56456456)
Input 8: Get All Devices (0/1, trigger)
Input 9: Get Device (0/1, trigger)
Input 10: Get Ident (0/1, trigger)
Input 11: Get State (0/1, trigger)
Input 12: Get Actions (0/1, trigger)
Input 13: Get Programs (0/1, trigger)
Input 14: Set JSON Actions (text, trigger. Can be any advanced action, example: {"targetTemperature":[{"zone":2,"value":-20}]} )
Input 15: Set JSON Programs (text, trigger. Can be any advanced Program, example: {"programId":24,"duration":[1,15],"temperature":220} )
Input 16: Set Power (0=off, 1=on, trigger)
Input 17: Set Light (0=off, 1=on, trigger)
Input 18: Set Color (text, can be: white, blue, red, yellow, orange, green, pink, purple or turquoise, trigger)
Input 19: Set Modes (0/1, 0=Normal operation mode, 1=Sabbath mode, trigger)
Input 20: Set DeviceName (text, modify the devicename, trigger)
Input 21: Set ProcessAction (numeric, 1=Start, 2=Stop, 3=Pause, 4=Start superfreezing, 5=Stop superfreezing, 6=Start supercooling, 7=Stop supercooling, trigger)
Input 22: Set VentilationStep (numeric, 1=Step1, 2=Step2, 3=Step3, 4=Step4, trigger)
Input 23: Set ProgramId (numeric, trigger. Trigger a Get Programs to see all available ProgramIds.)
Input 24: Get Rooms (0/1, both 0 and 1 will trigger. Get the Room information for the device (as on input 7) and write output to Output 11)
Input 25: Room: Set Map ID (numeric, will not trigger the clean room function! Only the Set Room ID will do that. This just sets the Map ID and is needed before setting the Room ID)
Input 26: Room: Set Room ID (numeric, any number will trigger the Clean Room function. The Room ID of the device (as on input 7) to clean)
Output 1: Error (0=no error, 1=an error occured)
Output 2: Error Text (text, detailed error text >14chars)
Output 3: Device Info (text >14chars, triggered by Input 8 or Input 9)
Output 4: Ident Info (text >14chars, triggered by Input 10)
Output 5: State Info (text >14chars, triggered by Input 11)
Output 6: Available Actions (text >14chars, triggered by Input 12)
Output 7: Available Programs (text >14chars, triggered by Input 13)
Output 8: Power (0=off, 1=on, triggered by Input 16 or Input 11)
Output 9: Light (0=off, 1=on, triggered by Input 17 or Input 11)
Output 10: Color (text, triggered by Input 18 or Input 11)
Output 11: Rooms (text, >14chars, triggered by Input 24)
Release Notes
v1.5 - 21-07-2023 - Miele_14360_v1.5.zip
* Set timeout to 5 seconds to the Miele API, so the Homeserver will not become slow/overloaded/queued.
* Close all connections as to Miele API as soon as possible to keep memory free.
* Added vacuum cleaner options: Get Rooms and Set Map ID/Room ID to start cleaning in a specific room.
* Updated to be Python v3 compatible (for any future HS updates).
v1.4 - 22-06-2022 - Miele_14360_v1.4.zip
* Fix for initiating module / fix for need a reboot first
* Automatically corrects uppercase/lowercase country like de-de or de-DE (an often made mistake)
* Fixes the Set ProgramID (input23) which didn't work. Thanks to knxhans for mentioning this bug.
v1.3 - 29-12-2021 - Miele_14360_v1.3.zip
* Does not check for validity of Miele SSL certificate anymore since some homeservers have old root certificates. This resulted in v1.2 doing nothing on some physical'homeservers (even they were running 4.11.1).
v1.2 - 22-11-2021 - Miele_14360_v1.2.zip
* Small contextual Help File corrections
v1.1 - 25-11-2021
* Added raw JSON input for Actions so any action can be set.
* Added raw JSON input for Programs so any program can be set.
* Added Set Modes to set the device in normal or Sabbath mode
* Added Set Devicename to change the devicename
* Added Set ProcessAction to set various actions. Depends on device type (most freezers have options 4-7, an oven has only 1 and 2)
* Added Set VentilationStep to set the ventilation step between 1 and 4.
* Added Set ProgramId to start a program on the washingmachine, dryer or oven. To check which programs are available: Trigger a Get Programs at Input 13.
v1.0 - 24-11-2021
* Compatible and tested with Homeserver 4.11 and 4.11.1
* Power and Light tested with Miele CVA 7845
Installation instructions
Original release blog: https://www.roelbroersma.nl/miele-bu...-knx-lbs-14360
Can be find in the Downloadbereich at: https://service.knx-user-forum.de/?c...nload&id=14360
More information about the Miele API: https://www.miele.com/developer/
Alternatives
Edomi LBS 19002325 https://service.knx-user-forum.de/?c...ad&id=19002325 from Andre Feld (written in PHP)
See the YouTube movie I made for some examples of what's possibe!
miele_v1.1.png
Inputs and Outputs
Input 1: Debug (0=off, 1=on, will only show output on the Homeserver VGA display or VMWare console when connected)
Input 2: Client ID (text)
Input 3: Client Secret (text)
Input 4: Username (text, i.e. email@mydomain.com )
Input 5: Password (text)
Input 6: Account Language (text, i.e. nl-NL or de-DE)
Input 7: Device (text, i.e. 56456456)
Input 8: Get All Devices (0/1, trigger)
Input 9: Get Device (0/1, trigger)
Input 10: Get Ident (0/1, trigger)
Input 11: Get State (0/1, trigger)
Input 12: Get Actions (0/1, trigger)
Input 13: Get Programs (0/1, trigger)
Input 14: Set JSON Actions (text, trigger. Can be any advanced action, example: {"targetTemperature":[{"zone":2,"value":-20}]} )
Input 15: Set JSON Programs (text, trigger. Can be any advanced Program, example: {"programId":24,"duration":[1,15],"temperature":220} )
Input 16: Set Power (0=off, 1=on, trigger)
Input 17: Set Light (0=off, 1=on, trigger)
Input 18: Set Color (text, can be: white, blue, red, yellow, orange, green, pink, purple or turquoise, trigger)
Input 19: Set Modes (0/1, 0=Normal operation mode, 1=Sabbath mode, trigger)
Input 20: Set DeviceName (text, modify the devicename, trigger)
Input 21: Set ProcessAction (numeric, 1=Start, 2=Stop, 3=Pause, 4=Start superfreezing, 5=Stop superfreezing, 6=Start supercooling, 7=Stop supercooling, trigger)
Input 22: Set VentilationStep (numeric, 1=Step1, 2=Step2, 3=Step3, 4=Step4, trigger)
Input 23: Set ProgramId (numeric, trigger. Trigger a Get Programs to see all available ProgramIds.)
Input 24: Get Rooms (0/1, both 0 and 1 will trigger. Get the Room information for the device (as on input 7) and write output to Output 11)
Input 25: Room: Set Map ID (numeric, will not trigger the clean room function! Only the Set Room ID will do that. This just sets the Map ID and is needed before setting the Room ID)
Input 26: Room: Set Room ID (numeric, any number will trigger the Clean Room function. The Room ID of the device (as on input 7) to clean)
Output 1: Error (0=no error, 1=an error occured)
Output 2: Error Text (text, detailed error text >14chars)
Output 3: Device Info (text >14chars, triggered by Input 8 or Input 9)
Output 4: Ident Info (text >14chars, triggered by Input 10)
Output 5: State Info (text >14chars, triggered by Input 11)
Output 6: Available Actions (text >14chars, triggered by Input 12)
Output 7: Available Programs (text >14chars, triggered by Input 13)
Output 8: Power (0=off, 1=on, triggered by Input 16 or Input 11)
Output 9: Light (0=off, 1=on, triggered by Input 17 or Input 11)
Output 10: Color (text, triggered by Input 18 or Input 11)
Output 11: Rooms (text, >14chars, triggered by Input 24)
Release Notes
v1.5 - 21-07-2023 - Miele_14360_v1.5.zip
* Set timeout to 5 seconds to the Miele API, so the Homeserver will not become slow/overloaded/queued.
* Close all connections as to Miele API as soon as possible to keep memory free.
* Added vacuum cleaner options: Get Rooms and Set Map ID/Room ID to start cleaning in a specific room.
* Updated to be Python v3 compatible (for any future HS updates).
v1.4 - 22-06-2022 - Miele_14360_v1.4.zip
* Fix for initiating module / fix for need a reboot first
* Automatically corrects uppercase/lowercase country like de-de or de-DE (an often made mistake)
* Fixes the Set ProgramID (input23) which didn't work. Thanks to knxhans for mentioning this bug.
v1.3 - 29-12-2021 - Miele_14360_v1.3.zip
* Does not check for validity of Miele SSL certificate anymore since some homeservers have old root certificates. This resulted in v1.2 doing nothing on some physical'homeservers (even they were running 4.11.1).
v1.2 - 22-11-2021 - Miele_14360_v1.2.zip
* Small contextual Help File corrections
v1.1 - 25-11-2021
* Added raw JSON input for Actions so any action can be set.
* Added raw JSON input for Programs so any program can be set.
* Added Set Modes to set the device in normal or Sabbath mode
* Added Set Devicename to change the devicename
* Added Set ProcessAction to set various actions. Depends on device type (most freezers have options 4-7, an oven has only 1 and 2)
* Added Set VentilationStep to set the ventilation step between 1 and 4.
* Added Set ProgramId to start a program on the washingmachine, dryer or oven. To check which programs are available: Trigger a Get Programs at Input 13.
v1.0 - 24-11-2021
* Compatible and tested with Homeserver 4.11 and 4.11.1
* Power and Light tested with Miele CVA 7845
Installation instructions
- Download the Building block: Miele_14360_v1.5.zip
- Add it to a new Homeserver Logic tab.
- Go to: https://www.miele.com/f/com/en/register_api.aspx and just add a new Application Name and enter your e-mail address. You will receive an email with an activation link.
- Click on the activation link. Login with your Miele account (and set your language to the language/country in which you have this account.
- Copy the Client ID and Client Secret to the Building Block.
- Set the Username/Password and Language of your account. See the Youtube movie for examples.
Original release blog: https://www.roelbroersma.nl/miele-bu...-knx-lbs-14360
Can be find in the Downloadbereich at: https://service.knx-user-forum.de/?c...nload&id=14360
More information about the Miele API: https://www.miele.com/developer/
Alternatives
Edomi LBS 19002325 https://service.knx-user-forum.de/?c...ad&id=19002325 from Andre Feld (written in PHP)
Kommentar