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

Osram/Sylvania: Add vendor specific functions #352

Merged
merged 668 commits into from
Mar 18, 2019

Conversation

qosmio
Copy link
Contributor

@qosmio qosmio commented Mar 16, 2019

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 incoming message ignore list.

  • fz.ignore_genIdentify_change
  • fz.ignore_diagnostic_change
  • fz.ignore_genscenes_change

allofmex and others added 30 commits March 15, 2019 19:40
* 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
* 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
Your Name and others added 17 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
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
devices.js Outdated
(cb) => device.bind('genOnOff', coordinator, cb),
(cb) => device.foundation('genOnOff', 'configReport', [cfgOnOff], foundationCfg, cb),
(cb) => device.bind('genLevelCtrl', coordinator, cb),
(cb) => device.foundation('genLevelCtrl', 'configReport', [cfgLevel], foundationCfg, cb),
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as #351 (comment)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just reverted those changes. Only left in ignore options and the Osram functions.

@Koenkk Koenkk merged commit 782084b into Koenkk:master Mar 18, 2019
@Koenkk
Copy link
Owner

Koenkk commented Mar 18, 2019

@qosmio
Copy link
Contributor Author

qosmio commented Mar 18, 2019

Will do! Was just looking at this last night and remembered I should create one for Osram. Thanks!

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.