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

IKEA TRADFRI wireless dimmer (ICTC-G-1) How to get the Battery level ? #792

Closed
antti365 opened this issue Jan 1, 2019 · 51 comments
Closed

Comments

@antti365
Copy link

antti365 commented Jan 1, 2019

Hi! A few days ago I started using zigbee2mqtt with IKEA devices. I noticed that in the MQTT line, along with the dimmer status, the battery charge level is not transmitted. Is there any way to add it there? I used to have a native gateway and, as far as I remember, there was an indication of battery charge, or am I mistaken?

@RaveGun
Copy link

RaveGun commented Jan 8, 2019

There is an deal ongoing to a kit consisting of lightbulb and a dimmer switch at IKEA, and I ordered 2 sets. I will report back after I get them if it behaves the same.

Do you run ZigBee2Mqtt in a docker container?

@antti365
Copy link
Author

antti365 commented Jan 9, 2019

Hi,
No, I don’t use docker. Zigbee2mqtt is launched via systemd on Rpi3 running Rasbian Stretch. I just thought it was logical that all devices on batteries should report the status of the battery in some way, in this case I only get the dimmer value and link quality.
Thanks for the answer.

@Koenkk
Copy link
Owner

Koenkk commented Jan 9, 2019

Can you update the section of the TRADFRI dimmer in devices.js to (how to get to devices.js: https://koenkk.github.io/zigbee2mqtt/how_tos/how_to_support_new_devices.html). When starting zigbee2mqtt, make sure the device is awake (by rotating it a few times), otherwise configuration fails.

    {
        zigbeeModel: ['TRADFRI wireless dimmer'],
        model: 'ICTC-G-1',
        vendor: 'IKEA',
        description: 'TRADFRI wireless dimmer',
        supports: 'brightness [0-255], quick rotate for instant 0/255',
        fromZigbee: [
            fz.ICTC_G_1_move, fz.ICTC_G_1_moveWithOnOff, fz.ICTC_G_1_stop, fz.ICTC_G_1_stopWithOnOff,
            fz.ICTC_G_1_moveToLevelWithOnOff,
        ],
        toZigbee: [],
        configure: (ieeeAddr, shepherd, coordinator, callback) => {
            const device = shepherd.find(ieeeAddr, 1);
            const actions = [
                (cb) => device.bind('genLevelCtrl', coordinator, cb),
                (cb) => device.bind('genPowerCfg', coordinator, cb),
                (cb) => device.report('genPowerCfg', 'batteryPercentageRemaining', 0, 3, 0, cb),
            ];
            execute(device, actions, callback);
        },
    },

@antti365
Copy link
Author

antti365 commented Jan 9, 2019

I updated the TRADFRI dimmer section in devices.js as you specified, turned the dimmer several times and started zigbee2mqtt.
Result:
Jan 10 00:20:54 raspberrypi3 npm[28929]: zigbee2mqtt:info 2019-1-10 00:20:54 Logging to directory: '/opt/zigbee2mqtt/data/log/2019-01-10.00-20-54'
Jan 10 00:20:55 raspberrypi3 npm[28929]: zigbee2mqtt:info 2019-1-10 00:20:55 Starting zigbee2mqtt version 1.0.1 (commit #9380bbc)
Jan 10 00:20:55 raspberrypi3 npm[28929]: zigbee2mqtt:info 2019-1-10 00:20:55 Starting zigbee-shepherd
Jan 10 00:20:56 raspberrypi3 npm[28929]: zigbee2mqtt:info 2019-1-10 00:20:56 zigbee-shepherd started
Jan 10 00:20:56 raspberrypi3 npm[28929]: zigbee2mqtt:info 2019-1-10 00:20:56 Coordinator firmware version: '2018090201'
Jan 10 00:20:56 raspberrypi3 npm[28929]: zigbee2mqtt:info 2019-1-10 00:20:56 Currently 2 devices are joined:
Jan 10 00:20:56 raspberrypi3 npm[28929]: zigbee2mqtt:info 2019-1-10 00:20:56 Entrance_Lamp (0x000b57fffe33d833): LED1623G12 - IKEA TRADFRI LED bulb E27 1000 lumen, dimmable, opal white (Router)
Jan 10 00:20:56 raspberrypi3 npm[28929]: zigbee2mqtt:info 2019-1-10 00:20:56 Entrance_Dimmer (0x000b57fffe2b3c08): ICTC-G-1 - IKEA TRADFRI wireless dimmer (EndDevice)
Jan 10 00:20:56 raspberrypi3 npm[28929]: zigbee2mqtt:warn 2019-1-10 00:20:56 permit_join set to true in configuration.yaml.
Jan 10 00:20:56 raspberrypi3 npm[28929]: zigbee2mqtt:warn 2019-1-10 00:20:56 Allowing new devices to join.
Jan 10 00:20:56 raspberrypi3 npm[28929]: zigbee2mqtt:warn 2019-1-10 00:20:56 Set permit_join to false once you joined all devices.
Jan 10 00:20:56 raspberrypi3 npm[28929]: zigbee2mqtt:info 2019-1-10 00:20:56 Zigbee: allowing new devices to join.
Jan 10 00:20:56 raspberrypi3 npm[28929]: zigbee2mqtt:info 2019-1-10 00:20:56 Connecting to MQTT server at mqtt://localhost
Jan 10 00:20:56 raspberrypi3 npm[28929]: zigbee2mqtt:info 2019-1-10 00:20:56 zigbee-shepherd ready
Jan 10 00:20:56 raspberrypi3 npm[28929]: zigbee2mqtt:info 2019-1-10 00:20:56 Connected to MQTT server
Jan 10 00:20:56 raspberrypi3 npm[28929]: zigbee2mqtt:info 2019-1-10 00:20:56 MQTT publish: topic 'zigbee2mqtt/bridge/state', payload 'online'
Jan 10 00:20:56 raspberrypi3 npm[28929]: zigbee2mqtt:info 2019-1-10 00:20:56 MQTT publish: topic 'zigbee2mqtt/Entrance_Lamp', payload '{"state":"OFF","brightness":1}'
Jan 10 00:21:13 raspberrypi3 npm[28929]: zigbee2mqtt:info 2019-1-10 00:21:13 MQTT publish: topic 'zigbee2mqtt/Entrance_Dimmer', payload '{"brightness":255,"linkquality":39}'
Jan 10 00:21:16 raspberrypi3 npm[28929]: zigbee2mqtt:info 2019-1-10 00:21:16 MQTT publish: topic 'zigbee2mqtt/Entrance_Dimmer', payload '{"brightness":0,"linkquality":39}'
Jan 10 00:21:17 raspberrypi3 npm[28929]: zigbee2mqtt:error 2019-1-10 00:21:17 Failed to configure Entrance_Dimmer 0x000b57fffe2b3c08
Jan 10 00:21:18 raspberrypi3 npm[28929]: zigbee2mqtt:info 2019-1-10 00:21:18 MQTT publish: topic 'zigbee2mqtt/Entrance_Dimmer', payload '{"brightness":255,"linkquality":39}'
Jan 10 00:21:20 raspberrypi3 npm[28929]: zigbee2mqtt:info 2019-1-10 00:21:20 MQTT publish: topic 'zigbee2mqtt/Entrance_Dimmer', payload '{"brightness":255,"linkquality":39}'
Jan 10 00:21:20 raspberrypi3 npm[28929]: zigbee2mqtt:info 2019-1-10 00:21:20 MQTT publish: topic 'zigbee2mqtt/Entrance_Dimmer', payload '{"brightness":255,"linkquality":39}'
Jan 10 00:21:22 raspberrypi3 npm[28929]: zigbee2mqtt:info 2019-1-10 00:21:22 MQTT publish: topic 'zigbee2mqtt/Entrance_Dimmer', payload '{"brightness":0,"linkquality":39}'

Returned to the old version devices.js file.
Result:
Jan 10 00:22:54 raspberrypi3 npm[30785]: zigbee2mqtt:info 2019-1-10 00:22:54 Logging to directory: '/opt/zigbee2mqtt/data/log/2019-01-10.00-22-54'
Jan 10 00:22:55 raspberrypi3 npm[30785]: zigbee2mqtt:info 2019-1-10 00:22:55 Starting zigbee2mqtt version 1.0.1 (commit #9380bbc)
Jan 10 00:22:55 raspberrypi3 npm[30785]: zigbee2mqtt:info 2019-1-10 00:22:55 Starting zigbee-shepherd
Jan 10 00:22:56 raspberrypi3 npm[30785]: zigbee2mqtt:info 2019-1-10 00:22:56 zigbee-shepherd started
Jan 10 00:22:56 raspberrypi3 npm[30785]: zigbee2mqtt:info 2019-1-10 00:22:56 Coordinator firmware version: '2018090201'
Jan 10 00:22:56 raspberrypi3 npm[30785]: zigbee2mqtt:info 2019-1-10 00:22:56 Currently 2 devices are joined:
Jan 10 00:22:56 raspberrypi3 npm[30785]: zigbee2mqtt:info 2019-1-10 00:22:56 Entrance_Lamp (0x000b57fffe33d833): LED1623G12 - IKEA TRADFRI LED bulb E27 1000 lumen, dimmable, opal white (Router)
Jan 10 00:22:56 raspberrypi3 npm[30785]: zigbee2mqtt:info 2019-1-10 00:22:56 Entrance_Dimmer (0x000b57fffe2b3c08): ICTC-G-1 - IKEA TRADFRI wireless dimmer (EndDevice)
Jan 10 00:22:56 raspberrypi3 npm[30785]: zigbee2mqtt:warn 2019-1-10 00:22:56 permit_join set to true in configuration.yaml.
Jan 10 00:22:56 raspberrypi3 npm[30785]: zigbee2mqtt:warn 2019-1-10 00:22:56 Allowing new devices to join.
Jan 10 00:22:56 raspberrypi3 npm[30785]: zigbee2mqtt:warn 2019-1-10 00:22:56 Set permit_join to false once you joined all devices.
Jan 10 00:22:56 raspberrypi3 npm[30785]: zigbee2mqtt:info 2019-1-10 00:22:56 Zigbee: allowing new devices to join.
Jan 10 00:22:56 raspberrypi3 npm[30785]: zigbee2mqtt:info 2019-1-10 00:22:56 Connecting to MQTT server at mqtt://localhost
Jan 10 00:22:56 raspberrypi3 npm[30785]: zigbee2mqtt:info 2019-1-10 00:22:56 zigbee-shepherd ready
Jan 10 00:22:56 raspberrypi3 npm[30785]: zigbee2mqtt:info 2019-1-10 00:22:56 Connected to MQTT server
Jan 10 00:22:56 raspberrypi3 npm[30785]: zigbee2mqtt:info 2019-1-10 00:22:56 MQTT publish: topic 'zigbee2mqtt/bridge/state', payload 'online'
Jan 10 00:22:56 raspberrypi3 npm[30785]: zigbee2mqtt:info 2019-1-10 00:22:56 MQTT publish: topic 'zigbee2mqtt/Entrance_Lamp', payload '{"state":"OFF","brightness":1}'
Jan 10 00:23:26 raspberrypi3 npm[30785]: zigbee2mqtt:info 2019-1-10 00:23:26 MQTT publish: topic 'zigbee2mqtt/Entrance_Dimmer', payload '{"brightness":255,"linkquality":42}'
Jan 10 00:23:26 raspberrypi3 npm[30785]: zigbee2mqtt:info 2019-1-10 00:23:26 Succesfully configured Entrance_Dimmer 0x000b57fffe2b3c08
Jan 10 00:23:27 raspberrypi3 npm[30785]: zigbee2mqtt:info 2019-1-10 00:23:27 MQTT publish: topic 'zigbee2mqtt/Entrance_Dimmer', payload '{"brightness":0,"linkquality":42}'

Did I do something wrong or a mistake in the code? Thank you very much for your help!

Koenkk added a commit to Koenkk/zigbee-herdsman-converters that referenced this issue Jan 10, 2019
@Koenkk
Copy link
Owner

Koenkk commented Jan 10, 2019

Should work in the dev branch now.

@antti365
Copy link
Author

Hi, set the dev branch, the result has changed, but in my opinion not quite the way it should ... :)

Jan 10 21:43:58 raspberrypi3 npm[32552]: zigbee2mqtt:info 2019-1-10 21:43:58 Logging to directory: '/opt/zigbee2mqtt/data/log/2019-01-10.21-43-57'
Jan 10 21:43:59 raspberrypi3 npm[32552]: zigbee2mqtt:info 2019-1-10 21:43:59 Starting zigbee2mqtt version 1.0.1 (commit #6dd60c0)
Jan 10 21:43:59 raspberrypi3 npm[32552]: zigbee2mqtt:info 2019-1-10 21:43:59 Starting zigbee-shepherd
Jan 10 21:44:00 raspberrypi3 npm[32552]: zigbee2mqtt:info 2019-1-10 21:44:00 zigbee-shepherd started
Jan 10 21:44:00 raspberrypi3 npm[32552]: zigbee2mqtt:info 2019-1-10 21:44:00 Coordinator firmware version: '2018090201'
Jan 10 21:44:00 raspberrypi3 npm[32552]: zigbee2mqtt:info 2019-1-10 21:44:00 Currently 2 devices are joined:
Jan 10 21:44:00 raspberrypi3 npm[32552]: zigbee2mqtt:info 2019-1-10 21:44:00 Entrance_Lamp (0x000b57fffe33d833): LED1623G12 - IKEA TRADFRI LED bulb E27 1000 lumen, dimmable, opal white (Router)
Jan 10 21:44:00 raspberrypi3 npm[32552]: zigbee2mqtt:info 2019-1-10 21:44:00 Entrance_Dimmer (0x000b57fffe2b3c08): ICTC-G-1 - IKEA TRADFRI wireless dimmer (EndDevice)
Jan 10 21:44:00 raspberrypi3 npm[32552]: zigbee2mqtt:warn 2019-1-10 21:44:00 permit_join set to true in configuration.yaml.
Jan 10 21:44:00 raspberrypi3 npm[32552]: zigbee2mqtt:warn 2019-1-10 21:44:00 Allowing new devices to join.
Jan 10 21:44:00 raspberrypi3 npm[32552]: zigbee2mqtt:warn 2019-1-10 21:44:00 Set permit_join to false once you joined all devices.
Jan 10 21:44:00 raspberrypi3 npm[32552]: zigbee2mqtt:info 2019-1-10 21:44:00 Zigbee: allowing new devices to join.
Jan 10 21:44:00 raspberrypi3 npm[32552]: zigbee2mqtt:info 2019-1-10 21:44:00 Connecting to MQTT server at mqtt://localhost
Jan 10 21:44:00 raspberrypi3 npm[32552]: zigbee2mqtt:info 2019-1-10 21:44:00 zigbee-shepherd ready
Jan 10 21:44:00 raspberrypi3 npm[32552]: zigbee2mqtt:info 2019-1-10 21:44:00 Connected to MQTT server
Jan 10 21:44:00 raspberrypi3 npm[32552]: zigbee2mqtt:info 2019-1-10 21:44:00 MQTT publish: topic 'zigbee2mqtt/bridge/state', payload 'online'
Jan 10 21:44:01 raspberrypi3 npm[32552]: zigbee2mqtt:info 2019-1-10 21:44:01 MQTT publish: topic 'zigbee2mqtt/Entrance_Dimmer', payload '{"brightness":0,"linkquality":18,"last_seen":"2019-01-10T19:44:01.021Z"}'
Jan 10 21:44:02 raspberrypi3 npm[32552]: zigbee2mqtt:info 2019-1-10 21:44:02 MQTT publish: topic 'zigbee2mqtt/Entrance_Dimmer', payload '{"brightness":255,"linkquality":18,"last_seen":"2019-01-10T19:44:02.276Z"}'
Jan 10 21:44:02 raspberrypi3 npm[32552]: zigbee2mqtt:error 2019-1-10 21:44:02 Failed to configure Entrance_Dimmer (0x000b57fffe2b3c08) ('Error: Profile: 49246 is not supported.')
Jan 10 21:44:02 raspberrypi3 npm[32552]: zigbee2mqtt:info 2019-1-10 21:44:02 MQTT publish: topic 'zigbee2mqtt/Entrance_Dimmer', payload '{"brightness":0,"linkquality":18,"last_seen":"2019-01-10T19:44:02.907Z"}'

@antti365
Copy link
Author

antti365 commented Jan 10, 2019

I used the old base and configuration file. Maybe I needed to pair the device again?

@Koenkk
Copy link
Owner

Koenkk commented Jan 10, 2019

Yes, can you try repairing?

@antti365
Copy link
Author

I tried to pair again, nothing has changed, all the same error, and also the battery level is not visible. How else can I help?

@antti365
Copy link
Author

Hi, sorry, I wanted to clarify where we left off? Is there a problem on my side or am I waiting for the code to be amended?

@Koenkk
Copy link
Owner

Koenkk commented Jan 13, 2019

@antti365 I have to make some more changes

@Koenkk
Copy link
Owner

Koenkk commented Jan 14, 2019

Can you update to the dev branch and try again?

@antti365
Copy link
Author

Yes of course. Is it enough to stop zigbee2mqtt, delete / node_modules and repeat npm install?

@Koenkk
Copy link
Owner

Koenkk commented Jan 14, 2019

you also need to update zigbee2mqtt itself (git pull)

@antti365
Copy link
Author

Yes, I already tried and made a complete update, now like this ...
Jan 14 20:04:00 raspberrypi3 npm[2231]: zigbee2mqtt:info 2019-1-14 20:04:00 Logging to directory: '/opt/zigbee2mqtt/data/log/2019-01-14.20-04-00'
Jan 14 20:04:01 raspberrypi3 npm[2231]: zigbee2mqtt:info 2019-1-14 20:04:01 Starting zigbee2mqtt version 1.0.1 (commit #9605e72)
Jan 14 20:04:01 raspberrypi3 npm[2231]: zigbee2mqtt:info 2019-1-14 20:04:01 Starting zigbee-shepherd
Jan 14 20:04:02 raspberrypi3 npm[2231]: zigbee2mqtt:info 2019-1-14 20:04:02 zigbee-shepherd started
Jan 14 20:04:02 raspberrypi3 npm[2231]: zigbee2mqtt:info 2019-1-14 20:04:02 Coordinator firmware version: '2018090201'
Jan 14 20:04:02 raspberrypi3 npm[2231]: zigbee2mqtt:info 2019-1-14 20:04:02 Currently 2 devices are joined:
Jan 14 20:04:02 raspberrypi3 npm[2231]: zigbee2mqtt:info 2019-1-14 20:04:02 Entrance_Lamp (0x000b57fffe33d833): LED1623G12 - IKEA TRADFRI LED bulb E27 1000 lumen, dimmable, opal white (Router)
Jan 14 20:04:02 raspberrypi3 npm[2231]: zigbee2mqtt:info 2019-1-14 20:04:02 Entrance_Dimmer (0x000b57fffe2b3c08): ICTC-G-1 - IKEA TRADFRI wireless dimmer (EndDevice)
Jan 14 20:04:02 raspberrypi3 npm[2231]: zigbee2mqtt:warn 2019-1-14 20:04:02 permit_join set to true in configuration.yaml.
Jan 14 20:04:02 raspberrypi3 npm[2231]: zigbee2mqtt:warn 2019-1-14 20:04:02 Allowing new devices to join.
Jan 14 20:04:02 raspberrypi3 npm[2231]: zigbee2mqtt:warn 2019-1-14 20:04:02 Set permit_join to false once you joined all devices.
Jan 14 20:04:02 raspberrypi3 npm[2231]: zigbee2mqtt:info 2019-1-14 20:04:02 Zigbee: allowing new devices to join.
Jan 14 20:04:02 raspberrypi3 npm[2231]: zigbee2mqtt:info 2019-1-14 20:04:02 Connecting to MQTT server at mqtt://localhost
Jan 14 20:04:02 raspberrypi3 npm[2231]: zigbee2mqtt:info 2019-1-14 20:04:02 zigbee-shepherd ready
Jan 14 20:04:02 raspberrypi3 npm[2231]: zigbee2mqtt:info 2019-1-14 20:04:02 Connected to MQTT server
Jan 14 20:04:02 raspberrypi3 npm[2231]: zigbee2mqtt:info 2019-1-14 20:04:02 MQTT publish: topic 'zigbee2mqtt/bridge/state', payload 'online'
Jan 14 20:04:52 raspberrypi3 npm[2231]: zigbee2mqtt:error 2019-1-14 20:04:52 Failed to configure Entrance_Dimmer (0x000b57fffe2b3c08) ('Error: Timed out after 10000 ms')
Jan 14 20:05:09 raspberrypi3 npm[2231]: zigbee2mqtt:info 2019-1-14 20:05:09 Zigbee publish to device '0x000b57fffe33d833', genLevelCtrl - moveToLevelWithOnOff - {"level":254,"transtime":0} - {"manufSpec":0,"disDefaultRsp":0} - null
Jan 14 20:05:09 raspberrypi3 npm[2231]: zigbee2mqtt:info 2019-1-14 20:05:09 MQTT publish: topic 'zigbee2mqtt/Entrance_Lamp', payload '{"state":"ON"}'
Jan 14 20:05:11 raspberrypi3 npm[2231]: zigbee2mqtt:info 2019-1-14 20:05:11 Zigbee publish to device '0x000b57fffe33d833', genLevelCtrl - moveToLevelWithOnOff - {"level":0,"transtime":0} - {"manufSpec":0,"disDefaultRsp":0} - null
Jan 14 20:05:11 raspberrypi3 npm[2231]: zigbee2mqtt:info 2019-1-14 20:05:11 MQTT publish: topic 'zigbee2mqtt/Entrance_Lamp', payload '{"state":"ON"}'
Jan 14 20:05:12 raspberrypi3 npm[2231]: zigbee2mqtt:info 2019-1-14 20:05:12 MQTT publish: topic 'zigbee2mqtt/Entrance_Lamp', payload '{"state":"ON","brightness":1,"last_seen":"2019-01-14T18:05:12.218Z"}'
Jan 14 20:05:45 raspberrypi3 npm[2231]: zigbee2mqtt:info 2019-1-14 20:05:45 Device incoming...
Jan 14 20:05:45 raspberrypi3 npm[2231]: zigbee2mqtt:info 2019-1-14 20:05:45 MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"type":"pairing","message":"device incoming"}'
Jan 14 20:05:55 raspberrypi3 npm[2231]: zigbee2mqtt:info 2019-1-14 20:05:55 MQTT publish: topic 'zigbee2mqtt/Entrance_Dimmer', payload '{"brightness":0,"linkquality":15,"last_seen":"2019-01-14T18:05:55.065Z"}'
Jan 14 20:05:55 raspberrypi3 npm[2231]: zigbee2mqtt:info 2019-1-14 20:05:55 MQTT publish: topic 'zigbee2mqtt/Entrance_Dimmer', payload '{"brightness":255,"linkquality":15,"last_seen":"2019-01-14T18:05:55.666Z"}'
Jan 14 20:05:56 raspberrypi3 npm[2231]: zigbee2mqtt:info 2019-1-14 20:05:56 MQTT publish: topic 'zigbee2mqtt/Entrance_Dimmer', payload '{"brightness":0,"linkquality":15,"last_seen":"2019-01-14T18:05:56.351Z"}'
Jan 14 20:06:21 raspberrypi3 npm[2231]: zigbee2mqtt:info 2019-1-14 20:06:21 MQTT publish: topic 'zigbee2mqtt/Entrance_Dimmer', payload '{"brightness":25,"linkquality":15,"last_seen":"2019-01-14T18:06:21.249Z"}'
Jan 14 20:06:22 raspberrypi3 npm[2231]: zigbee2mqtt:info 2019-1-14 20:06:22 MQTT publish: topic 'zigbee2mqtt/Entrance_Dimmer', payload '{"brightness":21,"linkquality":15,"last_seen":"2019-01-14T18:06:22.992Z"}'
Jan 14 20:06:25 raspberrypi3 npm[2231]: zigbee2mqtt:info 2019-1-14 20:06:25 MQTT publish: topic 'zigbee2mqtt/Entrance_Dimmer', payload '{"brightness":21,"linkquality":15,"last_seen":"2019-01-14T18:06:25.865Z"}'
Jan 14 20:06:26 raspberrypi3 npm[2231]: zigbee2mqtt:info 2019-1-14 20:06:26 MQTT publish: topic 'zigbee2mqtt/Entrance_Dimmer', payload '{"brightness":0,"linkquality":15,"last_seen":"2019-01-14T18:06:26.291Z"}'

@Koenkk
Copy link
Owner

Koenkk commented Jan 14, 2019

Did you wake the device when starting zigbee2mqtt?

@antti365
Copy link
Author

Yes, turned the dimmer several times. Now I will try again to reset the dimmer, connect it to zigbee2mqtt and then tell about the results.

@antti365
Copy link
Author

Once again, I completely reinstalled zigbee2mqtt, created a new database, pulled out, inserted a stick, pressed the button closer to usb, dropped the dimmer and connected it to zigbee2mqtt, the error changed:
Jan 14 20:52:47 raspberrypi3 npm[13615]: zigbee2mqtt:info 2019-1-14 20:52:47 Coordinator firmware version: '2018090201'
Jan 14 20:52:47 raspberrypi3 npm[13615]: zigbee2mqtt:info 2019-1-14 20:52:47 Currently 0 devices are joined:
Jan 14 20:52:47 raspberrypi3 npm[13615]: zigbee2mqtt:warn 2019-1-14 20:52:47 permit_join set to true in configuration.yaml.
Jan 14 20:52:47 raspberrypi3 npm[13615]: zigbee2mqtt:warn 2019-1-14 20:52:47 Allowing new devices to join.
Jan 14 20:52:47 raspberrypi3 npm[13615]: zigbee2mqtt:warn 2019-1-14 20:52:47 Set permit_join to false once you joined all devices.
Jan 14 20:52:47 raspberrypi3 npm[13615]: zigbee2mqtt:info 2019-1-14 20:52:47 Zigbee: allowing new devices to join.
Jan 14 20:52:47 raspberrypi3 npm[13615]: zigbee2mqtt:info 2019-1-14 20:52:47 Connecting to MQTT server at mqtt://localhost
Jan 14 20:52:48 raspberrypi3 npm[13615]: zigbee2mqtt:info 2019-1-14 20:52:48 zigbee-shepherd ready
Jan 14 20:52:48 raspberrypi3 npm[13615]: zigbee2mqtt:info 2019-1-14 20:52:48 Connected to MQTT server
Jan 14 20:52:48 raspberrypi3 npm[13615]: zigbee2mqtt:info 2019-1-14 20:52:48 MQTT publish: topic 'zigbee2mqtt/bridge/state', payload 'online'
Jan 14 20:53:32 raspberrypi3 npm[13615]: zigbee2mqtt:info 2019-1-14 20:53:32 Connecting with device...
Jan 14 20:53:32 raspberrypi3 npm[13615]: zigbee2mqtt:info 2019-1-14 20:53:32 MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"type":"pairing","message":"connecting with device"}'
… more messages
Jan 14 20:54:03 raspberrypi3 npm[13615]: zigbee2mqtt:info 2019-1-14 20:54:03 Connecting with device...
Jan 14 20:54:03 raspberrypi3 npm[13615]: zigbee2mqtt:info 2019-1-14 20:54:03 MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"type":"pairing","message":"connecting with device"}'
Jan 14 20:54:03 raspberrypi3 npm[13615]: zigbee2mqtt:info 2019-1-14 20:54:03 Device incoming...
Jan 14 20:54:03 raspberrypi3 npm[13615]: zigbee2mqtt:info 2019-1-14 20:54:03 MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"type":"pairing","message":"device incoming"}'
Jan 14 20:54:03 raspberrypi3 npm[13615]: zigbee2mqtt:info 2019-1-14 20:54:03 New device with address 0x000b57fffe2b3c08 connected!
Jan 14 20:54:03 raspberrypi3 npm[13615]: zigbee2mqtt:info 2019-1-14 20:54:03 MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"type":"device_connected","message":"0x000b57fffe2b3c08"}'
Jan 14 20:54:07 raspberrypi3 npm[13615]: /opt/zigbee2mqtt/node_modules/zigbee-shepherd/lib/components/af.js:269
Jan 14 20:54:07 raspberrypi3 npm[13615]: throw e;
Jan 14 20:54:07 raspberrypi3 npm[13615]: ^
Jan 14 20:54:07 raspberrypi3 npm[13615]: TypeError: "value" argument is out of bounds
Jan 14 20:54:07 raspberrypi3 npm[13615]: at checkInt (buffer.js:1185:11)
Jan 14 20:54:07 raspberrypi3 npm[13615]: at Buffer.writeUInt16LE (buffer.js:1243:5)
Jan 14 20:54:07 raspberrypi3 npm[13615]: at Concentrate.write_number (/opt/zigbee2mqtt/node_modules/concentrate/index.js:63:21)
Jan 14 20:54:07 raspberrypi3 npm[13615]: at Concentrate. (/opt/zigbee2mqtt/node_modules/concentrate/index.js:42:29)
Jan 14 20:54:07 raspberrypi3 npm[13615]: at Array.forEach ()
Jan 14 20:54:07 raspberrypi3 npm[13615]: at Concentrate.result (/opt/zigbee2mqtt/node_modules/concentrate/index.js:38:13)
Jan 14 20:54:07 raspberrypi3 npm[13615]: at FoundPayload.frame (/opt/zigbee2mqtt/node_modules/zcl-packet/lib/foundation.js:117:20)
Jan 14 20:54:07 raspberrypi3 npm[13615]: at Object.zcl.frame (/opt/zigbee2mqtt/node_modules/zcl-packet/lib/zcl.js:66:78)
Jan 14 20:54:07 raspberrypi3 npm[13615]: at Object.af.zclFoundation (/opt/zigbee2mqtt/node_modules/zigbee-shepherd/lib/components/af.js:263:25)
Jan 14 20:54:07 raspberrypi3 npm[13615]: at ZShepherd._foundation (/opt/zigbee2mqtt/node_modules/zigbee-shepherd/lib/shepherd.js:660:20)
Jan 14 20:54:07 raspberrypi3 npm[13615]: npm ERR! code ELIFECYCLE
Jan 14 20:54:07 raspberrypi3 npm[13615]: npm ERR! errno 1
Jan 14 20:54:07 raspberrypi3 npm[13615]: npm ERR! zigbee2mqtt@1.0.1 start: node index.js
Jan 14 20:54:07 raspberrypi3 npm[13615]: npm ERR! Exit status 1
Jan 14 20:54:07 raspberrypi3 npm[13615]: npm ERR!
Jan 14 20:54:07 raspberrypi3 npm[13615]: npm ERR! Failed at the zigbee2mqtt@1.0.1 start script.
Jan 14 20:54:07 raspberrypi3 npm[13615]: npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
Jan 14 20:54:07 raspberrypi3 npm[13615]: npm ERR! A complete log of this run can be found in:
Jan 14 20:54:07 raspberrypi3 systemd[1]: zigbee2mqtt.service: Main process exited, code=exited, status=1/FAILURE
Jan 14 20:54:07 raspberrypi3 systemd[1]: zigbee2mqtt.service: Unit entered failed state.
Jan 14 20:54:07 raspberrypi3 systemd[1]: zigbee2mqtt.service: Failed with result 'exit-code'.
Jan 14 20:54:08 raspberrypi3 systemd[1]: zigbee2mqtt.service: Service hold-off time over, scheduling restart.
Jan 14 20:54:08 raspberrypi3 systemd[1]: Stopped zigbee2mqtt ZigBee2MQTT Bridge.
:(((

Koenkk added a commit to Koenkk/zigbee-herdsman-converters that referenced this issue Jan 15, 2019
@Koenkk
Copy link
Owner

Koenkk commented Jan 15, 2019

Should be fixed in the latest dev branch

@antti365
Copy link
Author

antti365 commented Jan 16, 2019

Well, yes, now there are no errors at start-up and configuration, BUT there is also no battery level ... :)
All devices were reset and zigbee2mqtt reinstalled.

Jan 16 14:22:49 raspberrypi3 npm[21194]: zigbee2mqtt:info 2019-1-16 14:22:49 Logging to directory: '/opt/zigbee2mqtt/data/log/2019-01-16.14-22-49'
Jan 16 14:22:50 raspberrypi3 npm[21194]: zigbee2mqtt:info 2019-1-16 14:22:50 Starting zigbee2mqtt version 1.0.1 (commit #28e3288)
Jan 16 14:22:50 raspberrypi3 npm[21194]: zigbee2mqtt:info 2019-1-16 14:22:50 Starting zigbee-shepherd
Jan 16 14:22:51 raspberrypi3 npm[21194]: zigbee2mqtt:info 2019-1-16 14:22:51 zigbee-shepherd started
Jan 16 14:22:51 raspberrypi3 npm[21194]: zigbee2mqtt:info 2019-1-16 14:22:51 Coordinator firmware version: '2018090201'
Jan 16 14:22:51 raspberrypi3 npm[21194]: zigbee2mqtt:info 2019-1-16 14:22:51 Currently 1 devices are joined:
Jan 16 14:22:51 raspberrypi3 npm[21194]: zigbee2mqtt:info 2019-1-16 14:22:51 0x000b57fffe2b3c08 (0x000b57fffe2b3c08): ICTC-G-1 - IKEA TRADFRI wireless dimmer (EndDevice)
Jan 16 14:22:51 raspberrypi3 npm[21194]: zigbee2mqtt:warn 2019-1-16 14:22:51 permit_join set to true in configuration.yaml.
Jan 16 14:22:51 raspberrypi3 npm[21194]: zigbee2mqtt:warn 2019-1-16 14:22:51 Allowing new devices to join.
Jan 16 14:22:51 raspberrypi3 npm[21194]: zigbee2mqtt:warn 2019-1-16 14:22:51 Set permit_join to false once you joined all devices.
Jan 16 14:22:51 raspberrypi3 npm[21194]: zigbee2mqtt:info 2019-1-16 14:22:51 Zigbee: allowing new devices to join.
Jan 16 14:22:51 raspberrypi3 npm[21194]: zigbee2mqtt:info 2019-1-16 14:22:51 Connecting to MQTT server at mqtt://localhost
Jan 16 14:22:51 raspberrypi3 npm[21194]: zigbee2mqtt:info 2019-1-16 14:22:51 zigbee-shepherd ready
Jan 16 14:22:51 raspberrypi3 npm[21194]: zigbee2mqtt:info 2019-1-16 14:22:51 Connected to MQTT server
Jan 16 14:22:51 raspberrypi3 npm[21194]: zigbee2mqtt:info 2019-1-16 14:22:51 MQTT publish: topic 'zigbee2mqtt/bridge/state', payload 'online'
Jan 16 14:22:51 raspberrypi3 npm[21194]: zigbee2mqtt:info 2019-1-16 14:22:51 MQTT publish: topic 'zigbee2mqtt/0x000b57fffe2b3c08', payload '{"brightness":0,"linkquality":55,"last_seen":"2019-01-16T12:22:51.939Z"}'
Jan 16 14:22:52 raspberrypi3 npm[21194]: zigbee2mqtt:info 2019-1-16 14:22:52 MQTT publish: topic 'zigbee2mqtt/0x000b57fffe2b3c08', payload '{"brightness":255,"linkquality":55,"last_seen":"2019-01-16T12:22:52.355Z"}'
Jan 16 14:22:53 raspberrypi3 npm[21194]: zigbee2mqtt:info 2019-1-16 14:22:53 MQTT publish: topic 'zigbee2mqtt/0x000b57fffe2b3c08', payload '{"brightness":255,"linkquality":55,"last_seen":"2019-01-16T12:22:53.017Z"}'
Jan 16 14:22:53 raspberrypi3 npm[21194]: zigbee2mqtt:info 2019-1-16 14:22:53 MQTT publish: topic 'zigbee2mqtt/0x000b57fffe2b3c08', payload '{"brightness":255,"linkquality":55,"last_seen":"2019-01-16T12:22:53.888Z"}'
Jan 16 14:22:54 raspberrypi3 npm[21194]: zigbee2mqtt:info 2019-1-16 14:22:54 MQTT publish: topic 'zigbee2mqtt/0x000b57fffe2b3c08', payload '{"brightness":0,"linkquality":55,"last_seen":"2019-01-16T12:22:54.377Z"}'
Jan 16 14:22:54 raspberrypi3 npm[21194]: zigbee2mqtt:info 2019-1-16 14:22:54 Succesfully configured 0x000b57fffe2b3c08 (0x000b57fffe2b3c08)
Jan 16 14:22:55 raspberrypi3 npm[21194]: zigbee2mqtt:info 2019-1-16 14:22:55 MQTT publish: topic 'zigbee2mqtt/0x000b57fffe2b3c08', payload '{"brightness":0,"linkquality":55,"last_seen":"2019-01-16T12:22:55.229Z"}'
Jan 16 14:23:01 raspberrypi3 npm[21194]: zigbee2mqtt:info 2019-1-16 14:23:01 MQTT publish: topic 'zigbee2mqtt/0x000b57fffe2b3c08', payload '{"brightness":0,"linkquality":55,"last_seen":"2019-01-16T12:23:01.802Z"}'

@Koenkk
Copy link
Owner

Koenkk commented Jan 16, 2019

@antti365 it can take up to one day for the device to report it's battery status.

@antti365
Copy link
Author

Great, then we will test! Thank you so much for your work! I will definitely report the results. 👍

@GerSant
Copy link

GerSant commented Jan 16, 2019

Some Battery Powered Devices take some time to report the Battery level...patience ;)

@antti365
Copy link
Author

I try, but patience is not enough ... :) Therefore, a few questions:

  1. In what form should the answer come - together with the level of dimming or separately? That is, to get it, is it necessary to periodically turn the dimmer?
  2. In the database.db file I found the following value in the dimmer properties, if I understand correctly, should something like this come? ("batteryPercentageRemaining": 60)
  3. Does the receipt of a message depend on the battery charge? Maybe it will not come if the level is 60%?

@Koenkk
Copy link
Owner

Koenkk commented Jan 16, 2019

  1. Separately, no need to turn the dimmer.
  2. Yes, that's the message that will reported by the device, zigbee2mqtt converts it to {"battery": 60}
  3. AFAIK not

@antti365
Copy link
Author

19 hours passed, silence ... :) we wait further.

@Koenkk
Copy link
Owner

Koenkk commented Jan 17, 2019

@antti365 it should report in max 18.2 hours.

Can you change https://github.com/Koenkk/zigbee-shepherd-converters/blob/master/devices.js#L481 maxRepIntval: repInterval.MAX to maxRepIntval: 3

@antti365
Copy link
Author

Changed the specified file and restarted zigbee2mqtt, waiting for 3 hours now, I understand correctly?

@antti365
Copy link
Author

Yeah, it turns out 3 seconds ... :) everything comes now !!!
Jan 17 09:38:47 raspberrypi3 npm[7926]: zigbee2mqtt:info 2019-1-17 09:38:47 MQTT publish: topic 'zigbee2mqtt/Entrance_Dimmer', payload '{"brightness":0,"linkquality":0,"last_seen":"2019-01-17T07:38:47.376Z","battery":60}'

@antti365
Copy link
Author

Should I now return the modified value back to MAX?

@Koenkk
Copy link
Owner

Koenkk commented Jan 17, 2019

Yes, can you monitor if you also receive updates then?

@antti365
Copy link
Author

Yes, of course, I will then change the value of ga MAX and continue tracking.

@antti365
Copy link
Author

Set the value in MAX, restarted zigbee2mqtt and waited ... This is what we have in the log file at the moment:

2019-1-17 13:30:09 - info: Logging to directory: '/opt/zigbee2mqtt/data/log/2019-01-17.13-30-09'
2019-1-17 13:30:10 - info: Starting zigbee2mqtt version 1.0.1 (commit #28e3288)
2019-1-17 13:30:10 - info: Starting zigbee-shepherd
2019-1-17 13:30:11 - info: zigbee-shepherd started
2019-1-17 13:30:11 - info: Coordinator firmware version: '2018090201'
2019-1-17 13:30:11 - info: Currently 1 devices are joined:
2019-1-17 13:30:11 - info: Entrance_Dimmer (0x000b57fffe2b3c08): ICTC-G-1 - IKEA TRADFRI wireless dimmer (EndDevice)
2019-1-17 13:30:11 - warn: permit_join set to true in configuration.yaml.
2019-1-17 13:30:11 - warn: Allowing new devices to join.
2019-1-17 13:30:11 - warn: Set permit_join to false once you joined all devices.
2019-1-17 13:30:11 - info: Zigbee: allowing new devices to join.
2019-1-17 13:30:11 - info: Connecting to MQTT server at mqtt://localhost
2019-1-17 13:30:12 - info: zigbee-shepherd ready
2019-1-17 13:30:12 - info: Connected to MQTT server
2019-1-17 13:30:12 - info: MQTT publish: topic 'zigbee2mqtt/bridge/state', payload 'online'
2019-1-17 13:30:12 - info: MQTT publish: topic 'zigbee2mqtt/Entrance_Dimmer', payload '{"brightness":5,"linkquality":0,"last_seen":"2019-01-17T11:27:28.349Z","battery":60}'
2019-1-17 13:30:29 - info: MQTT publish: topic 'zigbee2mqtt/Entrance_Dimmer', payload '{"brightness":255,"linkquality":84,"last_seen":"2019-01-17T11:30:29.982Z","battery":60}'
2019-1-17 13:30:30 - info: MQTT publish: topic 'zigbee2mqtt/Entrance_Dimmer', payload '{"brightness":0,"linkquality":84,"last_seen":"2019-01-17T11:30:30.529Z","battery":60}'
2019-1-17 13:30:34 - info: MQTT publish: topic 'zigbee2mqtt/Entrance_Dimmer', payload '{"brightness":0,"linkquality":52,"last_seen":"2019-01-17T11:30:34.289Z","battery":60}'
2019-1-17 13:30:37 - info: Succesfully configured Entrance_Dimmer (0x000b57fffe2b3c08)
2019-1-18 06:52:26 - info: Device incoming...
2019-1-18 06:52:26 - info: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"type":"pairing","message":"device incoming"}'

More than two days have passed, it seems to me that MAX does not work as it should ... Although I will continue monitoring, should he (dimmer) ever answer ... Or are there other ideas?

@Koenkk
Copy link
Owner

Koenkk commented Jan 19, 2019

I guess the value is too big, could you try with maxRepIntval: 3600 (one hour)

@antti365
Copy link
Author

Yes, now I will change the value to 3600. But as others think, what is the optimal time to monitor the battery? Maybe once a day will be enough?

@Koenkk
Copy link
Owner

Koenkk commented Jan 19, 2019

@antti365 I agree, but this doesn't seem to work (MAX value = 18 hours)

@antti365
Copy link
Author

@Koenkk So if you just use the value of 86400, if MAX does not want to work?

@Koenkk
Copy link
Owner

Koenkk commented Jan 19, 2019

@antti365 that shouldn't make a difference (in the end the value is the same).

@antti365
Copy link
Author

antti365 commented Jan 19, 2019

With a value of 3600 there are no problems, everything works. The only thing that time for some reason is shifted by 2 minutes each time.

Jan 19 15:15:11 raspberrypi3 npm[23678]: zigbee2mqtt:info 2019-1-19 15:15:11 Succesfully configured Entrance_Dimmer (0x000b57fffe2b3c08)
Jan 19 15:15:21 raspberrypi3 npm[23678]: zigbee2mqtt:info 2019-1-19 15:15:21 MQTT publish: topic 'zigbee2mqtt/Entrance_Dimmer', payload '{"brightness":6,"linkquality":92,"last_seen":"2019-01-19T13:15:21.573Z","battery":60}'
Jan 19 15:15:21 raspberrypi3 npm[23678]: zigbee2mqtt:info 2019-1-19 15:15:21 MQTT publish: topic 'zigbee2mqtt/Entrance_Dimmer', payload '{"brightness":8,"linkquality":92,"last_seen":"2019-01-19T13:15:21.861Z","battery":60}'
Jan 19 15:15:33 raspberrypi3 npm[23678]: zigbee2mqtt:info 2019-1-19 15:15:33 MQTT publish: topic 'zigbee2mqtt/Entrance_Dimmer', payload '{"brightness":0,"linkquality":92,"last_seen":"2019-01-19T13:15:33.842Z","battery":60}'
Jan 19 16:17:09 raspberrypi3 npm[23678]: zigbee2mqtt:info 2019-1-19 16:17:09 MQTT publish: topic 'zigbee2mqtt/Entrance_Dimmer', payload '{"brightness":0,"linkquality":99,"last_seen":"2019-01-19T14:17:09.248Z","battery":60}'
Jan 19 17:19:07 raspberrypi3 npm[23678]: zigbee2mqtt:info 2019-1-19 17:19:07 MQTT publish: topic 'zigbee2mqtt/Entrance_Dimmer', payload '{"brightness":0,"linkquality":99,"last_seen":"2019-01-19T15:19:07.230Z","battery":60}'
Jan 19 18:21:05 raspberrypi3 npm[23678]: zigbee2mqtt:info 2019-1-19 18:21:05 MQTT publish: topic 'zigbee2mqtt/Entrance_Dimmer', payload '{"brightness":0,"linkquality":99,"last_seen":"2019-01-19T16:21:05.256Z","battery":60}'
Jan 19 19:23:03 raspberrypi3 npm[23678]: zigbee2mqtt:info 2019-1-19 19:23:03 MQTT publish: topic 'zigbee2mqtt/Entrance_Dimmer', payload '{"brightness":0,"linkquality":99,"last_seen":2019-01-19T17:23:03.336Z","battery":60}'

So what do we do next?

@Koenkk
Copy link
Owner

Koenkk commented Jan 19, 2019

Can you try to find the max value? e.g. 10000

@antti365
Copy link
Author

Of course, went to find... :)

@Bruceforce
Copy link
Contributor

Bruceforce commented Jan 23, 2019

For me the reported values seem to be random or at least not accurate. From 16% to 60% in 3 seconds.

zigbee2mqtt       |   zigbee2mqtt:info 2019-1-24 00:15:44 MQTT publish: topic 'zigbee2mqtt/0x000b57fffe15051e', payload '{"brightness":255,"linkquality":39,"battery":16}'
zigbee2mqtt       |   zigbee2mqtt:info 2019-1-24 00:23:13 MQTT publish: topic 'zigbee2mqtt/0x000b57fffe15051e', payload '{"brightness":240,"linkquality":39,"battery":16}'
zigbee2mqtt       |   zigbee2mqtt:info 2019-1-24 00:23:14 MQTT publish: topic 'zigbee2mqtt/0x000b57fffe15051e', payload '{"brightness":202,"linkquality":39,"battery":16}'
zigbee2mqtt       |   zigbee2mqtt:info 2019-1-24 00:23:14 MQTT publish: topic 'zigbee2mqtt/0x000b57fffe15051e', payload '{"brightness":202,"linkquality":39,"battery":16}'
zigbee2mqtt       |   zigbee2mqtt:info 2019-1-24 00:23:15 MQTT publish: topic 'zigbee2mqtt/0x000b57fffe15051e', payload '{"brightness":181,"linkquality":39,"battery":16}'
zigbee2mqtt       |   zigbee2mqtt:info 2019-1-24 00:23:15 MQTT publish: topic 'zigbee2mqtt/0x000b57fffe15051e', payload '{"brightness":192,"linkquality":39,"battery":16}'
zigbee2mqtt       |   zigbee2mqtt:info 2019-1-24 00:23:16 MQTT publish: topic 'zigbee2mqtt/0x000b57fffe15051e', payload '{"brightness":218,"linkquality":39,"battery":16}'
zigbee2mqtt       |   zigbee2mqtt:info 2019-1-24 00:23:17 MQTT publish: topic 'zigbee2mqtt/0x000b57fffe15051e', payload '{"brightness":228,"linkquality":39,"battery":16}'
zigbee2mqtt       |   zigbee2mqtt:info 2019-1-24 00:23:18 MQTT publish: topic 'zigbee2mqtt/0x000b57fffe15051e', payload '{"brightness":225,"linkquality":39,"battery":16}'
zigbee2mqtt       |   zigbee2mqtt:info 2019-1-24 00:23:21 MQTT publish: topic 'zigbee2mqtt/0x000b57fffe15051e', payload '{"brightness":225,"linkquality":42,"battery":60}'
zigbee2mqtt       |   zigbee2mqtt:info 2019-1-24 00:23:22 MQTT publish: topic 'zigbee2mqtt/0x000b57fffe15051e', payload '{"brightness":231,"linkquality":39,"battery":60}'
zigbee2mqtt       |   zigbee2mqtt:info 2019-1-24 00:23:22 MQTT publish: topic 'zigbee2mqtt/0x000b57fffe15051e', payload '{"brightness":240,"linkquality":39,"battery":60}'
zigbee2mqtt       |   zigbee2mqtt:info 2019-1-24 00:23:24 MQTT publish: topic 'zigbee2mqtt/0x000b57fffe15051e', payload '{"brightness":218,"linkquality":39,"battery":60}'
zigbee2mqtt       |   zigbee2mqtt:info 2019-1-24 00:23:29 MQTT publish: topic 'zigbee2mqtt/0x000b57fffe15051e', payload '{"brightness":218,"linkquality":39,"battery":60}'
zigbee2mqtt       |   zigbee2mqtt:info 2019-1-24 00:23:32 MQTT publish: topic 'zigbee2mqtt/0x000b57fffe15051e', payload '{"brightness":218,"linkquality":42,"battery":34}'
zigbee2mqtt       |   zigbee2mqtt:info 2019-1-24 00:23:33 MQTT publish: topic 'zigbee2mqtt/0x000b57fffe15051e', payload '{"brightness":215,"linkquality":39,"battery":34}'
zigbee2mqtt       |   zigbee2mqtt:info 2019-1-24 00:23:34 MQTT publish: topic 'zigbee2mqtt/0x000b57fffe15051e', payload '{"brightness":203,"linkquality":39,"battery":34}'
zigbee2mqtt       |   zigbee2mqtt:info 2019-1-24 00:23:55 MQTT publish: topic 'zigbee2mqtt/0x000b57fffe15051e', payload '{"brightness":0,"linkquality":39,"battery":34}'
zigbee2mqtt       |   zigbee2mqtt:info 2019-1-24 00:23:56 MQTT publish: topic 'zigbee2mqtt/0x000b57fffe15051e', payload '{"brightness":0,"linkquality":39,"battery":16}'

@antti365
Copy link
Author

Maybe you have something with the battery? I've been testing for more than a week, this has never happened before ....

@Bruceforce
Copy link
Contributor

It's the battery that was delivered in the package and it's only a few days old. I think maybe the 3 second delay caused some confusion?

Have you already found a working maximum value @antti365

@antti365
Copy link
Author

antti365 commented Jan 25, 2019

Still finding, the fact is that you have to wait for quite large intervals, at the moment exactly the working interval is 15 hours (54000 sec) and definitely NOT working - 17 hours (61200 sec), I think that soon I will find this magic number. .. :)
Upd: the interval of 58000 seconds also successfully worked, the search range is narrowed ...

@Koenkk
Copy link
Owner

Koenkk commented Jan 25, 2019

@antti365 I think that is close enough, would you mind making a PR to update this value? (https://github.com/Koenkk/zigbee-shepherd-converters/blob/master/devices.js#L8)

@antti365
Copy link
Author

@Koenkk With pleasure, if you tell me how to do it right ... :)

@Koenkk
Copy link
Owner

Koenkk commented Jan 25, 2019

Click the pencil/edit icon on the file and than create a pull request: https://help.github.com/articles/creating-a-pull-request/

@RaveGun
Copy link

RaveGun commented Feb 14, 2019

