MCPcopy Create free account

hub / github.com/ClusterM/flipper_rc / functions

Functions219 in github.com/ClusterM/flipper_rc

Functionmidea_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
Functionmidea_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
Functionmidea_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
Functionmock_protocol
Create a mock FlipperProtocol.
tests/test_subghz.py:29
Functionmock_transport
Create a mock transport.
tests/test_subghz.py:42
Methodname
(self)
custom_components/flipper_rc/remote.py:104
Functionnec42_decode
(pulses)
custom_components/flipper_rc/rc_encoder.py:84
Functionnec42_encode
(addr, cmd)
custom_components/flipper_rc/rc_encoder.py:123
Functionnec42_ext_decode
(pulses)
custom_components/flipper_rc/rc_encoder.py:155
Functionnec42_ext_encode
(addr, cmd)
custom_components/flipper_rc/rc_encoder.py:185
Functionnec_decode
(values)
custom_components/flipper_rc/rc_encoder.py:49
Functionnec_encode
(addr, cmd)
custom_components/flipper_rc/rc_encoder.py:58
Functionnec_ext_decode
(values)
custom_components/flipper_rc/rc_encoder.py:68
Functionnec_ext_encode
(addr, cmd)
custom_components/flipper_rc/rc_encoder.py:75
Functionpioneer_decode
(values)
custom_components/flipper_rc/rc_encoder.py:547
Functionpioneer_encode
(addr, cmd)
custom_components/flipper_rc/rc_encoder.py:556
Methodport
(self)
custom_components/flipper_rc/remote.py:112
Functionrc5_decode
(values)
custom_components/flipper_rc/rc_encoder.py:281
Functionrc5_encode
(addr, cmd, toggle=None)
custom_components/flipper_rc/rc_encoder.py:292
Functionrc6_decode
(values)
custom_components/flipper_rc/rc_encoder.py:249
Functionrc6_encode
(addr, cmd, toggle=None)
custom_components/flipper_rc/rc_encoder.py:263
Functionrca_decode
(values)
custom_components/flipper_rc/rc_encoder.py:522
Functionrca_encode
(addr, cmd)
custom_components/flipper_rc/rc_encoder.py:529
Functionsamsung32_decode
(pulsts)
custom_components/flipper_rc/rc_encoder.py:225
Functionsamsung32_encode
(addr, cmd)
custom_components/flipper_rc/rc_encoder.py:234
Methodset_on_connection_lost
Set a callback to be called when the connection is lost.
custom_components/flipper_rc/flipper_ir.py:498
Methodshould_poll
(self)
custom_components/flipper_rc/remote.py:116
Functionsirc15_decode
(values)
custom_components/flipper_rc/rc_encoder.py:417
Functionsirc15_encode
(addr, cmd, rep=SIRC_DEFAULT_REP)
custom_components/flipper_rc/rc_encoder.py:424
Functionsirc20_decode
(values)
custom_components/flipper_rc/rc_encoder.py:433
Functionsirc20_encode
(addr, cmd, rep=SIRC_DEFAULT_REP)
custom_components/flipper_rc/rc_encoder.py:440
Functionsirc_decode
(values)
custom_components/flipper_rc/rc_encoder.py:401
Functionsirc_encode
(addr, cmd, rep=SIRC_DEFAULT_REP)
custom_components/flipper_rc/rc_encoder.py:408
Methodstate
(self)
custom_components/flipper_rc/remote.py:100
Methodsupported_features
(self)
custom_components/flipper_rc/remote.py:142
Methodtest_accepts_non_tx_with_prefix
(self)
tests/test_subghz.py:256
Methodtest_accepts_non_tx_without_prefix
(self)
tests/test_subghz.py:262
Methodtest_accepts_valid_subghz_tx_with_frequency
(self)
tests/test_subghz.py:233
Methodtest_accepts_valid_subghz_tx_with_transmitting
(self)
tests/test_subghz.py:239
Functiontest_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
Functiontest_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
Functiontest_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
Functiontest_button_encode_rejects_combination_with_state_params
()
tests/test_midea.py:368
Functiontest_button_encode_rejects_pa_pb_sleep
()
tests/test_midea.py:375
Functiontest_button_encode_rejects_unknown
()
tests/test_midea.py:363
Functiontest_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
Functiontest_bytes_to_fields_recognizes_power_off
()
tests/test_midea.py:280
Functiontest_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
Functiontest_decode_real_power_off_sample
()
tests/test_midea.py:47
Functiontest_decode_rejects_broken_inverse_pair
Tamper with B3 so the inverse-pair invariant fails.
tests/test_midea.py:70
Functiontest_decode_rejects_non_midea_vendor
A pure Gorenje/MDV packet (no 0xB2 vendor byte) must NOT decode as Midea.
tests/test_midea.py:55
Functiontest_decode_special_vendor_known_button
A 0xB5-vendor packet whose bytes match a known button decodes as `button=name`.
tests/test_midea.py:382
Functiontest_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
Functiontest_decode_three_identical_frames_returns_simple_form
If all 3 packets are identical (no preamble), no `pa`/`pb` annotation.
tests/test_midea.py:98
Functiontest_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
Functiontest_encode_rejects_out_of_range
()
tests/test_midea.py:144
Functiontest_encode_rejects_partial_preamble
()
tests/test_midea.py:115
Functiontest_encode_round_trip_arbitrary_payload
()
tests/test_midea.py:128
Functiontest_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
Functiontest_encode_round_trip_with_preamble
()
tests/test_midea.py:109
Functiontest_encode_round_trip_zero_payload
()
tests/test_midea.py:122
Functiontest_fields_to_bytes_defaults
Defaults: mode=cool, temp=22, fan=auto, power=on.
tests/test_midea.py:235
Functiontest_fields_to_bytes_matches_real_captures
(mode, temp, fan, expected_a, expected_b)
tests/test_midea.py:217
Functiontest_fields_to_bytes_power_off_returns_magic_bytes
()
tests/test_midea.py:225
Functiontest_fields_to_bytes_rejects_bad_input
()
tests/test_midea.py:241
Methodtest_handles_empty_lines
(self)
tests/test_subghz.py:274
Methodtest_invalid_int_path
(self)
tests/test_subghz.py:59
Methodtest_invalid_no_slash
(self)
tests/test_subghz.py:62
Functiontest_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
Functiontest_midea_encode_rejects_mixed_forms
()
tests/test_midea.py:292
Functiontest_midea_encode_sleep_off_omits_preamble
()
tests/test_midea.py:304
Functiontest_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
Functiontest_midea_encode_sleep_with_pa_raises
()
tests/test_midea.py:310
Methodtest_non_string_returns_false
(self)
tests/test_subghz.py:65
Methodtest_noop_when_no_transport
(self, mock_protocol)
tests/test_subghz.py:301
Methodtest_noop_when_transport_closing
(self, mock_protocol, mock_transport)
tests/test_subghz.py:309
Functiontest_parse_key_value_payload_splits_once
()
tests/test_parsers.py:17
Functiontest_parse_subghz_command_key_value_includes_original_reason
()
tests/test_parsers.py:56
Functiontest_parse_subghz_command_key_value_success
()
tests/test_parsers.py:24
Functiontest_parse_subghz_command_positional_success
()
tests/test_parsers.py:35
Functiontest_parse_subghz_command_rejects_bad_antenna
()
tests/test_parsers.py:46
Functiontest_parse_subghz_command_rejects_non_positive_frequency
()
tests/test_parsers.py:51
Functiontest_parse_subghz_file_command_key_value_includes_original_reason
()
tests/test_parsers.py:89
Functiontest_parse_subghz_file_command_key_value_success
()
tests/test_parsers.py:61
Functiontest_parse_subghz_file_command_positional_success
()
tests/test_parsers.py:70
Functiontest_parse_subghz_file_command_rejects_non_ext_path
()
tests/test_parsers.py:79
Functiontest_parse_subghz_file_command_rejects_whitespace_path
()
tests/test_parsers.py:84
Functiontest_rc_auto_encode_button_string
rc_auto_encode threads `button=turbo` to midea_encode and the signal round-trips.
tests/test_midea.py:398
Functiontest_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
Functiontest_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
Functiontest_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
Functiontest_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
Methodtest_rejects_any_command_with_error
(self)
tests/test_subghz.py:268
Methodtest_rejects_invalid_antenna
(self, mock_protocol, mock_transport)
tests/test_subghz.py:130
Methodtest_rejects_invalid_antenna
(self, mock_protocol, mock_transport)
tests/test_subghz.py:220
Methodtest_rejects_key_over_max
(self, mock_protocol, mock_transport)
tests/test_subghz.py:100
Methodtest_rejects_negative_frequency
(self, mock_protocol, mock_transport)
tests/test_subghz.py:120
Methodtest_rejects_negative_key
(self, mock_protocol, mock_transport)
tests/test_subghz.py:90
Methodtest_rejects_non_ext_path
(self, mock_protocol, mock_transport)
tests/test_subghz.py:180
Methodtest_rejects_path_with_newline
(self, mock_protocol, mock_transport)
tests/test_subghz.py:190
← previousnext →101–200 of 219, ranked by callers