Skip to content

Instantly share code, notes, and snippets.

##This goes in your Automations.yaml file
- alias: who is out of bed
id: howisoutofbed7583475893475897345
trigger:
- platform: state
entity_id: binary_sensor.ttgocam_pir
from: 'off'
to: 'on'
condition:
esphome:
name: garage
platform: ESP8266
board: esp01_1m
wifi:
ssid: !secret wifi
password: !secret wifi_pw
# Enable logging
esphome:
name: justin_garage
platform: ESP8266
board: d1_mini
wifi:
ssid: !secret wifi
password: !secret wifi_pw
# Enable logging
## this part is the ESPhome Yaml file ##
esphome:
name: window_control_linear
platform: ESP8266
board: d1_mini
wifi:
ssid: !secret wifi
password: !secret wifi_pw
switch:
- platform: gpio
name: "Left Lights"
pin: D5
id: left_lights
- platform: gpio
name: "Back Lights"
pin: D6
id: back_lights
esphome:
name: main_bathroom
platform: ESP8266
board: esp01_1m
wifi:
ssid: !secret wifi
password: !secret wifi_pw
# Enable logging
esphome:
name: mountain_windows_left
platform: ESP8266
board: d1_mini
wifi:
ssid: !secret wifi
password: !secret wifi_pw
# Enable logging
- alias: lower mountian room shades in the morning
id: lowermountainroomshadesinthemorning
trigger:
- platform: numeric_state
entity_id: sun.sun
value_template: "{{ state.attributes.elevation }}"
above: 8.0
# - platform: time
# at: "21:00:00"
# the shades have to NOT be closed, in order for the "close" automation to run
esphome:
name: main_bathroom_shower
platform: ESP8266
board: esp01_1m
wifi:
ssid: !secret wifi
password: !secret wifi_pw
# Enable logging
@Snipercaine
Snipercaine / lovelacefloorplan.yaml
Created September 9, 2019 19:48
Lovelacefloorplan
resources:
- type: js
url: /community_plugin/plan-coordinates/plan-coordinates.js
#views:
- cards:
- cards:
- type: 'custom:plan-coordinates'
- elements:
- entity: switch.4336784084f3eb5d6215
state_filter: