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

295 Commits

Author SHA1 Message Date
hakana
84e53c8d2b
Add support for RM4 mini with device type 0x610e (#320) 2020-03-16 19:56:06 +01:00
Felipe Martins Diel
1a1169f1a9
Add support for 0x5f36 devices and RM4 series (#317)
* Add support for 0x5f36 devices

This type of device requires a header in the payload. The rest is the same.

* Improve request header assignment

* Change code sending header

I just found out that this device uses a different header for sending codes. This update addresses this issue.

* Improve authentication

Use the error code to check if the authentication was successful.

* Use default value when devtype is None

* Use generic remote type if devtype is None

* Extend support to RM4 series

I just realized that RM4 devices use the same header. I will take the opportunity to extend support to these devices as well.

* Add device type 0x62be and create rm4 class 

The rm4 class will improve code scalability. Just add the RM4 type to this class and it will just work.

* Remove comma
2020-03-16 09:49:41 +01:00
Daniel Høyer Iversen
af95fa2446
Add --joinwifi option to configure the device with Wifi details (#296) 2020-03-04 22:27:55 +01:00
Daniel Høyer Iversen
e151a14a7b
decode is not needed for python3 (#298) 2020-03-04 22:27:22 +01:00
Daniel Høyer Iversen
654db0935b
Fix new RM mini3 (#305)
* Fix new RM mini3

Some little change

* Fix new RM mini3

Some little change

Co-authored-by: Daniel Høyer Iversen <mail@dahoiv.net>
2020-03-04 22:26:23 +01:00
Daniel Høyer Iversen
e84becd05b
Add support for specifying destination IP address to use in discovery (#313)
Co-authored-by: Kja64 <Ken@lkv20.dk>
2020-03-04 22:25:00 +01:00
Daniel Høyer Iversen
ec4df39665
Add 27de RM Mini 3 (C) (#314)
I have a 0x27de RM Mini 3, as inspired by https://github.com/lprhodes/broadlinkjs-rm/blob/master/index.js, I added the identification and python-broadlink would handle it properly.
2020-03-04 22:24:33 +01:00
Daniel Høyer Iversen
8e7446f410
Fix CBC mode padding and use adler32 for checksums (#315)
* Fix CBC mode padding and use adler32 for checksums

* Change line order

This change comes to improve the readability of the code.

* Use zero-padding for CBC mode
2020-03-04 22:24:09 +01:00
Matthew Garrett
dfd478922b
Merge pull request #290 from barnybug/add_bgelectrical_sockets
Add support for BG Electrical Smart Sockets
2020-01-29 16:18:00 -08:00
Barnaby Gray
a05efe1c00 Add detail on return value for get_state() 2019-10-16 09:58:02 +01:00
Barnaby Gray
660c2269e4 Add support for BG Electrical Smart Sockets 2019-10-13 22:12:13 +01:00
Liran BG
cbb1d67df8 Print base64 RF learned command output (#286)
* Print base64 RF learned command output

Would be helpful for hassio fans, they can easily copy paste the output into their automation configuration file.

* Update broadlink_cli
2019-10-09 16:44:40 +03:00
Daniel Høyer Iversen
56e444cacf
0.12.0 (#285) 2019-10-02 09:26:01 +03:00
Daniel Høyer Iversen
2e5361bd8e
Remove support for pyaes (#281)
* remove support for pyaes

* remove support for pyaes

* remove support for pyaes
2019-10-02 09:25:27 +03:00
Leonardo Brondani Schenkel
11c5981793 Use old IP address lookup logic as fallback (#275)
On some machines, resolving the local hostname results in a loopback IP
address (127.0.0.0/8). This breaks discovery. In these situations, fall
back to the old IP address lookup logic that was removed on commit 790edb9.
2019-08-16 12:13:53 +03:00
carlos-alarcon
1cea255dce Allow to specify local_ip_address when discovering (#272) 2019-07-29 09:39:50 +03:00
Johnson Chin
9d9b49c3db SP2: Add support for OEM SP2 (#251) 2019-06-24 20:06:50 +02:00
Daniel Høyer Iversen
b6fd48db5d
0.11.1 2019-06-10 09:13:18 +02:00
Daniel Høyer Iversen
9ec2da834b
handle none power raw (#250) 2019-06-10 09:12:50 +02:00
Daniel Høyer Iversen
c94838f561
0.11 2019-05-27 20:57:57 +02:00
Daniel Høyer Iversen
38a40c5a19
Use cryptography instead of pycryptodome (#246)
* Use cryptography instad of pycryptodome

* Use cryptography instad of pycryptodome
2019-05-27 20:57:32 +02:00
AnilDaoud
45e26fda23 fixed learnfile switch and python3 compatibility (#247) 2019-05-23 15:13:14 +02:00
AnilDaoud
ef66997953 2to3 broadlink_discovery (#245) 2019-05-22 07:28:02 +02:00
AnilDaoud
b8fdf337c9 cleaner local ip address lookup (#244) 2019-05-22 07:27:34 +02:00
Daniel Høyer Iversen
a75f98720e
code clean up (#243) 2019-05-19 17:54:14 +02:00
Daniel Høyer Iversen
c9a1c106a7
Update setup.py 2019-05-18 17:13:33 +02:00
Daniel Høyer Iversen
508b0563ed
0.10 2019-05-18 17:11:30 +02:00
Daniel Høyer Iversen
bb0fb1bd6d
Merge pull request #242 from raman325/master
Bump PyPI package version
2019-05-18 17:07:08 +02:00
Matthew Garrett
01928b0911
Merge pull request #218 from sprilukin/rf_experiment_v0.9
RF support to v0.9 resolves #87
2019-05-18 00:10:57 -07:00
Matthew Garrett
3ad4a9f0f8
Merge branch 'master' into rf_experiment_v0.9 2019-05-18 00:10:40 -07:00
ninstein
0db3179623 Update __init__.py
add new device: TMall OEM SPMini3
2019-05-18 00:08:52 -07:00
Bartosz Fenski
852cbc2473 adding base64 output (#239)
base64 output useful when working with Home-Assistant
2019-05-18 00:07:25 -07:00
gpenverne
77f11c8d49 Allow string mac address in constructor 2019-05-18 00:06:47 -07:00
Raman Gupta
550a01bbab
Bump PyPI package version
The latest build of this package is still listing pycryptodome 3.4.11 as a dependency. Please trigger a new push so that these changes are reflected there.
2019-05-17 08:54:05 -04:00
Daniel Høyer Iversen
1d6d8d2aee
Merge pull request #234 from pommi/cli-python3
broadlink_cli: python3 support
2019-04-25 09:39:40 +02:00
Daniel Høyer Iversen
db2dec13e1
Merge pull request #224 from GGBBB2000/patch-1
Update __init__.py
2019-01-24 20:59:48 +01:00
Pim van den Berg
c393cf6079 broadlink_cli: python3 support 2019-01-16 09:34:20 +01:00
BAN
9996c252f7
Update __init__.py 2019-01-08 16:47:31 +09:00
Sergey Prilukin
2b4e6d91ff
Merge branch 'rf_experiment' into rf_experiment_v0.9
# Conflicts:
#	README.md
#	broadlink/__init__.py
#	cli/broadlink_cli
2018-11-26 00:21:37 +02:00
Sergey Prilukin
694b4423b5
fixed --learnfile argument usage, so it works for both IR and RF 2018-11-25 23:58:33 +02:00
Daniel Høyer Iversen
1cceae73eb
Merge pull request #212 from pvizeli/patch-1
Update requirements
2018-11-02 13:31:23 +01:00
Pascal Vizeli
bb23c84c90
Update requirements 2018-11-02 11:57:07 +01:00
Daniel Høyer Iversen
5cfb92ee12
Merge pull request #211 from dimovnike/master
Support for a new SP2 device.
2018-11-02 11:24:02 +01:00
Daniel Høyer Iversen
daf38546a9
Merge pull request #205 from balloob/patch-1
Update vulnerable pycryptodome
2018-11-02 11:23:18 +01:00
Nick Dimov
73fc5fc4b9 Support for a new SP2 device.
It returns different codes for check and checknl.
2018-10-27 16:15:47 +03:00
Daniel Høyer Iversen
58a5714009
Merge pull request #206 from clach04/patch-2
readme typo
2018-09-13 07:31:51 +02:00
clach04
cd969a83f9
readme typo 2018-08-30 22:43:42 -07:00
Paulus Schoutsen
8cfa020353
Update vulnerable pycryptodome 2018-08-28 11:01:42 +02:00
Daniel Høyer Iversen
e5ab802361
Merge pull request #199 from faustinoaq/patch-1
Remove trailing semicolons
2018-07-15 09:35:33 +02:00
Faustino Aguilar
71fbb2bcde
Remove trailing semicolons 2018-07-14 19:01:49 -05:00