From 2c006ccd31f359221a8aea3fc602e881c28f12ca Mon Sep 17 00:00:00 2001 From: mlobstein Date: Sat, 15 Apr 2023 14:20:20 -0500 Subject: [PATCH] [radiothermostat] Add message display channel and improve ThingActions (#14799) * Add price message channel Signed-off-by: Michael Lobstein --- .../README.md | 33 ++++++++++- .../RadioThermostatBindingConstants.java | 16 +++-- .../internal/RadioThermostatThingActions.java | 23 +++++++- .../RadioThermostatConnector.java | 58 ++++++++----------- .../handler/RadioThermostatHandler.java | 46 +++++++++------ .../OH-INF/i18n/radiothermostat.properties | 5 ++ .../resources/OH-INF/thing/thing-types.xml | 12 +++- .../resources/OH-INF/update/instructions.xml | 14 +++++ 8 files changed, 142 insertions(+), 65 deletions(-) create mode 100644 bundles/org.openhab.binding.radiothermostat/src/main/resources/OH-INF/update/instructions.xml diff --git a/bundles/org.openhab.binding.radiothermostat/README.md b/bundles/org.openhab.binding.radiothermostat/README.md index dbd27203d82..b7025c53989 100644 --- a/bundles/org.openhab.binding.radiothermostat/README.md +++ b/bundles/org.openhab.binding.radiothermostat/README.md @@ -88,6 +88,7 @@ The thermostat information that is retrieved is available as these channels: | today_cool_runtime | Number:Time | The total number of minutes of cooling run-time today | | yesterday_heat_runtime | Number:Time | The total number of minutes of heating run-time yesterday | | yesterday_cool_runtime | Number:Time | The total number of minutes of cooling run-time yesterday | +| message | String (Write Only) | Used to display a number in the upper left 'price message' area of the thermostat's screen where the time is normally displayed | ## Full Example @@ -158,15 +159,16 @@ Number Therm_FanStatus "Fan Status [MAP(radiotherm.map):%s_fstus]" Number Therm_Override "Override [MAP(radiotherm.map):%s_over]" { channel="radiothermostat:rtherm:mytherm1:override" } Switch Therm_Hold "Hold" { channel="radiothermostat:rtherm:mytherm1:hold" } -Number Therm_Day "Thermostat Day [%s]" { channel="radiothermostat:rtherm:mytherm1:day" } -Number Therm_Hour "Thermostat Hour [%s]" { channel="radiothermostat:rtherm:mytherm1:hour" } -Number Therm_Minute "Thermostat Minute [%s]" { channel="radiothermostat:rtherm:mytherm1:minute" } +Number Therm_Day "Thermostat Day [%d]" { channel="radiothermostat:rtherm:mytherm1:day" } +Number Therm_Hour "Thermostat Hour [%d]" { channel="radiothermostat:rtherm:mytherm1:hour" } +Number Therm_Minute "Thermostat Minute [%d]" { channel="radiothermostat:rtherm:mytherm1:minute" } String Therm_Dstmp "Thermostat DateStamp [%s]"