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

198 Commits

Author SHA1 Message Date
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
Daniel Hjelseth Høyer
fe4aa5b991
0.14.1 2020-07-31 07:11:51 +02: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
bfbacbfffc
Handle storage error in broadlink_discovery (#372) 2020-06-08 12:21:55 +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
ca8a5c6a8b
Merge pull request #361 from ameer1234567890/patch-1
Fix error if no dst-ip is provided
2020-05-24 12:21:04 -07:00
Matthew Garrett
c0a60d27d3
Merge pull request #369 from felipediel/fix-learning
Handle StorageError in learning mode
2020-05-24 12:11:27 -07:00
Matthew Garrett
749cfef1eb
Merge pull request #368 from felipediel/bytearray
Replace bytes with bytearray
2020-05-24 12:10:52 -07:00
Matthew Garrett
afb0c3dc80
Merge pull request #360 from felipediel/patch-8
Extend support to RM4 Pro (0x61a2)
2020-05-24 12:09:22 -07:00
Felipe Martins Diel
753db8e25b Sleep before reading the code 2020-05-22 15:25:33 -03:00
Felipe Martins Diel
9cda686d24 Handle storage error 2020-05-22 14:55:44 -03:00
Felipe Martins Diel
dec2b684d5 Replace bytes with bytearray 2020-05-20 21:00:11 -03:00
Jimmy Johnson
1dfdb065d0
Fixing RF setup issue (#362)
* Fixing RF setup issue

* Addressing PR requests
2020-05-12 21:21:32 +02:00
Felipe Martins Diel
7dec8f2355
Handle ReadError in the CLI (#365)
* Handle ReadError

* Make it more pythonic

* Clean up
2020-05-12 21:19:49 +02:00
Ameer Dawood
47999a9b67
Fix error if no dst-ip is provided 2020-05-09 22:35:51 +05:00
Felipe Martins Diel
7dd0a15a7b
Extend support to RM4 Pro (0x61a2) 2020-05-07 13:12:58 -03:00
Daniel Høyer Iversen
a731c9c5a5
0.14.0 2020-05-07 15:54:19 +02: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
Daniel Høyer Iversen
17968ef4d4
0.13.2 2020-04-21 07:50:23 +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
Kevin Eifinger
ed87b8d1de
Add missing "self." to calculate_crc16 uses (#344) 2020-04-19 08:49:55 +02:00
Daniel Høyer Iversen
2f1ac5c9d3
0.13.1 2020-04-16 17:01:30 +02:00
Felipe Martins Diel
548aa05da0
Extend support to RM4 Pro (0x6026) (#340) 2020-04-15 09:04:01 +02:00
Matthew Garrett
af99f92721
Merge pull request #339 from felipediel/patch-3
Fix padding algorithm for CBC mode
2020-04-13 17:40:48 -07:00
Felipe Martins Diel
a5925063f9
Fix padding algorithm for CBC mode
Due to the lack of a parenthesis, the packets were getting 16 bytes larger than necessary.
2020-04-13 17:42:51 -03:00
tiagofreire-pt
3a6d89aff2
Adding new supported devices (#325) 2020-04-10 09:23:37 +02:00
majuss
a6827caaf7
Removed PyCRC as dependency; implemented CRC16 directly (#327)
* Removed PyCRC as dependency; implemented CRC16 directly

* replace crc16 with integrated function

* Added self to calculate crc
2020-04-10 09:23:15 +02:00
csabavirag
2bc7b06c69
Adding support for LB1 (RGB Light Bulb - 0x60e8) (#332) 2020-04-05 19:14:47 +02:00
Felipe Martins Diel
26a4565e58
Add support for RM4 0x62bc (#331)
* Add support for RM4 0x62bc

* Fix device name
2020-04-05 19:14:09 +02:00