Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Testing: reporting #1064

Open
Koenkk opened this issue Feb 10, 2019 · 78 comments

Comments

Projects
None yet
@Koenkk
Copy link
Owner

commented Feb 10, 2019

Reporting is a new feature which is currently only available in the dev branch. When reporting is enabled, the device will report their state changes to zigbee2mqtt. This is especially handy when the state of a bulb is changed by e.g. a remote or via groups.

To enable report, add the following to your configuration.yaml:

advanced:
  report: true

As reporting is a feature of the device, not all devices may support this.

Current findings

  • IKEA TRADFRI bulbs work as expected
  • Hue bulbs only report on/off state (limitation of Hue bulbs) (#1064 (comment))

@Koenkk Koenkk referenced this issue Feb 10, 2019

Open

Testing: binding #782

0 of 1 task complete
@milakov

This comment has been minimized.

Copy link

commented Feb 10, 2019

Hi!

Gledopto GL-B-007Z:

Changing color temperature triggers this (along with actual ct of the bulb changing):

zigbee2mqtt:error 2019-2-10 22:06:26 No converter available for 'color_temp' (166)

Changing brightness doesn't trigger anything in the logs (but the brightness of the physical bulb actually changes, HA still thinks the brightness is unchanged).

Koenkk added a commit to Koenkk/zigbee-shepherd-converters that referenced this issue Feb 10, 2019

@Koenkk

This comment has been minimized.

Copy link
Owner Author

commented Feb 10, 2019

@milakov should be fixed in the latest dev branch, if not, please open a separate issue as this is not related to this issue.

@sylarevan

This comment has been minimized.

Copy link

commented Feb 10, 2019

Just tried with a group of two Hue bulbs. Changing the state (ON or OFF) of the group does not report the individual change of state of each bulb.
Logs in debug mode are here.

@sylarevan sylarevan referenced this issue Feb 10, 2019

Open

Testing: group support #764

0 of 1 task complete
@JumpmanJunior

This comment has been minimized.

Copy link

commented Feb 10, 2019

I tried to activate reporting for a Philips and a Ikea bulb. But when I control the bulbs with a bound Philips dimmer switch the status changes are not reported. Here is the log for the Ikea bulb:

2019-2-10 22:58:08 - debug: Setup reporting for 0x000d6ffffe1df5f5 - genOnOff - onOff
2019-2-10 22:58:09 - debug: Setup reporting for 0x000d6ffffe1df5f5 - genLevelCtrl - currentLevel
2019-2-10 22:58:09 - debug: Successfully setup reporting for 0x000d6ffffe1df5f5 - genOnOff - onOff
2019-2-10 22:58:09 - debug: Successfully setup reporting for 0x000d6ffffe1df5f5 - genLevelCtrl - currentLevel
2019-2-10 22:58:09 - debug: Setup reporting for 0x000d6ffffe1df5f5 - lightingColorCtrl - currentX
2019-2-10 22:58:09 - debug: Successfully setup reporting for 0x000d6ffffe1df5f5 - lightingColorCtrl - currentX
2019-2-10 22:58:09 - debug: Setup reporting for 0x000d6ffffe1df5f5 - lightingColorCtrl - currentY
2019-2-10 22:58:09 - debug: Successfully setup reporting for 0x000d6ffffe1df5f5 - lightingColorCtrl - currentY

@way2many

This comment has been minimized.

Copy link
Contributor

commented Feb 12, 2019

I tested reporting of two Tradfri GU10 in my hallway this morning. I switched them off with the wire switch (220V) and put them back on. This is the log:

2/12/2019, 6:19:55 AM - debug: Saving state to file /app/data/state.json
2/12/2019, 6:21:53 AM - debug: Received zigbee message of type 'endDeviceAnnce' with data '"0x90fd9ffffe1a7413"' of device 'TRADFRI bulb GU10 W 400lm' (0x90fd9ffffe1a7413)
2/12/2019, 6:21:53 AM - debug: Setup reporting for 0x90fd9ffffe1a7413 - genOnOff - onOff
2/12/2019, 6:21:53 AM - debug: Received zigbee message of type 'endDeviceAnnce' with data '"0x90fd9ffffe2a3f57"' of device 'TRADFRI bulb GU10 W 400lm' (0x90fd9ffffe2a3f57)
2/12/2019, 6:21:54 AM - debug: Setup reporting for 0x90fd9ffffe1a7413 - genLevelCtrl - currentLevel
2/12/2019, 6:21:54 AM - debug: Successfully setup reporting for 0x90fd9ffffe1a7413 - genOnOff - onOff
2/12/2019, 6:21:54 AM - debug: Successfully setup reporting for 0x90fd9ffffe1a7413 - genLevelCtrl - currentLevel
2/12/2019, 6:21:54 AM - debug: Setup reporting for 0x90fd9ffffe2a3f57 - genOnOff - onOff
2/12/2019, 6:21:54 AM - debug: Successfully setup reporting for 0x90fd9ffffe2a3f57 - genOnOff - onOff
2/12/2019, 6:21:54 AM - debug: Setup reporting for 0x90fd9ffffe2a3f57 - genLevelCtrl - currentLevel
2/12/2019, 6:21:54 AM - debug: Successfully setup reporting for 0x90fd9ffffe2a3f57 - genLevelCtrl - currentLevel
2/12/2019, 6:21:55 AM - debug: Received zigbee message of type 'devInterview' with data '"0x90fd9ffffe1a7413"'
2/12/2019, 6:21:56 AM - debug: Received zigbee message of type 'devInterview' with data '"0x90fd9ffffe1a7413"'
2/12/2019, 6:21:56 AM - debug: Received zigbee message of type 'devInterview' with data '"0x90fd9ffffe1a7413"'
2/12/2019, 6:21:57 AM - debug: Received zigbee message of type 'devInterview' with data '"0x90fd9ffffe1a7413"'
2/12/2019, 6:21:57 AM - debug: Received zigbee message of type 'devInterview' with data '"0x90fd9ffffe1a7413"'
2/12/2019, 6:21:58 AM - debug: Received zigbee message of type 'devInterview' with data '"0x90fd9ffffe1a7413"'
2/12/2019, 6:21:58 AM - debug: Received zigbee message of type 'devInterview' with data '"0x90fd9ffffe1a7413"'
2/12/2019, 6:21:58 AM - debug: Received zigbee message of type 'devInterview' with data '"0x90fd9ffffe1a7413"'
2/12/2019, 6:21:59 AM - debug: Received zigbee message of type 'devInterview' with data '"0x90fd9ffffe1a7413"'
2/12/2019, 6:21:59 AM - debug: Received zigbee message of type 'devInterview' with data '"0x90fd9ffffe1a7413"'
2/12/2019, 6:21:59 AM - debug: Received zigbee message of type 'devIncoming' with data '"0x90fd9ffffe1a7413"' of device 'TRADFRI bulb GU10 W 400lm' (0x90fd9ffffe1a7413)
2/12/2019, 6:21:59 AM - info: Device incoming...
2/12/2019, 6:21:59 AM - info: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"type":"pairing","message":"device incoming"}'
2/12/2019, 6:21:59 AM - debug: Received zigbee message of type 'devStatus' with data '"online"' of device 'TRADFRI bulb GU10 W 400lm' (0x90fd9ffffe1a7413)
2/12/2019, 6:22:01 AM - debug: Received zigbee message of type 'devInterview' with data '"0x90fd9ffffe2a3f57"'
2/12/2019, 6:22:01 AM - debug: Received zigbee message of type 'devInterview' with data '"0x90fd9ffffe2a3f57"'
2/12/2019, 6:22:01 AM - debug: Received zigbee message of type 'devInterview' with data '"0x90fd9ffffe2a3f57"'
2/12/2019, 6:22:02 AM - debug: Received zigbee message of type 'devInterview' with data '"0x90fd9ffffe2a3f57"'
2/12/2019, 6:22:02 AM - debug: Received zigbee message of type 'devInterview' with data '"0x90fd9ffffe2a3f57"'
2/12/2019, 6:22:03 AM - debug: Received zigbee message of type 'devInterview' with data '"0x90fd9ffffe2a3f57"'
2/12/2019, 6:22:03 AM - debug: Received zigbee message of type 'devInterview' with data '"0x90fd9ffffe2a3f57"'
2/12/2019, 6:22:03 AM - debug: Received zigbee message of type 'devInterview' with data '"0x90fd9ffffe2a3f57"'
2/12/2019, 6:22:04 AM - debug: Received zigbee message of type 'devInterview' with data '"0x90fd9ffffe2a3f57"'
2/12/2019, 6:22:04 AM - debug: Received zigbee message of type 'devInterview' with data '"0x90fd9ffffe2a3f57"'
2/12/2019, 6:22:04 AM - debug: Received zigbee message of type 'devIncoming' with data '"0x90fd9ffffe2a3f57"' of device 'TRADFRI bulb GU10 W 400lm' (0x90fd9ffffe2a3f57)
2/12/2019, 6:22:04 AM - info: Device incoming...
2/12/2019, 6:22:04 AM - info: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"type":"pairing","message":"device incoming"}'
2/12/2019, 6:22:04 AM - debug: Received zigbee message of type 'devStatus' with data '"online"' of device 'TRADFRI bulb GU10 W 400lm' (0x90fd9ffffe2a3f57)
2/12/2019, 6:24:55 AM - debug: Saving state to file /app/data/state.json

I have now multiple questions:

  • What is "endDeviceAnnce" and why did the bulb publish this?
  • Am I correct to interpreting this as when physically switched off, the bulb lose it's reporting function (if it has one)?
  • Am I also correct that when physically switched off, the bulb re-pair itself ?

As I'm unable to bind my Hue Dimmer Switch to my Hue suspension Fair I cannot test the reporting function on those one.

@nanosonde

This comment has been minimized.

Copy link

commented Feb 13, 2019

I am also trying to achieve the same.
I have a TRADFRI remote and TRADFRI driver paired to zigbee2mqtt. I have found out the group ID of the remote by sniffing. Then I have created a group with this ID and added the TRADFRI driver to this group. I can successfully control the driver with the remote and z2m.

The reporting configuration seems to have worked:

  zigbee2mqtt:debug 2/13/2019, 1:45:38 PM Setup reporting for 0x000d6ffffe2cxxxx - genOnOff - onOff
  zigbee2mqtt:debug 2/13/2019, 1:45:38 PM Successfully setup reporting for 0x000d6ffffe2cxxxx - genOnOff - onOff
  zigbee2mqtt:debug 2/13/2019, 1:45:38 PM Setup reporting for 0x000d6ffffe2cxxxx - genLevelCtrl - currentLevel
  zigbee2mqtt:debug 2/13/2019, 1:45:38 PM Successfully setup reporting for 0x000d6ffffe2cxxxx - genLevelCtrl - currentLevel

However, I do not get any reports in z2m if it is controlled by the remote.

@nanosonde

This comment has been minimized.

Copy link

commented Feb 13, 2019

I am not seeing any attribute reports with the sniffer either.
So is it the report configuration which did not work properly although it claims success?

@nanosonde

This comment has been minimized.

Copy link

commented Feb 13, 2019

From the ZCL Configure Reporting Message I see that there is a min interval of 1 and a max interval of 3600. 3600s would be 1h.
So how does the device choose which to use? Is it possible to lower the value to 10s and see what happens?

Of course I would expect that it immediately sends a changed state, but I do not how this reporting is meant to work in detail.

@Koenkk

This comment has been minimized.

Copy link
Owner Author

commented Feb 13, 2019

@nanosonde

This comment has been minimized.

Copy link

commented Feb 13, 2019

@Koenkk I have changed it to 10s and verified with the sniffer that this is sent over the wire.
Unfortunately, it does not work too.

@nanosonde

This comment has been minimized.

Copy link

commented Feb 13, 2019

@Koenkk Somewhere in the deconz-plugin issues I have read that reporting for a TRADFRI device(?) only worked when it is read back. I am not absolutely sure anymore.

@nanosonde

This comment has been minimized.

Copy link

commented Feb 13, 2019

Got it working. I have disabled the generic reporting setup using "report: true".
Instead I have changed device.js for the 10W dimmer similiar to the TRADFRI power outlet.

    {
        zigbeeModel: ['TRADFRI transformer 10W', 'TRADFRI Driver 10W'],
        model: 'ICPSHC24-10EU-IL-1',
        vendor: 'IKEA',
        description: 'TRADFRI driver for wireless control (10 watt)',
        //extend: generic.light_onoff_brightness,
        fromZigbee: [fz.ignore_onoff_change, fz.state],
        toZigbee: [tz.on_off],
        configure: (ieeeAddr, shepherd, coordinator, callback) => {
            const device = shepherd.find(ieeeAddr, 1);
            const cfg = {direction: 0, attrId: 0, dataType: 16, minRepIntval: 0, maxRepIntval: 1000, repChange: 0};
            const actions = [
                (cb) => device.bind('genOnOff', coordinator, cb),
                (cb) => device.foundation('genOnOff', 'configReport', [cfg], foundationCfg, cb),
            ];

            execute(device, actions, callback);
        },
    },

This way the driver immediately reports state changes.

@nanosonde

This comment has been minimized.

Copy link

commented Feb 13, 2019

@Koenkk
Maybe I am missing something, but is the binding to the coordinator missing if reports are enabled using the generic mechansim? Or is this only required for TRADFRI devices?

this.zigbee.report(

There is no binding to the coordinator happening as it is done as show in my previous comment.

@nanosonde

This comment has been minimized.

Copy link

commented Feb 13, 2019

BTW: It looks like this with the above code change:

  zigbee2mqtt:debug 2/13/2019, 7:10:02 PM Received zigbee message of type 'cmdToggle' with data '{"cid":"genOnOff","data":{}}' of device 'TRADFRI remote control' (0xd0cf5efffe0bxxxx)
  zigbee2mqtt:info 2/13/2019, 7:10:02 PM MQTT publish: topic 'zigbee2mqtt/ikea_remotecontrol', payload '{"action":"toggle","linkquality":10,"last_seen":"2019-02-13T19:10:02.922Z","elapsed":5628497}'
  zigbee2mqtt:debug 2/13/2019, 7:10:02 PM Received zigbee message of type 'attReport' with data '{"cid":"genOnOff","data":{"onOff":1}}' of device 'TRADFRI transformer 10W' (0x000d6ffffe2cyyyy)
  zigbee2mqtt:info 2/13/2019, 7:10:02 PM MQTT publish: topic 'zigbee2mqtt/ikea_driver', payload '{"state":"ON","last_seen":"2019-02-13T19:10:02.955Z","linkquality":7,"elapsed":628194}'

Koenkk added a commit that referenced this issue Feb 13, 2019

@Koenkk

This comment has been minimized.

Copy link
Owner Author

commented Feb 13, 2019

@nanosonde I've also added the binding, meaning it should be the same as your custom configure now. Can you factory reset/re-pair the device and verify that it works with report: true?

@nanosonde

This comment has been minimized.

Copy link

commented Feb 13, 2019

@Koenkk I have tested latest dev and seems to be working now as with the custom configure.
As I did a complete ./update.sh I experience an error now concerning the remote control:

  zigbee2mqtt:debug 2/13/2019, 8:42:05 PM Coordinator is already in group '611'
  zigbee2mqtt:error 2/13/2019, 8:42:05 PM Failed to apply coordinator group for IKEA TRADFRI remote control (0xd0cf5efffe0bxxxx)
  zigbee2mqtt:debug 2/13/2019, 8:42:05 PM Coordinator is already in group '99'

Did you change anything here?
This was working before. Group ID 611 is correct. Why is the coordinator already in group 611?
Is it from my testgroup under "groups" in the configuration with the same ID to which I have added my tradfri driver?

If I remove "coordinator_group" from the device config then this error is gone and I also receive the reports from button pushes.

BTW:
Neither the driver nor the remote control need to be put close to the coordinator to pair them.
The remote control just needs the 4-button-press sequence for factory reset which also restarts pairing (without touchlink). The driver just needs a short press with a paperclip to factory reset and restart pairing.

@nanosonde

This comment has been minimized.

Copy link

commented Feb 14, 2019

@Koenkk I have tested latest dev and seems to be working now as with the custom configure.
As I did a complete ./update.sh I experience an error now concerning the remote control:

  zigbee2mqtt:debug 2/13/2019, 8:42:05 PM Coordinator is already in group '611'
  zigbee2mqtt:error 2/13/2019, 8:42:05 PM Failed to apply coordinator group for IKEA TRADFRI remote control (0xd0cf5efffe0bxxxx)
  zigbee2mqtt:debug 2/13/2019, 8:42:05 PM Coordinator is already in group '99'

Ok, I will answer that by myself after studying the code.
So actually this is NOT a failure, but it is just as the previous message tells it: the ZDO of the coordinator already has the group added. So this is a bit misleading and not a real failure.

Koenkk added a commit that referenced this issue Feb 14, 2019

@Koenkk

This comment has been minimized.

Copy link
Owner Author

commented Feb 14, 2019

@nanosonde you are right, fixed.

@Koenkk

This comment has been minimized.

Copy link
Owner Author

commented Feb 14, 2019

Groups will now also report their state (on zigbee2mqtt/[GROUP_FRIENDLY_NAME). (dev branch)

@dreimer1986

This comment has been minimized.

Copy link

commented Feb 15, 2019

  zigbee2mqtt:error 2019-2-15 10:15:42 Failed to setup reporting for 0x84182600000b8298 - lightingColorCtrl - currentX - (Error: AF data request fails, status code: 233. MAC no ack.)
  zigbee2mqtt:error 2019-2-15 10:15:44 Failed to setup reporting for 0x84182600000b79b7 - genLevelCtrl - currentLevel - (Error: AF data request fails, status code: 233. MAC no ack.)
  zigbee2mqtt:warn 2019-2-15 10:15:45 Failed to configure Motion (0x000d6f000e059aae) ('Error: AF data request fails, status code: 240. MAC transaction expired.') (attempt #1)
  zigbee2mqtt:warn 2019-2-15 10:15:45 This can be ignored if the device is working properly
  zigbee2mqtt:error 2019-2-15 10:15:45 Failed to setup reporting for 0x7cb03eaa00a1184a - lightingColorCtrl - currentX - (Error: AF data request fails, status code: 233. MAC no ack.)
  zigbee2mqtt:error 2019-2-15 10:15:46 Failed to setup reporting for 0x84182600000b743a - genOnOff - onOff - (Error: AF data request fails, status code: 205. No network route. Please confirm that the device has (re)joined the network.)
  zigbee2mqtt:error 2019-2-15 10:15:47 Failed to setup reporting for 0x84182600000b743a - lightingColorCtrl - colorTemperature - (Error: AF data request fails, status code: 205. No network route. Please confirm that the device has (re)joined the network.)
  zigbee2mqtt:error 2019-2-15 10:15:47 Failed to setup reporting for 0x84182600000b743a - genLevelCtrl - currentLevel - (Error: AF data request fails, status code: 205. No network route. Please confirm that the device has (re)joined the network.)
  zigbee2mqtt:error 2019-2-15 10:15:47 Failed to setup reporting for 0x84182600000b83ef - genOnOff - onOff - (Error: AF data request fails, status code: 233. MAC no ack.)
  zigbee2mqtt:error 2019-2-15 10:15:47 Failed to setup reporting for 0x84182600000b83ef - genLevelCtrl - currentLevel - (Error: AF data request fails, status code: 233. MAC no ack.)
  zigbee2mqtt:error 2019-2-15 10:15:47 Failed to setup reporting for 0x84182600000b743a - lightingColorCtrl - currentY - (Error: AF data request fails, status code: 205. No network route. Please confirm that the device has (re)joined the network.)
  zigbee2mqtt:error 2019-2-15 10:15:47 Failed to setup reporting for 0x84182600000b743a - lightingColorCtrl - currentX - (Error: AF data request fails, status code: 205. No network route. Please confirm that the device has (re)joined the network.)
  zigbee2mqtt:error 2019-2-15 10:15:48 Failed to setup reporting for 0x8418260000ca9270 - lightingColorCtrl - currentY - (Error: AF data request fails, status code: 233. MAC no ack.)
  zigbee2mqtt:error 2019-2-15 10:15:50 Failed to setup reporting for 0x7cb03eaa00a1184a - genLevelCtrl - currentLevel - (Error: AF data request fails, status code: 205. No network route. Please confirm that the device has (re)joined the network.)

I added reporting to all my bulbs, in a group or not. Reporting does not work, but on startup you see this after it reconnected to all Zigbee devices. Do I have to repair all my bulbs to make it work?

EDIT: Debug loglevel: https://h.kremowka.xyz/etayakilox.coffeescript

@Koenkk

This comment has been minimized.

Copy link
Owner Author

commented Feb 15, 2019

@dreimer1986 can you control the bulb individually (turn on/off)?

@alinelena

This comment has been minimized.

Copy link

commented Feb 16, 2019

@Koenkk i get he same error as @dreimer1986

  2/16/2019, 8:21:25 AM - debug: Setup binding for 0x000b57fffeb0c77e - genOnOff
  2/16/2019, 8:21:25 AM - debug: Setup reporting for 0x000b57fffeb0c77e - genOnOff - onOff
  2/16/2019, 8:21:25 AM - debug: Setup binding for 0x000b57fffeb0c77e - genLevelCtrl
  2/16/2019, 8:21:25 AM - debug: Setup reporting for 0x000b57fffeb0c77e - genLevelCtrl - currentLevel
)>2/16/2019, 8:21:25 AM - error: Failed to setup reporting for 0x000b57fffeb0c77e - genOnOff - onOff - (Error: AF data request fails, status code: 205. No network route. Please confirm that the device has (re)joined the network.)
  2/16/2019, 8:21:25 AM - debug: Setup binding for 0x000b57fffeb24cb3 - genOnOff
  2/16/2019, 8:21:26 AM - debug: Setup reporting for 0x000b57fffeb24cb3 - genOnOff - onOff
  2/16/2019, 8:21:26 AM - debug: Setup binding for 0x000b57fffeb24cb3 - genLevelCtrl
  2/16/2019, 8:21:26 AM - error: Failed to setup reporting for 0x000b57fffeb0c77e - genLevelCtrl - currentLevel - (Error: AF data request fails, status code: 205. No network route. Please confirm that the device has (re)joined the network

much later I get a binding success message for both bulbs here.
nothing more about reporting except the error. However reporting works and I can control them individually too or via the group.

I am on this

  2/16/2019, 8:21:21 AM - info: Starting zigbee2mqtt version 1.1.1 (commit #577bb0d)

I think that somehow one sets reporting too early

@dreimer1986

This comment has been minimized.

Copy link

commented Feb 16, 2019

@Koenkk yes, controlling any of the bulbs works fine. Only reporting is not and the log fills a bit more when activated.

@alinelena

This comment has been minimized.

Copy link

commented Feb 16, 2019

@dreimer1986 this is what is in my log

2/16/2019, 4:01:38 PM - info: MQTT publish: topic 'zigbee2mqtt/bedroom_lights', payload '{"state":"OFF","brightness":255}'
2/16/2019, 4:01:38 PM - debug: Received zigbee message of type 'attReport' with data '{"cid":"genOnOff","data":{"onOff":0}}' of device 'TRADFRI bulb E26 W opal 1000lm' (0x000b57fffeb0c77e)
2/16/2019, 4:01:38 PM - info: MQTT publish: topic 'zigbee2mqtt/ikea_bedroom_1', payload '{"state":"OFF","linkquality":49,"brightness":254}'
2/16/2019, 4:01:38 PM - debug: Received zigbee message of type 'devChange' with data '{"cid":"genOnOff","data":{"onOff":0}}' of device 'TRADFRI bulb E26 W opal 1000lm' (0x000b57fffeb0c77e)
2/16/2019, 4:01:38 PM - info: MQTT publish: topic 'zigbee2mqtt/ikea_bedroom_1', payload '{"state":"OFF","linkquality":49,"brightness":254}'
2/16/2019, 4:01:38 PM - debug: Received zigbee message of type 'attReport' with data '{"cid":"genOnOff","data":{"onOff":0}}' of device 'TRADFRI bulb E26 W opal 1000lm' (0x000b57fffeb24cb3)
2/16/2019, 4:01:38 PM - info: MQTT publish: topic 'zigbee2mqtt/ikea_bedroom_2', payload '{"state":"OFF","linkquality":15,"brightness":254}'
2/16/2019, 4:01:38 PM - debug: Received zigbee message of type 'devChange' with data '{"cid":"genOnOff","data":{"onOff":0}}' of device 'TRADFRI bulb E26 W opal 1000lm' (0x000b57fffeb24cb3)
2/16/2019, 4:01:38 PM - info: MQTT publish: topic 'zigbee2mqtt/ikea_bedroom_2', payload '{"state":"OFF","linkquality":15,"brightness":254}'  

annoying bit is the messages are reported twice

@dreimer1986

This comment has been minimized.

Copy link

commented Feb 18, 2019

Nope, no report over here. Will repair the devices later these days. Maybe this finally fixes that and maybe my Smart+ Motion sensor to not only send me temperature information, but MOTION too ^^

@Koenkk

This comment has been minimized.

Copy link
Owner Author

commented Mar 14, 2019

@apeeters so when running with log_level: info again it starts?

@apeeters

This comment has been minimized.

Copy link

commented Mar 14, 2019

@Koenkk sometimes it does, sometimes it doesn't. Currently can't explain why.

@apeeters

This comment has been minimized.

Copy link

commented Mar 14, 2019

@Koenkk

This comment has been minimized.

Copy link
Owner Author

commented Mar 15, 2019

@apeeters could you try re-flashing the stick?

@apeeters

This comment has been minimized.

Copy link

commented Mar 15, 2019

@Koenkk I already did multiple times. My issue is exactly this: Koenkk/Z-Stack-firmware#46, maybe we move the discussion over there? Next thing I will try: power off a major part of the Zigbee network before starting zigbee2mqtt.

@Koenkk

This comment has been minimized.

Copy link
Owner Author

commented Mar 15, 2019

Let's move it there.

qosmio pushed a commit to qosmio/zigbee-shepherd-converters that referenced this issue Mar 16, 2019

qosmio pushed a commit to qosmio/zigbee-shepherd-converters that referenced this issue Mar 16, 2019

Koenkk added a commit to Koenkk/zigbee-shepherd-converters that referenced this issue Mar 17, 2019

Sengled: Add options to ignore incoming empty diagnostic messages (#351)
* Support for LTW011 (#183)

* Update devices.js

Added support for LTW011

* Update devices.js

* Update devices.js

* Add support for Bitron Smart Plug with metering 16A (902010/25) (#181)

* Update devices.js

Add support for Bitron Smart Plug with metering 16A (902010/25)

* Update fromZigbee.js

Add converter bitron_power

* Update fromZigbee.js

* Update devices.js

* Update fromZigbee.js

* Update devices.js

* Update devices.js

* Support Home Assistant flashing light bulbs (#187)

* Support Home Assistant flashing light bulbs

Home Assistant sends the "flash" key in the Zigbee message to tell
lightbulbs to flash. The value sent from Home Assistant is the
number of seconds for the bulb to flash. 2 for "short" and 10 for
"long".

See #157

* Fix linting for hass lightbulb flashing

* More lint fixing for hass light flash

* Add support for round Hue Aurelle LTC016 (#186)

* Add support for round Hue Aurelle LTC016

* Update devices.js

* Update devices.js

* Hue motion sensor SML001 improved (#184)

* Fix occupancy implementation for Hue SML001

Old implementation fails if there is continous motion because timer
interupts.
Hue motion sensor sends both messages (occupancy true and false), so we
don't need the publish timer.

* Travis CI errors fixed

* More Travis fixes

* Hopefully the last indent fix...

* Reverted changes in bind

Its not needed anymore since not timeout used for sml001

* ignore_onoff_change for CC2530 router. Koenkk/Z-Stack-firmware#18

* Add support for Hue white ambiance Still LTC003 (#188)

* Add support for round Hue Aurelle LTC016

* Update devices.js

* Add support for Hue white ambiance Still LTC003

* Update devices.js

* Update devices.js

* 7.0.8

* Update devices.js

* 7.0.9

* Add support for Sengled E12-N14 (BR30) Light

* new devices (#174)

* HOMA2023

* FNB56-ZCW25FB1.9

* 'GL-C-007', 'GL-S-007Z'

* XY12S-15

* RB 178 T

* GL-D-003Z

* corr little bugs

* RB 178 T corr

* Update devices.js

* Update devices.js

* Update devices.js

* Update devices.js

* Update devices.js

* Update devices.js

* Update devices.js

* Requested PR for "Incorrect Battery Readings #568" (#191)

* Requested PR for "Incorrect Battery Readings #568" 

This is my "Second attempt" first try on Java Script Please have a look on the xiaomi_battery_3v block beginning in line 168 and the function toPercentageCR2032 beginning in line 43.
I'd love if this works. ;-)

* Update fromZigbee.js

* Update fromZigbee.js

* Update fromZigbee.js

* Update fromZigbee.js

* Update fromZigbee.js

changed "Percentage" to "percentage"

* Use Math.round instead of toFixed

* Occupancy pirOtoUdelay (#185)

* Fix occupancy implementation for Hue SML001

Old implementation fails if there is continous motion because timer
interupts.
Hue motion sensor sends both messages (occupancy true and false), so we
don't need the publish timer.

* occupancy_pirOToUDelay implemented (for hue motion sensor)

* Travis CI errors fixed

* More Travis fixes

* Hopefully the last indent fix...

* Indents fixed

* Reverted changes in bind

Its not needed anymore since not timeout used for sml001

* Renamed keys to occupancy_timeout

Lint fixes

* Lint fix

* default endpoint for sml001

* added support for IKEA SURTE light door 38x64 (#195)

* added support for IKEA SURTE light door 38x64

* removed example comments of ikea surte device

* Experimental ecozy support (WIP)  (#132)

* ecozy: Initial commit using foundation/write

* Combined get/setOccupiedHeatingSetpoint

* Fast forward to current master

* 
Removing store[deviceID]

* Remove store[deviceID]

* Added further converters for ecozy

* Fixing device configuration

* Fixing Bind/ Report

* Fixing ecozy

* Fixing ecozy

* Fixing ecozy

* Fixing ecozy

* Fixing ecozy

* Fixing ecozy

* Fixing ecozy

* Fixing ecozy

* Fixing ecozy

* Fixing ecozy

* Update devices.js

* Update toZigbee.js

* Update fromZigbee.js

* Add support for Hive HALIGHTDIMWWB22 (Bayonet mount) (#194)

* Add support for Hive HALIGHTDIMWWB22 (Bayonet mount)

* Update devices.js

* Support Samsung SmartSense Multi (#192)

* Support Samsung SmartSense Multi

Support the contact attribute of the slightly older Samsung SmartThings
range, "SmartSense Multi".

* Update devices.js

* Add GE 45856 light switch (#197)

* Add GE 45856 light switch

Only supports on/off - device also reports elecrical usage,
but not supported yet.

* Update devices.js

* FNB56-SKT1EHG1.2 (#198)

* GLEDOPTO GL-B-008Z

* HGZB-20-DE

https://www.amazon.de/Intelligente-Steckdose-kompatibel-SmartThings-Steuerung/dp/B07GYG5GRP

* Update devices.js

* Update devices.js

* Update devices.js

* Airam Led OP A60 ZB 9W/827 E27 improvement & Airam Remote information (#196)

* Airam Led OP A60 ZB 9W/827 E27 improvement & Airam Remote information

* Update fromZigbee.js

* Update devices.js

* Update devices.js

* Log configure error. #768

* 7.0.10

* Add Support for EcoSmart Bright White Bulbs (#200)

* Update devices.js

* Update devices.js

* update

* Bitron-Video Wall Thermostat (#199)

* added Bitron Wall Thermostat

* added Bitron fromZigbee convertes

bitron_battery (should be usefull for all bitron battery powered devices)
bitron_thermostat_att_report
bitron_thermostat_dev_change

* Update fromZigbee.js

* Update devices.js

* Update devices.js

* Update devices.js

* Update fromZigbee.js

* Update toZigbee.js

i changed the calculation of the input values so that you can also set half degrees.

before: 
21.3 -> 21.0
21.4 -> 21.0
21.5 -> 22.0

now:
21.3 -> 21.5
21.4 -> 21.5
21.5 -> 21.5

* Update fromZigbee.js

* added temperature_display_mode + running_state

* Update devices.js

* Trailing spaces

* Update fromZigbee.js

* Update fromZigbee.js

* Update fromZigbee.js

* Update devices.js

* Update devices.js

* FB56-ZCW11HG1.2 (#202)

* GLEDOPTO GL-B-008Z

* HGZB-20-DE

https://www.amazon.de/Intelligente-Steckdose-kompatibel-SmartThings-Steuerung/dp/B07GYG5GRP

* Update devices.js

* Update devices.js

* Update devices.js

* FB56-ZCW11HG1.2

https://uploads.tapatalk-cdn.com/20190106/dcf0f59343233342d004319d05c04bc0.jpg

* FB56-ZCW11HG1.2

* FB56-ZCW11HG1.2

i miss this device

* rebase

* Update devices.js

* Filter non-realistic WSDCGQ11LM and WSDCGQ01LM temperature reports. Koenkk/zigbee2mqtt#798

*  Filter non-realistic WSDCGQ11LM and WSDCGQ01LM humidity reports. Koenkk/zigbee2mqtt#798

* 7.0.11

* Support E1524. Koenkk/zigbee2mqtt#102

* 7.0.12

* Update devices.js to include Nue HGZB-01A (#203)

* Update device.js to include Nue HGZB-01A

Device is a mains inline zigbee light controller with brightness.
Amazon link:
https://www.amazon.com/gp/product/B07FBD96DG/ref=oh_aui_detailpage_o01_s00?ie=UTF8&psc=1

Added and tested device per: https://koenkk.github.io/zigbee2mqtt/how_tos/how_to_support_new_devices.html

* remove extranious tab that fails check

* Fixed the rest of the tabs - still figuring this out... sorry.

* adding space back...

* Update devices.js

* Add RTCGQ11LM illuminance interval report. Koenkk/zigbee2mqtt#827

* 7.0.13

* Support TRADFRI wireless dimmer battery. Koenkk/zigbee2mqtt#792

* 7.0.14

* Add support for Gledopto Zigbee LED controller WW/CW Dimmer (GL-C-006) (#204)

* Support 100.424.11. Koenkk/zigbee2mqtt#803

* Add device support for iCasa Zigbee 3.0 Dimmer (#206)

* Add device support for iCasa Zigbee 3.0 Dimmer

* Update devices.js

* Refactors (#207)

* Add Iris 3326-L motion and temperature sensor

* Use scoped zcl-id

* Only package needed files

* refactor: Use a Map for findByZigbeeModel

* Add `extend` attribute

The attribute shallow-merges the model object,
with the explicitly defined properties taking precidence
Converted all uses of `generic` to `extend` format.

* Fix missing color temperature from #207

* Hue power-on behavior (#209)

* added Hue Power-on Converter

tested with GU10.
needs Firmware 1.46

hue_power_on_behavior
// default / enable / disable / configure hue_power_on_behavior, 
// default = 1
// on - lamps on after power loss with configured brightness, color temperature, color
// off - lamps off after power loss
// recover - lamps on after power loss with last state 

hue_power_on_brightness
// brightness when hue_power_on_behavior = on, same settings as brightness converter
// default = 255

hue_power_on_color_temperature
// color temperature when hue_power_on_behavior = on, same settings as colortemp converter
// default = 366

to-do:
hue_power_on_color (must be added by someone with appropriate bulb)

* Update toZigbee.js

* Hue specific settings

generic hue settings with power-on converter

* Update toZigbee.js

* fixed 'null' values

as discussed here: Koenkk/zigbee2mqtt#848

* Update fromZigbee.js

* Update fromZigbee.js

* Update toZigbee.js

* Update devices.js

* Update devices.js

* fixed 'null' values in thermostat converters. (#210)

* fixed 'null' values in thermostat converters.

as discussed here: Koenkk/zigbee2mqtt#848

* Update fromZigbee.js

* Update fromZigbee.js

* Update fromZigbee.js

* Update fromZigbee.js

* Update fromZigbee.js

* Update fromZigbee.js

* 7.0.15

* Add devices.js to files.

* 7.0.16

* Trim null characters on spaces when searching for zigbee model. Koenkk/zigbee2mqtt#810

* 7.0.17

* Fix linting error.

* 7.0.18

* Update battery cfg for TRADFRI wireless dimmer. Koenkk/zigbee2mqtt#792

* 7.0.19

* Fix documentation for Xiaomi Wireless Wall Switch (#211)

* Fix documentation for Xiaomi Wireless Wall Switch

* Update devices.js

* TRADFRI Driver 10W (#214)

same device as TRADFRI transformer 10W but other name

* ToZigbee onoff; don’t crash on wrong value type. #212

* Fix tradfri wireless dimmer report interval. Koenkk/zigbee2mqtt#792

* 7.0.20

* Add support for Sengled model E1A-AC2 (#215)

* Add support for Sengled model E1A-AC2

Adding support for Sengled downlights (https://www.sengled.com.au/shop/element-downlight-single/)

* Update devices.js

* Trust Contact Sensor (CSW_ADUROLIGHT) invert logic (#221)

Fixed an issue where contact ON on the device resulted contact:false MQTT-payload and vice versa.

* Fix for: No converter available for 4713407 with cid genOnOff, type attReport and data {"cid":"genOnOff","data":{"onOff":0}} (#218)

* Add support for OSRAM/Lightify Switch Mini (#219)

* Added Support for OSRAM Smart Switch Mini AC0251100NJ

* Lightify Switch Mini Support

* CODE Tidy

* Fixed comma dangle

* Removed trailing space

* Update fromZigbee.js

* Update fromZigbee.js

* Update devices.js

* Update devices.js

* Update devices.js

* 7.0.21

* Fix crash when model null. Koenkk/zigbee2mqtt#887

* 7.0.22

* Fix xiaomi lock (#223)

* feat(xiaomi_lock_report): recover reporting of error case 0x1107ffffffffffff

This error message is sent by the Xiaomi / Vima smart lock  when an
unknown object (e.g. a lock pick) is introduced into the cylinder.

* chore(xiaomi_lock_report): uniformize code comments

* Support for Sylvania 71831, Adjustable White A19 Bulb (#224)

* Support for RGB Mueller Licht: tint (#225)

* added tint from Mueller Licht

* Update devices.js

* Added Müller Licht white bulbs (#229)

* New devices: Heiman Water Sensor, Heiman Door Sensor

* Update devices.js

* Update fromZigbee.js

* Update fromZigbee.js

* Improved support for HEIMAN devices

* Fixed ; and style

* Style fix

* Updates

* Fixed wrong bitshift

* Added Müller Licht white bulbs

* Added Müller Licht white bulbs

* Refactor transtime to readAfterWriteTime (#227)

* refactor transition times

* Increased thermostat_system_mode readAfterWriteTime

* Implemented thermostat enums (#226)

* Implemented thermostat enums

* Fixed linting issues

* Hopefully no more linting problems

* Fixed review comments

* Fixed more uppercase

* Update toZigbee.js

* 7.0.23

* Fix for systemMode runningState enum implementation. (#234)

* corrected runningStates

* added runningMode 

added runningMode 
edited runningState

* Update toZigbee.js

removed comments that are described at documentation

added runningMode (get)

* Update common.js

* Update fromZigbee.js

* Update common.js

* Update fromZigbee.js

* Switch zcl-id to tarball

* 7.0.24

* fixed var name. (#235)

* NodeJS 4.* compatibility fix (#236)

* Fix max interval (#237)

Changed the maximum interval time.

* Support HS1DS-E. Koenkk/zigbee2mqtt#911

* added Gledopto Smart RGBW GU10 (GL-S-003Z) (#240)

* Update devices.js

added Gledopto Smart RGBW GU10 (GL-S-003Z)

* Update devices.js

* Update devices.js

* Enum fixes (#241)

* Fixed reference to undefined enum objects.

* Fixed issue with setting system_mode to "off".
The key for "off" is 0 which would fool getKeyByValue into returning the
"off" string as fallback value.

* add hue/saturation support to light_color (#239)

* add hue/saturation support to light_color

* add hue/saturation support to light_color_colortemp

* fix hue/saturation support to light_color_colortemp

* Keep nodejs 4 support.

* 7.0.25

* FLS-CT (#243)

* ZBT-ExtendedColor

* FLS-CT

* Update devices.js

* Update devices.js

* added SLP2b Hive Active Plug (#245)

* added SLP2b

* tidy spacing

* Update devices.js

* Update devices.js

* HS1SA fixes (#247)

* Added fix for bad iasCieAddr registration

* Added battery measurement converter

* Added battery measurement registration

* Added support for Salus SP600 Smart Plug (#248)

* Add support for Hive HALIGHTDIMWWB22 (Bayonet mount)

* Update devices.js

* Added support for Salus SP600 Smart Plug

* Salus SP600: Fix indentation

* Rename EDP_power to generic_power

* Add support for Gledopto devices with multiple lights in one controller (#249)

* Add support for Gledopto devices with multiple lights in one controller

* Add support for Gledopto devices with multiple lights in one controller - fix eslint error

* 7.0.26

* Added support for Gledopto GL-B-007Z bulb (#251)

* Add support for AduroSmart ERIA White and Color bulbs. (#250)

* Add support for AduroSmart ERIA White and Color bulbs.

* Update devices.js

* 7.0.27

* Q-FLAG LED Panel, Smart-Home RGBW (#252)

https://www.paul-neuhaus.de/shop/de/led-panel-smart-home-alexa-tauglich-100-110-39.html

* Hs1 sa battery (#253)

* Fixed battery calculation. Zigbee standard states that 200 = 100%

* Added enrollment and ZoneID detection

* add report handling to generic light_onoff_brightness (#258)

* add report handling to generic light_onoff_brightness

* Update devices.js

* Update devices.js

* Update devices.js

* 7.0.28

* Simplify/cleanup some converters.

* Add color color_temp report converter.

* 7.0.29

* Fix typo

* 7.0.30

* Fix state get converter.

* 7.0.31

* Added handlers for Livolo (#256)

* Added handlers for Livolo

* Formatting corrections

* Update fromZigbee.js

* Update devices.js

* Updates handlers for Livolo

* Fixes

* Update devices.js

* Updates.

* 7.1.0

* Add combined toZigbee color and colortemp converter. (#260)

* Add support for AduroSmart ERIA White and Color bulbs.

* Update devices.js

* Add combined toZigbee color and colortemp convertor.

This convertor is a combination of light_color and light_colortemp and
can be used instead of the two individual convertors. When used to set,
it actually calls out to light_color or light_colortemp to get the
return value. When used to get, it gets both color and colorTemp in
one call.
The reason for the existence of this somewhat peculiar converter is
that some lights don't report their state when changed. To fix this,
we query the state after we set it. We want to query color and colorTemp
both when setting either, because both change when setting one. This
converter is used to do just that.

We're using this convertor by default now in
generic.light_onoff_brightness_colortemp_colorxy because it can't hurt.

* Typos.

* Added Eurotronic Spirit Zigbee thermostat (#254)

* Added Eurotronic Spirit Zigbee thermostat

* adjust Spirit Zigbee thermostat binding due to pr comments

* fix linter errors

* renamed specific attributes with eurotronic prefix, cleanup converters

* update model and description to match convention for documentation

* remove trailing space

* remove trailing space

* added postfix parameter to eurotronic converters

* 7.1.1

* Fix Xiaomi Gas sensor density json attr (#263)

* 7.1.2

* Introduce Ninja Smart plug to devices.js (#262)

* Update devices.js

* Intro-Ninja-Plug

Introduced device entry for Ninja Smart plug from Ninja Block inc, including power metering and on/off support

* Update devices.js

* Ignore genGroups devChange. Koenkk/zigbee2mqtt#764

* Add support for AduroSmart ERIA Smart Wireless Dimming Switch (#264)

* Add support for AduroSmart ERIA Smart Wireless Dimming Switch

Switch returns event on button release. Hold not supported.
Implemented as action sensor, returning actions on, off, up, down.

Proprietary cluster PRs in zcl-id and zcl-packet need to be merged
first.

URL: https://adurosmart.com/products/adurosmart-eria-smart-dimming-switch-hub-required
Image: https://static1.squarespace.com/static/5b73cad4aa49a1238f3c98ab/5b74eb9fb8a045d2f8b7d562/5b764e90562fa74310b76949/1534480018645/81825-Dimmng-switch-3.jpg?format=2500w

* Update devices.js

* HS3CG - Heiman gas sensor #257 (#265)

* Update devices.js

* Update fromZigbee.js

* Update fromZigbee.js

* Update devices.js

* Update fromZigbee.js

* Update fromZigbee.js

* 7.1.3

* Update toZigbee.js (#266)

Bugfix: Eurotronic zigbee thermostat support: localTemperatureCalibration was not written correctly to the device.

* Immax LED E14/230V C35 5W TB 440LM ZIGBEE DIM (#268)

* Add support for BOSCH RADON TriTech ZB Motion Sensor Model RFDL-ZB-MS (#267)

* Update devices.js

Add support for BOSCH RADON TriTech ZB Motion Sensor Model RFDL-ZB-MS

* Update fromZigbee.js

Add support for BOSCH motion sensor RADON TriTech ZB
bit 0 is used to detect motion bit temper contact and bit 3 battery low

* Update devices.js

* Update fromZigbee.js

* Update devices.js

* Update devices.js

* Update devices.js

* Add support for Hue white ambiance suspension Fair (#269)

* More custom attributes for Eurotronic SPZB0001 (#270)

* Added Eurotronic Spirit Zigbee thermostat

* adjust Spirit Zigbee thermostat binding due to pr comments

* fix linter errors

* renamed specific attributes with eurotronic prefix, cleanup converters

* update model and description to match convention for documentation

* remove trailing space

* remove trailing space

* added postfix parameter to eurotronic converters

* Eurotronic SPZB0001: more custom attribtes, listen to devChange instead of attReport, rename eurotronic_16386

* Update ikea tradfri remote setup link.

* Lock zcl-id.

* 7.1.4

* Multiple Gledopto transition by 3.3. Koenkk/zigbee2mqtt#1047

* 7.1.5

* LED1624G9 doesn't support color temperature. Koenkk/zigbee2mqtt#678

* Added support for Innr RS 225 bulb (#271)

* Add E1746. Koenkk/zigbee2mqtt#832

* 7.1.6

* Fix gledopto color and color_temp converter. Koenkk/zigbee2mqtt#1064 (comment)

* 7.1.7

* Add E1743 Koenkk/zigbee2mqtt#997 (#273)

* Experimental support E1743. Koenkk/zigbee2mqtt#997

* Add battery support and fix model. Koenkk/zigbee2mqtt#997

* Add missing battery converter. Koenkk/zigbee2mqtt#997

* Add ignore_power_change. Koenkk/zigbee2mqtt#997

* Increase WXKG01LM long click delay.

This makes detecting long clicks more reliable. Sometimes a `long` is detected when it's actually a `single`.

* Support YRD426NRSC. Koenkk/zigbee2mqtt#1032 (#274)

* Experimental support YRD426NRSC. Koenkk/zigbee2mqtt#1032

* Update fromZigbee.js

* 7.1.8

* Add Osram BR30 RGBW LED to HA

* Add support for TRADFRI bulb E27 WS opal 1000lm light LED1732G11 (#277)

* SmokeSensor-EM (#272)

* tint remote, 3 keys (#279)

* tint remote, 3 keys

activated On-Off and brightness up/down

* Update devices.js

* Update fromZigbee.js

* Update devices.js

* Update devices.js

* Update links.

* 7.1.9

* Innr RB 265 E27 Bulb support (#280)

* Fixed HS1SA battery report (#282)

* 7.1.10

* Updated devices.js with support for ELKO Dimmer 316 GLED RF. (#283)

* Updated devices.js with support for ELKO Dimmer 316 GLED RF.

* Update devices.js

* Update devices.js

* Update devices.js

* Additional setup is not required anymore.

* Decoupled mode for Xiaomi wired wall switches (#287)

* Added LivingWise ZigBee Smart dimmer Switch. Model#: LVS-ZB500D (#288)

* Added LivingWise ZigBee Smart dimmer Switch. Model#: LVS-ZB500D

* Update devices.js

* Update devices.js

* Update fromZigbee.js

* added samsung smartthings plug (#286)

* added samsung smartthings plug

* Update fromZigbee.js

* Update devices.js

* Update toZigbee.js

* Update toZigbee.js

* didn't need custom toZigbee converter

* didn't need custom toZigbee converter

* tint remote (ZBT-Remote) Color keys (#284)

* tint remote, 3 keys

activated On-Off and brightness up/down

* Update devices.js

* Update fromZigbee.js

* Update devices.js

* Update devices.js

* tint remote (ZBT-Remote) Color keys

Implementation of color wheel and color temp, brightness with stesize and transition-time

* syntax power-key

* Update fromZigbee.js

change on/off-button to action:'on' and 'off'

* Update fromZigbee.js

* Update devices.js

* Update fromZigbee.js

* Update devices.js

* [Xiaomi wired switch] Parse operation mode response (#290)

* Add GL-FL-004TZ. #293

* Added support for new Philips Hue Outdoor Motion Sensor (#294)

* Update devices.js

Added support for the new Philips Hue Outdoor Motion Sensor

* Update devices.js

* Add ST218. #295

* Add  ' generic_state_multi_ep' to support Nue branded switches (#298)

* Update devices.js with support for Nue 'FB56+ZSW1HKJ1.7' (#297)

* Fix problem with FB56+ZSW05HG1.2' (HGZB-01A) handler (#299)

* Fix problem with FB56+ZSW05HG1.2' (HGZB-01A) handler


FB56+ZSW05HG1.2'  (HGZB-01A)


This device was already supported and works, however error message below. I've added "fz.ignore_onoff_change" to the device handler and this fixes the problem (if it is a problem?), but wanted to check with you @Koenkk that it's okay to ignore the 'genOnOff' message?

```zigbee2mqtt:debug 2/23/2019, 1:31:59 AM Received zigbee message of type 'devChange' with data '{"cid":"genOnOff","data":{"onOff":0}}' of device 'FB56+ZSW05HG1.2' (0x00124b000ae5fa3e)
  zigbee2mqtt:warn 2/23/2019, 1:31:59 AM No converter available for 'FB56+ZSW05HG1.2' with cid 'genOnOff', type 'devChange' and data '{"cid":"genOnOff","data":{"onOff":0}}'
  zigbee2mqtt:warn 2/23/2019, 1:31:59 AM Please see: https://www.zigbee2mqtt.io/how_tos/how_to_support_new_devices.html.
  zigbee2mqtt:debug 2/23/2019, 1:32:23 AM Received MQTT message on 'zigbee2mqtt/0x00124b000ae5fa3e/set' with data 'ON'
  zigbee2mqtt:info 2/23/2019, 1:32:23 AM Zigbee publish to device '0x00124b000ae5fa3e', genOnOff - on - {} - {"manufSpec":0,"disDefaultRsp":0} - null```

I also moved the "   // Smart Home Pty" devices below // Nue as I believe they are probably the same and before long you might get double ups.

* Update devices.js

* Update devices.js

* Update devices.js

* Update devices.js

* Update devices.js

* Update devices.js

* Add support for Keen Home smart vent (#276)

* - added support for Keen Home smart vent

* - added more from-zigbee handler for keen vent
- added more model# for keen vent

* Update devices.js

* - updated reporting interval and only handle attReport and ignore devChange on temperature and pressure

* - added cover_position handler

* - added cover_position to keen home toZigbee

* - added transtime to cover_position.set
- changed key to state for cover_position

* Update toZigbee.js

* Update devices.js

* - added cover_state and cover_position fromZigbee handler
- made changes to cover_open_close toZigbee handler so it'd work correctly

* - added devChange fromZigbee handler for keen home pressure, temperature and battery
- updated cover_position and cover_position_report fromZigbee handler to return both position and state (state is determined by position now)
- updated cover_open_close to only change currentLevel
- adjusted attReport interval for kee home vent

* - removed reporting config

* - fixed lint errors

* 7.1.11

* Add device to support Trust Remote control ZYCT-202 (#300)

* Add device to support Trust Remote control ZYCT-202

Koenkk/zigbee2mqtt#635

* Add the concerters for the Trust Remote control ZYCT-202

The groupid has been processed in the button press. So you have the action and the selector mode in 1 state value and can easily be used in a Home Assistant Automation state rule.

* Add the concerters for the Trust Remote control ZYCT-202

The groupid has been processed in the button press. So you have the action and the selector mode in 1 state value and can easily be used in a Home Assistant Automation state rule.

(Koenkk/zigbee2mqtt#635)

* Update devices.js

Fixed spaces line 1941

* Update devices.js

Fixed the maximum line length of 120  max-len

* Separated the action and groupid in the return rules

Have separated the action and groupid in the return rules...

* Update fromZigbee.js

* Support TRADFRI wirelessm motion sensor E1525. Koenkk/zigbee2mqtt#247

* 7.1.12

* Add support for AXIS Gear window shade motor (#301)

* - added support for AXIS Gear window shade motor

* - updated AXIS Gear model

* Update devices.js

* Support HGZB-42-UK. #278

* 7.1.13

* Change up and down in Ikea Outlet Switch (#302)

* TRADFRI dimmer change maximum response time. (#305)

* Update action color wheel structure.

* tint remote, 3 keys

activated On-Off and brightness up/down

* Update devices.js

* Update fromZigbee.js

* Update devices.js

* Update devices.js

* tint remote (ZBT-Remote) Color keys

Implementation of color wheel and color temp, brightness with stesize and transition-time

* syntax power-key

* Update fromZigbee.js

change on/off-button to action:'on' and 'off'

* Update fromZigbee.js

* Update devices.js

* Update fromZigbee.js

* Update devices.js

* tint remote, changed to standard return values, changed calculations of color to franctions.

* adopt to master

* adopt master changes

* Update fromZigbee.js

* Update fromZigbee.js

* fixed thermostat_setpoint_raise_lower (#308)

setpoint_raise_lower is client-to-server only. There is no need for a "get".

To get the setpoint use:
occupied_heating_setpoint
or 
unoccupied_heating_setpoint

* Added illuminance measurement for SML002 (#307)

* Added illuminance measurement 

Added illuminance measurement for Philips outdoor sensor SML002.

* Update devices.js

* new: Hue Flourish ceiling light (#309)

* new: Hue Flourish ceiling light

* Update devices.js

* Cosmetic updates.

* Separate moveToLevelWithOnOff and moveToLevel converters. Koenkk/zigbee2mqtt#176

* 7.2.0

* updated reporting confg for Keen Vent and AXIS Gear (#310)

* - updated reporting configuration for Keen Vent
- updated AXIS Gear to start report its position and battery level

* Update devices.js

* Update zcl-id.

* Add philips cluster for hue dimmer (#311)

* Add philips cluster for hue dimmer

* Modify philips hue dimmer

* Modify philips hue dimmer

* Modify philips hue dimmer

* Update fromZigbee.js

* Update devices.js

* Update fromZigbee.js

* Update fromZigbee.js

* 7.2.1

* Check if message has onOff for state converters. Koenkk/zigbee2mqtt#1176

* 7.2.2

* Additional model name for Osram LIGHTIFY Flex RGBW (#314)

* Update devices.js (#315)

* Support ISW-ZPR1-WP13. Koenkk/zigbee2mqtt#768

* 7.2.3

* Also check for realistic values in WSDCGQ01LM_WSDCGQ11LM_interval. Koenkk/zigbee2mqtt#798

* 7.2.4

* Add support for Philips Hue Sana (#316)

Signed-off-by: markus1540 <markus1540@gmail.com>

* Update fromZigbee.js with ignore_light_brightness_change (#318)

Updated to support Nue Dimmer Switch (FB56+ZSC05HG1.0)

* Support HGZB-02A. Koenkk/zigbee2mqtt#1179

* Update devices.js with FB56+ZSC05HG1.0 (Nue Smart Dimmer Switch) (#317)

* Update devices.js with FB56+ZSC05HG1.0 (Nue Smart Dimmer Switch)

* Renamed FB56+ZSC05HG1.0 model ID to correct ID.

* Update devices.js

* Add action for ICTC-G-1. Koenkk/zigbee2mqtt#1191

* 7.2.5

* Clarify that the GE Link bulb could be BR30 or A19 (#320)

I noticed that my A19 GE Link bulbs are sharing the BR30 description.
From what I can tell, they both share same model number: Koenkk/zigbee2mqtt#1161

* Update devices.js for 'FB56+ZSW1HKJ1.7' with new button decriptions (top/bottom) (#321)

* Support for 'FB56+ZSW1IKJ1.7' 3-gang Nue Smart Switch (#319)

* Support for 'FB56+ZSW1IKJ1.7' 3-gang Nue Smart Switch

Confirmed working, but please check my parentheses etc @Koenkk .... I get double MQTT feedback.

It would also be great if you could support 'top' and 'bottom' in https://github.com/Koenkk/zigbee2mqtt/blob/master/lib/extension/devicePublish.js#L8 - is this a possibility? This would make more sense for countries like Australia where switches are mounted vertically, and give the option for the handler to match the local orientation of the device.

* Changed FB56+ZSW1IKJ1.7 to include new button descriptors (top/bottom)

* Fix missing converters for philips hue dimmer (#322)

* Update devices.js

* Update fromZigbee.js

* Update devices.js

* Update devices.js

* re-pair fix and add multiple clicks for hue dimmer (#323)

* added multiple (single/double etc) click for hue dimmer

* fix re-pair issue for hue dimmer

* Update devices.js

* Update fromZigbee.js

* Update fromZigbee.js

* Fix gledopto converter crash. Koenkk/zigbee2mqtt#1209

* 7.2.6

* Ignore basic dev change for all lights. Koenkk/zigbee2mqtt#1064

* Check if data has currentLevel attribute in brightness converters. Koenkk/zigbee2mqtt#1212

* Update devices.js for Nue HGZB-41 (#325)

The Nue 1 gang smart switch model 'HGZB-41' identifies as 'FNB56-ZSW01LX2.0', the same as previously listed 'HGZB-42-UK' 2 gang switch. Updated model / description to allow for both.

* add Nyce-3043 and additional Smartthings devices (#324)

* add Nyce-3043 and additional Smartthings devices

* Update devices.js

* Update fromZigbee.js

* 7.2.7

* Improve AC0251100NJ actions consistency

Improve AC0251100NJ actions consistency

* extend E1524 with genPowerCfg reporting (#326)

* extend E1524 with genPowerCfg reporting

* Add Whitespace to fix failured travis check

* Update devices.js

* Update devices.js

* Update README.md (#327)

Link to zigbee2mqtt.

* Bitron av2010/34  (#328)

* AV2010/34 devices.js Part

* add AV2010_34_click + generic ignore_power_report

* Update devices.js

* Add extra guard to xiaomi_contact_interval. Koenkk/zigbee2mqtt#1219

* Update dependencies.

* 7.2.8

* Update devices.js to support FNB56-ZSW03LX2.0 - Nue 3 gang smart switch v2.0 (#330)

* Update devices.js to support FNB56-ZSW03LX2.0 - Nue 3 gang smart switch v2.0

Endpoints changed between versions. Possibly using newer Zigbee protocol now also

* Update devices.js

* Add Securifi Peanut Smart Plug (#331)

* Add Securifi Peanut Smart Plug

Measurements not supported/tested as they require a firmware upgrade (?). Switch works though.

See Koenkk/zigbee2mqtt#809

* Update devices.js

* Update fromZigbee.js to support Nue Scene Switches (#332)

* Add 'FTB56+ZSN15HG1.0' & 'FB56+ZSN08KJ2.3' Nue Scene Switches (#333)

* Add 'FTB56+ZSN15HG1.0' & 'FB56+ZSN08KJ2.3' Nue Scene Switches

* Update devices.js

* Update devices.js to support FB56+ZSW1HKJ2.5 2 gang Nue smart switch (#334)

* Update devices.js to support FB56+ZSW1HKJ2.5 2 gang Nue smart switch

This has the same model number HGZB-042 as FB56+ZSW1HKJ1.7

* Update devices.js

* Add support for Visonic MCT-350 contact sensor. (#336)

* Add support for Visonic MCT-350 contact sensor.

* Update devices.js

* Update fromZigbee.js

* Add support for OJB-CR701-YZ Gas and CO sensor (#338)

* Add statuschange converter for OJB-CR701-YZ

* Add OJB-CR701-YZ to devices.js

* Fix eslint

* amend

* fix: Set proper vendor for OJB-CR701-YZ

* Update devices.js

* Update fromZigbee.js

* Update devices.js

* Update devices.js

* Update fromZigbee.js

* Add more ignore converters.

* Changed to correct external model details (#335)

* Changed to correct external model details

* Fix model numbers

* Update devices.js

* Add support for Sengled E12-N14 (BR30) Light

* Add support for Sengled E12-N14 (BR30) Light

* Update devices.js

* Update devices.js

* Allow type to be an array.

* 8.0.0

* Don’t convert readRsp for ZNLDP12LM. Koenkk/zigbee2mqtt#1240

* 8.0.1

* Add alias for 4058075036185. Koenkk/zigbee2mqtt#1245

* Ignore false ZNCZ02LM and ZNLDP12LM messages.

* 8.0.2

* Add Support SwannOne Key Fob SWO-KEF1PA

* Modify payload to be more compatible with Home Assistant

* Sunricher (#340)

* Sunricher

* Update devices.js

* Update devices.js (#341)

* Adding `wireless mode` support for Xiaomi Switches QBKB11LM/QBKG12LM (#342)

* Update fromZigbee.js

rename methods for xiaomi aqara switch wireless mode

* Update devices.js

wireless mode for aqara wired switches

* Update devices.js

* Add 2 additional Nue models FB56+ZSW1GKJ2.5 & FTB56+ZSN16HG1.0 (#348)

Again .. another overlap of model but with different Zigbee ID. Entered differently per device.
Tidied up descriptions further.

* Added Smartthings devices (#344)

* add Nyce-3043 and additional Smartthings devices

* Update devices.js

* Update fromZigbee.js

* additional Smartthings devices

* added converters

* updated 3315-S

* added st_leak_change

* updated 3305-S, ignore change on genpower

* Update devices.js

* Update devices.js

* Update devices.js

* Update fromZigbee.js

*  Add Support SwannOne Key Fob SWO-KEF1PA (#346)

* Add support for Sengled E12-N14 (BR30) Light

* Add Osram BR30 RGBW LED to HA

* Update devices.js

* Add Support SwannOne Key Fob SWO-KEF1PA

* Modify payload to be more compatible with Home Assistant

* Update devices.js

* Update fromZigbee.js

* Update fromZigbee.js

* 8.0.3

* Add converters for ignoring 'diagnostic' and 'genscenes' dev changes

* Implement no_occupancy_since for RTCGQ01LM and RTCGQ11LM. Koenkk/zigbee2mqtt#1195

* 8.0.4

* Add converters for ignoring 'diagnostic' and 'genscenes' dev changes (#350)

* Add support for Sengled E12-N14 (BR30) Light

* Add Osram BR30 RGBW LED to HA

* Update devices.js

* Add support for Sengled E12-N14 (BR30) Light

* Update devices.js

* Add Support SwannOne Key Fob SWO-KEF1PA

* Modify payload to be more compatible with Home Assistant

* Add support for Sengled E12-N14 (BR30) Light

* Update devices.js

* Add Support SwannOne Key Fob SWO-KEF1PA

* Modify payload to be more compatible with Home Assistant

* Add converters for ignoring 'diagnostic' and 'genscenes' dev changes

* Sengled: Add configure feature for reporting 'genOnOff' and 'genLevelCtrl'

Wireshark reported Sengled's own hub configured the bulbs for reporting
on/off states and brightness.

* Revert 'configure' options for reporting. Being worked on upstream

Koenkk/zigbee2mqtt#1064

* FIX: Remove duplicate keys that were already merged.

Koenkk added a commit to Koenkk/zigbee-shepherd-converters that referenced this issue Mar 18, 2019

Osram/Sylvania: Add vendor specific functions (#352)
* Hue motion sensor SML001 improved (#184)

* Fix occupancy implementation for Hue SML001

Old implementation fails if there is continous motion because timer
interupts.
Hue motion sensor sends both messages (occupancy true and false), so we
don't need the publish timer.

* Travis CI errors fixed

* More Travis fixes

* Hopefully the last indent fix...

* Reverted changes in bind

Its not needed anymore since not timeout used for sml001

* ignore_onoff_change for CC2530 router. Koenkk/Z-Stack-firmware#18

* Add support for Hue white ambiance Still LTC003 (#188)

* Add support for round Hue Aurelle LTC016

* Update devices.js

* Add support for Hue white ambiance Still LTC003

* Update devices.js

* Update devices.js

* 7.0.8

* Update devices.js

* 7.0.9

* Add support for Sengled E12-N14 (BR30) Light

* new devices (#174)

* HOMA2023

* FNB56-ZCW25FB1.9

* 'GL-C-007', 'GL-S-007Z'

* XY12S-15

* RB 178 T

* GL-D-003Z

* corr little bugs

* RB 178 T corr

* Update devices.js

* Update devices.js

* Update devices.js

* Update devices.js

* Update devices.js

* Update devices.js

* Update devices.js

* Requested PR for "Incorrect Battery Readings #568" (#191)

* Requested PR for "Incorrect Battery Readings #568" 

This is my "Second attempt" first try on Java Script Please have a look on the xiaomi_battery_3v block beginning in line 168 and the function toPercentageCR2032 beginning in line 43.
I'd love if this works. ;-)

* Update fromZigbee.js

* Update fromZigbee.js

* Update fromZigbee.js

* Update fromZigbee.js

* Update fromZigbee.js

changed "Percentage" to "percentage"

* Use Math.round instead of toFixed

* Occupancy pirOtoUdelay (#185)

* Fix occupancy implementation for Hue SML001

Old implementation fails if there is continous motion because timer
interupts.
Hue motion sensor sends both messages (occupancy true and false), so we
don't need the publish timer.

* occupancy_pirOToUDelay implemented (for hue motion sensor)

* Travis CI errors fixed

* More Travis fixes

* Hopefully the last indent fix...

* Indents fixed

* Reverted changes in bind

Its not needed anymore since not timeout used for sml001

* Renamed keys to occupancy_timeout

Lint fixes

* Lint fix

* default endpoint for sml001

* added support for IKEA SURTE light door 38x64 (#195)

* added support for IKEA SURTE light door 38x64

* removed example comments of ikea surte device

* Experimental ecozy support (WIP)  (#132)

* ecozy: Initial commit using foundation/write

* Combined get/setOccupiedHeatingSetpoint

* Fast forward to current master

* 
Removing store[deviceID]

* Remove store[deviceID]

* Added further converters for ecozy

* Fixing device configuration

* Fixing Bind/ Report

* Fixing ecozy

* Fixing ecozy

* Fixing ecozy

* Fixing ecozy

* Fixing ecozy

* Fixing ecozy

* Fixing ecozy

* Fixing ecozy

* Fixing ecozy

* Fixing ecozy

* Update devices.js

* Update toZigbee.js

* Update fromZigbee.js

* Add support for Hive HALIGHTDIMWWB22 (Bayonet mount) (#194)

* Add support for Hive HALIGHTDIMWWB22 (Bayonet mount)

* Update devices.js

* Support Samsung SmartSense Multi (#192)

* Support Samsung SmartSense Multi

Support the contact attribute of the slightly older Samsung SmartThings
range, "SmartSense Multi".

* Update devices.js

* Add GE 45856 light switch (#197)

* Add GE 45856 light switch

Only supports on/off - device also reports elecrical usage,
but not supported yet.

* Update devices.js

* FNB56-SKT1EHG1.2 (#198)

* GLEDOPTO GL-B-008Z

* HGZB-20-DE

https://www.amazon.de/Intelligente-Steckdose-kompatibel-SmartThings-Steuerung/dp/B07GYG5GRP

* Update devices.js

* Update devices.js

* Update devices.js

* Airam Led OP A60 ZB 9W/827 E27 improvement & Airam Remote information (#196)

* Airam Led OP A60 ZB 9W/827 E27 improvement & Airam Remote information

* Update fromZigbee.js

* Update devices.js

* Update devices.js

* Log configure error. #768

* 7.0.10

* Add Support for EcoSmart Bright White Bulbs (#200)

* Update devices.js

* Update devices.js

* update

* Bitron-Video Wall Thermostat (#199)

* added Bitron Wall Thermostat

* added Bitron fromZigbee convertes

bitron_battery (should be usefull for all bitron battery powered devices)
bitron_thermostat_att_report
bitron_thermostat_dev_change

* Update fromZigbee.js

* Update devices.js

* Update devices.js

* Update devices.js

* Update fromZigbee.js

* Update toZigbee.js

i changed the calculation of the input values so that you can also set half degrees.

before: 
21.3 -> 21.0
21.4 -> 21.0
21.5 -> 22.0

now:
21.3 -> 21.5
21.4 -> 21.5
21.5 -> 21.5

* Update fromZigbee.js

* added temperature_display_mode + running_state

* Update devices.js

* Trailing spaces

* Update fromZigbee.js

* Update fromZigbee.js

* Update fromZigbee.js

* Update devices.js

* Update devices.js

* FB56-ZCW11HG1.2 (#202)

* GLEDOPTO GL-B-008Z

* HGZB-20-DE

https://www.amazon.de/Intelligente-Steckdose-kompatibel-SmartThings-Steuerung/dp/B07GYG5GRP

* Update devices.js

* Update devices.js

* Update devices.js

* FB56-ZCW11HG1.2

https://uploads.tapatalk-cdn.com/20190106/dcf0f59343233342d004319d05c04bc0.jpg

* FB56-ZCW11HG1.2

* FB56-ZCW11HG1.2

i miss this device

* rebase

* Update devices.js

* Filter non-realistic WSDCGQ11LM and WSDCGQ01LM temperature reports. Koenkk/zigbee2mqtt#798

*  Filter non-realistic WSDCGQ11LM and WSDCGQ01LM humidity reports. Koenkk/zigbee2mqtt#798

* 7.0.11

* Support E1524. Koenkk/zigbee2mqtt#102

* 7.0.12

* Update devices.js to include Nue HGZB-01A (#203)

* Update device.js to include Nue HGZB-01A

Device is a mains inline zigbee light controller with brightness.
Amazon link:
https://www.amazon.com/gp/product/B07FBD96DG/ref=oh_aui_detailpage_o01_s00?ie=UTF8&psc=1

Added and tested device per: https://koenkk.github.io/zigbee2mqtt/how_tos/how_to_support_new_devices.html

* remove extranious tab that fails check

* Fixed the rest of the tabs - still figuring this out... sorry.

* adding space back...

* Update devices.js

* Add RTCGQ11LM illuminance interval report. Koenkk/zigbee2mqtt#827

* 7.0.13

* Support TRADFRI wireless dimmer battery. Koenkk/zigbee2mqtt#792

* 7.0.14

* Add support for Gledopto Zigbee LED controller WW/CW Dimmer (GL-C-006) (#204)

* Support 100.424.11. Koenkk/zigbee2mqtt#803

* Add device support for iCasa Zigbee 3.0 Dimmer (#206)

* Add device support for iCasa Zigbee 3.0 Dimmer

* Update devices.js

* Refactors (#207)

* Add Iris 3326-L motion and temperature sensor

* Use scoped zcl-id

* Only package needed files

* refactor: Use a Map for findByZigbeeModel

* Add `extend` attribute

The attribute shallow-merges the model object,
with the explicitly defined properties taking precidence
Converted all uses of `generic` to `extend` format.

* Fix missing color temperature from #207

* Hue power-on behavior (#209)

* added Hue Power-on Converter

tested with GU10.
needs Firmware 1.46

hue_power_on_behavior
// default / enable / disable / configure hue_power_on_behavior, 
// default = 1
// on - lamps on after power loss with configured brightness, color temperature, color
// off - lamps off after power loss
// recover - lamps on after power loss with last state 

hue_power_on_brightness
// brightness when hue_power_on_behavior = on, same settings as brightness converter
// default = 255

hue_power_on_color_temperature
// color temperature when hue_power_on_behavior = on, same settings as colortemp converter
// default = 366

to-do:
hue_power_on_color (must be added by someone with appropriate bulb)

* Update toZigbee.js

* Hue specific settings

generic hue settings with power-on converter

* Update toZigbee.js

* fixed 'null' values

as discussed here: Koenkk/zigbee2mqtt#848

* Update fromZigbee.js

* Update fromZigbee.js

* Update toZigbee.js

* Update devices.js

* Update devices.js

* fixed 'null' values in thermostat converters. (#210)

* fixed 'null' values in thermostat converters.

as discussed here: Koenkk/zigbee2mqtt#848

* Update fromZigbee.js

* Update fromZigbee.js

* Update fromZigbee.js

* Update fromZigbee.js

* Update fromZigbee.js

* Update fromZigbee.js

* 7.0.15

* Add devices.js to files.

* 7.0.16

* Trim null characters on spaces when searching for zigbee model. Koenkk/zigbee2mqtt#810

* 7.0.17

* Fix linting error.

* 7.0.18

* Update battery cfg for TRADFRI wireless dimmer. Koenkk/zigbee2mqtt#792

* 7.0.19

* Fix documentation for Xiaomi Wireless Wall Switch (#211)

* Fix documentation for Xiaomi Wireless Wall Switch

* Update devices.js

* TRADFRI Driver 10W (#214)

same device as TRADFRI transformer 10W but other name

* ToZigbee onoff; don’t crash on wrong value type. #212

* Fix tradfri wireless dimmer report interval. Koenkk/zigbee2mqtt#792

* 7.0.20

* Add support for Sengled model E1A-AC2 (#215)

* Add support for Sengled model E1A-AC2

Adding support for Sengled downlights (https://www.sengled.com.au/shop/element-downlight-single/)

* Update devices.js

* Trust Contact Sensor (CSW_ADUROLIGHT) invert logic (#221)

Fixed an issue where contact ON on the device resulted contact:false MQTT-payload and vice versa.

* Fix for: No converter available for 4713407 with cid genOnOff, type attReport and data {"cid":"genOnOff","data":{"onOff":0}} (#218)

* Add support for OSRAM/Lightify Switch Mini (#219)

* Added Support for OSRAM Smart Switch Mini AC0251100NJ

* Lightify Switch Mini Support

* CODE Tidy

* Fixed comma dangle

* Removed trailing space

* Update fromZigbee.js

* Update fromZigbee.js

* Update devices.js

* Update devices.js

* Update devices.js

* 7.0.21

* Fix crash when model null. Koenkk/zigbee2mqtt#887

* 7.0.22

* Fix xiaomi lock (#223)

* feat(xiaomi_lock_report): recover reporting of error case 0x1107ffffffffffff

This error message is sent by the Xiaomi / Vima smart lock  when an
unknown object (e.g. a lock pick) is introduced into the cylinder.

* chore(xiaomi_lock_report): uniformize code comments

* Support for Sylvania 71831, Adjustable White A19 Bulb (#224)

* Support for RGB Mueller Licht: tint (#225)

* added tint from Mueller Licht

* Update devices.js

* Added Müller Licht white bulbs (#229)

* New devices: Heiman Water Sensor, Heiman Door Sensor

* Update devices.js

* Update fromZigbee.js

* Update fromZigbee.js

* Improved support for HEIMAN devices

* Fixed ; and style

* Style fix

* Updates

* Fixed wrong bitshift

* Added Müller Licht white bulbs

* Added Müller Licht white bulbs

* Refactor transtime to readAfterWriteTime (#227)

* refactor transition times

* Increased thermostat_system_mode readAfterWriteTime

* Implemented thermostat enums (#226)

* Implemented thermostat enums

* Fixed linting issues

* Hopefully no more linting problems

* Fixed review comments

* Fixed more uppercase

* Update toZigbee.js

* 7.0.23

* Fix for systemMode runningState enum implementation. (#234)

* corrected runningStates

* added runningMode 

added runningMode 
edited runningState

* Update toZigbee.js

removed comments that are described at documentation

added runningMode (get)

* Update common.js

* Update fromZigbee.js

* Update common.js

* Update fromZigbee.js

* Switch zcl-id to tarball

* 7.0.24

* fixed var name. (#235)

* NodeJS 4.* compatibility fix (#236)

* Fix max interval (#237)

Changed the maximum interval time.

* Support HS1DS-E. Koenkk/zigbee2mqtt#911

* added Gledopto Smart RGBW GU10 (GL-S-003Z) (#240)

* Update devices.js

added Gledopto Smart RGBW GU10 (GL-S-003Z)

* Update devices.js

* Update devices.js

* Enum fixes (#241)

* Fixed reference to undefined enum objects.

* Fixed issue with setting system_mode to "off".
The key for "off" is 0 which would fool getKeyByValue into returning the
"off" string as fallback value.

* add hue/saturation support to light_color (#239)

* add hue/saturation support to light_color

* add hue/saturation support to light_color_colortemp

* fix hue/saturation support to light_color_colortemp

* Keep nodejs 4 support.

* 7.0.25

* FLS-CT (#243)

* ZBT-ExtendedColor

* FLS-CT

* Update devices.js

* Update devices.js

* added SLP2b Hive Active Plug (#245)

* added SLP2b

* tidy spacing

* Update devices.js

* Update devices.js

* HS1SA fixes (#247)

* Added fix for bad iasCieAddr registration

* Added battery measurement converter

* Added battery measurement registration

* Added support for Salus SP600 Smart Plug (#248)

* Add support for Hive HALIGHTDIMWWB22 (Bayonet mount)

* Update devices.js

* Added support for Salus SP600 Smart Plug

* Salus SP600: Fix indentation

* Rename EDP_power to generic_power

* Add support for Gledopto devices with multiple lights in one controller (#249)

* Add support for Gledopto devices with multiple lights in one controller

* Add support for Gledopto devices with multiple lights in one controller - fix eslint error

* 7.0.26

* Added support for Gledopto GL-B-007Z bulb (#251)

* Add support for AduroSmart ERIA White and Color bulbs. (#250)

* Add support for AduroSmart ERIA White and Color bulbs.

* Update devices.js

* 7.0.27

* Q-FLAG LED Panel, Smart-Home RGBW (#252)

https://www.paul-neuhaus.de/shop/de/led-panel-smart-home-alexa-tauglich-100-110-39.html

* Hs1 sa battery (#253)

* Fixed battery calculation. Zigbee standard states that 200 = 100%

* Added enrollment and ZoneID detection

* add report handling to generic light_onoff_brightness (#258)

* add report handling to generic light_onoff_brightness

* Update devices.js

* Update devices.js

* Update devices.js

* 7.0.28

* Simplify/cleanup some converters.

* Add color color_temp report converter.

* 7.0.29

* Fix typo

* 7.0.30

* Fix state get converter.

* 7.0.31

* Added handlers for Livolo (#256)

* Added handlers for Livolo

* Formatting corrections

* Update fromZigbee.js

* Update devices.js

* Updates handlers for Livolo

* Fixes

* Update devices.js

* Updates.

* 7.1.0

* Add combined toZigbee color and colortemp converter. (#260)

* Add support for AduroSmart ERIA White and Color bulbs.

* Update devices.js

* Add combined toZigbee color and colortemp convertor.

This convertor is a combination of light_color and light_colortemp and
can be used instead of the two individual convertors. When used to set,
it actually calls out to light_color or light_colortemp to get the
return value. When used to get, it gets both color and colorTemp in
one call.
The reason for the existence of this somewhat peculiar converter is
that some lights don't report their state when changed. To fix this,
we query the state after we set it. We want to query color and colorTemp
both when setting either, because both change when setting one. This
converter is used to do just that.

We're using this convertor by default now in
generic.light_onoff_brightness_colortemp_colorxy because it can't hurt.

* Typos.

* Added Eurotronic Spirit Zigbee thermostat (#254)

* Added Eurotronic Spirit Zigbee thermostat

* adjust Spirit Zigbee thermostat binding due to pr comments

* fix linter errors

* renamed specific attributes with eurotronic prefix, cleanup converters

* update model and description to match convention for documentation

* remove trailing space

* remove trailing space

* added postfix parameter to eurotronic converters

* 7.1.1

* Fix Xiaomi Gas sensor density json attr (#263)

* 7.1.2

* Introduce Ninja Smart plug to devices.js (#262)

* Update devices.js

* Intro-Ninja-Plug

Introduced device entry for Ninja Smart plug from Ninja Block inc, including power metering and on/off support

* Update devices.js

* Ignore genGroups devChange. Koenkk/zigbee2mqtt#764

* Add support for AduroSmart ERIA Smart Wireless Dimming Switch (#264)

* Add support for AduroSmart ERIA Smart Wireless Dimming Switch

Switch returns event on button release. Hold not supported.
Implemented as action sensor, returning actions on, off, up, down.

Proprietary cluster PRs in zcl-id and zcl-packet need to be merged
first.

URL: https://adurosmart.com/products/adurosmart-eria-smart-dimming-switch-hub-required
Image: https://static1.squarespace.com/static/5b73cad4aa49a1238f3c98ab/5b74eb9fb8a045d2f8b7d562/5b764e90562fa74310b76949/1534480018645/81825-Dimmng-switch-3.jpg?format=2500w

* Update devices.js

* HS3CG - Heiman gas sensor #257 (#265)

* Update devices.js

* Update fromZigbee.js

* Update fromZigbee.js

* Update devices.js

* Update fromZigbee.js

* Update fromZigbee.js

* 7.1.3

* Update toZigbee.js (#266)

Bugfix: Eurotronic zigbee thermostat support: localTemperatureCalibration was not written correctly to the device.

* Immax LED E14/230V C35 5W TB 440LM ZIGBEE DIM (#268)

* Add support for BOSCH RADON TriTech ZB Motion Sensor Model RFDL-ZB-MS (#267)

* Update devices.js

Add support for BOSCH RADON TriTech ZB Motion Sensor Model RFDL-ZB-MS

* Update fromZigbee.js

Add support for BOSCH motion sensor RADON TriTech ZB
bit 0 is used to detect motion bit temper contact and bit 3 battery low

* Update devices.js

* Update fromZigbee.js

* Update devices.js

* Update devices.js

* Update devices.js

* Add support for Hue white ambiance suspension Fair (#269)

* More custom attributes for Eurotronic SPZB0001 (#270)

* Added Eurotronic Spirit Zigbee thermostat

* adjust Spirit Zigbee thermostat binding due to pr comments

* fix linter errors

* renamed specific attributes with eurotronic prefix, cleanup converters

* update model and description to match convention for documentation

* remove trailing space

* remove trailing space

* added postfix parameter to eurotronic converters

* Eurotronic SPZB0001: more custom attribtes, listen to devChange instead of attReport, rename eurotronic_16386

* Update ikea tradfri remote setup link.

* Lock zcl-id.

* 7.1.4

* Multiple Gledopto transition by 3.3. Koenkk/zigbee2mqtt#1047

* 7.1.5

* LED1624G9 doesn't support color temperature. Koenkk/zigbee2mqtt#678

* Added support for Innr RS 225 bulb (#271)

* Add E1746. Koenkk/zigbee2mqtt#832

* 7.1.6

* Fix gledopto color and color_temp converter. Koenkk/zigbee2mqtt#1064 (comment)

* 7.1.7

* Add E1743 Koenkk/zigbee2mqtt#997 (#273)

* Experimental support E1743. Koenkk/zigbee2mqtt#997

* Add battery support and fix model. Koenkk/zigbee2mqtt#997

* Add missing battery converter. Koenkk/zigbee2mqtt#997

* Add ignore_power_change. Koenkk/zigbee2mqtt#997

* Increase WXKG01LM long click delay.

This makes detecting long clicks more reliable. Sometimes a `long` is detected when it's actually a `single`.

* Support YRD426NRSC. Koenkk/zigbee2mqtt#1032 (#274)

* Experimental support YRD426NRSC. Koenkk/zigbee2mqtt#1032

* Update fromZigbee.js

* 7.1.8

* Add Osram BR30 RGBW LED to HA

* Add support for TRADFRI bulb E27 WS opal 1000lm light LED1732G11 (#277)

* SmokeSensor-EM (#272)

* tint remote, 3 keys (#279)

* tint remote, 3 keys

activated On-Off and brightness up/down

* Update devices.js

* Update fromZigbee.js

* Update devices.js

* Update devices.js

* Update links.

* 7.1.9

* Innr RB 265 E27 Bulb support (#280)

* Fixed HS1SA battery report (#282)

* 7.1.10

* Updated devices.js with support for ELKO Dimmer 316 GLED RF. (#283)

* Updated devices.js with support for ELKO Dimmer 316 GLED RF.

* Update devices.js

* Update devices.js

* Update devices.js

* Additional setup is not required anymore.

* Decoupled mode for Xiaomi wired wall switches (#287)

* Added LivingWise ZigBee Smart dimmer Switch. Model#: LVS-ZB500D (#288)

* Added LivingWise ZigBee Smart dimmer Switch. Model#: LVS-ZB500D

* Update devices.js

* Update devices.js

* Update fromZigbee.js

* added samsung smartthings plug (#286)

* added samsung smartthings plug

* Update fromZigbee.js

* Update devices.js

* Update toZigbee.js

* Update toZigbee.js

* didn't need custom toZigbee converter

* didn't need custom toZigbee converter

* tint remote (ZBT-Remote) Color keys (#284)

* tint remote, 3 keys

activated On-Off and brightness up/down

* Update devices.js

* Update fromZigbee.js

* Update devices.js

* Update devices.js

* tint remote (ZBT-Remote) Color keys

Implementation of color wheel and color temp, brightness with stesize and transition-time

* syntax power-key

* Update fromZigbee.js

change on/off-button to action:'on' and 'off'

* Update fromZigbee.js

* Update devices.js

* Update fromZigbee.js

* Update devices.js

* [Xiaomi wired switch] Parse operation mode response (#290)

* Add GL-FL-004TZ. #293

* Added support for new Philips Hue Outdoor Motion Sensor (#294)

* Update devices.js

Added support for the new Philips Hue Outdoor Motion Sensor

* Update devices.js

* Add ST218. #295

* Add  ' generic_state_multi_ep' to support Nue branded switches (#298)

* Update devices.js with support for Nue 'FB56+ZSW1HKJ1.7' (#297)

* Fix problem with FB56+ZSW05HG1.2' (HGZB-01A) handler (#299)

* Fix problem with FB56+ZSW05HG1.2' (HGZB-01A) handler


FB56+ZSW05HG1.2'  (HGZB-01A)


This device was already supported and works, however error message below. I've added "fz.ignore_onoff_change" to the device handler and this fixes the problem (if it is a problem?), but wanted to check with you @Koenkk that it's okay to ignore the 'genOnOff' message?

```zigbee2mqtt:debug 2/23/2019, 1:31:59 AM Received zigbee message of type 'devChange' with data '{"cid":"genOnOff","data":{"onOff":0}}' of device 'FB56+ZSW05HG1.2' (0x00124b000ae5fa3e)
  zigbee2mqtt:warn 2/23/2019, 1:31:59 AM No converter available for 'FB56+ZSW05HG1.2' with cid 'genOnOff', type 'devChange' and data '{"cid":"genOnOff","data":{"onOff":0}}'
  zigbee2mqtt:warn 2/23/2019, 1:31:59 AM Please see: https://www.zigbee2mqtt.io/how_tos/how_to_support_new_devices.html.
  zigbee2mqtt:debug 2/23/2019, 1:32:23 AM Received MQTT message on 'zigbee2mqtt/0x00124b000ae5fa3e/set' with data 'ON'
  zigbee2mqtt:info 2/23/2019, 1:32:23 AM Zigbee publish to device '0x00124b000ae5fa3e', genOnOff - on - {} - {"manufSpec":0,"disDefaultRsp":0} - null```

I also moved the "   // Smart Home Pty" devices below // Nue as I believe they are probably the same and before long you might get double ups.

* Update devices.js

* Update devices.js

* Update devices.js

* Update devices.js

* Update devices.js

* Update devices.js

* Add support for Keen Home smart vent (#276)

* - added support for Keen Home smart vent

* - added more from-zigbee handler for keen vent
- added more model# for keen vent

* Update devices.js

* - updated reporting interval and only handle attReport and ignore devChange on temperature and pressure

* - added cover_position handler

* - added cover_position to keen home toZigbee

* - added transtime to cover_position.set
- changed key to state for cover_position

* Update toZigbee.js

* Update devices.js

* - added cover_state and cover_position fromZigbee handler
- made changes to cover_open_close toZigbee handler so it'd work correctly

* - added devChange fromZigbee handler for keen home pressure, temperature and battery
- updated cover_position and cover_position_report fromZigbee handler to return both position and state (state is determined by position now)
- updated cover_open_close to only change currentLevel
- adjusted attReport interval for kee home vent

* - removed reporting config

* - fixed lint errors

* 7.1.11

* Add device to support Trust Remote control ZYCT-202 (#300)

* Add device to support Trust Remote control ZYCT-202

Koenkk/zigbee2mqtt#635

* Add the concerters for the Trust Remote control ZYCT-202

The groupid has been processed in the button press. So you have the action and the selector mode in 1 state value and can easily be used in a Home Assistant Automation state rule.

* Add the concerters for the Trust Remote control ZYCT-202

The groupid has been processed in the button press. So you have the action and the selector mode in 1 state value and can easily be used in a Home Assistant Automation state rule.

(Koenkk/zigbee2mqtt#635)

* Update devices.js

Fixed spaces line 1941

* Update devices.js

Fixed the maximum line length of 120  max-len

* Separated the action and groupid in the return rules

Have separated the action and groupid in the return rules...

* Update fromZigbee.js

* Support TRADFRI wirelessm motion sensor E1525. Koenkk/zigbee2mqtt#247

* 7.1.12

* Add support for AXIS Gear window shade motor (#301)

* - added support for AXIS Gear window shade motor

* - updated AXIS Gear model

* Update devices.js

* Support HGZB-42-UK. #278

* 7.1.13

* Change up and down in Ikea Outlet Switch (#302)

* TRADFRI dimmer change maximum response time. (#305)

* Update action color wheel structure.

* tint remote, 3 keys

activated On-Off and brightness up/down

* Update devices.js

* Update fromZigbee.js

* Update devices.js

* Update devices.js

* tint remote (ZBT-Remote) Color keys

Implementation of color wheel and color temp, brightness with stesize and transition-time

* syntax power-key

* Update fromZigbee.js

change on/off-button to action:'on' and 'off'

* Update fromZigbee.js

* Update devices.js

* Update fromZigbee.js

* Update devices.js

* tint remote, changed to standard return values, changed calculations of color to franctions.

* adopt to master

* adopt master changes

* Update fromZigbee.js

* Update fromZigbee.js

* fixed thermostat_setpoint_raise_lower (#308)

setpoint_raise_lower is client-to-server only. There is no need for a "get".

To get the setpoint use:
occupied_heating_setpoint
or 
unoccupied_heating_setpoint

* Added illuminance measurement for SML002 (#307)

* Added illuminance measurement 

Added illuminance measurement for Philips outdoor sensor SML002.

* Update devices.js

* new: Hue Flourish ceiling light (#309)

* new: Hue Flourish ceiling light

* Update devices.js

* Cosmetic updates.

* Separate moveToLevelWithOnOff and moveToLevel converters. Koenkk/zigbee2mqtt#176

* 7.2.0

* updated reporting confg for Keen Vent and AXIS Gear (#310)

* - updated reporting configuration for Keen Vent
- updated AXIS Gear to start report its position and battery level

* Update devices.js

* Update zcl-id.

* Add philips cluster for hue dimmer (#311)

* Add philips cluster for hue dimmer

* Modify philips hue dimmer

* Modify philips hue dimmer

* Modify philips hue dimmer

* Update fromZigbee.js

* Update devices.js

* Update fromZigbee.js

* Update fromZigbee.js

* 7.2.1

* Check if message has onOff for state converters. Koenkk/zigbee2mqtt#1176

* 7.2.2

* Additional model name for Osram LIGHTIFY Flex RGBW (#314)

* Update devices.js (#315)

* Support ISW-ZPR1-WP13. Koenkk/zigbee2mqtt#768

* 7.2.3

* Also check for realistic values in WSDCGQ01LM_WSDCGQ11LM_interval. Koenkk/zigbee2mqtt#798

* 7.2.4

* Add support for Philips Hue Sana (#316)

Signed-off-by: markus1540 <markus1540@gmail.com>

* Update fromZigbee.js with ignore_light_brightness_change (#318)

Updated to support Nue Dimmer Switch (FB56+ZSC05HG1.0)

* Support HGZB-02A. Koenkk/zigbee2mqtt#1179

* Update devices.js with FB56+ZSC05HG1.0 (Nue Smart Dimmer Switch) (#317)

* Update devices.js with FB56+ZSC05HG1.0 (Nue Smart Dimmer Switch)

* Renamed FB56+ZSC05HG1.0 model ID to correct ID.

* Update devices.js

* Add action for ICTC-G-1. Koenkk/zigbee2mqtt#1191

* 7.2.5

* Clarify that the GE Link bulb could be BR30 or A19 (#320)

I noticed that my A19 GE Link bulbs are sharing the BR30 description.
From what I can tell, they both share same model number: Koenkk/zigbee2mqtt#1161

* Update devices.js for 'FB56+ZSW1HKJ1.7' with new button decriptions (top/bottom) (#321)

* Support for 'FB56+ZSW1IKJ1.7' 3-gang Nue Smart Switch (#319)

* Support for 'FB56+ZSW1IKJ1.7' 3-gang Nue Smart Switch

Confirmed working, but please check my parentheses etc @Koenkk .... I get double MQTT feedback.

It would also be great if you could support 'top' and 'bottom' in https://github.com/Koenkk/zigbee2mqtt/blob/master/lib/extension/devicePublish.js#L8 - is this a possibility? This would make more sense for countries like Australia where switches are mounted vertically, and give the option for the handler to match the local orientation of the device.

* Changed FB56+ZSW1IKJ1.7 to include new button descriptors (top/bottom)

* Fix missing converters for philips hue dimmer (#322)

* Update devices.js

* Update fromZigbee.js

* Update devices.js

* Update devices.js

* re-pair fix and add multiple clicks for hue dimmer (#323)

* added multiple (single/double etc) click for hue dimmer

* fix re-pair issue for hue dimmer

* Update devices.js

* Update fromZigbee.js

* Update fromZigbee.js

* Fix gledopto converter crash. Koenkk/zigbee2mqtt#1209

* 7.2.6

* Ignore basic dev change for all lights. Koenkk/zigbee2mqtt#1064

* Check if data has currentLevel attribute in brightness converters. Koenkk/zigbee2mqtt#1212

* Update devices.js for Nue HGZB-41 (#325)

The Nue 1 gang smart switch model 'HGZB-41' identifies as 'FNB56-ZSW01LX2.0', the same as previously listed 'HGZB-42-UK' 2 gang switch. Updated model / description to allow for both.

* add Nyce-3043 and additional Smartthings devices (#324)

* add Nyce-3043 and additional Smartthings devices

* Update devices.js

* Update fromZigbee.js

* 7.2.7

* Improve AC0251100NJ actions consistency

Improve AC0251100NJ actions consistency

* extend E1524 with genPowerCfg reporting (#326)

* extend E1524 with genPowerCfg reporting

* Add Whitespace to fix failured travis check

* Update devices.js

* Update devices.js

* Update README.md (#327)

Link to zigbee2mqtt.

* Bitron av2010/34  (#328)

* AV2010/34 devices.js Part

* add AV2010_34_click + generic ignore_power_report

* Update devices.js

* Add extra guard to xiaomi_contact_interval. Koenkk/zigbee2mqtt#1219

* Update dependencies.

* 7.2.8

* Update devices.js to support FNB56-ZSW03LX2.0 - Nue 3 gang smart switch v2.0 (#330)

* Update devices.js to support FNB56-ZSW03LX2.0 - Nue 3 gang smart switch v2.0

Endpoints changed between versions. Possibly using newer Zigbee protocol now also

* Update devices.js

* Add Securifi Peanut Smart Plug (#331)

* Add Securifi Peanut Smart Plug

Measurements not supported/tested as they require a firmware upgrade (?). Switch works though.

See Koenkk/zigbee2mqtt#809

* Update devices.js

* Update fromZigbee.js to support Nue Scene Switches (#332)

* Add 'FTB56+ZSN15HG1.0' & 'FB56+ZSN08KJ2.3' Nue Scene Switches (#333)

* Add 'FTB56+ZSN15HG1.0' & 'FB56+ZSN08KJ2.3' Nue Scene Switches

* Update devices.js

* Update devices.js to support FB56+ZSW1HKJ2.5 2 gang Nue smart switch (#334)

* Update devices.js to support FB56+ZSW1HKJ2.5 2 gang Nue smart switch

This has the same model number HGZB-042 as FB56+ZSW1HKJ1.7

* Update devices.js

* Add support for Visonic MCT-350 contact sensor. (#336)

* Add support for Visonic MCT-350 contact sensor.

* Update devices.js

* Update fromZigbee.js

* Add support for OJB-CR701-YZ Gas and CO sensor (#338)

* Add statuschange converter for OJB-CR701-YZ

* Add OJB-CR701-YZ to devices.js

* Fix eslint

* amend

* fix: Set proper vendor for OJB-CR701-YZ

* Update devices.js

* Update fromZigbee.js

* Update devices.js

* Update devices.js

* Update fromZigbee.js

* Add more ignore converters.

* Changed to correct external model details (#335)

* Changed to correct external model details

* Fix model numbers

* Update devices.js

* Add support for Sengled E12-N14 (BR30) Light

* Add support for Sengled E12-N14 (BR30) Light

* Update devices.js

* Update devices.js

* Allow type to be an array.

* 8.0.0

* Don’t convert readRsp for ZNLDP12LM. Koenkk/zigbee2mqtt#1240

* 8.0.1

* Add alias for 4058075036185. Koenkk/zigbee2mqtt#1245

* Ignore false ZNCZ02LM and ZNLDP12LM messages.

* 8.0.2

* Add Support SwannOne Key Fob SWO-KEF1PA

* Modify payload to be more compatible with Home Assistant

* Sunricher (#340)

* Sunricher

* Update devices.js

* Update devices.js (#341)

* Adding `wireless mode` support for Xiaomi Switches QBKB11LM/QBKG12LM (#342)

* Update fromZigbee.js

rename methods for xiaomi aqara switch wireless mode

* Update devices.js

wireless mode for aqara wired switches

* Update devices.js

* Add 2 additional Nue models FB56+ZSW1GKJ2.5 & FTB56+ZSN16HG1.0 (#348)

Again .. another overlap of model but with different Zigbee ID. Entered differently per device.
Tidied up descriptions further.

* Added Smartthings devices (#344)

* add Nyce-3043 and additional Smartthings devices

* Update devices.js

* Update fromZigbee.js

* additional Smartthings devices

* added converters

* updated 3315-S

* added st_leak_change

* updated 3305-S, ignore change on genpower

* Update devices.js

* Update devices.js

* Update devices.js

* Update fromZigbee.js

*  Add Support SwannOne Key Fob SWO-KEF1PA (#346)

* Add support for Sengled E12-N14 (BR30) Light

* Add Osram BR30 RGBW LED to HA

* Update devices.js

* Add Support SwannOne Key Fob SWO-KEF1PA

* Modify payload to be more compatible with Home Assistant

* Update devices.js

* Update fromZigbee.js

* Update fromZigbee.js

* 8.0.3

* Add converters for ignoring 'diagnostic' and 'genscenes' dev changes

* Implement no_occupancy_since for RTCGQ01LM and RTCGQ11LM. Koenkk/zigbee2mqtt#1195

* 8.0.4

* Add converters for ignoring 'diagnostic' and 'genscenes' dev changes (#350)

* Add support for Sengled E12-N14 (BR30) Light

* Add Osram BR30 RGBW LED to HA

* Update devices.js

* Add support for Sengled E12-N14 (BR30) Light

* Update devices.js

* Add Support SwannOne Key Fob SWO-KEF1PA

* Modify payload to be more compatible with Home Assistant

* Add support for Sengled E12-N14 (BR30) Light

* Update devices.js

* Add Support SwannOne Key Fob SWO-KEF1PA

* Modify payload to be more compatible with Home Assistant

* Add converters for ignoring 'diagnostic' and 'genscenes' dev changes

* Osram/Sylvania: Add vendor specific functions

NOTE: Will require updated zcl-id and zcl-packet defs:

qosmio/zcl-id@859d657

qosmio/zcl-packet@f74d92c

Two new functions:

* osram_set_transition: Allows setting a default transition time
whenever lights are turned back on manually.

* osram_remember_state: Allows the end device to remember its last
brightness/hue/color/etc state when light is turned on manually.
Currently it resets to default.

Also adding options to the ignore list.
  - fz.ignore_genIdentify_change
  - fz.ignore_diagnostic_change
  - fz.ignore_genscenes_change

* Fixing eslinting issues.

* Sylvania/Osram: Configure BR30, A19, A19 RGBW to report on/off

* FIX: Key was incorrectly defined as a list of options.

* Revert 'configure' options for reporting. Being worked on upstream

See: Koenkk/zigbee2mqtt#1064

* FIX: duplicate keys that were already merged.

* Sylvania/Osram: Consolidate Osram commands into single method.

* FIX: Linting
@apeeters

This comment has been minimized.

Copy link

commented Mar 18, 2019

I just setup reporting. It seems to work, but I get errors like the following for a few bulbs. Maybe delay/spread reporting messages in a similar way to regular control messages?

3/18/2019, 8:30:58 PM - error: Failed to bind for reporting for 0x90fd9ffffe4d1be0 - lightingColorCtrl - 3 - (Error: Timed out after 10000 ms)

@joseska

This comment has been minimized.

Copy link

commented Mar 18, 2019

Same error as @apeeters with "ZNCZ02LM - Xiaomi Mi power plug ZigBee (Router)"

@Koenkk

This comment has been minimized.

Copy link
Owner Author

commented Mar 19, 2019

@apeeters @joseska can you try by changing https://github.com/Koenkk/zigbee2mqtt/blob/master/lib/util/zigbeeQueue.js#L1 to const maxSimultaneouslyRunning = 3;

Koenkk added a commit that referenced this issue Mar 30, 2019

@glentakahashi

This comment has been minimized.

Copy link
Contributor

commented Apr 13, 2019

I've noticed it tries to bind reporting to devices that don't need reporting, for example my xiaomi aqara door/window sensors. It's trying to bind them to genOnOff, which almost always fails because they're battery powered and always sleeping.

Koenkk added a commit that referenced this issue Apr 16, 2019

@Koenkk

This comment has been minimized.

Copy link
Owner Author

commented Apr 16, 2019

@glentakahashi good catch, should be fixed in the latest dev branch.

@lassieee

This comment has been minimized.

Copy link

commented Apr 18, 2019

Hi,
I have three zigbee2mqtt groups, each with their own Ikea E1524 button and one or more Ikea bulbs (mix of e27, e14 and gu10). I have enabled reporting so these bulbs show up as ON in HomeAssistant when the E1524 turns the bulb on, but when I have reporting on, zigbee2mqtt stops working within a day and the only way I can get zigbee2mqtt to start again is to reflash the CC2531. I've been having this for a few weeks now.
I have two CC2531 sticks and two raspberry pi 3's, and if I switch hardware the issue is the same. I'm running the latest version for both the CC2531 firmware and the zigbee2mqtt docker container.
The error zigbee2mqtt gives is:

Using` '/app/data' as data directory

> zigbee2mqtt@1.3.1 start /app
> node index.js

  zigbee2mqtt:info 4/18/2019, 6:25:25 AM Logging to directory: '/app/data/log/2019-04-18.06-25-25'
  zigbee2mqtt:info 4/18/2019, 6:25:27 AM Starting zigbee2mqtt version 1.3.1 (commit #unknown)
  zigbee2mqtt:info 4/18/2019, 6:25:27 AM Starting zigbee-shepherd
  zigbee2mqtt:info 4/18/2019, 6:25:33 AM Error while starting zigbee-shepherd, attempting to fix... (takes 60 seconds)
  zigbee2mqtt:info 4/18/2019, 6:26:33 AM Starting zigbee-shepherd
  zigbee2mqtt:error 4/18/2019, 6:26:40 AM Error while starting zigbee-shepherd!
  zigbee2mqtt:error 4/18/2019, 6:26:40 AM Press the reset button on the stick (the one closest to the USB) and start again
  zigbee2mqtt:error 4/18/2019, 6:26:40 AM Failed to start
        {"message":"request timeout","stack":"Error: request timeout\n    at CcZnp.<anonymous> (/app/node_modules/cc-znp/lib/ccznp.js:261:22)\n    at Object.onceWrapper (events.js:273:13)\n    at CcZnp.emit (events.js:182:13)\n    at Timeout.<anonymous> (/app/node_modules/cc-znp/lib/ccznp.js:240:18)\n    at ontimeout (timers.js:436:11)\n    at tryOnTimeout (timers.js:300:5)\n    at listOnTimeout (timers.js:263:5)\n    at Timer.processTimers (timers.js:223:10)"}
  zigbee2mqtt:error 4/18/2019, 6:26:40 AM Exiting...
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! zigbee2mqtt@1.3.1 start: `node index.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the zigbee2mqtt@1.3.1 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     `/root/.npm/_logs/2019-04-18T06_27_15_943Z-debug.log

I disabled reporting this weekend and I had no issues, no crashed whatsoever. Yesterday I enabled reporting again and this morning it's broken again.
Is anyone else experiencing this, or have any pointers for me?
I'm running CC2531_DEFAULT_20190223.zip and zigbee2mqtt 1.3.1-arm32v6 (docker)

@Koenkk

This comment has been minimized.

Copy link
Owner Author

commented Apr 18, 2019

@lassieee

This comment has been minimized.

Copy link

commented Apr 18, 2019

@Koenkk thanks Koen, I'll try that and report back.

@lassieee

This comment has been minimized.

Copy link

commented Apr 21, 2019

@lassieee can you try with the max stability firmware? https://github.com/Koenkk/Z-Stack-firmware/tree/master/coordinator

It's been three days now, without issues, so the max stability firmware seems the way to go for me. Many thanks @Koenkk !

@sanderjonkers

This comment has been minimized.

Copy link

commented May 3, 2019

I'm testing with reporting ON, but I see some errors in the log.
I'm using the zigbee2mqtt add-on in hassio, V1.3.1

For a Ikea Tradfri GU10, the log contains:
zigbee2mqtt:error 5/3/2019, 1:41:37 PM Failed to bind for reporting for 0xd0cf5efffedcbb6f - genOnOff - 1 - (Error: Timed out after 10000 ms)
zigbee2mqtt:error 5/3/2019, 1:42:27 PM Failed to bind for reporting for 0xd0cf5efffedcbb6f - genLevelCtrl - 1 - (Error: Timed out after 10000 ms)

I also saw others reporting this earlier in this thread, but I couldn't find a fix.

@gdave321

This comment has been minimized.

Copy link

commented May 5, 2019

Seems reporting is NOT working correctly for a HUE lamp (Hue white ambiance E14 (8718696695203)).

I have an IKEA switch plus this hue light setup in a group 'testgrp' sending ON to this group, there is a report from the IKEA it turned on but nothing from the Hue light.
Reportng does appear to be setup successfully:
hue bulb:
5/5/2019, 10:20:46 AM - debug: Successfully setup reporting for 0x00178801029b5654 - genOnOff - 1
ikea switch:
5/5/2019, 10:21:03 AM - debug: Successfully setup reporting for 0x000d6ffffedda4b3 - genOnOff - 1

Here is the group on, both light and switch actually do turn on just fine but no report from Hue:

5/5/2019, 11:02:32 AM - debug: Received MQTT message on 'zigbee2mqtt/testgrp/set' with data '{"state": "ON"}'
5/5/2019, 11:02:32 AM - info: Zigbee publish to group '1', genOnOff - on - {} - {"manufSpec":0,"disDefaultRsp":0} - null
5/5/2019, 11:02:32 AM - info: MQTT publish: topic 'zigbee2mqtt/testgrp', payload '{"state":"ON","color":{"x":0.457,"y":0.41},"brightness":1}'
5/5/2019, 11:02:32 AM - debug: Received zigbee message of type 'attReport' with data '{"cid":"genOnOff","data":{"onOff":1}}' of device 'TRADFRI control outlet' (0x000d6ffffedda4b3) of endpoint 1
5/5/2019, 11:02:32 AM - info: MQTT publish: topic 'zigbee2mqtt/testgrp', payload '{"state":"ON","color":{"x":0.457,"y":0.41},"brightness":1}'

@gdave321

This comment has been minimized.

Copy link

commented May 5, 2019

BTW I since I noticed in the publish to the group the brightness was set to '1' I repeated the test by sending state ON brightness 255 to the group, however doesn't make a difference, IKEA reports it's on, the HUE doesn't report anything.

5/5/2019, 11:19:30 AM - debug: Received MQTT message on 'zigbee2mqtt/testgrp/set
' with data '{"state": "ON", "brightness": 255}'
5/5/2019, 11:19:30 AM - info: Zigbee publish to group '1', genLevelCtrl - moveTo
LevelWithOnOff - {"level":255,"transtime":0} - {"manufSpec":0,"disDefaultRsp":0} - null
5/5/2019, 11:19:30 AM - info: MQTT publish: topic 'zigbee2mqtt/testgrp', payload
'{"state":"ON","color":{"x":0.457,"y":0.41},"brightness":255}'
5/5/2019, 11:19:30 AM - debug: Received zigbee message of type 'attReport' with
data '{"cid":"genOnOff","data":{"onOff":1}}' of device 'TRADFRI control outlet'
(0x000d6ffffedda4b3) of endpoint 1
5/5/2019, 11:19:30 AM - info: MQTT publish: topic 'zigbee2mqtt/testgrp', payload '{"state":"ON","color":{"x":0.457,"y":0.41},"brightness":255}'

@Koenkk

This comment has been minimized.

Copy link
Owner Author

commented May 5, 2019

@gdave321

This comment has been minimized.

Copy link

commented May 6, 2019

@Koenkk
If you reference the remark that Philips Hue doesn't report brightness level, yes I've seen that. But just seeing on/off would be great already.

@Koenkk

This comment has been minimized.

Copy link
Owner Author

commented May 7, 2019

@gdave321 I see, but note that this feature completely depends on the bulb itself. If you still have a Hue hub you could try updating the software of the bulb.

@End0rphi

This comment has been minimized.

Copy link

commented May 11, 2019

Reporting is working correctly with Müller Tint lamps, changing state via Tint remote.
Payload of reported state is e.g.: "'{"state":"ON","linkquality":31,"brightness":1,"color_temp":250,"color_mode":2,"color":{"x":0.458,"y":0.41}}'"

Changing brightness or color temperature via the Tint remote also reports back to the controller.

@brettyj

This comment has been minimized.

Copy link

commented May 25, 2019

I'm having the same issue as @gdave321 - my hue bulbs are showing as having registered for reporting fine, but when changing via a zigbee group, the individual bulbs are not updating - and I'm seeing no reports coming through in debug mode.

I've only just switched my bulbs from Hue hub so they are all on the latest software versions.
Got the following bulbs:

Philips Hue white ambiance GU10 (Router)
Philips Hue white ambiance GU10 (Router)
Philips Hue dimmer switch (EndDevice)
Philips Hue white ambiance GU10 (Router)
Philips Hue Lux A19 bulb E27 (Router)
Philips Hue Lux A19 bulb E27 (Router)
Philips Hue Lux A19 bulb E27 (Router)
Philips Hue white and color ambiance LightStrip plus (Router)
Philips Hue white and color ambiance E26/E27/E14 (Router)
Philips Hue Lux A19 bulb E27 (Router)

Also noticed that they are all showing as offline in the network map but seem to be working fine.

I've managed to hack together a polling every minute of my bulbs so they will update HA when they change via a group etc - but it's obviously not ideal and I'd rather get this reporting to work if possible

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.