57 lines
2.3 KiB
YAML
57 lines
2.3 KiB
YAML
|
substitutions:
|
||
|
node_name: "cms-woodshop-air-filter"
|
||
|
node_verbose_name: "Wood Shop air filter controller"
|
||
|
|
||
|
packages:
|
||
|
cms: !include packages/cms-general.yaml
|
||
|
|
||
|
esp32:
|
||
|
board: lolin_s2_mini
|
||
|
|
||
|
status_led:
|
||
|
pin: GPIO15
|
||
|
|
||
|
remote_transmitter:
|
||
|
pin: GPIO10
|
||
|
# Infrared remotes use a 50% carrier signal
|
||
|
carrier_duty_percent: 50%
|
||
|
|
||
|
|
||
|
# Controls for Delta Air Cleaner #50-875
|
||
|
# IR data generated using irptransmogrifier included in RMIR v3.0.13,
|
||
|
# using information from this thread:
|
||
|
# http://www.hifi-remote.com/forums/viewtopic.php?t=102988
|
||
|
# specifically this update file:
|
||
|
# http://www.hifi-remote.com/forums/dload.php?action=file&file_id=26460
|
||
|
# repeats added to approximate the original learned codes, probably not necessary
|
||
|
button:
|
||
|
- platform: template
|
||
|
name: Time
|
||
|
on_press:
|
||
|
- remote_transmitter.transmit_pronto:
|
||
|
# ./irptransmogrifier.sh render F12x --parameters D=3,S=1,E=1,F=17 --pronto
|
||
|
data: 0000 006D 0000 000C 0030 0010 0030 0010 0010 0030 0030 0010 0030 0010 0010 0030 0010 0030 0010 0030 0030 0010 0010 0030 0010 0030 0010 0130
|
||
|
|
||
|
- platform: template
|
||
|
name: Start/Stop
|
||
|
on_press:
|
||
|
- remote_transmitter.transmit_pronto:
|
||
|
# ./irptransmogrifier.sh render F12x --parameters D=3,S=1,E=1,F=129 --number-repeats 2 --pronto
|
||
|
data: 0000 006D 0024 0000 0030 0010 0030 0010 0010 0030 0030 0010 0030 0010 0010 0030 0010 0030 0010 0030 0010 0030 0010 0030 0010 0030 0030 0110 0030 0010 0030 0010 0010 0030 0030 0010 0030 0010 0010 0030 0010 0030 0010 0030 0010 0030 0010 0030 0010 0030 0030 0110 0030 0010 0030 0010 0010 0030 0030 0010 0030 0010 0010 0030 0010 0030 0010 0030 0010 0030 0010 0030 0010 0030 0010 0130
|
||
|
|
||
|
- platform: template
|
||
|
name: Speed
|
||
|
on_press:
|
||
|
- remote_transmitter.transmit_pronto:
|
||
|
# ./irptransmogrifier.sh render F12x --parameters D=3,S=1,E=1,F=65 --number-repeats 1 --pronto
|
||
|
data: 0000 006D 0018 0000 0030 0010 0030 0010 0010 0030 0030 0010 0030 0010 0010 0030 0010 0030 0010 0030 0010 0030 0010 0030 0030 0010 0010 0130 0030 0010 0030 0010 0010 0030 0030 0010 0030 0010 0010 0030 0010 0030 0010 0030 0010 0030 0010 0030 0010 0030 0010 0130
|
||
|
|
||
|
api:
|
||
|
services:
|
||
|
- service: transmit_ir_pronto
|
||
|
variables:
|
||
|
data: string
|
||
|
then:
|
||
|
- remote_transmitter.transmit_pronto:
|
||
|
data: !lambda 'return data;'
|