From b92f1a241a949c695472743d249ca8086c830d7f Mon Sep 17 00:00:00 2001 From: Jacob Laursen Date: Wed, 18 Oct 2023 12:30:18 +0200 Subject: [PATCH] [miele] Rename channel `powerConsumption` to `energyConsumption` and set display unit to litres for `waterConsumption` (#15774) * Rename channel powerConsumption to energyConsumption and set display unit to litres for waterConsumption --------- Signed-off-by: Jacob Laursen --- bundles/org.openhab.binding.miele/README.md | 82 +++++++++---------- .../miele/internal/MieleBindingConstants.java | 2 +- .../handler/DishwasherChannelSelector.java | 2 +- .../internal/handler/DishwasherHandler.java | 10 +-- .../internal/handler/MieleBridgeHandler.java | 2 +- .../WashingMachineChannelSelector.java | 2 +- .../handler/WashingMachineHandler.java | 10 +-- .../resources/OH-INF/i18n/miele.properties | 8 +- .../resources/OH-INF/thing/channeltypes.xml | 10 +-- .../resources/OH-INF/thing/dishwasher.xml | 8 +- .../resources/OH-INF/thing/washingmachine.xml | 8 +- .../resources/OH-INF/update/instructions.xml | 30 +++++++ 12 files changed, 104 insertions(+), 70 deletions(-) create mode 100644 bundles/org.openhab.binding.miele/src/main/resources/OH-INF/update/instructions.xml diff --git a/bundles/org.openhab.binding.miele/README.md b/bundles/org.openhab.binding.miele/README.md index e0fa72c55..532702d11 100644 --- a/bundles/org.openhab.binding.miele/README.md +++ b/bundles/org.openhab.binding.miele/README.md @@ -116,23 +116,23 @@ Channels available for each appliance type are listed below. #### Dishwasher -| Channel | Type | Read/write | Description | -|---------------------|----------------------|------------|---------------------------------------------------------------------| -| state | String | Read | Current status of the appliance | -| rawState | Number | Read | Current status of the appliance as raw number | -| program | String | Read | Current program or function running on the appliance | -| rawProgram | Number | Read | Current program or function running on the appliance as raw number | -| phase | String | Read | Current phase of the program running on the appliance | -| rawPhase | Number | Read | Current phase of the program running on the appliance as raw number | -| start | DateTime | Read | Programmed start time of the program | -| end | DateTime | Read | End time of the program (programmed or running) | -| duration | Number:Time | Read | Duration of the program running on the appliance | -| elapsed | Number:Time | Read | Time elapsed in the program running on the appliance | -| finish | Number:Time | Read | Time to finish the program running on the appliance | -| door | Contact | Read | Current state of the door of the appliance | -| switch | Switch | Write | Switch the appliance on or off | -| powerConsumption | Number:Energy | Read | Power consumption by the currently running program on the appliance | -| waterConsumption | Number:Volume | Read | Water consumption by the currently running program on the appliance | +| Channel | Type | Read/write | Description | +|---------------------|----------------------|------------|----------------------------------------------------------------------| +| state | String | Read | Current status of the appliance | +| rawState | Number | Read | Current status of the appliance as raw number | +| program | String | Read | Current program or function running on the appliance | +| rawProgram | Number | Read | Current program or function running on the appliance as raw number | +| phase | String | Read | Current phase of the program running on the appliance | +| rawPhase | Number | Read | Current phase of the program running on the appliance as raw number | +| start | DateTime | Read | Programmed start time of the program | +| end | DateTime | Read | End time of the program (programmed or running) | +| duration | Number:Time | Read | Duration of the program running on the appliance | +| elapsed | Number:Time | Read | Time elapsed in the program running on the appliance | +| finish | Number:Time | Read | Time to finish the program running on the appliance | +| door | Contact | Read | Current state of the door of the appliance | +| switch | Switch | Write | Switch the appliance on or off | +| energyConsumption | Number:Energy | Read | Energy consumption by the currently running program on the appliance | +| waterConsumption | Number:Volume | Read | Water consumption by the currently running program on the appliance | ##### Programs @@ -336,26 +336,26 @@ See oven. #### Washing Machine -| Channel | Type | Read/write | Description | -|---------------------|----------------------|------------|---------------------------------------------------------------------| -| state | String | Read | Current status of the appliance | -| rawState | Number | Read | Current status of the appliance as raw number | -| program | String | Read | Current program or function running on the appliance | -| rawProgram | Number | Read | Current program or function running on the appliance as raw number | -| type | String | Read | Type of the program running on the appliance | -| phase | String | Read | Current phase of the program running on the appliance | -| rawPhase | Number | Read | Current phase of the program running on the appliance as raw number | -| start | DateTime | Read | Programmed start time of the program | -| end | DateTime | Read | End time of the program (programmed or running) | -| duration | Number:Time | Read | Duration of the program running on the appliance | -| elapsed | Number:Time | Read | Time elapsed in the program running on the appliance | -| finish | Number:Time | Read | Time to finish the program running on the appliance | -| door | Contact | Read | Current state of the door of the appliance | -| switch | Switch | Write | Switch the appliance on or off | -| target | Number:Temperature | Read | Temperature of the selected program (10 °C = cold) | -| spinningspeed | String | Read | Spinning speed in the program running on the appliance | -| powerConsumption | Number:Energy | Read | Power consumption by the currently running program on the appliance | -| waterConsumption | Number:Volume | Read | Water consumption by the currently running program on the appliance | +| Channel | Type | Read/write | Description | +|---------------------|----------------------|------------|----------------------------------------------------------------------| +| state | String | Read | Current status of the appliance | +| rawState | Number | Read | Current status of the appliance as raw number | +| program | String | Read | Current program or function running on the appliance | +| rawProgram | Number | Read | Current program or function running on the appliance as raw number | +| type | String | Read | Type of the program running on the appliance | +| phase | String | Read | Current phase of the program running on the appliance | +| rawPhase | Number | Read | Current phase of the program running on the appliance as raw number | +| start | DateTime | Read | Programmed start time of the program | +| end | DateTime | Read | End time of the program (programmed or running) | +| duration | Number:Time | Read | Duration of the program running on the appliance | +| elapsed | Number:Time | Read | Time elapsed in the program running on the appliance | +| finish | Number:Time | Read | Time to finish the program running on the appliance | +| door | Contact | Read | Current state of the door of the appliance | +| switch | Switch | Write | Switch the appliance on or off | +| target | Number:Temperature | Read | Temperature of the selected program (10 °C = cold) | +| spinningspeed | String | Read | Spinning speed in the program running on the appliance | +| energyConsumption | Number:Energy | Read | Energy consumption by the currently running program on the appliance | +| waterConsumption | Number:Volume | Read | Water consumption by the currently running program on the appliance | ##### Programs @@ -432,7 +432,7 @@ String Dishwasher_Program "Program [%s]" {channel="miele:di String Dishwasher_Phase "Phase [%s]" {channel="miele:dishwasher:home:dishwasher:phase"} Number:Time Dishwasher_ElapsedTime "Elapsed time"