Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Enable logging
- logger:
- # Enable Home Assistant API
- api:
- ota:
- output:
- - platform: esp8266_pwm
- pin: 12
- frequency: 1000 Hz
- id: pwm_b
- - platform: esp8266_pwm
- pin: 13
- frequency: 1000 Hz
- id: pwm_g
- - platform: esp8266_pwm
- pin: 15
- frequency: 1000 Hz
- id: pwm_r
- - platform: esp8266_pwm
- pin: 14
- frequency: 1000 Hz
- id: pwm_w
- light:
- - platform: rgbw
- name: "H801 Light"
- red: pwm_r
- green: pwm_g
- blue: pwm_b
- white: pwm_w
- remote_receiver:
- pin:
- number: 2
- inverted: yes
- dump: all
- binary_sensor:
- - platform: remote_receiver
- name: "nec_green"
- id: green
- nec:
- address: 0x00FF
- command: 0x9A65
- - platform: remote_receiver
- name: "nec_blue"
- id: blue
- nec:
- address: 0x00FF
- command: 0xA25D
- on_press:
- then:
- - lambda: |-
- if (id(green) > 0) {
- // global value is greater than 5
- id(pwm_g.turn.on);
- } else if {
- (id(blue) > 0)
- id
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement