MCPcopy Index your code

hub / github.com/ClusterM/flipper_rc / functions

Functions219 in github.com/ClusterM/flipper_rc

↓ 12 callersMethod_validate_cli_response
Validate response: reject errors, require tx indicators for subghz, accept prefix.
custom_components/flipper_rc/flipper_ir.py:127
↓ 11 callersMethodsend_subghz
Send Sub-GHz key with Flipper CLI subghz tx command.
custom_components/flipper_rc/flipper_ir.py:294
↓ 10 callersFunction_is_supported_subghz_path
(path)
custom_components/flipper_rc/flipper_ir.py:10
↓ 10 callersMethodclose
Close the connection to Flipper Zero.
custom_components/flipper_rc/flipper_ir.py:74
↓ 10 callersFunctionin_range
Checks if a given value is within a certain percentage range of a target value. Args: value (float): The value to check. tar
custom_components/flipper_rc/pulse.py:3
↓ 9 callersMethodsend_subghz_from_file
Send Sub-GHz transmission from saved Flipper SD card file.
custom_components/flipper_rc/flipper_ir.py:317
↓ 9 callersMethodwait_for_prompt
Wait for the Flipper Zero prompt to appear. Args: timeout (int or float, optional): Timeout for waiting for the prom
custom_components/flipper_rc/flipper_ir.py:542
↓ 7 callersMethod_send_ctrl_c
Send Ctrl-C (0x03) to break the Flipper out of its current operation.
custom_components/flipper_rc/flipper_ir.py:160
↓ 7 callersMethodcommand
Send a command to Flipper Zero and wait for the response. Args: cmd (str): Command to send. timeout (in
custom_components/flipper_rc/flipper_ir.py:186
↓ 6 callersFunctionparse_subghz_command
Parse Sub-GHz TX command string.
custom_components/flipper_rc/parsers.py:27
↓ 6 callersFunctionparse_subghz_file_command
Parse Sub-GHz tx_from_file command string.
custom_components/flipper_rc/parsers.py:81
↓ 4 callersMethodasync_step_port
Handle the port step.
custom_components/flipper_rc/config_flow.py:50
↓ 3 callersFunction_format_sirc_result
(addr_str, cmd, rep)
custom_components/flipper_rc/rc_encoder.py:395
↓ 3 callersFunction_midea_pack
Pack a 48-bit Midea packet for payload bytes (a, b) in MSB convention. `vendor` selects the leading vendor/Type byte: MIDEA_VENDOR_MSB (0xB2)
custom_components/flipper_rc/rc_encoder.py:1000
↓ 3 callersFunction_sirc_build_frame
(data, bit_length)
custom_components/flipper_rc/rc_encoder.py:326
↓ 3 callersFunction_sirc_decode_with_rep
Decode a SIRC stream and detect how many copies of the same frame are present. Returns (data_bytes, rep). Tolerates the last frame missing its
custom_components/flipper_rc/rc_encoder.py:356
↓ 3 callersFunction_sirc_repeat
(frame, repeats)
custom_components/flipper_rc/rc_encoder.py:334
↓ 3 callersMethodensure_open
Ensure the serial connection is open, detecting dead connections and reconnecting.
custom_components/flipper_rc/flipper_ir.py:118
↓ 3 callersFunctionfmt_bits_msb
Render a byte as 8-bit MSB-first binary string.
tests/midea_analysis.py:88
↓ 3 callersMethodget_device_info
Get device information from Flipper Zero. Returns: dict: Device information as a dictionary.
custom_components/flipper_rc/flipper_ir.py:431
↓ 3 callersMethodopen
Open the connection to Flipper Zero.
custom_components/flipper_rc/flipper_ir.py:34
↓ 3 callersFunctionparse_key_value_payload
Parse comma-separated key=value payload using first '=' split.
custom_components/flipper_rc/parsers.py:9
↓ 3 callersMethodreadline
Read a line from the Flipper Zero. Args: timeout (int or float, optional): Timeout for reading a line in seconds, defa
custom_components/flipper_rc/flipper_ir.py:516
↓ 2 callersFunction_decode_at
(start)
custom_components/flipper_rc/rc_encoder.py:367
↓ 2 callersFunction_midea_normalize_bool
Coerce on/off/1/0/true/false (str/int/bool) into bool.
custom_components/flipper_rc/rc_encoder.py:854
↓ 2 callersMethod_on_connection_lost
(self)
custom_components/flipper_rc/remote.py:90
↓ 2 callersFunctionac_decode_half
(values)
custom_components/flipper_rc/rc_encoder.py:582
↓ 2 callersFunctiondecode_half
(half)
custom_components/flipper_rc/rc_encoder.py:769
↓ 2 callersFunctiondecode_half
Decode 48 bits using the same engine as flipper_rc's `ac` parser.
tests/midea_analysis.py:72
↓ 2 callersFunctionget_toggle
Toggles the value of the global variable 'global_toggle' between 0 and 1. Returns: int: The new value of 'global_toggle' after toggl
custom_components/flipper_rc/rc_encoder.py:28
↓ 2 callersFunctionparse_raw
(s)
tests/test_midea.py:43
↓ 2 callersFunctionrc_auto_decode
Attempt to decode a list of pulse and gap durations using various decoders. This function iterates through a collection of decoders defined
custom_components/flipper_rc/rc_encoder.py:1128
↓ 2 callersMethodreceive_ir
Listen for IR signals from Flipper Zero. Args: timeout (int or float, optional): Timeout for waiting for IR signal i
custom_components/flipper_rc/flipper_ir.py:236
↓ 2 callersMethodrecover_from_timeout
Send Ctrl-C and drain buffer to recover from a stuck Flipper.
custom_components/flipper_rc/flipper_ir.py:166
↓ 2 callersMethodsend_ir
Send IR signal to Flipper Zero. Args: frequency (int): Frequency in Hz. duty_cycle (int): Duty cycle in
custom_components/flipper_rc/flipper_ir.py:280
↓ 2 callersMethodset_on_connection_lost
Set a callback to be called when the connection is lost.
custom_components/flipper_rc/flipper_ir.py:86
↓ 1 callersMethod_check_prompt_in_lines
Check if the prompt marker (': ') appears at the end of any collected line. This is a race-condition-resistant check: when data_r
custom_components/flipper_rc/flipper_ir.py:591
↓ 1 callersFunction_coerce
(v)
custom_components/flipper_rc/rc_encoder.py:1177
↓ 1 callersFunction_midea_fields_to_bytes
Convert Midea (mode, temp, fan, power) into the (a, b) payload bytes. Defaults: mode='cool', temp=22, fan='auto', power='on'. When power=off
custom_components/flipper_rc/rc_encoder.py:869
↓ 1 callersMethod_storage_list
List one storage directory and return absolute dir/file paths.
custom_components/flipper_rc/flipper_ir.py:332
↓ 1 callersMethod_storage_tree_sub_files
Extract .sub file paths from `storage tree` output.
custom_components/flipper_rc/flipper_ir.py:366
↓ 1 callersFunctionanalyze
(name, raw_str)
tests/midea_analysis.py:93
↓ 1 callersMethodasync_list_subghz_files
Public API for listing Sub-GHz files on Flipper storage.
custom_components/flipper_rc/remote.py:187
↓ 1 callersMethodasync_send_subghz_from_file
Public API for replaying Sub-GHz capture files from storage.
custom_components/flipper_rc/remote.py:191
↓ 1 callersFunctionasync_setup_platform
Set up platform.
custom_components/flipper_rc/remote.py:51
↓ 1 callersMethodasync_update
Update the device.
custom_components/flipper_rc/remote.py:159
↓ 1 callersFunctionbyte_lsb_to_msb
Reverse bit order in a byte: LSB-first wire encoding -> MSB-first (Midea docs convention).
tests/midea_analysis.py:79
↓ 1 callersFunctiondiff_samples
Print which bits differ across samples — helps map fields.
tests/midea_analysis.py:139
↓ 1 callersMethodget_uptime
Get the uptime of the Flipper Zero. Returns: str: Uptime as a string.
custom_components/flipper_rc/flipper_ir.py:450
↓ 1 callersFunctionis_subghz_storage_path
Return True for supported absolute Sub-GHz storage roots.
custom_components/flipper_rc/parsers.py:4
↓ 1 callersMethodlist_subghz_files
Recursively list Sub-GHz .sub files on Flipper storage.
custom_components/flipper_rc/flipper_ir.py:396
↓ 1 callersFunctionmain
()
custom_components/flipper_rc/flipper_ir.py:643
↓ 1 callersFunctionmain
()
tests/midea_analysis.py:164
↓ 1 callersFunctionparse_raw
(s)
tests/midea_analysis.py:46
↓ 1 callersFunctionrc_auto_encode
Encodes a string command into a list of pulse and gap durations based on the specified format. The input string `s` should be in the format
custom_components/flipper_rc/rc_encoder.py:1157
↓ 1 callersFunctionsplit_halves
Midea is two 48-bit messages with ~5100µs gap between them. Locate the inter-message gap in the middle of the pulse stream and split.
tests/midea_analysis.py:51
Method__init__
Initialize the config flow.
custom_components/flipper_rc/config_flow.py:29
Method__init__
(self, name, port, device_info_storage, device_info, codes_storage, codes, entry_id=None)
custom_components/flipper_rc/remote.py:75
Method__init__
Create a FlipperIR object. Args: port (str): Serial port to connect to (e.g., 'COM3' or '/dev/ttyACM0').
custom_components/flipper_rc/flipper_ir.py:14
Method__init__
(self)
custom_components/flipper_rc/flipper_ir.py:465
Method__init__
(self, remote_entity, file_path)
custom_components/flipper_rc/button.py:86
Functionair_conditioner_decode
(values)
custom_components/flipper_rc/rc_encoder.py:579
Functionair_conditioner_encode
(addr, cmd, double=0, closing=NEC_GAP_0)
custom_components/flipper_rc/rc_encoder.py:606
Methodasync_added_to_hass
(self)
custom_components/flipper_rc/remote.py:145
Methodasync_close
Safely close the connection
custom_components/flipper_rc/flipper_ir.py:30
Methodasync_delete_command
Delete a command from a device.
custom_components/flipper_rc/remote.py:384
Methodasync_learn_command
Learn a command to a device, or just show the received command code.
custom_components/flipper_rc/remote.py:298
Methodasync_press
Replay file when button is pressed.
custom_components/flipper_rc/button.py:108
Methodasync_send_command
Send a list of commands to a device.
custom_components/flipper_rc/remote.py:206
Functionasync_setup_entry
Set up the Flipper Zero Remote Control entry.
custom_components/flipper_rc/remote.py:46
Functionasync_setup_entry
Set up Flipper Zero Remote Control from a config entry.
custom_components/flipper_rc/__init__.py:13
Functionasync_setup_entry
Set up Sub-GHz file trigger buttons for a config entry.
custom_components/flipper_rc/button.py:23
Methodasync_step_port_auto_detected
Handle the port step.
custom_components/flipper_rc/config_flow.py:106
Methodasync_step_port_linux
Handle the port step.
custom_components/flipper_rc/config_flow.py:112
Methodasync_step_port_windows
Handle the port step.
custom_components/flipper_rc/config_flow.py:109
Methodasync_step_user
Handle a flow initialized by the user.
custom_components/flipper_rc/config_flow.py:38
Methodasync_turn_off
Turn the device off.
custom_components/flipper_rc/remote.py:183
Methodasync_turn_on
Turn the device on.
custom_components/flipper_rc/remote.py:179
Functionasync_unload_entry
Unload a config entry.
custom_components/flipper_rc/__init__.py:21
Methodasync_will_remove_from_hass
(self)
custom_components/flipper_rc/remote.py:149
Methodavailable
(self)
custom_components/flipper_rc/remote.py:96
Methodbusy
Check if the connection is busy. Returns: bool: True if busy, False otherwise.
custom_components/flipper_rc/flipper_ir.py:110
Methodconnected
Check if the connection to Flipper Zero is established. Returns: bool: True if connected, False otherwise.
custom_components/flipper_rc/flipper_ir.py:93
Methodconnected
Check if the connection to Flipper Zero is established. Returns: bool: True if connected, False otherwise.
custom_components/flipper_rc/flipper_ir.py:617
Methodconnection_lost
(self, exc)
custom_components/flipper_rc/flipper_ir.py:504
Methodconnection_made
(self, transport)
custom_components/flipper_rc/flipper_ir.py:481
Methoddata_received
Handle data received from the serial port.
custom_components/flipper_rc/flipper_ir.py:484
Functiondecode
Decodes a list of values into a sequence of bytes using Manchester encoding. Args: values (list of int): The list of values to decode
custom_components/flipper_rc/manchester.py:1
Methoddevice_info
(self)
custom_components/flipper_rc/remote.py:120
Methoddevice_info
(self)
custom_components/flipper_rc/button.py:96
Functiondistance_decode
Decode a sequence of pulses into bits based on provided timings and bit length. Args: pulses (list of int): The list of pulse length
custom_components/flipper_rc/pulse.py:18
Functiondistance_encode
Encode a list of bytes into pulses/gaps based on given timings. Args: values (list of int): List of byte values to encode. l
custom_components/flipper_rc/pulse.py:121
Functionencode
Encode a sequence of values into a series of pulses. Parameters: values (list of int): The values to encode. T (int): The base time
custom_components/flipper_rc/manchester.py:63
Functionevent_loop
Create an instance of the default event loop for the test module.
tests/test_subghz.py:21
Methodextra_state_attributes
(self)
custom_components/flipper_rc/remote.py:133
Methodextra_state_attributes
(self)
custom_components/flipper_rc/button.py:102
Methodhas_prompt
Check if the prompt is present in the remaining buffer. Note: This only checks the unprocessed buffer (data not yet split into li
custom_components/flipper_rc/flipper_ir.py:626
Functionkaseikyo_decode
(values)
custom_components/flipper_rc/rc_encoder.py:469
Functionkaseikyo_encode
(vendor_id, genre1, genre2, data, id)
custom_components/flipper_rc/rc_encoder.py:489
Methodlines_available
Returns the number of lines available in the buffer.
custom_components/flipper_rc/flipper_ir.py:475
next →1–100 of 219, ranked by callers