1
0
mirror of https://github.com/esphome/esphome.git synced 2025-03-13 22:28:14 +00:00

[remote_base] NEC, tests

This commit is contained in:
Djordje 2025-02-21 23:15:20 +01:00
parent c1712a478f
commit 7de47fabfe
2 changed files with 14 additions and 9 deletions

View File

@ -17,15 +17,23 @@ button:
id: living_room_lights_off_default
on_press:
remote_transmitter.transmit_nec:
address: ${nec_address}
command: ${nec_command}
address: 0x4242
command: 0x8484
- platform: template
name: NEC Default 1 Repeat
id: living_room_lights_off_default_repeat
on_press:
remote_transmitter.transmit_nec:
address: 0x4242
command: 0x8484
repeats: 1
- platform: template
name: NEC Default 3 Repeats
id: living_room_lights_off_default_repeats
on_press:
remote_transmitter.transmit_nec:
address: ${nec_address}
command: ${nec_command}
address: 0x4242
command: 0x8484
repeats: 3
type: frame_with_repeats
- platform: template
@ -33,8 +41,8 @@ button:
id: living_room_lights_off_repeats_only
on_press:
remote_transmitter.transmit_nec:
address: ${nec_address}
command: ${nec_command}
address: 0x4242
command: 0x8484
repeats: 10
type: repeats_only
- platform: template

View File

@ -1,3 +0,0 @@
substitutions:
nec_address: "0x4242"
nec_command: "0x8484"