Ian Munsie
634370d878
Add ability to RF scan a specific frequency ( #613 )
...
* Add ability to RF scan a specific frequency
This adds an optional parameter to find_rf_packet(), along with a
corresponding --rflearn parameter (defaulting to 433.92) to
broadlink_cli that specifies the frequency to tune to, rather than
requiring the frequency be found via sweeping. This is almost mandatory
for certain types of remotes that do not repeat their signals while the
button is held, and saves significant time when the frequency is known
in advance or when many buttons are to be captured in a row.
Additionally:
- A get_frequency() API is added to return the current frequency the
device is tuned to.
- A check_frequency_ex() API is added to perform functions of both
check_frequency() and get_frequency() in a single call.
- broadlink_cli --rfscanlearn will now report the current frequency at 1
second intervals during sweeping, and will report the frequency it
finally locks on to.
* Clean up remote.py
* Clean up broadlink_cli
* Update conditional
* Fix message
---------
Co-authored-by: Felipe Martins Diel <41558831+felipediel@users.noreply.github.com>
2024-04-09 15:40:00 -03:00
Felipe Martins Diel
d48d1347a3
Move constants to const.py ( #584 )
2021-04-29 18:59:58 -03:00
Felipe Martins Diel
d45c9d0850
Improve the CLI ( #555 )
...
* Add check humidity option
* Rename type to devtype
* Remove unnecessary try except clause
* Add commands to README.md
2021-04-26 17:57:01 -03:00
Felipe Martins Diel
1c5ba74f46
Fix shebangs
2020-10-24 02:17:41 -07:00
Felipe Martins Diel
bfbacbfffc
Handle storage error in broadlink_discovery ( #372 )
2020-06-08 12:21:55 +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
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
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
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
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
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
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
carlos-alarcon
1cea255dce
Allow to specify local_ip_address when discovering ( #272 )
2019-07-29 09:39:50 +03: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
Matthew Garrett
3ad4a9f0f8
Merge branch 'master' into rf_experiment_v0.9
2019-05-18 00:10:40 -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
Pim van den Berg
c393cf6079
broadlink_cli: python3 support
2019-01-16 09:34:20 +01: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
clach04
cd969a83f9
readme typo
2018-08-30 22:43:42 -07:00
Faustino Aguilar
71fbb2bcde
Remove trailing semicolons
2018-07-14 19:01:49 -05:00
Tocho Tochev
b2c4bed94a
Add energy option to broadlink_cli
2018-04-19 23:45:50 +03: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
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
Brent Avery
4e33ef4465
Get rf scan learning working in CLI tool ( #87 )
2018-01-30 07:50:51 +11: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
Sergey Bogatyrets
9ff6fa817b
Checking device arg too for defining dev instance ( #129 )
2017-11-26 11:10:19 -08:00
blapid
c85f6ac213
Cli venv support ( #127 )
...
* Update broadlink_cli
* Update broadlink_discovery
2017-11-25 12:14:34 -08:00
Bengt Martensson
4f902342e7
New options for broadlink:cli: --convert and --durations. ( #105 )
...
Now takes several data arguments.
2017-11-25 12:06:12 -08:00
Julian Pastarmov
3d4789305e
Only get temperature for devices that support it. ( #102 )
...
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.).
2017-11-25 12:04:10 -08:00
Ivan Martinez
5195856200
included sensors option
2017-04-22 12:42:32 -07:00
Ivan F. Martinez
de7c5c2a2a
basic documentation for cli programs
2017-04-22 12:42:32 -07:00
Ivan Martinez
76dd4cfc70
command line programs to control broadlink devices
2017-04-22 12:42:32 -07:00