Advertisement
Guest User

esp IR gateway

a guest
Apr 8th, 2020
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.96 KB | None | 0 0
  1. esphome:
  2.   name: irgatewaywemos
  3.   platform: ESP8266
  4.   board: d1_mini
  5.  
  6. wifi:
  7.   ssid: "aikrana"
  8.   password: "RogerrogerAnA247"
  9.  
  10.   # Enable fallback hotspot (captive portal) in case wifi connection fails
  11.   ap:
  12.     ssid: "Irgatewaywemos Fallback Hotspot"
  13.     password: "tomasyempar"
  14.  
  15. captive_portal:
  16. # Enable logging
  17. logger:
  18. # Receptor IR
  19. remote_receiver:
  20.   pin:
  21.     number: GPIO13
  22.     inverted: yes
  23.     mode: INPUT_PULLUP
  24.   dump: all
  25. # Emisor IR
  26. remote_transmitter:
  27.   pin: GPIO12
  28.   carrier_duty_percent: 50%
  29.  
  30. # Enable Home Assistant API
  31. api:
  32.   services:
  33.     - service: send_samsung_command
  34.       variables:
  35.         my_command: int
  36.       then:
  37.         - remote_transmitter.transmit_samsung:
  38.             data: !lambda 'return my_command;'
  39.     - service: send_lg_command
  40.       variables:
  41.         my_command: int
  42.       then:
  43.         - remote_transmitter.transmit_lg:
  44.             data: !lambda 'return my_command;'
  45.  
  46. # OTA update
  47. ota:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement