1
0
mirror of https://github.com/mjg59/python-broadlink.git synced 2024-09-21 20:40:11 +02:00
Commit Graph

132 Commits

Author SHA1 Message Date
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
Felipe Martins Diel
de38e237ca Clean up imports 2020-09-20 02:10:18 -07:00
Felipe Martins Diel
487a13d895 Improve annotations 2020-09-20 02:10:18 -07:00
Felipe Martins Diel
08c020e597 Call Mr. Krueger 2020-09-20 02:10:18 -07:00
Felipe Martins Diel
76012c6cd4 Add annotations for parameters 2020-09-20 02:10:18 -07:00
Felipe Martins Diel
8bf107ab69 Add docstrings and annotations 2020-09-20 02:10:18 -07:00
Felipe Martins Diel
5af3a81264 Restore VPN support 2020-09-16 14:05:07 -07:00
Felipe Martins Diel
086fd1cd75
Fix setters (#407) 2020-09-06 10:52:12 +02:00
Felipe Martins Diel
cf1e2c3a30
Check the sum and length of received packets (#410)
* Use sum() for checksums

* Check sum and length of received packets
2020-09-06 10:51:45 +02:00
Felipe Martins Diel
b4aa15617a
Add support for RM4 mini (0x648d) (#411) 2020-09-06 10:51:17 +02:00
Felipe Martins Diel
e59d4a6875
Fix RM4 command header (#412) 2020-09-06 10:50:57 +02:00
Daan Klijn
8167736588 Allow setting custom discover ip port 2020-08-31 01:56:08 -07:00
Felipe Martins Diel
e4ad86278d
Rename lock byte (#389) 2020-07-31 07:10:21 +02:00
Felipe Martins Diel
02ce6ec661
Add support for SC1 device (#388) 2020-07-31 07:09:46 +02:00
Felipe Martins Diel
943706de5c Expose device dictionary 2020-07-19 01:36:32 -07:00
Felipe Martins Diel
daebd806fd Fix 0x5f36 name 2020-06-17 21:06:11 -07:00
Felipe Martins Diel
f10e4fdef0 Add models and manufacturers 2020-06-17 21:06:11 -07:00
Felipe Martins Diel
e41d240942 Add a method to lock/unlock the device 2020-06-17 10:50:27 -07:00
Felipe Martins Diel
e9e14e82d2
Rename change_name() to set_name() (#382) 2020-06-14 16:37:37 +02:00
Felipe Martins Diel
8862be5c05
Use little-endian for the MAC address and connection ID (#370) 2020-06-08 12:22:27 +02:00
Felipe Martins Diel
89cd7d2970
Improve A1, RM and RM4 sensors (#374)
* Clean up A1 sensor

* Improve communication with RM4 sensors

* Add check_sensors() to RM class

* Fix parenthesis

* Fix noise levels

* Fix precision error
2020-06-08 12:21:23 +02:00
Felipe Martins Diel
47087bfc7f
Add support to SP2-CL (0x7544) (#375) 2020-06-08 12:21:00 +02:00
Felipe Martins Diel
d0dcf06e2f
Rollback to old address lookup logic (#378) 2020-06-08 12:20:44 +02:00
Felipe Martins Diel
4b90e437a0
Add method for obtaining the firmware version (#379)
* Add method for obtaining firmware version

* Use hex notation for bytes

Co-authored-by: Daniel Høyer Iversen <mail@dahoiv.net>
2020-06-08 12:20:22 +02:00
Felipe Martins Diel
76bcfd0bfb
Add method for changing device name (#381) 2020-06-08 12:19:21 +02:00
Matthew Garrett
749cfef1eb
Merge pull request #368 from felipediel/bytearray
Replace bytes with bytearray
2020-05-24 12:10:52 -07:00
Felipe Martins Diel
dec2b684d5 Replace bytes with bytearray 2020-05-20 21:00:11 -03:00
Felipe Martins Diel
7dd0a15a7b
Extend support to RM4 Pro (0x61a2) 2020-05-07 13:12:58 -03:00
Felipe Martins Diel
934bf7a969
Close the socket outside the while loop (#359)
* Close the socket outside the while loop

* Solve conflicts
2020-05-07 15:53:55 +02:00
Felipe Martins Diel
3216b069f0
Raise exceptions for errors (#356)
* Raise exceptions for errors

* Fix lb1 error check

* Fix typo

* Improve code readability

* Fix exception
2020-05-07 07:59:21 +02:00
Felipe Martins Diel
5e444988e1
Fix 0x62be device name (#354) 2020-05-02 13:51:59 +02:00
Felipe Martins Diel
f3d0427133
Extend support to RM4c Mini (0x6070) (#348) 2020-04-25 11:41:04 +02:00
Felipe Martins Diel
3e8b008ef7
Close sockets after using them (#350) 2020-04-25 11:40:48 +02:00
Felipe Martins Diel
6cf9292b44
Revert adler32 (#345)
* Revert adler32

* Fix checksum
2020-04-19 08:53:09 +02:00
Felipe Martins Diel
65a1b04666
Fix device name (#342) 2020-04-19 08:50:16 +02:00