[miio] Channel Updates to Quantitypes (#9196)

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
This commit is contained in:
Marcel 2020-12-02 09:25:25 -08:00 committed by GitHub
parent ef31659452
commit 707d840c73
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
20 changed files with 238 additions and 211 deletions

File diff suppressed because it is too large Load Diff

View File

@ -269,9 +269,9 @@
<state readOnly="true"/> <state readOnly="true"/>
</channel-type> </channel-type>
<channel-type id="filterhours"> <channel-type id="filterhours">
<item-type>Number</item-type> <item-type>Number:Time</item-type>
<label>Filter Use Time</label> <label>Filter Use Time</label>
<state pattern="%.0f" readOnly="true"/> <state pattern="%.0f %unit%" readOnly="true"/>
</channel-type> </channel-type>
<channel-type id="usedhours"> <channel-type id="usedhours">
<item-type>Number:Time</item-type> <item-type>Number:Time</item-type>

View File

@ -60,8 +60,9 @@
"property": "temperature", "property": "temperature",
"friendlyName": "Temperature", "friendlyName": "Temperature",
"channel": "temperature", "channel": "temperature",
"channelType": "temperature", "channelType": "temperatureC",
"type": "Number", "unit": "CELCIUS",
"type": "Number:Temperature",
"refresh": true, "refresh": true,
"ChannelGroup": "Status", "ChannelGroup": "Status",
"actions": [] "actions": []

View File

@ -60,8 +60,9 @@
"property": "temperature", "property": "temperature",
"friendlyName": "Temperature", "friendlyName": "Temperature",
"channel": "temperature", "channel": "temperature",
"channelType": "temperature", "channelType": "temperatureC",
"type": "Number", "unit": "CELCIUS",
"type": "Number:Temperature",
"refresh": true, "refresh": true,
"ChannelGroup": "Status", "ChannelGroup": "Status",
"actions": [] "actions": []

View File

@ -25,8 +25,9 @@
"property": "temperature", "property": "temperature",
"friendlyName": "Temperature", "friendlyName": "Temperature",
"channel": "temperature", "channel": "temperature",
"channelType": "temperature", "channelType": "temperatureC",
"type": "Number", "unit": "CELCIUS",
"type": "Number:Temperature",
"refresh": true, "refresh": true,
"ChannelGroup": "", "ChannelGroup": "",
"actions": [] "actions": []

View File

@ -37,8 +37,9 @@
"property": "temperature", "property": "temperature",
"friendlyName": "Temperature", "friendlyName": "Temperature",
"channel": "temperature", "channel": "temperature",
"channelType": "temperature", "channelType": "temperatureC",
"type": "Number", "unit": "CELCIUS",
"type": "Number:Temperature",
"refresh": true, "refresh": true,
"ChannelGroup": "", "ChannelGroup": "",
"actions": [] "actions": []

View File

@ -37,8 +37,9 @@
"property": "temperature", "property": "temperature",
"friendlyName": "Temperature", "friendlyName": "Temperature",
"channel": "temperature", "channel": "temperature",
"channelType": "temperature", "channelType": "temperatureC",
"type": "Number", "unit": "CELCIUS",
"type": "Number:Temperature",
"refresh": true, "refresh": true,
"ChannelGroup": "", "ChannelGroup": "",
"actions": [] "actions": []

View File

@ -82,8 +82,9 @@
"property": "temperature", "property": "temperature",
"friendlyName": "Temperature", "friendlyName": "Temperature",
"channel": "temperature", "channel": "temperature",
"channelType": "temperature", "channelType": "temperatureC",
"type": "Number", "unit": "CELCIUS",
"type": "Number:Temperature",
"refresh": true, "refresh": true,
"ChannelGroup": "", "ChannelGroup": "",
"actions": [] "actions": []

View File

@ -44,8 +44,9 @@
"property": "temperature", "property": "temperature",
"friendlyName": "Temperature", "friendlyName": "Temperature",
"channel": "temperature", "channel": "temperature",
"channelType": "temperature", "channelType": "temperatureC",
"type": "Number", "unit": "CELCIUS",
"type": "Number:Temperature",
"refresh": true, "refresh": true,
"actions": [] "actions": []
}, },

View File

@ -119,7 +119,8 @@
"friendlyName": "Filter Hours used", "friendlyName": "Filter Hours used",
"channel": "filterhours", "channel": "filterhours",
"channelType": "filterhours", "channelType": "filterhours",
"type": "Number", "type": "Number:Time",
"unit": "hours",
"refresh": true, "refresh": true,
"transformation": "SecondsToHours", "transformation": "SecondsToHours",
"ChannelGroup": "Status", "ChannelGroup": "Status",
@ -130,7 +131,8 @@
"friendlyName": "Run Time", "friendlyName": "Run Time",
"channel": "usedhours", "channel": "usedhours",
"channelType": "usedhours", "channelType": "usedhours",
"type": "Number", "type": "Number:Time",
"unit": "hours",
"refresh": true, "refresh": true,
"transformation": "SecondsToHours", "transformation": "SecondsToHours",
"ChannelGroup": "Status", "ChannelGroup": "Status",
@ -174,8 +176,9 @@
"property": "temp_dec", "property": "temp_dec",
"friendlyName": "Temperature", "friendlyName": "Temperature",
"channel": "temperature", "channel": "temperature",
"channelType": "temperature", "channelType": "temperatureC",
"type": "Number", "unit": "CELCIUS",
"type": "Number:Temperature",
"refresh": true, "refresh": true,
"transformation": "/10", "transformation": "/10",
"ChannelGroup": "Status", "ChannelGroup": "Status",

View File

@ -108,7 +108,8 @@
"friendlyName": "Filter Hours used", "friendlyName": "Filter Hours used",
"channel": "filterhours", "channel": "filterhours",
"channelType": "filterhours", "channelType": "filterhours",
"type": "Number", "type": "Number:Time",
"unit": "hours",
"refresh": true, "refresh": true,
"transformation": "SecondsToHours", "transformation": "SecondsToHours",
"ChannelGroup": "Status", "ChannelGroup": "Status",
@ -119,7 +120,8 @@
"friendlyName": "Run Time", "friendlyName": "Run Time",
"channel": "usedhours", "channel": "usedhours",
"channelType": "usedhours", "channelType": "usedhours",
"type": "Number", "type": "Number:Time",
"unit": "hours",
"refresh": true, "refresh": true,
"transformation": "SecondsToHours", "transformation": "SecondsToHours",
"ChannelGroup": "Status", "ChannelGroup": "Status",
@ -163,8 +165,9 @@
"property": "temp_dec", "property": "temp_dec",
"friendlyName": "Temperature", "friendlyName": "Temperature",
"channel": "temperature", "channel": "temperature",
"channelType": "temperature", "channelType": "temperatureC",
"type": "Number", "unit": "CELCIUS",
"type": "Number:Temperature",
"refresh": true, "refresh": true,
"transformation": "/10", "transformation": "/10",
"ChannelGroup": "Status", "ChannelGroup": "Status",

View File

@ -111,7 +111,8 @@
"friendlyName": "Filter Hours used", "friendlyName": "Filter Hours used",
"channel": "filterhours", "channel": "filterhours",
"channelType": "filterhours", "channelType": "filterhours",
"type": "Number", "type": "Number:Time",
"unit": "hours",
"refresh": true, "refresh": true,
"transformation": "SecondsToHours", "transformation": "SecondsToHours",
"ChannelGroup": "Status", "ChannelGroup": "Status",
@ -164,8 +165,9 @@
"property": "temp_dec", "property": "temp_dec",
"friendlyName": "Temperature", "friendlyName": "Temperature",
"channel": "temperature", "channel": "temperature",
"channelType": "temperature", "channelType": "temperatureC",
"type": "Number", "unit": "CELCIUS",
"type": "Number:Temperature",
"refresh": true, "refresh": true,
"transformation": "/10", "transformation": "/10",
"ChannelGroup": "Status", "ChannelGroup": "Status",

View File

@ -38,7 +38,8 @@
"friendlyName": "Run Time", "friendlyName": "Run Time",
"channel": "usedhours", "channel": "usedhours",
"channelType": "usedhours", "channelType": "usedhours",
"type": "Number", "type": "Number:Time",
"unit": "hours",
"refresh": true, "refresh": true,
"transformation": "SecondsToHours", "transformation": "SecondsToHours",
"ChannelGroup": "Status", "ChannelGroup": "Status",

View File

@ -39,7 +39,8 @@
"friendlyName": "Run Time", "friendlyName": "Run Time",
"channel": "usedhours", "channel": "usedhours",
"channelType": "usedhours", "channelType": "usedhours",
"type": "Number", "type": "Number:Time",
"unit": "hours",
"refresh": true, "refresh": true,
"transformation": "SecondsToHours", "transformation": "SecondsToHours",
"ChannelGroup": "Status", "ChannelGroup": "Status",

View File

@ -38,7 +38,8 @@
"friendlyName": "Run Time", "friendlyName": "Run Time",
"channel": "usedhours", "channel": "usedhours",
"channelType": "usedhours", "channelType": "usedhours",
"type": "Number", "type": "Number:Time",
"unit": "hours",
"refresh": true, "refresh": true,
"transformation": "SecondsToHours", "transformation": "SecondsToHours",
"ChannelGroup": "Status", "ChannelGroup": "Status",

View File

@ -24,8 +24,9 @@
"property": "target_temperature", "property": "target_temperature",
"friendlyName": "Target Temperature", "friendlyName": "Target Temperature",
"channel": "target_temperature", "channel": "target_temperature",
"type": "Number:Temperature",
"channelType": "temperatureC", "channelType": "temperatureC",
"unit": "CELCIUS",
"type": "Number:Temperature",
"refresh": true, "refresh": true,
"actions": [ "actions": [
{ {
@ -102,6 +103,7 @@
"friendlyName": "Temperature", "friendlyName": "Temperature",
"channel": "temperature", "channel": "temperature",
"channelType": "temperatureC", "channelType": "temperatureC",
"unit": "CELCIUS",
"type": "Number:Temperature", "type": "Number:Temperature",
"refresh": true, "refresh": true,
"actions": [] "actions": []
@ -111,7 +113,8 @@
"friendlyName": "Run Time", "friendlyName": "Run Time",
"channel": "usedhours", "channel": "usedhours",
"channelType": "usedhours", "channelType": "usedhours",
"type": "Number", "type": "Number:Time",
"unit": "hours",
"refresh": true, "refresh": true,
"transformation": "SecondsToHours", "transformation": "SecondsToHours",
"actions": [] "actions": []

View File

@ -151,10 +151,10 @@
"channel": "usedhours", "channel": "usedhours",
"channelType": "usedhours", "channelType": "usedhours",
"type": "Number:Time", "type": "Number:Time",
"unit": "hours",
"refresh": true, "refresh": true,
"transformation": "SecondsToHours", "transformation": "SecondsToHours",
"ChannelGroup": "Status", "ChannelGroup": "Status",
"unit": "hours",
"actions": [] "actions": []
}, },
{ {
@ -202,6 +202,7 @@
"friendlyName": "Temperature", "friendlyName": "Temperature",
"channel": "temperature", "channel": "temperature",
"channelType": "temperatureC", "channelType": "temperatureC",
"unit": "CELCIUS",
"type": "Number:Temperature", "type": "Number:Temperature",
"refresh": true, "refresh": true,
"ChannelGroup": "Status", "ChannelGroup": "Status",

View File

@ -117,7 +117,8 @@
"friendlyName": "Run Time", "friendlyName": "Run Time",
"channel": "usedhours", "channel": "usedhours",
"channelType": "usedhours", "channelType": "usedhours",
"type": "Number", "type": "Number:Time",
"unit": "hours",
"refresh": true, "refresh": true,
"transformation": "SecondsToHours", "transformation": "SecondsToHours",
"ChannelGroup": "Status", "ChannelGroup": "Status",
@ -137,8 +138,9 @@
"property": "temperature", "property": "temperature",
"friendlyName": "Temperature", "friendlyName": "Temperature",
"channel": "temperature", "channel": "temperature",
"channelType": "temperature", "channelType": "temperatureC",
"type": "Number", "unit": "CELCIUS",
"type": "Number:Temperature",
"refresh": true, "refresh": true,
"ChannelGroup": "Status", "ChannelGroup": "Status",
"actions": [] "actions": []

View File

@ -138,7 +138,8 @@
"friendlyName": "Run Time", "friendlyName": "Run Time",
"channel": "usedhours", "channel": "usedhours",
"channelType": "usedhours", "channelType": "usedhours",
"type": "Number", "type": "Number:Time",
"unit": "hours",
"refresh": true, "refresh": true,
"transformation": "SecondsToHours", "transformation": "SecondsToHours",
"ChannelGroup": "Status", "ChannelGroup": "Status",
@ -158,8 +159,9 @@
"property": "temp_dec", "property": "temp_dec",
"friendlyName": "Temperature", "friendlyName": "Temperature",
"channel": "temperature", "channel": "temperature",
"channelType": "temperature", "channelType": "temperatureC",
"type": "Number", "unit": "CELCIUS",
"type": "Number:Temperature",
"refresh": true, "refresh": true,
"transformation": "/10", "transformation": "/10",
"ChannelGroup": "Status", "ChannelGroup": "Status",

View File

@ -72,8 +72,9 @@
"property": "temperature", "property": "temperature",
"friendlyName": "Temperature", "friendlyName": "Temperature",
"channel": "temperature", "channel": "temperature",
"channelType": "temperature", "channelType": "temperatureC",
"type": "Number", "unit": "CELCIUS",
"type": "Number:Temperature",
"refresh": true, "refresh": true,
"actions": [] "actions": []
}, },