Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #This is just an example of how the code should look like in the end.
- esphome:
- name: rgbw-all-in-one-controller
- friendly_name: RGBW all-in-one controller
- esp32:
- board: esp32dev
- framework:
- type: arduino
- # Enable logging
- logger:
- # Enable Home Assistant API
- api:
- encryption:
- key: "generated_automatically"
- ota:
- password: "generated_automatically"
- wifi:
- ssid: your_wifi_ssid
- password: your_wifi_password
- manual_ip:
- # Set this to the IP of the ESP
- static_ip: 192.168.1.96
- # Set this to the IP address of the router. Often ends with .1
- gateway: 192.168.1.1
- # The subnet of the network. 255.255.255.0 works for most home networks.
- subnet: 255.255.255.0
- # Enable fallback hotspot (captive portal) in case wifi connection fails
- ap:
- ssid: "Rgbw-All-In-One-Controller"
- password: "generated_automatically"
- captive_portal:
- output:
- - platform: ledc
- pin: 26
- id: red_output
- - platform: ledc
- pin: 18
- id: green_output
- - platform: ledc
- pin: 19
- id: blue_output
- - platform: ledc
- pin: 23
- id: white_output
- light:
- - platform: rgbw
- name: "LED strip"
- red: red_output
- green: green_output
- blue: blue_output
- white: white_output
- color_interlock: true
- i2c:
- sda: GPIO21
- scl: GPIO22
- scan: true
- sensor:
- - platform: sht3xd
- temperature:
- name: "Temperature"
- humidity:
- name: "Humidity"
- address: 0x44
- update_interval: 5s
- - platform: bh1750
- name: "Illuminance"
- address: 0x23
- update_interval: 5s
- binary_sensor:
- - platform: gpio
- pin: 16
- name: "Motion 1"
- device_class: motion
- - platform: gpio
- pin: 17
- name: "Motion 2"
- device_class: motion
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement