zigbee-herdsman-converters 14.0.518 → 14.0.519

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5379,6 +5379,15 @@ const converters = {
5379
5379
  return {action: msg.data.presentValue ? 'moving' : 'stopped'};
5380
5380
  },
5381
5381
  },
5382
+ legrand_binary_input_on_off: {
5383
+ cluster: 'genBinaryInput',
5384
+ type: ['attributeReport', 'readResponse'],
5385
+ convert: (model, msg, publish, options, meta) => {
5386
+ const multiEndpoint = model.meta && model.meta.multiEndpoint;
5387
+ const property = multiEndpoint ? postfixWithEndpointName('state', msg, model) : 'state';
5388
+ return {[property]: msg.data.presentValue ? 'ON' : 'OFF'};
5389
+ },
5390
+ },
5382
5391
  bticino_4027C_binary_input_moving: {
5383
5392
  cluster: 'genBinaryInput',
5384
5393
  type: ['attributeReport', 'readResponse'],
@@ -216,6 +216,36 @@ module.exports = [
216
216
  await reporting.thermostatTemperatureSetpointHold(endpoint);
217
217
  },
218
218
  },
219
+ {
220
+ zigbeeModel: ['3156105'],
221
+ model: '3156105',
222
+ vendor: 'Centralite',
223
+ description: 'HA thermostat',
224
+ fromZigbee: [fz.battery, fz.thermostat, fz.fan, fz.ignore_time_read],
225
+ toZigbee: [tz.factory_reset, tz.thermostat_local_temperature, tz.thermostat_local_temperature_calibration,
226
+ tz.thermostat_occupied_heating_setpoint, tz.thermostat_occupied_cooling_setpoint,
227
+ tz.thermostat_setpoint_raise_lower, tz.thermostat_remote_sensing,
228
+ tz.thermostat_control_sequence_of_operation, tz.thermostat_system_mode,
229
+ tz.thermostat_relay_status_log, tz.fan_mode, tz.thermostat_running_state, tz.thermostat_temperature_setpoint_hold],
230
+ exposes: [e.battery(),
231
+ exposes.binary('temperature_setpoint_hold', ea.ALL, true, false)
232
+ .withDescription('Prevent changes. `false` = run normally. `true` = prevent from making changes.'),
233
+ exposes.climate().withSetpoint('occupied_heating_setpoint', 6.66, 30, 1).withLocalTemperature()
234
+ .withSystemMode(['off', 'heat', 'cool', 'emergency_heating'])
235
+ .withRunningState(['idle', 'heat', 'cool', 'fan_only']).withFanMode(['auto', 'on'])
236
+ .withSetpoint('occupied_cooling_setpoint', 6.66, 30, 1)
237
+ .withLocalTemperatureCalibration(-30, 30, 0.1)],
238
+ meta: {battery: {voltageToPercentage: '3V_1500_2800'}},
239
+ configure: async (device, coordinatorEndpoint, logger) => {
240
+ const endpoint = device.getEndpoint(1);
241
+ await reporting.bind(endpoint, coordinatorEndpoint, ['genPowerCfg', 'hvacThermostat', 'hvacFanCtrl']);
242
+ await reporting.batteryVoltage(endpoint);
243
+ await reporting.thermostatRunningState(endpoint);
244
+ await reporting.thermostatTemperature(endpoint);
245
+ await reporting.fanMode(endpoint);
246
+ await reporting.thermostatTemperatureSetpointHold(endpoint);
247
+ },
248
+ },
219
249
  {
220
250
  zigbeeModel: ['4200-C'],
221
251
  model: '4200-C',
@@ -324,7 +324,7 @@ module.exports = [
324
324
  model: '067772',
325
325
  vendor: 'Legrand',
326
326
  description: 'Double wired switch with neutral',
327
- fromZigbee: [fz.on_off, fz.legrand_cluster_fc01],
327
+ fromZigbee: [fz.on_off, fz.legrand_binary_input_on_off, fz.legrand_cluster_fc01],
328
328
  toZigbee: [tz.on_off, tz.legrand_settingAlwaysEnableLed, tz.legrand_settingEnableLedIfOn],
329
329
  exposes: [e.switch().withEndpoint('left'),
330
330
  e.switch().withEndpoint('right'),
@@ -333,9 +333,9 @@ module.exports = [
333
333
  meta: {multiEndpoint: true},
334
334
  configure: async (device, coordinatorEndpoint, logger) => {
335
335
  const endpointLeft = device.getEndpoint(2);
336
- await reporting.bind(endpointLeft, coordinatorEndpoint, ['genOnOff']);
336
+ await reporting.bind(endpointLeft, coordinatorEndpoint, ['genOnOff', 'genBinaryInput']);
337
337
  const endpointRight = device.getEndpoint(1);
338
- await reporting.bind(endpointRight, coordinatorEndpoint, ['genOnOff']);
338
+ await reporting.bind(endpointRight, coordinatorEndpoint, ['genOnOff', 'genBinaryInput']);
339
339
  },
340
340
  endpoint: (device) => {
341
341
  return {left: 2, right: 1};
@@ -2555,6 +2555,15 @@ module.exports = [
2555
2555
  extend: hueExtend.light_onoff_brightness_colortemp({colorTempRange: [153, 454]}),
2556
2556
  ota: ota.zigbeeOTA,
2557
2557
  },
2558
+ {
2559
+ zigbeeModel: ['5047130P9'],
2560
+ model: '5047130P9 ',
2561
+ vendor: 'Philips',
2562
+ description: 'Hue White ambiance Buckram single spotlight with bluetooth',
2563
+ meta: {turnsOffAtBrightness1: true},
2564
+ extend: hueExtend.light_onoff_brightness_colortemp({colorTempRange: [153, 454]}),
2565
+ ota: ota.zigbeeOTA,
2566
+ },
2558
2567
  {
2559
2568
  zigbeeModel: ['HML006'],
2560
2569
  model: '7531609',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zigbee-herdsman-converters",
3
- "version": "14.0.518",
3
+ "version": "14.0.519",
4
4
  "description": "Collection of device converters to be used with zigbee-herdsman",
5
5
  "main": "index.js",
6
6
  "files": [