UNPKG

zigbee-herdsman-converters

Version:

Collection of device converters to be used with zigbee-herdsman

26 lines (24 loc) 1.39 kB
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_dzuqwsyg'}], model: 'BAC-002-ALZB', vendor: 'HKGK', description: 'BAC series thermostat', fromZigbee: [fz.moes_thermostat], toZigbee: [tz.moes_thermostat_child_lock, tz.moes_thermostat_current_heating_setpoint, tz.moes_thermostat_mode, tz.hgkg_thermostat_standby, tz.moes_thermostat_sensor, tz.moes_thermostat_calibration, tz.moes_thermostat_deadzone_temperature, tz.moes_thermostat_max_temperature_limit], exposes: [e.child_lock(), e.deadzone_temperature(), e.max_temperature_limit(), exposes.climate().withSetpoint('current_heating_setpoint', 5, 30, 1, ea.STATE_SET) .withLocalTemperature(ea.STATE).withLocalTemperatureCalibration(ea.STATE_SET) .withSystemMode(['off', 'cool'], ea.STATE_SET).withRunningState(['idle', 'heat', 'cool'], ea.STATE) .withPreset(['hold', 'program']).withSensor(['IN', 'AL', 'OU'], ea.STATE_SET)], onEvent: tuya.onEventSetLocalTime, }, ];