Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions devices/sedea.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
const fz = require('zigbee-herdsman-converters/converters/fromZigbee');
const tz = require('zigbee-herdsman-converters/converters/toZigbee');
const exposes = require('zigbee-herdsman-converters/lib/exposes');
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 m = exposes.mappings;

const definition = {
zigbeeModel: ['eTH700'],
model: 'eTH700',
vendor: 'SEDEA',
description: 'Thermostatic radiator valve',
fromZigbee: [fz.battery, fz.thermostat],
toZigbee: [tz.thermostat_weekly_schedule, tz.thermostat_local_temperature, tz.thermostat_system_mode,
tz.thermostat_running_state, tz.thermostat_occupied_heating_setpoint],
meta: { thermostat: m.thermostat },
configure: async (device, coordinatorEndpoint, logger) => {
const endpoint = device.getEndpoint(1);
await reporting.bind(endpoint, coordinatorEndpoint, ['genBasic', 'haDiagnostic', 'seMetering', 'thermostat']);
await reporting.thermostatTemperature(endpoint);
await reporting.thermostatPIHeatingDemand(endpoint);
},
exposes: [e.battery(), e.thermostat()],
};

module.exports = definition;