changeset 1488:ae7d65fce483

working theater_blaster config. 3 immediate repeats of volume moves only one step Ignore-this: b88ff1a108e37094c76bdb497b258ee9 darcs-hash:cc7279b2b4e367e48ac06bf35a606017ef5e4e7b
author drewp <drewp@bigasterisk.com>
date Mon, 20 Jan 2020 17:10:42 -0800
parents 9e3901240335
children a4fb4cc60ae1
files service/espNode/theater_blaster.yaml
diffstat 1 files changed, 99 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/service/espNode/theater_blaster.yaml	Mon Jan 20 17:10:42 2020 -0800
@@ -0,0 +1,99 @@
+esphome:
+  name: theater_blaster
+  platform: esp32
+  board: lolin32
+  build_path: build
+
+# MAC: 3c:71:bf:ab:6e:94
+
+wifi:
+  ssid: !secret wifi_ssid
+  password: !secret wifi_password
+  use_address: 10.2.0.38
+
+mqtt:
+  broker: '10.2.0.1'
+  port: 1883
+  username: ''
+  password: ''
+  on_message:
+    - topic: theater_blaster/ir_out
+      payload: "volume_up"
+      then:
+        - remote_transmitter.transmit_nec:
+            address: 0x4BB6
+            command: 0x40BF
+            repeat:
+              times: 3
+    - topic: theater_blaster/ir_out
+      payload: "volume_down"
+      then:
+        - remote_transmitter.transmit_nec:
+            address: 0x4BB6
+            command: 0xC03F
+            repeat:
+              times: 3
+    - topic: theater_blaster/ir_out
+      payload: "input_bd"
+      then:
+        - remote_transmitter.transmit_nec:
+            address: 0x4B36
+            command: 0x31CE
+    - topic: theater_blaster/ir_out
+      payload: "input_cbl"
+      then:
+        - remote_transmitter.transmit_nec:
+            address: 0x4BB6
+            command: 0x708F
+    - topic: theater_blaster/ir_out
+      payload: "input_game"
+      then:
+        - remote_transmitter.transmit_nec:
+            address: 0x4BB6
+            command: 0xB04F
+    - topic: theater_blaster/ir_out
+      payload: "input_pc"
+      then:
+        - remote_transmitter.transmit_nec:
+            address: 0x4BB6
+            command: 0x39C6
+            
+logger:
+  baud_rate: 115200
+  level: DEBUG
+  
+ota:
+
+
+remote_receiver:
+  -  id: ir_in
+     pin:
+       number: GPIO27
+       mode: INPUT
+       inverted: True
+     dump: nec
+  -  id: rf_in
+     pin: GPIO13
+     dump: all
+     # Settings to optimize recognition of RF devices
+     tolerance: 50%
+     filter: 250us
+     idle: 4ms
+     buffer_size: 2kb
+   
+remote_transmitter:
+  id: ir_out
+  pin: GPIO14
+  carrier_duty_percent: 50%
+
+  
+#13 rf recv
+#12 rf send
+#https://www.passion-radio.com/img/cms/wifi-kit-32-pinout.png
+
+  
+#on_...:
+#  - remote_transmitter.transmit_nec:
+#      address: 0x1234
+#      command: 0x78AB
+