Advertisement
gio_aggiustatutto

Code to be added below the one provided by ESPHome

Feb 22nd, 2025
348
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.87 KB | None | 0 0
  1. output:
  2.   - platform: ledc
  3.     pin: 26
  4.     id: red_output
  5.  
  6.   - platform: ledc
  7.     pin: 18
  8.     id: green_output
  9.  
  10.   - platform: ledc
  11.     pin: 19
  12.     id: blue_output
  13.  
  14.   - platform: ledc
  15.     pin: 23
  16.     id: white_output
  17.  
  18. light:
  19.   - platform: rgbw
  20.     name: "LED strip"
  21.     red: red_output
  22.     green: green_output
  23.     blue: blue_output
  24.     white: white_output
  25.     color_interlock: true
  26.  
  27. i2c:
  28.   sda: GPIO21
  29.   scl: GPIO22
  30.   scan: true
  31.  
  32. sensor:
  33.   - platform: sht3xd
  34.     temperature:
  35.       name: "Temperature"
  36.     humidity:
  37.       name: "Humidity"
  38.     address: 0x44
  39.     update_interval: 5s
  40.  
  41.   - platform: bh1750
  42.     name: "Illuminance"
  43.     address: 0x23
  44.     update_interval: 5s
  45.  
  46. binary_sensor:
  47.   - platform: gpio
  48.     pin: 16
  49.     name: "Motion 1"
  50.     device_class: motion
  51.  
  52.   - platform: gpio
  53.     pin: 17
  54.     name: "Motion 2"
  55.     device_class: motion
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement