Skip to content

Commit 7fa7a56

Browse files
committed
Merge branch 'improve-thermostat'
2 parents 6fad358 + c4a7c91 commit 7fa7a56

File tree

1 file changed

+6
-21
lines changed

1 file changed

+6
-21
lines changed

drivers/Thermostat-Sinope-TH1123ZB.groovy

Lines changed: 6 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
*
66
* 1.0 (2022-12-31): Initial release
77
* 1.1 (2022-01-04): Handled short circuit and rmsVoltage/rmsCurrent
8+
* 1.2 (2024-11-25): Remove generic Thermostat capability
89
* Author: fblackburn
910
* Inspired by:
1011
* - Sinope => https://github.com/SmartThingsCommunity/SmartThingsPublic/tree/master/devicetypes/sinope-technologies
@@ -22,15 +23,14 @@ metadata
2223
author: 'fblackburn',
2324
) {
2425
capability 'Configuration'
25-
capability 'Thermostat'
26+
capability 'CurrentMeter'
27+
capability 'EnergyMeter'
28+
capability 'Lock'
29+
capability 'PowerMeter'
2630
capability 'Refresh'
2731
capability 'TemperatureMeasurement'
2832
capability 'ThermostatHeatingSetpoint'
2933
capability 'ThermostatMode'
30-
capability 'Lock'
31-
capability 'PowerMeter'
32-
capability 'EnergyMeter'
33-
capability 'CurrentMeter'
3434
capability 'VoltageMeasurement'
3535

3636
attribute 'maxPower', 'number'
@@ -69,11 +69,6 @@ metadata
6969
command('emergencyHeat', notSupported)
7070
command('auto', notSupported)
7171
command('cool', notSupported)
72-
command('fanCirculate', notSupported)
73-
command('fanOn', notSupported)
74-
command('fanAuto', notSupported)
75-
command('setThermostatFanMode', notSupported)
76-
command('setCoolingSetpoint', notSupported)
7772

7873
fingerprint(
7974
manufacturer: 'Sinope Technologies',
@@ -195,7 +190,7 @@ List<Map> parse(String description) {
195190
}
196191
if (descMap.additionalAttrs) {
197192
// When many events from same cluster must be sent at the same time,
198-
// device other events in additionalAttrs instead of sending several
193+
// device send other events in additionalAttrs instead of sending several
199194
if (settings.trace) {
200195
log.trace "TH112XZB >> Found additionalAttrs: ${descMap}"
201196
}
@@ -346,16 +341,6 @@ void auto() { return }
346341

347342
void emergencyHeat() { return }
348343

349-
void setCoolingSetpoint() { return }
350-
351-
void fanCirculate() { return }
352-
353-
void fanOn() { return }
354-
355-
void fanAuto() { return }
356-
357-
void setThermostatFanMode() { return }
358-
359344
List<String> getSupportedThermostatModes() {
360345
return ['heat', 'off']
361346
}

0 commit comments

Comments
 (0)