1
0
mirror of https://github.com/mjg59/python-broadlink.git synced 2024-11-14 19:40:11 +01:00
Commit Graph

109 Commits

Author SHA1 Message Date
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
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
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
Daniel Høyer Iversen
db4d1a218b
Merge pull request #183 from MayeulC/refactor
Refactor the device list
2018-05-15 17:14:42 +02:00
Mayeul Cantan
56b2ac36e5 Refactor the device list
It is now more readable, which should make it easier to parse the code
and add new devices.
2018-04-30 23:06:19 +02:00
Matthew Garrett
766b7b00fb Version 0.9 2018-04-24 08:33:05 -07:00
Daniel Høyer Iversen
75b323c640
Merge pull request #179 from tochev/feature-energy-cmd
Add energy option to broadlink_cli
2018-04-23 10:39:33 +02:00
Tocho Tochev
b2c4bed94a Add energy option to broadlink_cli 2018-04-19 23:45:50 +03:00
Daniel Høyer Iversen
9c238e1717
Merge pull request #178 from lordneon/master
Fixed a bug within the SP2 class.
2018-04-15 19:04:05 +02:00
lordneon
e8421343e3 Merge branch 'master' of https://github.com/lordneon/python-broadlink 2018-04-15 10:22:42 +00:00
lordneon
e724aec007 Fixed a bug within the SP2 class.
check_power and check_nightlight did not check to see if the payload was already an int before calling ord.
2018-04-15 10:22:19 +00:00
lordneon
90af3b7437 Fixed a bug within the SP2 class.
check_power and check_nightlight did not check to see if the payload was already an int before calling ord.
2018-04-15 10:19:05 +00:00
Daniel Høyer Iversen
3b6b55ae73
Merge pull request #164 from horse315/master
fixed Hysen thermostat ctor & added comments
2018-03-31 15:57:17 +02:00
Daniel Høyer Iversen
e9f4bb6372
Merge pull request #169 from ooo89/master
Add support for Clas Ohlsson OEM branded SP3
2018-03-31 15:56:06 +02:00
ooo89
832a40c278
Update __init__.py 2018-03-28 16:56:36 +02:00
Aleksey Bogomolov
e9748ff0b4
fixed Hysen thermostat ctor & added comments 2018-03-24 19:05:44 +03:00
Daniel Høyer Iversen
ed6cec9b7f
Merge pull request #161 from mikalstill/patches
Add the RM3 mini to the supported device list.
2018-03-24 14:47:44 +01:00
Michael Still
53b213ea85 Add the RM3 mini to the supported device list.
I picked one of these up cheap on ebay and it totally works.
2018-03-19 18:19:51 +11:00
Matthew Garrett
9286d9a1d9 Version 0.8 2018-03-18 15:12:47 -07:00
clach04
8b593beff9 Restore Python 3 support (#95)
Use explicit byte literals.

AES encryption padding broken with commit f7e30344c5 under Python 3.
Python 3 support when using pyaes (instead of Crypto.Cipher.AES) now works.
2018-03-18 15:12:20 -07:00
Matthew Garrett
8d3c9f1e9f Version 0.7 2018-03-18 15:08:21 -07:00
Nightreaver
33a2e4ae54 implemented method to toggle nightlight on some SP3 devices (#159)
* implemented method to toggle nightlight on some SP3 devices

* implement nightlight feature to cli

* check_power/check_nightligh fixes for py2.7
2018-03-18 15:03:46 -07:00
Peter Windridge
39cc64efce Basic support for Hysen Heating Controller (dev type 0x4ead) (#138)
* Initial support for Hysen heating controller device.  Only gets current temperature.

* Add switch_to_auto() to put the controller in (pre-programmed) timed mode

* Add set_temp() to manually set temperature.  Now requires PyCRC (payload needs modbus CRC16)

* Remove test script

* Get current timer schedule

* Get much more data from device

* Add PyCRC to install_requires setup.py

* Rewrite based on better understanding.  Allow setting schedule and changing 'loop mode'

* Add set_time function

* Support advanced settings and perform CRC check on responses

* Explain remaining unknowns for Hyson thermostat

The room_temp_adj (or simply 'adj') only applies to the room_temp. It's limited to -5.0..+5.0, but uses a 2 byte data type.
This leads to the assumption that external_temp could also use this data type, maybe for showing temperatures below 0 - but I cannot test this currently. Maybe I have to place it near a fridge to confirm.

* Fix get_temp and add get_external_temp for Hysen

Again: maybe payload[17] also belongs to the external temperature...

* remove comment about first 2 bytes and raise error if CRC check on response fails

* Remove comment about guessed meaning of unknown

Just confirmed, that lowest outside temp is 0. So it seems to only need 1 byte, as room temp does.

* add ability to toogle hysen device power

Turn display power on/off

* Update set_power() to support remote_lock for Hysen

Sorry, there was still one thing missing: set/unset remote_lock.
I captured again and changed the set_power accordingly.

* fix comments
2018-03-18 15:03:26 -07:00
Nightreaver
8754493951 broadlink_discovery returns wrong devtype (#157)
* few item in gendevice use `if` instead of `elif`

* passing `devtype` back to device
change `cli/broadlink_discovery` to display proper devtype
2018-03-18 14:58:15 -07:00
Marcin Koperski
21d96bd140 Add option to switch state (#160)
Find lacking for an option in one line to switch a state of SP2 switches
2018-03-18 14:55:03 -07:00
marconfus
26109aac67 Fix for environments where Crypto and pyaes are installed. (#151)
If both Crypto and pyaes are installed 'pyaes' is in sys.modules(), but as it is not imported (see top) it's not available.
Fix for #128
2018-03-18 14:54:17 -07:00
Daniel Høyer Iversen
00cc79daee
Merge pull request #149 from deel77/master
Default support for python3 in get_energy() for SP2
2018-03-10 15:30:42 +01:00
Daniel Høyer Iversen
0742039477
Merge pull request #156 from Nightreaver/master
add new rmpro models
2018-03-10 15:30:10 +01:00
Daniel Høyer Iversen
e8795ac1ae
Merge pull request #150 from balloob/patch-1
Depend on pycryptodome instead of pycrypto
2018-03-10 15:29:33 +01:00
Steven Barthen
d186332b96 add new rmpro models - Pro Plus 3, Pro Plus 300, Pro Plus HYC, Pro Plus R1, Pro PP 2018-03-10 21:10:33 +09:00
Paulus Schoutsen
38aa6dc37e Depend on pycryptodome instead of pycrypto 2018-02-27 00:26:07 -08:00
Dominik Lakatoš
51ff890c7c
modified get_energy() to support python3 2018-02-08 13:47:28 +01:00
Valter Vicente
dd0e908317 New flags: check power state and turn device on & off (#132)
Added new flags so it is possible to check device's current power state and to turn device on & off from CLI
2017-12-25 00:35:09 +00:00
Aleksandr Smirnov
82172f54ab support for dooya curtain motor (#134) 2017-12-25 00:34:37 +00:00
Sergey Bogatyrets
9ff6fa817b Checking device arg too for defining dev instance (#129) 2017-11-26 11:10:19 -08:00
Matthew Garrett
8bc67af6d7 Bump version 2017-11-25 12:21:48 -08:00
jazzina
b8cf8d073e Add support for SmartOne Alarm Kit 2017-11-25 12:20:46 -08:00