Skip to content

Commit

Permalink
add report handling to generic light_onoff_brightness (#258)
Browse files Browse the repository at this point in the history
* add report handling to generic light_onoff_brightness

* Update devices.js

* Update devices.js

* Update devices.js
  • Loading branch information
jbmbn authored and Koenkk committed Jan 31, 2019
1 parent 898727c commit 421e5ba
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions devices.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,22 +11,31 @@ const repInterval = {
const generic = {
light_onoff_brightness: {
supports: 'on/off, brightness',
fromZigbee: [fz.light_brightness, fz.light_state],
fromZigbee: [fz.light_brightness, fz.light_state, fz.generic_state, fz.light_brightness_report],
toZigbee: [tz.on_off, tz.light_brightness, tz.ignore_transition, tz.light_alert],
},
light_onoff_brightness_colortemp: {
supports: 'on/off, brightness, color temperature',
fromZigbee: [fz.light_brightness, fz.light_color_colortemp, fz.light_state],
fromZigbee: [
fz.light_brightness, fz.light_color_colortemp, fz.light_state, fz.generic_state,
fz.light_brightness_report,
],
toZigbee: [tz.on_off, tz.light_brightness, tz.light_colortemp, tz.ignore_transition, tz.light_alert],
},
light_onoff_brightness_colorxy: {
supports: 'on/off, brightness, color xy',
fromZigbee: [fz.light_brightness, fz.light_color_colortemp, fz.light_state],
fromZigbee: [
fz.light_brightness, fz.light_color_colortemp, fz.light_state, fz.generic_state,
fz.light_brightness_report,
],
toZigbee: [tz.on_off, tz.light_brightness, tz.light_color, tz.ignore_transition, tz.light_alert],
},
light_onoff_brightness_colortemp_colorxy: {
supports: 'on/off, brightness, color temperature, color xy',
fromZigbee: [fz.light_brightness, fz.light_color_colortemp, fz.light_state],
fromZigbee: [
fz.light_brightness, fz.light_color_colortemp, fz.light_state, fz.generic_state,
fz.light_brightness_report,
],
toZigbee: [
tz.on_off, tz.light_brightness, tz.light_colortemp, tz.light_color, tz.ignore_transition,
tz.light_alert,
Expand Down

0 comments on commit 421e5ba

Please sign in to comment.