Skip to content

Commit eeda044

Browse files
committed
Fix modular profile formatting
1 parent 5574115 commit eeda044

File tree

3 files changed

+52
-14
lines changed

3 files changed

+52
-14
lines changed

drivers/SmartThings/matter-thermostat/profiles/air-purifier-modular.yml

Lines changed: 35 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,78 +7,111 @@ components:
77
- id: fanSpeedPercent
88
version: 1
99
- id: fanOscillationMode
10+
version: 1
1011
optional: true
1112
- id: windMode
13+
version: 1
1214
optional: true
1315
- id: thermostatHeatingSetpoint
16+
version: 1
1417
optional: true
1518
- id: thermostatMode
19+
version: 1
1620
optional: true
1721
- id: thermostatOperatingState
22+
version: 1
1823
optional: true
1924
- id: temperatureMeasurement
20-
optional: true
21-
- id: airQualityHealthConcern
25+
version: 1
2226
optional: true
2327
- id: relativeHumidityMeasurement
28+
version: 1
29+
optional: true
30+
- id: airQualityHealthConcern
31+
version: 1
2432
optional: true
2533
- id: carbonMonoxideMeasurement
34+
version: 1
2635
optional: true
2736
- id: carbonMonoxideHealthConcern
37+
version: 1
2838
optional: true
2939
- id: carbonDioxideMeasurement
40+
version: 1
3041
optional: true
3142
- id: carbonDioxideHealthConcern
43+
version: 1
3244
optional: true
3345
- id: nitrogenDioxideMeasurement
46+
version: 1
3447
optional: true
3548
- id: nitrogenDioxideHealthConcern
49+
version: 1
3650
optional: true
3751
- id: ozoneMeasurement
52+
version: 1
3853
optional: true
3954
- id: ozoneHealthConcern
55+
version: 1
4056
optional: true
4157
- id: formaldehydeMeasurement
58+
version: 1
4259
optional: true
4360
- id: formaldehydeHealthConcern
61+
version: 1
4462
optional: true
4563
- id: veryFineDustSensor
64+
version: 1
4665
optional: true
4766
- id: veryFineDustHealthConcern
67+
version: 1
4868
optional: true
4969
- id: fineDustHealthConcern
70+
version: 1
5071
optional: true
5172
- id: dustSensor
73+
version: 1
5274
optional: true
5375
- id: dustHealthConcern
76+
version: 1
5477
optional: true
5578
- id: radonMeasurement
79+
version: 1
5680
optional: true
5781
- id: radonHealthConcern
82+
version: 1
5883
optional: true
5984
- id: tvocMeasurement
85+
version: 1
6086
optional: true
6187
- id: tvocHealthConcern
88+
version: 1
6289
optional: true
6390
- id: firmwareUpdate
91+
version: 1
6492
- id: refresh
93+
version: 1
6594
categories:
6695
- name: AirPurifier
6796
- id: activatedCarbonFilter
6897
optional: true
6998
capabilities:
7099
- id: filterState
100+
version: 1
71101
optional: true
72102
- id: filterStatus
103+
version: 1
73104
optional: true
74105
categories:
75106
- name: AirPurifier
76107
- id: hepaFilter
77108
optional: true
78109
capabilities:
79110
- id: filterState
111+
version: 1
80112
optional: true
81113
- id: filterStatus
114+
version: 1
82115
optional: true
83116
categories:
84117
- name: AirPurifier

drivers/SmartThings/matter-thermostat/profiles/thermostat-modular.yml

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,27 +3,33 @@ components:
33
- id: main
44
capabilities:
55
- id: temperatureMeasurement
6+
version: 1
67
- id: thermostatMode
8+
version: 1
9+
- id: thermostatFanMode
10+
version: 1
11+
optional: true
712
- id: thermostatHeatingSetpoint
13+
version: 1
814
optional: true
915
- id: thermostatCoolingSetpoint
16+
version: 1
1017
optional: true
1118
- id: thermostatOperatingState
19+
version: 1
1220
optional: true
13-
- id: batteryLevel
14-
optional: true
15-
- id: firmwareUpdate
16-
- id: refresh
1721
- id: battery
22+
version: 1
1823
optional: true
19-
- id: thermostatFanMode
24+
- id: batteryLevel
25+
version: 1
2026
optional: true
2127
- id: relativeHumidityMeasurement
28+
version: 1
2229
optional: true
30+
- id: firmwareUpdate
31+
version: 1
32+
- id: refresh
33+
version: 1
2334
categories:
2435
- name: Thermostat
25-
preferences:
26-
- preferenceId: tempOffset
27-
explicit: true
28-
- preferenceId: humidityOffset
29-
explicit: true

drivers/SmartThings/matter-thermostat/src/init.lua

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -493,8 +493,6 @@ local function device_init(driver, device)
493493
end
494494
end
495495
schedule_polls_for_cumulative_energy_imported(device)
496-
497-
match_profile(driver, device)
498496
end
499497

500498
local function info_changed(driver, device, event, args)
@@ -1046,6 +1044,7 @@ end
10461044

10471045
function match_profile(driver, device)
10481046
if supports_modular_profile(device) then
1047+
print("CHT Calling modular profile match")
10491048
match_modular_profile(driver, device)
10501049
else
10511050
match_profile_switch(driver, device)

0 commit comments

Comments
 (0)