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

313 Commits

Author SHA1 Message Date
Andrew Berry
822b3c3266
Add a TROUBLESHOOTING doc with WiFi password notes (#563)
* Add a TROUBLESHOOTING doc with WiFi password notes

* Update TROUBLESHOOTING.md

Co-authored-by: Felipe Martins Diel <41558831+felipediel@users.noreply.github.com>
2021-04-11 21:41:07 -03:00
Felipe Martins Diel
9ff6b2d48e 0.17.0 2021-03-11 18:10:04 -03:00
Felipe Martins Diel
9eeee0deda
Bump cryptography from 2.6.1 to 3.2 (#553) 2021-03-11 18:07:56 -03:00
Felipe Martins Diel
335399ef2f
Add new devices to README.md (#552) 2021-03-11 07:36:20 -03:00
Felipe Martins Diel
7c0b4d529f
Improve exceptions (#551) 2021-03-11 04:33:14 -03:00
Felipe Martins Diel
a11b7233c9
Improve repr(device) and str(device) (#550) 2021-03-11 02:51:29 -03:00
Felipe Martins Diel
90a43835e8
Reset connection ID and AES key before sending Client Key Exchange packets (#549) 2021-03-11 01:25:57 -03:00
Felipe Martins Diel
20b9eed6bc
Add a method to update device name and lock status (#537) 2021-03-11 01:00:10 -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
008846ba41
Fix index (#533) 2021-02-04 17:16:17 -03:00
Felipe Martins Diel
e12fd6f115 Make the type a class attribute (#530) 2021-01-29 18:22:58 -03:00
Felipe Martins Diel
586d44493e Change rm.find_rf_packet()'s return value to None (#527)
Change rm.find_rf_packet()'s return value to None. If there is no exception, it worked.
2021-01-29 18:22:58 -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
9af3a3c56c Clean up device.py (#523)
* Clean up device.send_packet()

* Clean up device.auth()

* Clean up scan()
2021-01-29 18:22:58 -03:00
Felipe Martins Diel
82a20dbdda Update README.md
Add new models and fix syntax errors in the instructions.
2021-01-29 18:22:58 -03:00
jbsky
9a04f68212 Refactor the LB1 class (#517)
* Refactor the LB1 class

* General improvements

* Enumerate bulb color modes

* Clean up encoder

Co-authored-by: Felipe Martins Diel <felipe-diel@hotmail.com>
2021-01-29 18:22:58 -03:00
Felipe Martins Diel
b33bbdbbcf Fix encryption errors (#505) 2021-01-29 18:17:45 -03:00
Felipe Martins Diel
448e3026df Filter unsupported features and convert sensor data to float (#495) 2021-01-29 18:17:45 -03:00
Felipe Martins Diel
c3bb598e27 Timeout improvements (#464)
- Only start to count the timer inside the lock.
- Improve precision of the timeout option.
- Use a context manager for the connection.
- Remove SO_REUSEADDR option.

Amend: Revert retry_intvl (#506)
2021-01-29 18:17:45 -03:00
Felipe Martins Diel
d7cbe304e0 Improve RM4 communication (#490) 2021-01-29 18:17:45 -03:00
Felipe Martins Diel
1b3fd16321 Fix MP1's check_power_raw() annotation (#485)
This method returns an integer.
2021-01-29 18:17:45 -03:00
Felipe Martins Diel
bdc5432e2e Clamp the packet count between 0x8000 and 0xFFFF (#486) 2021-01-29 18:17:45 -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
Felipe Martins Diel
1ad468aefe Clean up get_energy() (#471)
Amend: Fix sp3s energy monitoring (#504)
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
Matthew Garrett
b3542a8865 Bump version 2020-11-05 19:27:12 -08:00
Felipe Martins Diel
73dab5c3d5
Overload __str__ in the device class (#468) 2020-11-05 20:19:03 +01:00
Felipe Martins Diel
1d81ebd1d0 Rename SP4L to SP4 and SP4M to SP4B 2020-11-05 02:11:37 -08:00
Kendell R
79f4ad47ff Readme tweaks 2020-10-24 02:20:47 -07:00
Felipe Martins Diel
6f1f976e2f Update packet count in the authentication step 2020-10-24 02:19:01 -07:00
Felipe Martins Diel
1c5ba74f46 Fix shebangs 2020-10-24 02:17:41 -07:00
Joakim Plate
bbab292bbe
Update protocol.md (#436)
Adjust documentation on transmit format

* Trailer is actually 0x00 0x0d 0x05 (ie the extended pulse length format)
* Trailer doesn't have to be this value on transmit

This is based on work in https://github.com/elupus/irgen, but is just a qualified guess that seem to match reality.
2020-10-18 13:31:56 -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
e1fa54f874
Fix SP4 class (#445) 2020-10-18 00:50:15 -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
Timothy Stewart
9d0d76338d
chore(docs): Added additional steps for 0.15.0 if discovery fails (#439) 2020-10-18 00:47:43 -07:00
Felipe Martins Diel
16abdf850f
Improve device discovery (#438)
This update improves device discovery by broadcasting several hello messages and ignoring repeated responses.
2020-10-18 00:47:21 -07:00
Daniel Hjelseth Høyer
99add9e6fe
0.15.0 2020-09-26 08:27:45 +02:00
Daniel Hjelseth Høyer
0190d1e1f4
Delete python-publish.yml 2020-09-26 08:25:13 +02:00
Daniel Hjelseth Høyer
f8be3806c3
Create python-publish.yml (#432) 2020-09-26 08:23:22 +02: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