forked from Koenkk/zigbee-herdsman-converters
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added support for Namron Touch Termostat model 4512737 New device from Namron supported https://www.namron.com/products/namron-zigbee-touch-termostat-16a-hvit/ * Removed duplicated code * Update namron.js * Added support for Namron Touch Termostat model 4512737 New device from Namron supported https://www.namron.com/products/namron-zigbee-touch-termostat-16a-hvit/ * Removed duplicated code * Update namron.js * Added basic support for Connecte thermostat Added fromzigbee support * Cleaned up exposes and fromzigbee Fixed exposes and some attributes * Fixing exposes take 2 Need to comment out preset and sensor until i get tozigbee working. * Added support for Connecte Smart Thermostat * Fixed failing unittests * Update connecte.js Co-authored-by: Koen Kanters <[email protected]>
- Loading branch information
Showing
4 changed files
with
175 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
const exposes = require('../lib/exposes'); | ||
const fz = {...require('../converters/fromZigbee'), legacy: require('../lib/legacy').fromZigbee}; | ||
const tz = require('../converters/toZigbee'); | ||
const tuya = require('../lib/tuya'); | ||
const e = exposes.presets; | ||
const ea = exposes.access; | ||
|
||
module.exports = [ | ||
{ | ||
fingerprint: [{modelID: 'TS0601', manufacturerName: '_TZE200_4hbx5cvx'}], | ||
model: '4500994', | ||
vendor: 'Connecte', | ||
description: 'Smart thermostat', | ||
fromZigbee: [fz.connecte_thermostat], | ||
toZigbee: [tz.connecte_thermostat], | ||
onEvent: tuya.onEventSetTime, | ||
configure: async (device, coordinatorEndpoint, logger) => { | ||
const endpoint = device.getEndpoint(1); | ||
// Do a "magic" read on the basic cluster to trigger the thermostat start reporting. | ||
await endpoint.read('genBasic', ['manufacturerName', 'zclVersion', 'appVersion', 'modelId', 'powerSource', 0xfffe]); | ||
}, | ||
exposes: [ | ||
exposes.binary('state', ea.STATE_SET, 'ON', 'OFF') | ||
.withDescription('On/off state of the switch'), | ||
e.child_lock(), | ||
e.window_detection(), | ||
exposes.climate() | ||
.withSetpoint('current_heating_setpoint', 5, 35, 1, ea.STATE_SET) | ||
.withLocalTemperature(ea.STATE) | ||
.withLocalTemperatureCalibration(-9, 9, 1, ea.STATE_SET) | ||
.withSystemMode(['heat', 'auto'], ea.STATE_SET) | ||
.withRunningState(['idle', 'heat'], ea.STATE) | ||
.withAwayMode() | ||
.withSensor(['internal', 'external', 'both']), | ||
exposes.numeric('external_temperature', ea.STATE) | ||
.withUnit('°C') | ||
.withDescription('Current temperature measured on the external sensor (floor)'), | ||
exposes.numeric('hysteresis', ea.STATE_SET) | ||
.withDescription('The difference between the temperature at which the thermostat switches off, ' + | ||
'and the temperature at which it switches on again.') | ||
.withValueMin(1) | ||
.withValueMax(9), | ||
exposes.numeric('max_temperature_protection', ea.STATE_SET) | ||
.withUnit('°C') | ||
.withDescription('Max guarding temperature') | ||
.withValueMin(20) | ||
.withValueMax(95), | ||
], | ||
}, | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters