Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[danfossairunit] Add semantic tags #18324

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,8 @@ channel-group-type.danfossairunit.humidity.label = Humidity
channel-group-type.danfossairunit.humidity.channel.humidity.label = Humidity
channel-group-type.danfossairunit.humidity.channel.humidity.description = Current relative humidity measured by the air unit
channel-group-type.danfossairunit.main.label = Mode and Fan Speeds
channel-group-type.danfossairunit.main.channel.boost.label = Boost
channel-group-type.danfossairunit.main.channel.boost.description = Enables fan boost
channel-group-type.danfossairunit.main.channel.night_cooling.label = Night Cooling
channel-group-type.danfossairunit.main.channel.night_cooling.description = Enables night cooling
channel-group-type.danfossairunit.recuperator.label = Recuperator
channel-group-type.danfossairunit.recuperator.description = Heat exchaning device in the Air Unit
channel-group-type.danfossairunit.recuperator.channel.bypass.label = Bypass
channel-group-type.danfossairunit.recuperator.channel.bypass.description = Disables the heat exchange. Useful in summer when room temperature is above target and outside temperature is below target.
channel-group-type.danfossairunit.recuperator.channel.exhaust_temp.label = Exhaust Air Temperature
channel-group-type.danfossairunit.recuperator.channel.exhaust_temp.description = Temperature of the air when pushed outside
channel-group-type.danfossairunit.recuperator.channel.extract_temp.label = Extract Air Temperature
Expand All @@ -40,43 +34,44 @@ channel-group-type.danfossairunit.recuperator.channel.supply_temp.description =
channel-group-type.danfossairunit.service.label = Service
channel-group-type.danfossairunit.service.channel.battery_life.label = Battery Life
channel-group-type.danfossairunit.service.channel.battery_life.description = Remaining Air Dial Battery Level
channel-group-type.danfossairunit.service.channel.filter_life.label = Remaining Filter Life
channel-group-type.danfossairunit.service.channel.filter_life.description = Remaining life of filter until exchange is necessary
channel-group-type.danfossairunit.temps.label = Temperatures
channel-group-type.danfossairunit.temps.channel.outdoor_temp.label = Outdoor Temperature
channel-group-type.danfossairunit.temps.channel.outdoor_temp.description = Temperature of the air outside
channel-group-type.danfossairunit.temps.channel.room_temp.label = Room Temperature
channel-group-type.danfossairunit.temps.channel.room_temp.description = Temperature of the air in the room of the Air Dial
channel-group-type.danfossairunit.temps.channel.room_temp_calculated.label = Calculated Room Temperature
channel-group-type.danfossairunit.temps.channel.room_temp_calculated.description = Calculated Room Temperature

# channel types

channel-type.danfossairunit.boost.label = Boost
channel-type.danfossairunit.boost.description = Enables fan boost
channel-type.danfossairunit.bypass.label = Bypass
channel-type.danfossairunit.bypass.description = Disables the heat exchange. Useful in summer when room temperature is above target and outside temperature is below target.
channel-type.danfossairunit.calculated-temperature.label = Calculated Room Temperature
channel-type.danfossairunit.calculated-temperature.description = Calculated Room Temperature
channel-type.danfossairunit.currentTime.label = Current Time
channel-type.danfossairunit.currentTime.description = Current time reported by the air unit
channel-type.danfossairunit.extractFanSpeed.label = Extract Fan Speed
channel-type.danfossairunit.extractFanSpeed.description = Current rotation of the fan extracting air from the rooms
channel-type.danfossairunit.extractFanStep.label = Extract Fan Step
channel-type.danfossairunit.extractFanStep.description = Current step setting of the fan extracting air from the rooms
channel-type.danfossairunit.filter-life.label = Remaining Filter Life
channel-type.danfossairunit.filter-life.description = Remaining life of filter until exchange is necessary
channel-type.danfossairunit.filterPeriod.label = Filter Period
channel-type.danfossairunit.filterPeriod.description = Number of months between filter replacements
channel-type.danfossairunit.manualFanStep.label = Manual Fan Step
channel-type.danfossairunit.manualFanStep.description = Controls 10-step setting of the fan when operation mode is manual
channel-type.danfossairunit.manual-fan-step.label = Manual Fan Step
channel-type.danfossairunit.manual-fan-step.description = Controls 10-step setting of the fan when operation mode is manual
channel-type.danfossairunit.mode.label = Mode
channel-type.danfossairunit.mode.description = Operation mode of the air unit: Off, Demand, Manual, Program
channel-type.danfossairunit.mode.state.option.DEMAND = Demand
channel-type.danfossairunit.mode.state.option.PROGRAM = Program
channel-type.danfossairunit.mode.state.option.MANUAL = Manual
channel-type.danfossairunit.mode.state.option.OFF = Off
channel-type.danfossairunit.percentage.label = Percentage
channel-type.danfossairunit.percentage.description = Read only percentage
channel-type.danfossairunit.night-cooling.label = Night Cooling
channel-type.danfossairunit.night-cooling.description = Enables night cooling
channel-type.danfossairunit.supplyFanSpeed.label = Supply Fan Speed
channel-type.danfossairunit.supplyFanSpeed.description = Current rotation of the fan supplying air to the rooms
channel-type.danfossairunit.supplyFanStep.label = Supply Fan Step
channel-type.danfossairunit.supplyFanStep.description = Current step setting of the fan supplying air to the rooms
channel-type.danfossairunit.switch.label = Something that can be turned on or off
channel-type.danfossairunit.temperature.label = Temperature
channel-type.danfossairunit.temperature.description = Current temperature

# discovery result

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,14 @@
<channel-group id="recuperator" typeId="recuperator"/>
<channel-group id="service" typeId="service"/>
</channel-groups>

<properties>
<property name="vendor">Danfoss</property>
<property name="thingTypeVersion">2</property>
<property name="thingTypeVersion">3</property>
</properties>

<representation-property>host</representation-property>

<config-description>
<parameter name="host" type="text" required="true">
<label>Host</label>
Expand Down Expand Up @@ -50,39 +53,32 @@
<channels>
<channel id="current_time" typeId="currentTime"/>
<channel id="mode" typeId="mode"/>
<channel id="manual_fan_step" typeId="manualFanStep"/>
<channel id="manual_fan_step" typeId="manual-fan-step"/>
<channel id="supply_fan_speed" typeId="supplyFanSpeed"/>
<channel id="extract_fan_speed" typeId="extractFanSpeed"/>
<channel id="supply_fan_step" typeId="supplyFanStep"/>
<channel id="extract_fan_step" typeId="extractFanStep"/>
<channel id="boost" typeId="switch">
<label>Boost</label>
<description>Enables fan boost</description>
</channel>
<channel id="night_cooling" typeId="switch">
<label>Night Cooling</label>
<description>Enables night cooling</description>
</channel>
<channel id="boost" typeId="boost"/>
<channel id="night_cooling" typeId="night-cooling"/>
</channels>
</channel-group-type>

<channel-group-type id="temps">
<label>Temperatures</label>
<category>Temperature</category>
<channels>
<channel id="room_temp" typeId="temperature">
<channel id="room_temp" typeId="system.indoor-temperature">
<label>Room Temperature</label>
<description>Temperature of the air in the room of the Air Dial</description>
</channel>
<channel id="room_temp_calculated" typeId="temperature">
<label>Calculated Room Temperature</label>
<description>Calculated Room Temperature</description>
</channel>
<channel id="room_temp_calculated" typeId="calculated-temperature"/>
<channel id="outdoor_temp" typeId="system.outdoor-temperature">
<label>Outdoor Temperature</label>
<description>Temperature of the air outside</description>
</channel>
</channels>
</channel-group-type>

<channel-group-type id="humidity">
<label>Humidity</label>
<channels>
Expand All @@ -92,40 +88,35 @@
</channel>
</channels>
</channel-group-type>

<channel-group-type id="recuperator">
<label>Recuperator</label>
<description>Heat exchaning device in the Air Unit</description>
<channels>
<channel id="bypass" typeId="switch">
<label>Bypass</label>
<description>Disables the heat exchange. Useful in summer when room temperature is above target and outside
temperature is below target.</description>
</channel>
<channel id="supply_temp" typeId="temperature">
<channel id="bypass" typeId="bypass"/>
<channel id="supply_temp" typeId="system.indoor-temperature">
<label>Supply Air Temperature</label>
<description>Temperature of air which is passed to the rooms</description>
</channel>
<channel id="extract_temp" typeId="temperature">
<channel id="extract_temp" typeId="system.indoor-temperature">
<label>Extract Air Temperature</label>
<description>Temperature of the air as extracted from the rooms</description>
</channel>
<channel id="exhaust_temp" typeId="temperature">
<channel id="exhaust_temp" typeId="system.outdoor-temperature">
<label>Exhaust Air Temperature</label>
<description>Temperature of the air when pushed outside</description>
</channel>
</channels>
</channel-group-type>

<channel-group-type id="service">
<label>Service</label>
<channels>
<channel id="battery_life" typeId="system.battery-level">
<label>Battery Life</label>
<description>Remaining Air Dial Battery Level</description>
</channel>
<channel id="filter_life" typeId="percentage">
<label>Remaining Filter Life</label>
<description>Remaining life of filter until exchange is necessary</description>
</channel>
<channel id="filter_life" typeId="filter-life"/>
<channel id="filter_period" typeId="filterPeriod"/>
</channels>
</channel-group-type>
Expand All @@ -138,10 +129,15 @@
<category>Time</category>
<state readOnly="true"/>
</channel-type>

<channel-type id="mode">
<item-type>String</item-type>
<label>Mode</label>
<description>Operation mode of the air unit: Off, Demand, Manual, Program</description>
<tags>
<tag>Control</tag>
<tag>Mode</tag>
</tags>
<state>
<options>
<option value="DEMAND">Demand</option>
Expand All @@ -151,61 +147,88 @@
</options>
</state>
</channel-type>
<channel-type id="manualFanStep">

<channel-type id="manual-fan-step">
<item-type>Dimmer</item-type>
<label>Manual Fan Step</label>
<description>Controls 10-step setting of the fan when operation mode is manual</description>
<category>Fan</category>
<tags>
<tag>Control</tag>
<tag>Level</tag>
</tags>
<state step="10" min="0" max="100"/>
</channel-type>

<channel-type id="supplyFanSpeed">
<item-type unitHint="rpm">Number:Frequency</item-type>
<label>Supply Fan Speed</label>
<description>Current rotation of the fan supplying air to the rooms</description>
<category>Fan</category>
<state pattern="%.0f rpm" readOnly="true" min="0"/>
</channel-type>

<channel-type id="extractFanSpeed">
<item-type unitHint="rpm">Number:Frequency</item-type>
<label>Extract Fan Speed</label>
<description>Current rotation of the fan extracting air from the rooms</description>
<category>Fan</category>
<state pattern="%.0f rpm" readOnly="true" min="0"/>
</channel-type>

<channel-type id="supplyFanStep">
<item-type>Dimmer</item-type>
<label>Supply Fan Step</label>
<description>Current step setting of the fan supplying air to the rooms</description>
<category>Fan</category>
<state step="10" min="0" max="100" readOnly="true"/>
</channel-type>

<channel-type id="extractFanStep">
<item-type>Dimmer</item-type>
<label>Extract Fan Step</label>
<description>Current step setting of the fan extracting air from the rooms</description>
<category>Fan</category>
<state step="10" min="0" max="100" readOnly="true"/>
</channel-type>

<channel-type id="filterPeriod" advanced="true">
<item-type>Number</item-type>
<label>Filter Period</label>
<description>Number of months between filter replacements</description>
<state pattern="%d" min="3" max="12"/>
</channel-type>
<channel-type id="percentage">

<channel-type id="filter-life">
<item-type>Number</item-type>
<label>Percentage</label>
<description>Read only percentage</description>
<label>Remaining Filter Life</label>
<description>Remaining life of filter until exchange is necessary</description>
<state pattern="%.0f %%" readOnly="true" min="0" max="100"/>
</channel-type>
<channel-type id="switch">

<channel-type id="boost">
<item-type>Switch</item-type>
<label>Boost</label>
<description>Enables fan boost</description>
</channel-type>

<channel-type id="night-cooling">
<item-type>Switch</item-type>
<label>Something that can be turned on or off</label>
<label>Night Cooling</label>
<description>Enables night cooling</description>
</channel-type>
<channel-type id="temperature">

<channel-type id="bypass">
<item-type>Switch</item-type>
<label>Bypass</label>
<description>Disables the heat exchange. Useful in summer when room temperature is above target and outside
temperature is below target.</description>
</channel-type>

<channel-type id="calculated-temperature">
<item-type>Number:Temperature</item-type>
<label>Temperature</label>
<description>Current temperature</description>
<label>Calculated Room Temperature</label>
<description>Calculated Room Temperature</description>
<category>Temperature</category>
<state readOnly="true" pattern="%.1f %unit%"/>
</channel-type>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,60 @@
</update-channel>
</instruction-set>

<instruction-set targetVersion="3">
<update-channel id="mode" groupIds="main">
<type>danfossairunit:mode</type>
</update-channel>

<update-channel id="manual_fan_step" groupIds="main">
<type>danfossairunit:manual-fan-step</type>
</update-channel>

<update-channel id="boost" groupIds="main">
<type>danfossairunit:boost</type>
</update-channel>

<update-channel id="night_cooling" groupIds="main">
<type>danfossairunit:night-cooling</type>
</update-channel>

<update-channel id="room_temp" groupIds="temps">
<type>system:indoor-temperature</type>
<label>Room Temperature</label>
<description>Temperature of the air in the room of the Air Dial</description>
</update-channel>

<update-channel id="room_temp_calculated" groupIds="temps">
<type>danfossairunit:calculated-temperature</type>
</update-channel>

<update-channel id="bypass" groupIds="recuperator">
<type>danfossairunit:bypass</type>
</update-channel>

<update-channel id="supply_temp" groupIds="recuperator">
<type>system:indoor-temperature</type>
<label>Supply Air Temperature</label>
<description>Temperature of air which is passed to the rooms</description>
</update-channel>

<update-channel id="extract_temp" groupIds="recuperator">
<type>system:indoor-temperature</type>
<label>Extract Air Temperature</label>
<description>Temperature of the air as extracted from the rooms</description>
</update-channel>

<update-channel id="exhaust_temp" groupIds="recuperator">
<type>system:outdoor-temperature</type>
<label>Exhaust Air Temperature</label>
<description>Temperature of the air when pushed outside</description>
</update-channel>

<update-channel id="filter_life" groupIds="service">
<type>danfossairunit:filter-life</type>
</update-channel>
</instruction-set>

</thing-type>

</update:update-descriptions>