1
0
mirror of https://github.com/mjg59/python-broadlink.git synced 2024-11-22 07:00:12 +01:00
python-broadlink/broadlink
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
..
__init__.py Merge 'master' into 'dev' (#734) 2023-01-14 02:01:06 -03:00
alarm.py Improve code quality (#572) 2021-04-26 17:57:02 -03:00
climate.py Add heating_cooling state to Hysen (#722) 2023-01-22 01:50:37 -03:00
const.py Move constants to const.py (#584) 2021-04-29 18:59:58 -03:00
cover.py Use CamelCase for the Device class (#570) 2021-04-26 17:57:02 -03:00
device.py Standardize ip_address option (#630) 2021-10-18 14:19:41 -03:00
exceptions.py Improve code quality (#585) 2021-04-29 19:51:22 -03:00
helpers.py Improve code quality (#572) 2021-04-26 17:57:02 -03:00
hub.py Add support for S3 Hub and LC-1 (1,2&3 gang) light switches (#654) 2022-03-19 19:31:14 -03:00
light.py Rename the lb27r1 class to lb2 (#586) 2021-04-29 20:31:30 -03:00
protocol.py Improve code quality (#585) 2021-04-29 19:51:22 -03:00
remote.py Add ability to RF scan a specific frequency (#613) 2024-04-09 15:40:00 -03:00
sensor.py Use CamelCase for the Device class (#570) 2021-04-26 17:57:02 -03:00
switch.py Add support for Broadlink MP1 with power meter (#631) 2021-10-18 15:59:47 -03:00