Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const exposes = require('zigbee-herdsman-converters/lib/exposes');
- const fz = {...require('zigbee-herdsman-converters/converters/fromZigbee'), legacy: require('zigbee-herdsman-converters/lib/legacy').fromZigbee};
- const tz = require('zigbee-herdsman-converters/converters/toZigbee');
- const globalStore = require('zigbee-herdsman-converters/lib/store');
- const reporting = require('zigbee-herdsman-converters/lib/reporting');
- const extend = require('zigbee-herdsman-converters/lib/extend');
- const e = exposes.presets;
- const ea = exposes.access;
- const constants = require('zigbee-herdsman-converters/lib/constants');
- const definition = {
- zigbeeModel: ['3157100'],
- model: '3157100',
- vendor: 'Centralite',
- description: '3-Series pearl touch thermostat,',
- fromZigbee: [fz.battery, fz.thermostat, fz.fan, fz.ignore_time_read],
- toZigbee: [tz.factory_reset, tz.thermostat_local_temperature, tz.thermostat_local_temperature_calibration,
- tz.thermostat_occupied_heating_setpoint, tz.thermostat_occupied_cooling_setpoint,
- tz.thermostat_setpoint_raise_lower, tz.thermostat_remote_sensing,
- tz.thermostat_control_sequence_of_operation, tz.thermostat_system_mode,
- tz.thermostat_relay_status_log, tz.fan_mode, tz.thermostat_running_state, tz.thermostat_temperature_setpoint_hold],
- exposes: [e.battery(),
- exposes.binary('temperature_setpoint_hold', ea.ALL, true, false)
- .withDescription('Prevent changes. `false` = run normally. `true` = prevent from making changes.'),
- exposes.climate().withSetpoint('occupied_heating_setpoint', 10, 30, 1).withLocalTemperature()
- .withSystemMode(['off', 'heat', 'cool', 'emergency_heating'])
- .withRunningState(['idle', 'heat', 'cool', 'fan_only']).withFanMode(['auto', 'on'])
- .withSetpoint('occupied_cooling_setpoint', 10, 30, 1)
- .withLocalTemperatureCalibration(-30, 30, 0.1)],
- meta: {battery: {voltageToPercentage: '3V_1500_2800'}},
- configure: async (device, coordinatorEndpoint, logger) => {
- const endpoint = device.getEndpoint(1);
- await reporting.bind(endpoint, coordinatorEndpoint, ['genPowerCfg', 'hvacThermostat', 'hvacFanCtrl']);
- await reporting.batteryVoltage(endpoint);
- await reporting.thermostatRunningState(endpoint);
- await reporting.thermostatTemperature(endpoint);
- await reporting.fanMode(endpoint);
- await reporting.thermostatTemperatureSetpointHold(endpoint);
- },
- };
- module.exports = definition;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement