From 009d70ef6d8801557066177aa689a27d49ed3683 Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Fri, 22 Mar 2024 15:10:22 -0400 Subject: [PATCH] Add IR controller for wood shop air filter --- woodshop-air-filter-controller.yaml | 56 +++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 woodshop-air-filter-controller.yaml diff --git a/woodshop-air-filter-controller.yaml b/woodshop-air-filter-controller.yaml new file mode 100644 index 0000000..d35d031 --- /dev/null +++ b/woodshop-air-filter-controller.yaml @@ -0,0 +1,56 @@ +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;'