Age | Commit message (Collapse) | Author | Files | Lines |
|
|
|
|
|
It is now more readable, which should make it easier to parse the code
and add new devices.
|
|
|
|
|
|
check_power and check_nightlight did not check to see if the payload was already an int before calling ord.
|
|
check_power and check_nightlight did not check to see if the payload was already an int before calling ord.
|
|
|
|
|
|
I picked one of these up cheap on ebay and it totally works.
|
|
|
|
Use explicit byte literals.
AES encryption padding broken with commit f7e30344c5748e37924c8a4f28522c2bc99a52ee under Python 3.
Python 3 support when using pyaes (instead of Crypto.Cipher.AES) now works.
|
|
|
|
* implemented method to toggle nightlight on some SP3 devices
* implement nightlight feature to cli
* check_power/check_nightligh fixes for py2.7
|
|
* 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
|
|
* few item in gendevice use `if` instead of `elif`
* passing `devtype` back to device
change `cli/broadlink_discovery` to display proper devtype
|
|
Find lacking for an option in one line to switch a state of SP2 switches
|
|
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
|
|
Pro PP
|
|
|
|
|
|
|
|
Added new flags so it is possible to check device's current power state and to turn device on & off from CLI
|
|
|
|
|
|
|
|
|
|
|
|
* Update broadlink_cli
* Update broadlink_discovery
|
|
* Fix discovery packet format description
* fix MAC address offset
* Command packet format description
* Data description
|
|
|
|
|
|
|
|
Now takes several data arguments.
|
|
Calling check_temperature is only possible on the RM family of devices. The program used to crash if other types of devices were discovered (A1, MP1 etc.).
|
|
* Fixes invalid byte string (b) for padding (#97, #107)
* Change version to 0.5
|
|
|
|
|