Hello,
I've hooked up the a dimmer to my HA a couple of weeks ago and it worked fine at the beginning, but I did not use it for anything else, it just sat there.

Three days ago I tried the dimmer but there was no update.
So, I switched the battery and it worked fine again. I said that maybe the default IKEA battery was weak or of a poor quality.

Yesterday, I moved my CC2531 coordinator to my HA RPi where I set up the Edge add-on.
Now I just so that I am getting the battery status but it looks like this:
image

This looks like the battery has drained.
Are the pinging issues with the battery powered devices still active on the Edge add-on?

Thank you.

@Koenkk
Copy link
Owner

Koenkk commented Feb 14, 2019

Closing this issue as the battery information is now provided.

@RaveGun battery powered devices are not pinged

@Koenkk Koenkk closed this as completed Feb 14, 2019
Koenkk pushed a commit to Koenkk/zigbee-herdsman-converters that referenced this issue Mar 17, 2019
* 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 pushed a commit to Koenkk/zigbee-herdsman-converters that referenced this issue Mar 18, 2019
* 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
@gbilic
Copy link

gbilic commented Nov 14, 2019

@RaveGun, I experience the same, the battery seems to be drained when the device is paired with zigbee2mqtt.

Koenkk added a commit to Koenkk/zigbee-herdsman-converters that referenced this issue Dec 23, 2019
…BT-A19-CCT-Bulb (#826)

* 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.

* 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

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

Koenkk/zigbee2mqtt#1064

* 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.

* FIX: Remove duplicate keys that were already merged.

* eslinting fixes

* Enhancements to ZBT-CCTSwitch-D0001 + add new device Ecosmart-ZBT-A19-CCT-Bulb

* eslint fixes

* Add color_temp hold/release ZBT-CCTSwitch-D0001

Also updates the brightness hold/release logic.

* FIX devices.js

Fixes the following error
FAIL  test/index.test.js
  index.js
    ✓ Find device by model ID (6ms)
    ✓ Find device by model ID with strange characters 1 (1ms)
    ✓ Find device by model ID with strange characters 2
    ✓ Find device by model ID with strange characters 3 (1ms)
    ✓ Find device by model ID without strange characters (1ms)
    ✓ Find device by model ID null (1ms)
    ✕ Verify devices.js definitions (132ms)

  ● index.js › Verify devices.js definitions

    TypeError: Cannot convert undefined or null to object
        at Function.keys (<anonymous>)

      63 |                 const converter = device.fromZigbee[converterKey];
      64 |
    > 65 |                 const keys = Object.keys(converter);
         |                                     ^
      66 |                 verifyKeys(['cluster', 'type', 'convert'], keys, converterKey);
      67 |
      68 |                 if (4 != converter.convert.length) {

      at keys (test/index.test.js:65:37)
          at Array.forEach (<anonymous>)
      at forEach (test/index.test.js:62:44)
          at Array.forEach (<anonymous>)
      at Object.forEach (test/index.test.js:47:17)

* Rename 'color_temp' to 'colortemp' for consistency

Many automations in HA are set up to split '_' based
on `attribute`, `direction`, `action`. Trying to keep
the splits consistent.

* Tidy up code and logic for CCTSwitch

* FIX: Change 'button' to 'click' for HA compatibility

* Update devices.js

* Update devices.js

Co-authored-by: Koen Kanters <koenkanters94@gmail.com>
Co-authored-by: boojew <boojew@gmail.com>
Co-authored-by: Chrischi- <Chrischi-@users.noreply.github.com>
Co-authored-by: arteck <6681528+arteck@users.noreply.github.com>
Co-authored-by: mkventure <42322917+mkventure@users.noreply.github.com>
Co-authored-by: netztrip <dave-pbqr@netztrip.de>
Co-authored-by: Sander <3908728+sheyden@users.noreply.github.com>
Co-authored-by: Mihail Malo <qm3ster@gmail.com>
Co-authored-by: Paul Tiedtke <PaulTiedtke@web.de>
Co-authored-by: pnewnam <register.pn@gmail.com>
Co-authored-by: Kryzek <dr.drake@gmail.com>
Co-authored-by: James Tutton <github@comexe.co.uk>
Co-authored-by: Adán SDPC <adan@stampery.com>
Co-authored-by: Daniel Lashua <daniel@inklog.net>
Co-authored-by: Niklas <Gurkengewuerz@users.noreply.github.com>
Co-authored-by: Merlin Schumacher <merlin.schumacher@gmail.com>
Co-authored-by: Simon Rasmussen <zetlon@gmail.com>
Co-authored-by: Ilya Kirov <kirovilya@gmail.com>
Co-authored-by: Andrey <pck.forex@gmail.com>
Co-authored-by: KernSani <oli.merten@gmail.com>
Co-authored-by: Sebastian Raff <hobbyquaker@gmail.com>
Co-authored-by: simonses1 <45721550+simonses1@users.noreply.github.com>
Co-authored-by: Gustav Johansson <gustav@neer.se>
Co-authored-by: MarkAdamson <markadamson83@gmail.com>
Co-authored-by: zipbee <46903217+zipbee@users.noreply.github.com>
Co-authored-by: Maxim Milakov <maxim.milakov@gmail.com>
Co-authored-by: Giel de Nijs <gi-el@users.noreply.github.com>
Co-authored-by: jbmbn <47156243+jbmbn@users.noreply.github.com>
Co-authored-by: ptvo <33662022+ptvoinfo@users.noreply.github.com>
Co-authored-by: Martin Helff <martin@helff.net>
Co-authored-by: Roman Zhukov <bag4spam@gmail.com>
Co-authored-by: asgothian <45667167+asgothian@users.noreply.github.com>
Co-authored-by: Mad-Andy <47221633+Mad-Andy@users.noreply.github.com>
Co-authored-by: pfischbach <3976786+pfischbach@users.noreply.github.com>
Co-authored-by: way2many <40859898+way2many@users.noreply.github.com>
Co-authored-by: Russell Joyce <russell@russellj.co.uk>
Co-authored-by: Daniël Kluivingh <dkluivingh@gmail.com>
Co-authored-by: MoskitoHorst <horst.wessel@moskito-gis.de>
Co-authored-by: Srdan Suka <srdan.suka@gmail.com>
Co-authored-by: fredrikgk <46903952+fredrikgk@users.noreply.github.com>
Co-authored-by: Ruslan Sayfutdinov <ruslan@sayfutdinov.com>
Co-authored-by: Aleksey <26031505+dev-abo@users.noreply.github.com>
Co-authored-by: Marc <marc-gist@users.noreply.github.com>
Co-authored-by: jonnycastaway <jonny.castaway@gmx.net>
Co-authored-by: highground88 <emaillj@hotmail.com>
Co-authored-by: Joe Lu <snjoetw@gmail.com>
Co-authored-by: hwijers <45356188+hwijers@users.noreply.github.com>
Co-authored-by: papanirual <46861405+papanirual@users.noreply.github.com>
Co-authored-by: Torsten <github@kryger.de>
Co-authored-by: Gergely Markics <5822419+ugrug@users.noreply.github.com>
Co-authored-by: Cameron Bulock <cameron@bulock.com>
Co-authored-by: Andreas Seiderer <22220407+andreas-seiderer@users.noreply.github.com>
Co-authored-by: Markus Goy <markus1540@users.noreply.github.com>
Co-authored-by: Marc Seeger <mail@marc-seeger.de>
Co-authored-by: Rene <renehonig@gmail.com>
Co-authored-by: Oliver <932481+tb-killa@users.noreply.github.com>
Co-authored-by: pixel::doc <pixeldoc2000@users.noreply.github.com>
Co-authored-by: Roger D <roger-@users.noreply.github.com>
Co-authored-by: jace <jace.wiseman@gmail.com>
Co-authored-by: Frank Wammes <FrankZZ@users.noreply.github.com>
Co-authored-by: Eduardo <eduardo@edubox.org>
Co-authored-by: Hai Phan <pataha@users.noreply.github.com>
qosmio pushed a commit to qosmio/zigbee-herdsman-converters that referenced this issue Dec 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants