mirror of
https://github.com/esphome/esphome.git
synced 2025-09-01 10:52:19 +01:00
Add rmt_channel to remote_transmitter and remote_receiver (#6497)
* Add rmt_channel to remote_transmitter and remote_receiver * Add codeowner * Add tests
This commit is contained in:
178
tests/components/remote_transmitter/common-buttons.yaml
Normal file
178
tests/components/remote_transmitter/common-buttons.yaml
Normal file
@@ -0,0 +1,178 @@
|
||||
button:
|
||||
- platform: template
|
||||
name: JVC Off
|
||||
id: living_room_lights_on
|
||||
on_press:
|
||||
remote_transmitter.transmit_jvc:
|
||||
data: 0x10EF
|
||||
- platform: template
|
||||
name: MagiQuest
|
||||
on_press:
|
||||
remote_transmitter.transmit_magiquest:
|
||||
wand_id: 0x01234567
|
||||
- platform: template
|
||||
name: NEC
|
||||
id: living_room_lights_off
|
||||
on_press:
|
||||
remote_transmitter.transmit_nec:
|
||||
address: 0x4242
|
||||
command: 0x8484
|
||||
- platform: template
|
||||
name: LG
|
||||
on_press:
|
||||
remote_transmitter.transmit_lg:
|
||||
data: 4294967295
|
||||
nbits: 28
|
||||
- platform: template
|
||||
name: Samsung
|
||||
on_press:
|
||||
remote_transmitter.transmit_samsung:
|
||||
data: 0xABCDEF
|
||||
- platform: template
|
||||
name: Samsung36
|
||||
on_press:
|
||||
remote_transmitter.transmit_samsung36:
|
||||
address: 0x0400
|
||||
command: 0x000E00FF
|
||||
- platform: template
|
||||
name: ToshibaAC
|
||||
on_press:
|
||||
- remote_transmitter.transmit_toshiba_ac:
|
||||
rc_code_1: 0xB24DBF4050AF
|
||||
rc_code_2: 0xD5660001003C
|
||||
- platform: template
|
||||
name: Sony
|
||||
on_press:
|
||||
remote_transmitter.transmit_sony:
|
||||
data: 0xABCDEF
|
||||
nbits: 12
|
||||
- platform: template
|
||||
name: Panasonic
|
||||
on_press:
|
||||
remote_transmitter.transmit_panasonic:
|
||||
address: 0x4004
|
||||
command: 0x1000BCD
|
||||
- platform: template
|
||||
name: Pioneer
|
||||
on_press:
|
||||
- remote_transmitter.transmit_pioneer:
|
||||
rc_code_1: 0xA556
|
||||
rc_code_2: 0xA506
|
||||
repeat:
|
||||
times: 2
|
||||
- platform: template
|
||||
name: RC Switch Raw
|
||||
on_press:
|
||||
remote_transmitter.transmit_rc_switch_raw:
|
||||
code: "00101001100111110101xxxx"
|
||||
protocol: 1
|
||||
- platform: template
|
||||
name: RC Switch Type A
|
||||
on_press:
|
||||
remote_transmitter.transmit_rc_switch_type_a:
|
||||
group: "11001"
|
||||
device: "01000"
|
||||
state: true
|
||||
protocol:
|
||||
pulse_length: 175
|
||||
sync: [1, 31]
|
||||
zero: [1, 3]
|
||||
one: [3, 1]
|
||||
inverted: false
|
||||
- platform: template
|
||||
name: RC Switch Type B
|
||||
on_press:
|
||||
remote_transmitter.transmit_rc_switch_type_b:
|
||||
address: 4
|
||||
channel: 2
|
||||
state: true
|
||||
- platform: template
|
||||
name: RC Switch Type C
|
||||
on_press:
|
||||
remote_transmitter.transmit_rc_switch_type_c:
|
||||
family: "a"
|
||||
group: 1
|
||||
device: 2
|
||||
state: true
|
||||
- platform: template
|
||||
name: RC Switch Type D
|
||||
on_press:
|
||||
remote_transmitter.transmit_rc_switch_type_d:
|
||||
group: "a"
|
||||
device: 2
|
||||
state: true
|
||||
- platform: template
|
||||
name: RC5
|
||||
on_press:
|
||||
remote_transmitter.transmit_rc5:
|
||||
address: 0x00
|
||||
command: 0x0B
|
||||
- platform: template
|
||||
name: RC5
|
||||
on_press:
|
||||
remote_transmitter.transmit_raw:
|
||||
code: [1000, -1000]
|
||||
- platform: template
|
||||
name: AEHA
|
||||
id: eaha_hitachi_climate_power_on
|
||||
on_press:
|
||||
remote_transmitter.transmit_aeha:
|
||||
address: 0x8008
|
||||
data:
|
||||
[
|
||||
0x00,
|
||||
0x02,
|
||||
0xFD,
|
||||
0xFF,
|
||||
0x00,
|
||||
0x33,
|
||||
0xCC,
|
||||
0x49,
|
||||
0xB6,
|
||||
0xC8,
|
||||
0x37,
|
||||
0x16,
|
||||
0xE9,
|
||||
0x00,
|
||||
0xFF,
|
||||
0x00,
|
||||
0xFF,
|
||||
0x00,
|
||||
0xFF,
|
||||
0x00,
|
||||
0xFF,
|
||||
0x00,
|
||||
0xFF,
|
||||
0xCA,
|
||||
0x35,
|
||||
0x8F,
|
||||
0x70,
|
||||
0x00,
|
||||
0xFF,
|
||||
0x00,
|
||||
0xFF,
|
||||
0x00,
|
||||
0xFF,
|
||||
0x00,
|
||||
0xFF,
|
||||
]
|
||||
- platform: template
|
||||
name: Haier
|
||||
on_press:
|
||||
remote_transmitter.transmit_haier:
|
||||
code:
|
||||
[
|
||||
0xA6,
|
||||
0xDA,
|
||||
0x00,
|
||||
0x00,
|
||||
0x40,
|
||||
0x40,
|
||||
0x00,
|
||||
0x80,
|
||||
0x00,
|
||||
0x00,
|
||||
0x00,
|
||||
0x00,
|
||||
0x05,
|
||||
]
|
8
tests/components/remote_transmitter/esp32-common.yaml
Normal file
8
tests/components/remote_transmitter/esp32-common.yaml
Normal file
@@ -0,0 +1,8 @@
|
||||
remote_transmitter:
|
||||
id: rcvr
|
||||
pin: ${pin}
|
||||
rmt_channel: ${rmt_channel}
|
||||
carrier_duty_percent: 50%
|
||||
|
||||
packages:
|
||||
buttons: !include common-buttons.yaml
|
@@ -0,0 +1,6 @@
|
||||
substitutions:
|
||||
pin: GPIO2
|
||||
rmt_channel: "1"
|
||||
|
||||
packages:
|
||||
common: !include esp32-common.yaml
|
6
tests/components/remote_transmitter/test.esp32-c3.yaml
Normal file
6
tests/components/remote_transmitter/test.esp32-c3.yaml
Normal file
@@ -0,0 +1,6 @@
|
||||
substitutions:
|
||||
pin: GPIO2
|
||||
rmt_channel: "1"
|
||||
|
||||
packages:
|
||||
common: !include esp32-common.yaml
|
6
tests/components/remote_transmitter/test.esp32-idf.yaml
Normal file
6
tests/components/remote_transmitter/test.esp32-idf.yaml
Normal file
@@ -0,0 +1,6 @@
|
||||
substitutions:
|
||||
pin: GPIO2
|
||||
rmt_channel: "2"
|
||||
|
||||
packages:
|
||||
common: !include esp32-common.yaml
|
@@ -0,0 +1,6 @@
|
||||
substitutions:
|
||||
pin: GPIO38
|
||||
rmt_channel: "3"
|
||||
|
||||
packages:
|
||||
common: !include esp32-common.yaml
|
6
tests/components/remote_transmitter/test.esp32.yaml
Normal file
6
tests/components/remote_transmitter/test.esp32.yaml
Normal file
@@ -0,0 +1,6 @@
|
||||
substitutions:
|
||||
pin: GPIO2
|
||||
rmt_channel: "2"
|
||||
|
||||
packages:
|
||||
common: !include esp32-common.yaml
|
7
tests/components/remote_transmitter/test.esp8266.yaml
Normal file
7
tests/components/remote_transmitter/test.esp8266.yaml
Normal file
@@ -0,0 +1,7 @@
|
||||
remote_transmitter:
|
||||
id: trns
|
||||
pin: GPIO5
|
||||
carrier_duty_percent: 50%
|
||||
|
||||
packages:
|
||||
buttons: !include common-buttons.yaml
|
Reference in New Issue
Block a user