Guest User

Untitled

a guest
Aug 21st, 2019
66
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Enable logging
  2. logger:
  3.  
  4. # Enable Home Assistant API
  5. api:
  6.  
  7. ota:
  8.  
  9. output:
  10. - platform: esp8266_pwm
  11. pin: 12
  12. frequency: 1000 Hz
  13. id: pwm_b
  14. - platform: esp8266_pwm
  15. pin: 13
  16. frequency: 1000 Hz
  17. id: pwm_g
  18. - platform: esp8266_pwm
  19. pin: 15
  20. frequency: 1000 Hz
  21. id: pwm_r
  22. - platform: esp8266_pwm
  23. pin: 14
  24. frequency: 1000 Hz
  25. id: pwm_w
  26. light:
  27. - platform: rgbw
  28. name: "H801 Light"
  29. red: pwm_r
  30. green: pwm_g
  31. blue: pwm_b
  32. white: pwm_w
  33.  
  34.  
  35. remote_receiver:
  36. pin:
  37. number: 2
  38. inverted: yes
  39. dump: all
  40.  
  41. binary_sensor:
  42. - platform: remote_receiver
  43. name: "nec_green"
  44. id: green
  45. nec:
  46. address: 0x00FF
  47. command: 0x9A65
  48.  
  49. - platform: remote_receiver
  50. name: "nec_blue"
  51. id: blue
  52. nec:
  53. address: 0x00FF
  54. command: 0xA25D
  55. on_press:
  56. then:
  57. - lambda: |-
  58. if (id(green) > 0) {
  59. // global value is greater than 5
  60. id(pwm_g.turn.on);
  61. } else if {
  62. (id(blue) > 0)
  63. id
RAW Paste Data