1
0
mirror of https://github.com/mjg59/python-broadlink.git synced 2024-11-22 15:10:12 +01:00
Commit Graph

166 Commits

Author SHA1 Message Date
Felipe Martins Diel
9d5339ab8e
Merge new product ids into master (#726)
* Add support for RM4C mini (0x520D) (#694)

* Add support for SP4L-US (0x648C) (#707)

* Add support for RM4C mate (0x5211) (#709)

* Add support for RM4 mini (0x521C) (#710)

* Add support for LB1 (0x644B) (#717)
2022-11-20 15:44:34 -03:00
Felipe Martins Diel
d5cf63bf45
Merge new product ids into master (#686)
* Add support for Broadlink RM4 mini (0x5216) (#671)

* Add support for Broadlink RM4 pro 0x520B (#673)

* Add support for SP4L-UK 0xA569 (#677)

* Fixing typo in rm4pro device definitions (#682)

* Add support for Bestcon RM4C pro (0x5218) (#683)

* Add support for Broadlink RM4 TV mate (0x5212) (#684)

* Add support for Broadlink RM4 mini (0x520C) (#685)
2022-05-23 02:35:28 -03:00
Steven Dodd
2b70440786
Add support for S3 Hub and LC-1 (1,2&3 gang) light switches (#654)
* https://github.com/mjg59/python-broadlink/issues/647

* Added get_state(did) and update documentation

* Fixed pwr3 set_state

* Added get_subdevices()

* Cleaned up get_subdevices

* Updated S3 documentation

* Added device id 0xA59C:("S3", "Broadlink")

* Improve logic of get_subdevices()

Prevents infinite loop.

* Black

* Move s3 closer to s1c

* Update README.md

Co-authored-by: Felipe Martins Diel <41558831+felipediel@users.noreply.github.com>
2022-03-19 19:31:14 -03:00
Felipe Martins Diel
3bdb6dfb92
Merge new product ids into master (#667)
* Add support for Broadlink LB26 R1 (0x644E) (#636)

* Add support for Broadlink LB26 R1 (0x644E)

* Add Broadlink LB26 R1 to README.md

* Add missing device codes for LB27 R1 Smart Bulbs (#644)

These are two missing codes.
This closes issue #639

* Add support for Broadlink RM4 pro (0x5213) (#649)

* Add support for Broadlink RM4 TV mate (0x5209) (#655)

* Move 0x644C and 0x644E to the LB1 class (#666)

Co-authored-by: Mathew Verdouw <mathew@vtc.com.au>
2022-03-19 15:28:54 -03:00
Felipe Martins Diel
26ee3192d9 Change the type and model of the hysen class (#627) 2021-10-17 13:25:00 -03:00
Felipe Martins Diel
62f81bc281
Add support for Broadlink SCB1E (0xA56B) (#623) 2021-10-17 05:36:42 -03:00
1UPNuke
ca1634575e Add support for Clas Ohlson SL-2 E14 (0x6065) (#600) 2021-09-12 16:55:08 -03:00
Felipe Martins Diel
a84a628d1c
Add support for Broadlink RM mini 3 (0x27DC) (#594) 2021-05-15 15:06:38 -03:00
Felipe Martins Diel
3f92850a5f
Add support for Broadlink SP4L-EU (0xA56C) (#593) 2021-05-11 17:25:22 -03:00
Felipe Martins Diel
bc44166702
Refactor SUPPORTED_TYPES (#592) 2021-05-06 14:52:11 -03:00
Felipe Martins Diel
1ae12e7d1c
Remove local_ip_address option from hello() (#591) 2021-05-03 17:34:22 -03:00
Felipe Martins Diel
c6390924bf
Add support for Broadlink SP4L-AU (0x757B) (#590) 2021-05-03 16:02:54 -03:00
Felipe Martins Diel
b43b296ff3
Add support for Broadlink RM mini 3 (0x6507) (#589) 2021-05-01 15:05:31 -03:00
Felipe Martins Diel
2d863bd6c1
Rename the lb27r1 class to lb2 (#586) 2021-04-29 20:31:30 -03:00
Felipe Martins Diel
d48d1347a3
Move constants to const.py (#584) 2021-04-29 18:59:58 -03:00
Felipe Martins Diel
e1f3b83efd Add support for Broadlink SP4L-EU (0xA5D3) (#582) 2021-04-26 17:57:02 -03:00
Felipe Martins Diel
49322ddaae Add support for Broadlink SP4L-CN (0x7568) (#577) 2021-04-26 17:57:02 -03:00
Felipe Martins Diel
12fdf01631 Improve code quality (#572)
* Improve typing

* Use better names

* Clean up switch.py

* Remove unused import

* Run black

* Remove unnecessary comments

* Clean up climate.py
2021-04-26 17:57:02 -03:00
Felipe Martins Diel
b77e803864 Use CamelCase for the Device class (#570) 2021-04-26 17:57:02 -03:00
Felipe Martins Diel
36b293bf05 Raise exceptions explicitly (#569) 2021-04-26 17:57:02 -03:00
Felipe Martins Diel
056434ab46 Add support for Broadlink RM4C pro (0x6184) (#568) 2021-04-26 17:57:02 -03:00
Felipe Martins Diel
1a8ee21a34 Make better use of namespaces (#564)
Use namespaces for typing and exceptions.
2021-04-26 17:57:02 -03:00
Felipe Martins Diel
2198400ad6 Add support for Broadlink LB27 R1 (0xA4F4) (#557)
* Add support for Broadlink LB27 R1 (0xA4F4)

* Improve typing
2021-04-26 17:57:02 -03:00
Johnson Chin
f3e4edcad4 Add support for Broadlink SP4L-UK (0x7587) (#561)
* Add new SP4L-UK type

* Switch: SP4 check power and nightlight to return as boolean

Co-authored-by: Felipe Martins Diel <41558831+felipediel@users.noreply.github.com>
2021-04-26 17:57:02 -03:00
Felipe Martins Diel
de0cebc00f Add support for Broadlink SCB2 (0x6494) (#558) 2021-04-26 17:57:02 -03:00
Felipe Martins Diel
5dee06c815
Make 0x2711 a sp2s device (#538) 2021-02-17 00:38:18 -03:00
Felipe Martins Diel
39ee67bb98
Split the rm and rm4 classes into smaller classes (#529) 2021-02-16 18:14:11 -03:00
Felipe Martins Diel
1b73cfce3a
Split the sp2 class into smaller classes (#521) 2021-02-16 16:38:10 -03:00
Felipe Martins Diel
21fa2a20bf Add a function to send ping packets (#526)
Rename 'host' attribute to 'address' (ping) (#528)
2021-01-29 18:22:58 -03:00
Felipe Martins Diel
bc6719dc2a Add new product ids
Add support for Broadlink RM4C mini (0x6539) (#476)

Add support for Broadlink RM4 pro (0x653C) (#472)

Add support for Broadlink RM4S (0x6364) (#475)

Add support for Broadlink MCB1 (0x756F) (#478)

Add support for Broadlink MCB1 (0xA56A) (#478)

Add support for Broadlink RM mini 3 (0x6508) (#479)

Add support for Efergy Ego (0x271D) (#481)

Add support for Broadlink SCB1E (0x5115) (#514)

Add support for Broadlink SCB1E (0x6113) (#488)

Add support for Broadlink SP4L-EU (0x618B) (#489)

Add support for Broadlink SP4L-UK (0xA589) (#491)

Add support for Broadlink RM3 mini (0x27d3) (#493)

Add support for Broadlink SP4L-AU (0x6489) (#498)

Add support for BG Electrical AHC/U-01 (0x51E2) (#497)

Add support for Broadlink MCB1 (0x6111) (#509)
2021-01-29 18:17:45 -03:00
Kendell R
dfd3372c36 Add GH Actions (#470)
Add GitHub actions and run black.
2021-01-29 18:17:45 -03:00
Felipe Martins Diel
1d81ebd1d0 Rename SP4L to SP4 and SP4M to SP4B 2020-11-05 02:11:37 -08:00
Felipe Martins Diel
1c5ba74f46 Fix shebangs 2020-10-24 02:17:41 -07:00
Felipe Martins Diel
957baf5447
Add support for Broadlink SP4M-US (0x648b) (#447) 2020-10-18 13:22:03 -07:00
Felipe Martins Diel
c8a5ea02fd
Add support for Broadlink RM4 mini (0x653a) (#451) 2020-10-18 00:51:43 -07:00
Felipe Martins Diel
0beccda833
Add support for RM mini 3 (0x27c7) (#446) 2020-10-18 00:50:31 -07:00
Felipe Martins Diel
a31d766d33
Add support for Broadlink SP mini 3 (0x7583) (#444) 2020-10-18 00:49:42 -07:00
Felipe Martins Diel
f11d825e6e
Add support for Broadlink SP mini 3 (0x7d11) (#443) 2020-10-18 00:48:25 -07:00
Felipe Martins Diel
0dc0068d63
Improve code quality (#428)
* Fix lint errors

* Remove rm2 class

* Rename cs to conn

* Add __repr__ to device class

* Make get_devices() a dictionary

* Clean up alarm kit

* Add module doscstrings

* Fix MAC address conversion
2020-09-24 07:36:12 +02:00
Felipe Martins Diel
28fa72f962
Make bind() optional and implement a generator for device discovery (#427) 2020-09-23 07:43:56 +02:00
Tamarinen
9248ee6b0c
Add sp4 refactored (#429)
* Add SP4 device class

* Remove legacy byte conversion

* Implement suggested improvements

* Apply some love to _encode() and _decode() too.

* Remove unnecessary safeguards

* Remove unnecessary return values

* Add missing periods to the comments.

Co-authored-by: Martin Samuelsson <httpov@columbiegg.com>
2020-09-22 17:58:07 -07:00
sivero
6ab23e9261
Update __init__.py (#423)
Add support for (0x27cc) RM mini 3
2020-09-20 17:17:10 -07:00
Felipe Martins Diel
2ae9b9db12
Add support for Broadlink RM4 pro (0x649b) (#421) 2020-09-20 17:15:56 -07:00
Felipe Martins Diel
a4f76bcf36 Add support for Broadlink MP2 (0x7540) 2020-09-20 17:14:56 -07:00
Felipe Martins Diel
868153bfd1 Add support for Broadlink MP1-1K3S2U (0x4f1b) 2020-09-20 17:14:32 -07:00
Felipe Martins Diel
d17fb228cf
Add support for Broadlink RM pro+ (0x27c3) (#422) 2020-09-20 17:14:01 -07:00
Felipe Martins Diel
05440417be Add support for Broadlink RM mini 3 (0x27cd) 2020-09-20 17:12:41 -07:00
Felipe Martins Diel
fc0244e6a4 Add support for Broadlink RM mini 3 (0x27d0) 2020-09-20 17:12:41 -07:00
Felipe Martins Diel
91ae5952ee Add support for OEM Broadlink SP2-IL (0x7539) 2020-09-20 17:12:19 -07:00
Felipe Martins Diel
6ac060f141 Add support for Ankuoo NEO and NEO PRO 2020-09-20 17:11:47 -07:00