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

Sengled: Add options to ignore incoming empty diagnostic messages #351

Merged
merged 664 commits into from
Mar 17, 2019

Conversation

qosmio
Copy link
Contributor

@qosmio qosmio commented Mar 16, 2019

Wireshark reported Sengled's own hub configured the bulbs for reporting
on/off states and brightness. After making the change all my Sengled lights now report state changes.

3/15/2019, 8:21:41 PM - debug: Received zigbee message of type 'attReport' with data '{"cid":"genOnOff","data":{"onOff":0}}' of device 'E11-G13' (0xb0ce181403119b03)
3/15/2019, 8:21:41 PM - info: MQTT publish: topic 'zigbee2mqtt/Bathroom Bulb 5', payload '{"state":"OFF","linkquality":57,"brightness":255}'

orientalsniper and others added 30 commits March 15, 2019 19:40
* Update devices.js

Added support for LTW011

* Update devices.js

* Update devices.js
…kk#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

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 Koenkk#157

* Fix linting for hass lightbulb flashing

* More lint fixing for hass light flash
* Add support for round Hue Aurelle LTC016

* Update devices.js

* Update devices.js
* 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
* Add support for round Hue Aurelle LTC016

* Update devices.js

* Add support for Hue white ambiance Still LTC003

* Update devices.js

* Update devices.js
* 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 Koenkk#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
* 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

* removed example comments of ikea surte device
* 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)

* Update devices.js
* 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

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

* Update devices.js
* 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
…Koenkk#196)

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

* Update fromZigbee.js

* Update devices.js

* Update devices.js
* Update devices.js

* Update devices.js

* update
* 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
* 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
Your Name and others added 18 commits March 15, 2019 19:40
* Sunricher

* Update devices.js
…oenkk#342)

* Update fromZigbee.js

rename methods for xiaomi aqara switch wireless mode

* Update devices.js

wireless mode for aqara wired switches

* Update devices.js
…k#348)

Again .. another overlap of model but with different Zigbee ID. Entered differently per device.
Tidied up descriptions further.
* 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 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
…oenkk#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
…Ctrl'

Wireshark reported Sengled's own hub configured the bulbs for reporting
on/off states and brightness.
@Koenkk
Copy link
Owner

Koenkk commented Mar 16, 2019

This should already be possible when enabling reporting (Koenkk/zigbee2mqtt#1064), should do the same setup. Can you check this?

@qosmio
Copy link
Contributor Author

qosmio commented Mar 16, 2019

For some reason it wasn't working properly when I had tested it, but I just tried again after reverting the devices change and it seems like it's working. Awesome! Is there a way to disable it for certain devices? Kind of like availability_blacklist?

I'll redo the commit just for the Osram functions.

Thanks!

@qosmio qosmio changed the title Sengled: Add configure option for reporting 'genOnOff' and 'genLevelCtrl' Sengled: Add options to ignore incoming empty diagnostic messages Mar 16, 2019
@Koenkk
Copy link
Owner

Koenkk commented Mar 17, 2019

I will look into that, thanks!

@Koenkk Koenkk merged commit 962666e into Koenkk:master Mar 17, 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

Successfully merging this pull request may close these issues.