Skip to content

Commit

Permalink
Update zigbee-herdsman-converters.
Browse files Browse the repository at this point in the history
  • Loading branch information
Koenkk committed Oct 3, 2019
1 parent 159a846 commit e7bf5ee
Show file tree
Hide file tree
Showing 5 changed files with 154 additions and 633 deletions.
22 changes: 12 additions & 10 deletions lib/extension/homeassistant.js
Original file line number Diff line number Diff line change
Expand Up @@ -249,12 +249,11 @@ const cfg = {
},

// Light
'light_brightness_colortemp_colorxy_white': {
'light_brightness_colorxy_white': {
type: 'light',
object_id: 'light',
discovery_payload: {
brightness: true,
color_temp: true,
xy: true,
white_value: true,
schema: 'json',
Expand Down Expand Up @@ -504,7 +503,8 @@ const mapping = {
'73693': [cfg.light_brightness_colortemp_colorxy],
'324131092621': [cfg.sensor_action, cfg.sensor_battery],
'9290012607': [cfg.binary_sensor_occupancy, cfg.sensor_temperature, cfg.sensor_illuminance, cfg.sensor_battery],
'GL-C-008': [cfg.light_brightness_colortemp_colorxy_white],
'GL-C-008': [cfg.light_brightness_colortemp_colorxy],
'GL-C-009': [cfg.light_brightness],
'STSS-MULT-001': [cfg.binary_sensor_contact, cfg.sensor_battery],
'E11-G23/E11-G33': [cfg.light_brightness],
'E1ACA4ABE38A': [cfg.light_brightness],
Expand Down Expand Up @@ -587,7 +587,7 @@ const mapping = {
'D1821': [cfg.light_brightness_colortemp_colorxy],
'ZNCLDJ11LM': [cfg.cover_position, cfg.sensor_cover],
'LTFY004': [cfg.light_brightness_colorxy],
'GL-S-007Z': [cfg.light_brightness_colortemp_colorxy],
'GL-S-007Z': [cfg.light_brightness_colorxy_white],
'3325-S': [cfg.sensor_temperature, cfg.binary_sensor_occupancy],
'4713407': [cfg.light_brightness],
'464800': [cfg.light_brightness_colortemp],
Expand All @@ -600,6 +600,7 @@ const mapping = {
'RB 178 T': [cfg.light_brightness_colortemp],
'45856GE': [cfg.switch],
'GL-D-003Z': [cfg.light_brightness_colortemp_colorxy],
'GL-D-005Z': [cfg.light_brightness_colortemp_colorxy],
'GD-CZ-006': [cfg.light_brightness],
'AIRAM-CTR.U': [],
'HGZB-20-DE': [cfg.switch],
Expand All @@ -608,14 +609,15 @@ const mapping = {
'AV2010/32': [],
'HGZB-07A': [cfg.light_brightness_colortemp_colorxy],
'E1524/E1810': [cfg.sensor_action, cfg.sensor_battery],
'GL-C-006/GL-C-009': [cfg.light_brightness_colortemp],
'GL-C-006': [cfg.light_brightness_colortemp],
'GL-C-007': [cfg.light_brightness_colorxy_white],
'100.424.11': [cfg.light_brightness_colortemp],
'AC0251100NJ': [cfg.sensor_action, cfg.sensor_battery],
'71831': [cfg.light_brightness_colortemp],
'404000/404005/404012': [cfg.light_brightness_colortemp_colorxy],
'404006/404008/404004': [cfg.light_brightness_colortemp],
'MLI-404011': [cfg.sensor_action],
'GL-S-003Z': [cfg.light_brightness_colortemp_colorxy],
'GL-S-003Z': [cfg.light_brightness_colorxy_white],
'HS1DS-E': [cfg.binary_sensor_contact],
'SP600': [cfg.switch, cfg.sensor_power],
'1613V': [cfg.switch, cfg.sensor_power],
Expand Down Expand Up @@ -730,10 +732,7 @@ const mapping = {
'ZG9101SAC-HP': [cfg.light_brightness],
'RS 122': [cfg.light_brightness],
'GL-B-001Z': [cfg.light_brightness_colortemp_colorxy],
'IM6001-MTP01': [
cfg.sensor_temperature, cfg.sensor_battery,
cfg.binary_sensor_occupancy,
],
'IM6001-MTP01': [cfg.sensor_temperature, cfg.sensor_battery, cfg.binary_sensor_occupancy],
'U86K31ND6': [switchWithPostfix('left'), switchWithPostfix('right'), switchWithPostfix('center')],
'HLD812-Z-SC': [cfg.light_brightness],
'HLC610-Z': [cfg.light_brightness],
Expand Down Expand Up @@ -907,6 +906,9 @@ const mapping = {
'8718699688820': [cfg.light_brightness],
'GL-W-001Z': [cfg.switch],
'E1766': [cfg.sensor_click, cfg.sensor_battery],
'929001953101': [cfg.light_brightness_colortemp_colorxy],
'8718699673147': [cfg.light_brightness],
'3300-P': [cfg.sensor_temperature, cfg.binary_sensor_contact, cfg.sensor_battery],
};

Object.keys(mapping).forEach((key) => {
Expand Down
Loading

0 comments on commit e7bf5ee

Please sign in to comment.