Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ClusterM/flipper_rc
/ functions
Functions
219 in github.com/ClusterM/flipper_rc
⨍
Functions
219
◇
Types & classes
11
Function
midea_bytes_to_fields
Decode (a, b) bytes into a dict of (mode, temp, fan, power) fields. Returns a dict of recognized fields plus, for unrecognized bit patterns,
custom_components/flipper_rc/rc_encoder.py:948
Function
midea_decode
Decode a 48-bit Midea AC packet (with one repetition). Returns "a=0xXX,b=0xYY" on success. Raises ValueError if the signal does not match the
custom_components/flipper_rc/rc_encoder.py:759
Function
midea_encode
Encode a Midea AC command. Three mutually-exclusive parameter forms: Byte-level: pass `a` and `b` (raw payload bytes). Field-le
custom_components/flipper_rc/rc_encoder.py:1019
Function
mock_protocol
Create a mock FlipperProtocol.
tests/test_subghz.py:29
Function
mock_transport
Create a mock transport.
tests/test_subghz.py:42
Method
name
(self)
custom_components/flipper_rc/remote.py:104
Function
nec42_decode
(pulses)
custom_components/flipper_rc/rc_encoder.py:84
Function
nec42_encode
(addr, cmd)
custom_components/flipper_rc/rc_encoder.py:123
Function
nec42_ext_decode
(pulses)
custom_components/flipper_rc/rc_encoder.py:155
Function
nec42_ext_encode
(addr, cmd)
custom_components/flipper_rc/rc_encoder.py:185
Function
nec_decode
(values)
custom_components/flipper_rc/rc_encoder.py:49
Function
nec_encode
(addr, cmd)
custom_components/flipper_rc/rc_encoder.py:58
Function
nec_ext_decode
(values)
custom_components/flipper_rc/rc_encoder.py:68
Function
nec_ext_encode
(addr, cmd)
custom_components/flipper_rc/rc_encoder.py:75
Function
pioneer_decode
(values)
custom_components/flipper_rc/rc_encoder.py:547
Function
pioneer_encode
(addr, cmd)
custom_components/flipper_rc/rc_encoder.py:556
Method
port
(self)
custom_components/flipper_rc/remote.py:112
Function
rc5_decode
(values)
custom_components/flipper_rc/rc_encoder.py:281
Function
rc5_encode
(addr, cmd, toggle=None)
custom_components/flipper_rc/rc_encoder.py:292
Function
rc6_decode
(values)
custom_components/flipper_rc/rc_encoder.py:249
Function
rc6_encode
(addr, cmd, toggle=None)
custom_components/flipper_rc/rc_encoder.py:263
Function
rca_decode
(values)
custom_components/flipper_rc/rc_encoder.py:522
Function
rca_encode
(addr, cmd)
custom_components/flipper_rc/rc_encoder.py:529
Function
samsung32_decode
(pulsts)
custom_components/flipper_rc/rc_encoder.py:225
Function
samsung32_encode
(addr, cmd)
custom_components/flipper_rc/rc_encoder.py:234
Method
set_on_connection_lost
Set a callback to be called when the connection is lost.
custom_components/flipper_rc/flipper_ir.py:498
Method
should_poll
(self)
custom_components/flipper_rc/remote.py:116
Function
sirc15_decode
(values)
custom_components/flipper_rc/rc_encoder.py:417
Function
sirc15_encode
(addr, cmd, rep=SIRC_DEFAULT_REP)
custom_components/flipper_rc/rc_encoder.py:424
Function
sirc20_decode
(values)
custom_components/flipper_rc/rc_encoder.py:433
Function
sirc20_encode
(addr, cmd, rep=SIRC_DEFAULT_REP)
custom_components/flipper_rc/rc_encoder.py:440
Function
sirc_decode
(values)
custom_components/flipper_rc/rc_encoder.py:401
Function
sirc_encode
(addr, cmd, rep=SIRC_DEFAULT_REP)
custom_components/flipper_rc/rc_encoder.py:408
Method
state
(self)
custom_components/flipper_rc/remote.py:100
Method
supported_features
(self)
custom_components/flipper_rc/remote.py:142
Method
test_accepts_non_tx_with_prefix
(self)
tests/test_subghz.py:256
Method
test_accepts_non_tx_without_prefix
(self)
tests/test_subghz.py:262
Method
test_accepts_valid_subghz_tx_with_frequency
(self)
tests/test_subghz.py:233
Method
test_accepts_valid_subghz_tx_with_transmitting
(self)
tests/test_subghz.py:239
Function
test_auto_decode_falls_back_to_ac_for_non_midea_vendor
For Gorenje/MDV-style packets (vendor != 0xB2), midea must be skipped and `ac` should still pick them up.
tests/test_midea.py:159
Function
test_auto_decode_picks_midea_for_real_sample
rc_auto_decode should pick midea (not ac) for a 0xB2-vendor packet.
tests/test_midea.py:151
Function
test_auto_encode_round_trip
rc_auto_encode("midea:a=0xXX,b=0xYY") must produce a signal that rc_auto_decode reads back as the same midea string.
tests/test_midea.py:173
Function
test_button_encode_rejects_combination_with_state_params
()
tests/test_midea.py:368
Function
test_button_encode_rejects_pa_pb_sleep
()
tests/test_midea.py:375
Function
test_button_encode_rejects_unknown
()
tests/test_midea.py:363
Function
test_button_encode_round_trip
Each named button encodes to a 199-element signal whose payload matches the captured reference values.
tests/test_midea.py:354
Function
test_bytes_to_fields_recognizes_power_off
()
tests/test_midea.py:280
Function
test_bytes_to_fields_round_trip_for_all_known_combos
For every (mode, temp, fan) combo we know how to encode, the bytes decoded back must yield the same fields.
tests/test_midea.py:250
Function
test_decode_real_power_off_sample
()
tests/test_midea.py:47
Function
test_decode_rejects_broken_inverse_pair
Tamper with B3 so the inverse-pair invariant fails.
tests/test_midea.py:70
Function
test_decode_rejects_non_midea_vendor
A pure Gorenje/MDV packet (no 0xB2 vendor byte) must NOT decode as Midea.
tests/test_midea.py:55
Function
test_decode_special_vendor_known_button
A 0xB5-vendor packet whose bytes match a known button decodes as `button=name`.
tests/test_midea.py:382
Function
test_decode_special_vendor_unknown_button
A 0xB5-vendor packet whose bytes don't match any known button falls back to `button=unknown,a=...,b=...`.
tests/test_midea.py:390
Function
test_decode_three_identical_frames_returns_simple_form
If all 3 packets are identical (no preamble), no `pa`/`pb` annotation.
tests/test_midea.py:98
Function
test_decode_two_frame_signal_extracts_command_and_preamble
A 3-packet signal (preamble + command + command) decodes both bytes of the actual command and exposes the preamble as `pa`/`pb`.
tests/test_midea.py:84
Function
test_encode_rejects_out_of_range
()
tests/test_midea.py:144
Function
test_encode_rejects_partial_preamble
()
tests/test_midea.py:115
Function
test_encode_round_trip_arbitrary_payload
()
tests/test_midea.py:128
Function
test_encode_round_trip_power_off_payload
Encoding the real Power off payload should produce a packet that decodes back to the same bytes.
tests/test_midea.py:134
Function
test_encode_round_trip_with_preamble
()
tests/test_midea.py:109
Function
test_encode_round_trip_zero_payload
()
tests/test_midea.py:122
Function
test_fields_to_bytes_defaults
Defaults: mode=cool, temp=22, fan=auto, power=on.
tests/test_midea.py:235
Function
test_fields_to_bytes_matches_real_captures
(mode, temp, fan, expected_a, expected_b)
tests/test_midea.py:217
Function
test_fields_to_bytes_power_off_returns_magic_bytes
()
tests/test_midea.py:225
Function
test_fields_to_bytes_rejects_bad_input
()
tests/test_midea.py:241
Method
test_handles_empty_lines
(self)
tests/test_subghz.py:274
Method
test_invalid_int_path
(self)
tests/test_subghz.py:59
Method
test_invalid_no_slash
(self)
tests/test_subghz.py:62
Function
test_midea_encode_field_form_matches_byte_form
midea:mode=cool,temp=22,fan=auto,power=on must produce bytes identical to midea:a=0xBF,b=0x70.
tests/test_midea.py:284
Function
test_midea_encode_rejects_mixed_forms
()
tests/test_midea.py:292
Function
test_midea_encode_sleep_off_omits_preamble
()
tests/test_midea.py:304
Function
test_midea_encode_sleep_shorthand_matches_explicit_preamble
midea:mode=cool,sleep=on must equal midea:a=...,b=...,pa=0xE0,pb=0x03.
tests/test_midea.py:297
Function
test_midea_encode_sleep_with_pa_raises
()
tests/test_midea.py:310
Method
test_non_string_returns_false
(self)
tests/test_subghz.py:65
Method
test_noop_when_no_transport
(self, mock_protocol)
tests/test_subghz.py:301
Method
test_noop_when_transport_closing
(self, mock_protocol, mock_transport)
tests/test_subghz.py:309
Function
test_parse_key_value_payload_splits_once
()
tests/test_parsers.py:17
Function
test_parse_subghz_command_key_value_includes_original_reason
()
tests/test_parsers.py:56
Function
test_parse_subghz_command_key_value_success
()
tests/test_parsers.py:24
Function
test_parse_subghz_command_positional_success
()
tests/test_parsers.py:35
Function
test_parse_subghz_command_rejects_bad_antenna
()
tests/test_parsers.py:46
Function
test_parse_subghz_command_rejects_non_positive_frequency
()
tests/test_parsers.py:51
Function
test_parse_subghz_file_command_key_value_includes_original_reason
()
tests/test_parsers.py:89
Function
test_parse_subghz_file_command_key_value_success
()
tests/test_parsers.py:61
Function
test_parse_subghz_file_command_positional_success
()
tests/test_parsers.py:70
Function
test_parse_subghz_file_command_rejects_non_ext_path
()
tests/test_parsers.py:79
Function
test_parse_subghz_file_command_rejects_whitespace_path
()
tests/test_parsers.py:84
Function
test_rc_auto_encode_button_string
rc_auto_encode threads `button=turbo` to midea_encode and the signal round-trips.
tests/test_midea.py:398
Function
test_rc_auto_encode_button_swing_uses_state_vendor
Swing toggle uses the regular state-command vendor (0xB2), so its encoded bytes must match the byte-level form `a=0x6B,b=0xE0`.
tests/test_midea.py:406
Function
test_rc_auto_encode_field_form_round_trip
rc_auto_encode must accept field-level midea strings and produce a signal that decodes to the matching a/b bytes.
tests/test_midea.py:322
Function
test_rc_auto_encode_sleep_string
rc_auto_encode must thread the `sleep=on` string through to midea_encode and produce the 3-frame signal with the standard preamble.
tests/test_midea.py:333
Function
test_real_turbo_capture_decodes_as_button
The real raw signal captured for the Turbo button on the EAS Electric remote must now decode as `button=turbo` (previously it decoded as `ac:a
tests/test_midea.py:414
Method
test_rejects_any_command_with_error
(self)
tests/test_subghz.py:268
Method
test_rejects_invalid_antenna
(self, mock_protocol, mock_transport)
tests/test_subghz.py:130
Method
test_rejects_invalid_antenna
(self, mock_protocol, mock_transport)
tests/test_subghz.py:220
Method
test_rejects_key_over_max
(self, mock_protocol, mock_transport)
tests/test_subghz.py:100
Method
test_rejects_negative_frequency
(self, mock_protocol, mock_transport)
tests/test_subghz.py:120
Method
test_rejects_negative_key
(self, mock_protocol, mock_transport)
tests/test_subghz.py:90
Method
test_rejects_non_ext_path
(self, mock_protocol, mock_transport)
tests/test_subghz.py:180
Method
test_rejects_path_with_newline
(self, mock_protocol, mock_transport)
tests/test_subghz.py:190
← previous
next →
101–200 of 219, ranked by callers