[nikohomecontrol] Bug fixes and improvements to thermostats (#11963)

* Thermostat fixes and implement extra thermostat channels

Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
This commit is contained in:
Mark Herwege
2022-06-15 13:01:22 +02:00
committed by GitHub
parent 3349cf4945
commit f8bbb2b5a5
15 changed files with 215 additions and 116 deletions

View File

@@ -83,14 +83,20 @@ channelOverruletimeDescription = Time duration for overruling thermostat target
channelModeLabel = Mode
channelModeDescription = Thermostat mode
channelModeOption0 = day
channelModeOption1 = night
channelModeOption2 = eco
channelModeOption3 = off
channelModeOption4 = cool
channelModeOption5 = prog 1
channelModeOption6 = prog 2
channelModeOption7 = prog 3
channelModeOption0 = Day
channelModeOption1 = Night
channelModeOption2 = Eco
channelModeOption3 = Off
channelModeOption4 = Cool
channelModeOption5 = Program 1
channelModeOption6 = Program 2
channelModeOption7 = Program 3
channelDemandLabel = Demand
channelDemandDescription = Heating/cooling demand
channelDemand-1 = Cooling
channelDemand0 = None
channelDemand1 = Heating
channelPowerLabel = Power
channelPowerDescription = Momentary power consumption/production (positive is consumption)

View File

@@ -161,13 +161,16 @@
<bridge-type-ref id="bridge"/>
<bridge-type-ref id="bridge2"/>
</supported-bridge-type-refs>
<label>@text/ThermostatLabel</label>
<description>@text/ThermostatDescription</description>
<label>@text/thermostatLabel</label>
<description>@text/thermostatDescription</description>
<channels>
<channel id="measured" typeId="measured"/>
<channel id="heatingmode" typeId="heatingmode"/>
<channel id="mode" typeId="mode"/>
<channel id="setpoint" typeId="setpoint"/>
<channel id="overruletime" typeId="overruletime"/>
<channel id="heatingdemand" typeId="heatingdemand"/>
<channel id="demand" typeId="demand"/>
</channels>
<config-description>
<parameter name="thermostatId" type="text" required="true">
@@ -244,11 +247,27 @@
<category>Number</category>
<state min="0" max="1440" step="5"/>
</channel-type>
<channel-type id="mode">
<channel-type id="heatingmode">
<item-type>String</item-type>
<label>@text/channelModeLabel</label>
<description>@text/channelModeDescription</description>
<state>
<options>
<option value="Day">@text/channelModeOption0</option>
<option value="Night">@text/channelModeOption1</option>
<option value="Eco">@text/channelModeOption2</option>
<option value="Off">@text/channelModeOption3</option>
<option value="Cool">@text/channelModeOption4</option>
<option value="Prog1">@text/channelModeOption5</option>
<option value="Prog2">@text/channelModeOption6</option>
<option value="Prog3">@text/channelModeOption7</option>
</options>
</state>
</channel-type>
<channel-type id="mode" advanced="true">
<item-type>Number</item-type>
<label>@text/channelModeLabel</label>
<description>@text/channelModeDescription</description>
<category>Number</category>
<state>
<options>
<option value="0">@text/channelModeOption0</option>
@@ -262,6 +281,31 @@
</options>
</state>
</channel-type>
<channel-type id="heatingdemand">
<item-type>String</item-type>
<label>@text/channelDemandLabel</label>
<description>@text/channelDemandDescription</description>
<state readOnly="true">
<options>
<option value="Cooling">@text/channelDemand-1</option>
<option value="None">@text/channelDemand0</option>
<option value="Heating">@text/channelDemand1</option>
</options>
</state>
</channel-type>
<channel-type id="demand" advanced="true">
<item-type>Number</item-type>
<label>@text/channelDemandLabel</label>
<description>@text/channelDemandDescription</description>
<state readOnly="true">
<options>
<option value="-1">@text/channelDemand-1</option>
<option value="0">@text/channelDemand0</option>
<option value="1">@text/channelDemand1</option>
</options>
</state>
</channel-type>
<channel-type id="power">
<item-type>Number:Power</item-type>
<label>@text/channelPowerLabel</label>