mirror of
https://github.com/home-assistant/core.git
synced 2025-07-08 13:57:10 +00:00
Update to make the sample file validate (#4168)
This commit is contained in:
parent
0211cf29eb
commit
dad54bb993
@ -43,12 +43,10 @@ device_tracker:
|
|||||||
username: admin
|
username: admin
|
||||||
password: PASSWORD
|
password: PASSWORD
|
||||||
|
|
||||||
chromecast:
|
|
||||||
|
|
||||||
switch:
|
switch:
|
||||||
platform: wemo
|
platform: wemo
|
||||||
|
|
||||||
thermostat:
|
climate:
|
||||||
platform: nest
|
platform: nest
|
||||||
# Required: username and password that are used to login to the Nest thermostat.
|
# Required: username and password that are used to login to the Nest thermostat.
|
||||||
username: myemail@mydomain.com
|
username: myemail@mydomain.com
|
||||||
@ -79,7 +77,6 @@ group:
|
|||||||
entities:
|
entities:
|
||||||
- group.awesome_people
|
- group.awesome_people
|
||||||
- group.climate
|
- group.climate
|
||||||
|
|
||||||
kitchen:
|
kitchen:
|
||||||
name: Kitchen
|
name: Kitchen
|
||||||
entities:
|
entities:
|
||||||
@ -92,52 +89,23 @@ group:
|
|||||||
- input_boolean.notify_home
|
- input_boolean.notify_home
|
||||||
- camera.demo_camera
|
- camera.demo_camera
|
||||||
|
|
||||||
example:
|
|
||||||
|
|
||||||
simple_alarm:
|
|
||||||
# Which light/light group has to flash when a known device comes home
|
|
||||||
known_light: light.Bowl
|
|
||||||
# Which light/light group has to flash red when light turns on while no one home
|
|
||||||
unknown_light: group.living_room
|
|
||||||
|
|
||||||
browser:
|
browser:
|
||||||
|
|
||||||
keyboard:
|
keyboard:
|
||||||
|
|
||||||
# https://home-assistant.io/getting-started/automation/
|
# https://home-assistant.io/getting-started/automation/
|
||||||
automation:
|
automation:
|
||||||
- alias: 'Rule 1 Light on in the evening'
|
- alias: Turn on light when sun sets
|
||||||
trigger:
|
trigger:
|
||||||
- platform: sun
|
platform: sun
|
||||||
event: sunset
|
event: sunset
|
||||||
offset: "-01:00:00"
|
offset: "-01:00:00"
|
||||||
- platform: state
|
|
||||||
entity_id: group.all_devices
|
|
||||||
state: home
|
|
||||||
condition:
|
condition:
|
||||||
- platform: state
|
condition: state
|
||||||
entity_id: group.all_devices
|
entity_id: group.all_devices
|
||||||
state: home
|
state: 'home'
|
||||||
- platform: time
|
|
||||||
after: "16:00:00"
|
|
||||||
before: "23:00:00"
|
|
||||||
action:
|
action:
|
||||||
service: homeassistant.turn_on
|
service: light.turn_on
|
||||||
entity_id: group.living_room
|
|
||||||
|
|
||||||
- alias: 'Rule 2 - Away Mode'
|
|
||||||
trigger:
|
|
||||||
- platform: state
|
|
||||||
entity_id: group.all_devices
|
|
||||||
state: 'not_home'
|
|
||||||
|
|
||||||
condition: use_trigger_values
|
|
||||||
action:
|
|
||||||
service: light.turn_off
|
|
||||||
entity_id: group.all_lights
|
|
||||||
|
|
||||||
# Sensors need to be added into the configuration.yaml as sensor:, sensor 2:, sensor 3:, etc.
|
|
||||||
# Each sensor label should be unique or your sensors might not load correctly.
|
|
||||||
# Another way to do is to collect all entries under one "sensor:"
|
# Another way to do is to collect all entries under one "sensor:"
|
||||||
# sensor:
|
# sensor:
|
||||||
# - platform: mqtt
|
# - platform: mqtt
|
||||||
@ -154,34 +122,30 @@ sensor:
|
|||||||
arg: '/'
|
arg: '/'
|
||||||
- type: 'disk_use_percent'
|
- type: 'disk_use_percent'
|
||||||
arg: '/home'
|
arg: '/home'
|
||||||
- type: 'disk_use'
|
|
||||||
arg: '/home'
|
|
||||||
|
|
||||||
sensor 2:
|
sensor 2:
|
||||||
platform: forecast
|
platform: cpuspeed
|
||||||
api_key: <register on Forecast.io for your PRIVATE API>
|
|
||||||
monitored_conditions:
|
|
||||||
- summary
|
|
||||||
- precip_type
|
|
||||||
- precip_intensity
|
|
||||||
- temperature
|
|
||||||
|
|
||||||
script:
|
script:
|
||||||
# Turns on the bedroom lights and then the living room lights 1 minute later
|
|
||||||
wakeup:
|
wakeup:
|
||||||
alias: Wake Up
|
alias: Wake Up
|
||||||
sequence:
|
sequence:
|
||||||
# alias is optional
|
- event: LOGBOOK_ENTRY
|
||||||
|
event_data:
|
||||||
|
name: Paulus
|
||||||
|
message: is waking up
|
||||||
|
entity_id: device_tracker.paulus
|
||||||
|
domain: light
|
||||||
- alias: Bedroom lights on
|
- alias: Bedroom lights on
|
||||||
execute_service: light.turn_on
|
service: light.turn_on
|
||||||
service_data:
|
data:
|
||||||
entity_id: group.bedroom
|
entity_id: group.bedroom
|
||||||
|
brightness: 100
|
||||||
- delay:
|
- delay:
|
||||||
# supports seconds, milliseconds, minutes, hours, etc.
|
|
||||||
minutes: 1
|
minutes: 1
|
||||||
- alias: Living room lights on
|
- alias: Living room lights on
|
||||||
execute_service: light.turn_on
|
service: light.turn_on
|
||||||
service_data:
|
data:
|
||||||
entity_id: group.living_room
|
entity_id: group.living_room
|
||||||
|
|
||||||
scene:
|
scene:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user