Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- esphome:
- name: livingroom-window
- friendly_name: Livingroom Window
- esp32:
- board: esp32-c3-devkitm-1
- framework:
- type: esp-idf
- # Enable logging
- logger:
- # Enable Home Assistant API
- api:
- encryption:
- key: "FRGhDf6VzOVCFhbTA18dgY5n+bI2s8r+A5P32R5fyQQ="
- ota:
- - platform: esphome
- password: "4f33a31bf0a0ae5700d38c02e7f50336"
- wifi:
- # ssid: !secret wifi_ssid
- # password: !secret wifi_password
- improv_serial:
- captive_portal:
- web_server:
- port: 80
- version: 3
- # auth:
- # username:
- # password:
- text_sensor:
- - platform: sun
- name: Sun Next Sunrise
- type: sunrise
- - platform: sun
- name: Sun Next Sunset
- type: sunset
- - platform: wifi_info
- ip_address:
- name: Cabinets IP Address
- ssid:
- name: Cabinets Connected SSID
- time:
- - platform: sntp
- id: sntp_time
- timezone: America/Vancouver
- servers:
- - 0.pool.ntp.org
- - 1.pool.ntp.org
- - 2.pool.ntp.org
- sensor:
- - platform: uptime
- type: timestamp
- time_id: sntp_time
- name: "Livingroom Uptime Sensor"
- - platform: wifi_signal
- id: wifi_signal_livingroom
- update_interval: 10s
- internal: True
- - platform: copy
- source_id: wifi_signal_livingroom
- name: "Livingroom Wifi Signal"
- filters:
- - lambda: return min(max(2 * (x + 100.0), 0.0), 100.0);
- unit_of_measurement: "Signal %"
- entity_category: "diagnostic"
- id: livingroom_wifi_signal
- sun:
- id: sunrise_sunset
- latitude: 49.2827
- longitude: 123.120
- on_sunrise:
- then:
- - light.dim_relative:
- id: livingroom_light
- relative_brightness: 5%
- transition_length: 10.0s
- ## Transition length is the amount of time it takes to go from "relative_brightness 5%" to "max brightness 90%" ##
- brightness_limits:
- max_brightness: 90%
- on_sunset:
- then:
- - light.dim_relative:
- id: livingroom_light
- relative_brightness: 5%
- transition_length: 10.0s
- brightness_limits:
- min_brightness: 10%
- - delay: 2s
- - light.turn_off: livingroom_light
- output:
- - platform: ledc
- id: pwm_output1
- pin: 1
- # min_power:
- # max_power:
- # zero_means_zero: True
- light:
- - platform: monochromatic
- name: "Livingroom Light"
- id: livingroom_light
- output: pwm_output1
Advertisement
Add Comment
Please, Sign In to add comment