Added esphome files
This commit is contained in:
90
esphome/globebulb2.yaml
Normal file
90
esphome/globebulb2.yaml
Normal file
@@ -0,0 +1,90 @@
|
||||
esphome:
|
||||
name: globe_bulb_2
|
||||
platform: ESP8266
|
||||
board: esp01_1m
|
||||
|
||||
wifi:
|
||||
networks:
|
||||
- ssid: !secret "wifi_ssid"
|
||||
password: !secret "wifi_pass"
|
||||
- ssid: "Jen B"
|
||||
password: "shae1234"
|
||||
|
||||
ap:
|
||||
ssid: "globe_bulb_2_fallback"
|
||||
password: "Fallback@!"
|
||||
|
||||
captive_portal:
|
||||
|
||||
|
||||
# Enable logging
|
||||
logger:
|
||||
|
||||
# Enable Home Assistant API
|
||||
api:
|
||||
|
||||
# mqtt:
|
||||
# broker: 192.168.0.30
|
||||
# port: 1884
|
||||
|
||||
ota:
|
||||
|
||||
web_server:
|
||||
port: 80
|
||||
|
||||
# sensors
|
||||
sensor:
|
||||
# signal wifi
|
||||
- platform: wifi_signal
|
||||
name: globe_bulb_2_signal
|
||||
update_interval: 15s
|
||||
|
||||
# bulb ip
|
||||
text_sensor:
|
||||
- platform: wifi_info
|
||||
ip_address:
|
||||
name: globe_bulb_2_wifi
|
||||
|
||||
output:
|
||||
- platform: esp8266_pwm
|
||||
id: output_green
|
||||
pin: GPIO12
|
||||
#max_power: 0.7
|
||||
|
||||
- platform: esp8266_pwm
|
||||
id: output_red
|
||||
pin: GPIO4
|
||||
#max_power: 0.7
|
||||
|
||||
- platform: esp8266_pwm
|
||||
id: output_blue
|
||||
pin: GPIO14
|
||||
#max_power: 0.7
|
||||
|
||||
- platform: esp8266_pwm
|
||||
id: output_wwhite
|
||||
pin: GPIO13
|
||||
#max_power: 0.65
|
||||
|
||||
- platform: esp8266_pwm
|
||||
id: output_cwhite
|
||||
pin: GPIO5
|
||||
#max_power: 0.65
|
||||
|
||||
light:
|
||||
- platform: rgbww
|
||||
name: "globe_bulb_2"
|
||||
id: light_rgb
|
||||
red: output_red
|
||||
green: output_green
|
||||
blue: output_blue
|
||||
cold_white: output_cwhite
|
||||
warm_white: output_wwhite
|
||||
cold_white_color_temperature: 5000 K
|
||||
warm_white_color_temperature: 2000 K
|
||||
effects:
|
||||
- strobe:
|
||||
- flicker:
|
||||
- random:
|
||||
# Ensure the light turns on by default if the physical switch is actuated.
|
||||
#restore_mode: ALWAYS_ON
|
||||
Reference in New Issue
Block a user