1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-01 19:02:18 +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:
Jesse Hills
2024-04-09 13:53:57 +12:00
committed by GitHub
parent 55c49281a2
commit c66b2c52c1
25 changed files with 383 additions and 33 deletions

View File

@@ -0,0 +1,18 @@
remote_receiver:
id: rcvr
pin: ${pin}
rmt_channel: ${rmt_channel}
dump: all
on_coolix:
then:
delay: !lambda "return x.first + x.second;"
on_rc_switch:
then:
delay: !lambda "return uint32_t(x.code) + x.protocol;"
binary_sensor:
- platform: remote_receiver
name: Panasonic Remote Input
panasonic:
address: 0x4004
command: 0x100BCBD

View File

@@ -0,0 +1,6 @@
substitutions:
pin: GPIO2
rmt_channel: "2"
packages:
common: !include esp32-common.yaml

View File

@@ -0,0 +1,6 @@
substitutions:
pin: GPIO2
rmt_channel: "2"
packages:
common: !include esp32-common.yaml

View File

@@ -0,0 +1,6 @@
substitutions:
pin: GPIO2
rmt_channel: "2"
packages:
common: !include esp32-common.yaml

View File

@@ -0,0 +1,6 @@
substitutions:
pin: GPIO38
rmt_channel: "5"
packages:
common: !include esp32-common.yaml

View File

@@ -0,0 +1,6 @@
substitutions:
pin: GPIO2
rmt_channel: "2"
packages:
common: !include esp32-common.yaml

View File

@@ -0,0 +1,17 @@
remote_receiver:
id: rcvr
pin: GPIO5
dump: all
on_coolix:
then:
delay: !lambda "return x.first + x.second;"
on_rc_switch:
then:
delay: !lambda "return uint32_t(x.code) + x.protocol;"
binary_sensor:
- platform: remote_receiver
name: Panasonic Remote Input
panasonic:
address: 0x4004
command: 0x100BCBD