mirror of
https://github.com/esphome/esphome.git
synced 2025-03-16 15:48:16 +00:00
[remote_base] NEC, tests
This commit is contained in:
parent
c1712a478f
commit
7de47fabfe
@ -17,15 +17,23 @@ button:
|
|||||||
id: living_room_lights_off_default
|
id: living_room_lights_off_default
|
||||||
on_press:
|
on_press:
|
||||||
remote_transmitter.transmit_nec:
|
remote_transmitter.transmit_nec:
|
||||||
address: ${nec_address}
|
address: 0x4242
|
||||||
command: ${nec_command}
|
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
|
- platform: template
|
||||||
name: NEC Default 3 Repeats
|
name: NEC Default 3 Repeats
|
||||||
id: living_room_lights_off_default_repeats
|
id: living_room_lights_off_default_repeats
|
||||||
on_press:
|
on_press:
|
||||||
remote_transmitter.transmit_nec:
|
remote_transmitter.transmit_nec:
|
||||||
address: ${nec_address}
|
address: 0x4242
|
||||||
command: ${nec_command}
|
command: 0x8484
|
||||||
repeats: 3
|
repeats: 3
|
||||||
type: frame_with_repeats
|
type: frame_with_repeats
|
||||||
- platform: template
|
- platform: template
|
||||||
@ -33,8 +41,8 @@ button:
|
|||||||
id: living_room_lights_off_repeats_only
|
id: living_room_lights_off_repeats_only
|
||||||
on_press:
|
on_press:
|
||||||
remote_transmitter.transmit_nec:
|
remote_transmitter.transmit_nec:
|
||||||
address: ${nec_address}
|
address: 0x4242
|
||||||
command: ${nec_command}
|
command: 0x8484
|
||||||
repeats: 10
|
repeats: 10
|
||||||
type: repeats_only
|
type: repeats_only
|
||||||
- platform: template
|
- platform: template
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
substitutions:
|
|
||||||
nec_address: "0x4242"
|
|
||||||
nec_command: "0x8484"
|
|
Loading…
x
Reference in New Issue
Block a user