Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- homeassistant:
- # Name of the location where Home Assistant is running
- name: Home
- # Location required to calculate the time the sun rises and sets
- latitude: xxxxx
- longitude: xxxxx
- # C for Celcius, F for Fahrenheit
- temperature_unit: F
- # Pick yours from here: http://en.wikipedia.org/wiki/List_of_tz_database_time_zones
- time_zone: America/New_York
- # Checks for available updates
- updater:
- # View all events in a logbook
- logbook:
- # Show links to resources in log and frontend
- #introduction:
- # Enables support for tracking state changes over time.
- history:
- # Track the sun
- sun:
- # Allows you to issue voice commands from the frontend
- conversation:
- # Discover some devices automatically
- discovery:
- # Enables the frontend
- frontend:
- device_tracker:
- platform: asuswrt
- host: xxxxx
- username: xxxxx
- password: xxxxx
- # Example configuration.yaml entry
- sensor:
- platform: forecast
- api_key: xxxxx
- monitored_conditions:
- - summary
- - nearest_storm_distance
- - precip_type
- - precip_probability
- - temperature
- - wind_speed
- - humidity
- - pressure
- - visibility
- camera:
- platform: foscam
- ip: xxxxxx
- name: Living Room Camera
- port: 88
- username: xxxxx
- password: xxxxx
- thermostat:
- platform: nest
- username: xxxxx
- password: xxxxx
- group:
- living_room_lights: light.living_room_1, light.living_room_2
- outside_lights: light.front_lawn, light.front_porch
- people: device_tracker.android10e48e56ff44346a, device_tracker.android7f0e90ed6a5bd818, device_tracker.android8784f9703ae15c4a, device_tracker.and$
- weather: sensor.weather_humidity, sensor.weather_nearest_storm_distance, sensor.weather_precip, sensor.weather_precip_probability, sensor.weather_$
- cameras: camera.living_room_camera
- family: device_tracker.android7f0e90ed6a5bd818, device_tracker.android10e48e56ff44346a
- #device_sun_light_trigger:
- # light_group: group.living_room_lights
- # device_group: group.people
- # disable_turn_off: 1
- automation:
- - alias: 'Rule 1 - Outside lights on at sunset'
- trigger:
- platform: sun
- event: sunset
- offset: '-00:30:00'
- action:
- service: light.turn_on
- entity_id: group.outside_lights
- - alias: 'Rule 2 - Outside lights off at 11pm if no one in living room'
- trigger:
- platform: time
- minutes: 1
- condition:
- - platform: state
- entity_id: group.living_room_lights
- state: 'off'
- - platform: time
- after: '23:00:00'
- before: '04:59:59'
- action:
- service: light.turn_off
- entity_id: group.outside_lights
- - alias: 'Rule 3 - Nest set to away when no one home'
- trigger:
- platform: state
- entity_id: group.people
- state: 'not_home'
- action:
- service: thermostat.set_away_mode
- entity_id: thermostat.hallway
- data:
- away_mode: 'True'
- - alias: 'Rule 4 - Nest set to home when someone is home'
- trigger:
- platform: state
- entity_id: group.people
- state: 'home'
- action:
- service: thermostat.set_away_mode
- entity_id: thermostat.hallway
- data:
- away_mode: ''
- - alias: 'Rule 5 - Set all lights on after 5pm when someone comes home'
- trigger:
- platform: state
- entity_id: group.people
- state: 'home'
- condition:
- platform: sun
- after: sunset
- action:
- service: light.turn_on
- entity_id: group.all_lights
- - alias: 'Rule 6 - Set office lamp on if no one is home'
- trigger:
- platform: state
- entity_id: group.people
- state: 'not_home'
- condition:
- platform: sun
- after: sunset
- action:
- service: switch.turn_on
- entity_id: switch.office_lamp
- - alias: 'Rule 7 - Set office lamp off when someone comes home'
- trigger:
- platform: state
- entity_id: group.people
- state: 'home'
- action:
- service: switch.turn_off
- entity_id: switch.office_lamp
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement