Skip to content

Commit 99604b0

Browse files
manupZehir
andauthored
Add ui_name in generic/subdevices as human readable device type (#8368)
* Add `ui_name` in generic/subdevices for as human readable type string Historical there are REST-API device types like ZHAWater that can't be changed to stay compatible. The new `ui_name` key defines a human readable text like "Water leak sensor" which can be displayed in the UI and other things like the compatibility list. * Trigger validation --------- Co-authored-by: Zehir <zehir@zorim.fr>
1 parent d9786f8 commit 99604b0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+44
-0
lines changed

devices/generic/subdevices/air_purifier.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"schema": "subdevice1.schema.json",
33
"type": "$TYPE_AIR_PURIFIER",
44
"name": "ZHAAirPurifier",
5+
"ui_name": "Air purifier",
56
"restapi": "/sensors",
67
"order": 20,
78
"uuid": [

devices/generic/subdevices/air_quality_sensor.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"schema": "subdevice1.schema.json",
33
"type": "$TYPE_AIR_QUALITY_SENSOR",
44
"name": "ZHAAirQuality",
5+
"ui_name": "Air quality sensor",
56
"restapi": "/sensors",
67
"order": 20,
78
"uuid": [

devices/generic/subdevices/alarm_sensor.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"schema": "subdevice1.schema.json",
33
"type": "$TYPE_ALARM_SENSOR",
44
"name": "ZHAAlarm",
5+
"ui_name": "Alarm sensor",
56
"restapi": "/sensors",
67
"order": 30,
78
"uuid": [

devices/generic/subdevices/ancillary_control.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"schema": "subdevice1.schema.json",
33
"type": "$TYPE_ANCILLARY_CONTROL",
44
"name": "ZHAAncillaryControl",
5+
"ui_name": "Ancillary control",
56
"restapi": "/sensors",
67
"order": 20,
78
"uuid": [

devices/generic/subdevices/battery_sensor.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"schema": "subdevice1.schema.json",
33
"type": "$TYPE_BATTERY_SENSOR",
44
"name": "ZHABattery",
5+
"ui_name": "Battery sensor",
56
"restapi": "/sensors",
67
"order": 30,
78
"uuid": [

devices/generic/subdevices/carbondioxide_sensor.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"schema": "subdevice1.schema.json",
33
"type": "$TYPE_CARBONDIOXIDE_SENSOR",
44
"name": "ZHACarbonDioxide",
5+
"ui_name": "Carbon dioxide sensor",
56
"restapi": "/sensors",
67
"order": 20,
78
"uuid": [

devices/generic/subdevices/carbonmonoxide_sensor.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"schema": "subdevice1.schema.json",
33
"type": "$TYPE_CARBONMONOXIDE_SENSOR",
44
"name": "ZHACarbonMonoxide",
5+
"ui_name": "Carbon monoxide sensor",
56
"restapi": "/sensors",
67
"order": 20,
78
"uuid": [

devices/generic/subdevices/color_light.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"schema": "subdevice1.schema.json",
33
"type": "$TYPE_COLOR_LIGHT",
44
"name": "Color light",
5+
"ui_name": "Color light",
56
"restapi": "/lights",
67
"order": 10,
78
"uuid": [

devices/generic/subdevices/color_temperature_light.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"schema": "subdevice1.schema.json",
33
"type": "$TYPE_COLOR_TEMPERATURE_LIGHT",
44
"name": "Color temperature light",
5+
"ui_name": "Color temperature light",
56
"restapi": "/lights",
67
"order": 11,
78
"uuid": [

devices/generic/subdevices/consumption_sensor.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"schema": "subdevice1.schema.json",
33
"type": "$TYPE_CONSUMPTION_SENSOR",
44
"name": "ZHAConsumption",
5+
"ui_name": "Consumption sensor",
56
"restapi": "/sensors",
67
"order": 22,
78
"uuid": [

0 commit comments

Comments
 (0)