Commit 0fc79deb authored by Erick Hitter's avatar Erick Hitter

Sync with upstream

edadb98
parent fdc77f01
alias: Turn on dining area lights when front door opens
trigger:
- platform: state
entity_id: binary_sensor.front_door
to: 'off'
platform: state
entity_id: binary_sensor.front_door
to: 'off'
condition:
condition: and
conditions:
......
alias: Turn off dining area lights after no motion
trigger:
- platform: state
entity_id: binary_sensor.lr_motion_sensor_over_utility_closet
to: 'on'
platform: state
entity_id: binary_sensor.lr_motion_sensor_over_utility_closet
to: 'on'
condition:
condition: or
conditions:
......
alias: Turn on lights when dining room window opened from outside
trigger:
- platform: state
entity_id: binary_sensor.dining_area_window_motion
to: 'on'
platform: state
entity_id: binary_sensor.dining_area_window_motion
to: 'on'
condition:
condition: and
conditions:
......
alias: Turn off kitchen light after no motion
trigger:
- platform: state
entity_id: switch.kitchen
to: 'on'
platform: state
entity_id: binary_sensor.kitchen
to: 'on'
condition:
condition: and
condition: or
conditions:
- condition: state
entity_id: binary_sensor.kitchen
entity_id: switch.kitchen
state: 'on'
action:
service: homeassistant.turn_on
......
alias: Turn off lights when alarm is set to away
trigger:
- platform: state
entity_id: alarm_control_panel.shm
to: 'armed_away'
platform: state
entity_id: alarm_control_panel.shm
to: 'armed_away'
action:
service: homeassistant.turn_off
entity_id:
......
alias: Turn off living room lights after no motion
trigger:
- platform: state
entity_id: binary_sensor.lr_motion_sensor_over_slider
to: 'on'
platform: state
entity_id: binary_sensor.lr_motion_sensor_over_slider
to: 'on'
condition:
condition: or
conditions:
......
alias: Turn on all lights when all accelerometers move
trigger:
- platform: state
entity_id: binary_sensor.office_cabinet_door_motion
to: 'on'
platform: state
entity_id: binary_sensor.office_cabinet_door_motion
to: 'on'
condition:
condition: and
conditions:
......
alias: Turn off office lights after no motion
trigger:
- platform: state
entity_id: binary_sensor.office_motion_sensor_over_closet
to: 'on'
platform: state
entity_id: binary_sensor.office_motion_sensor_over_closet
to: 'on'
condition:
condition: or
conditions:
......
alias: Scene Balcony
trigger:
platform: state
entity_id: input_select.scene_balcony
action:
- service: scene.turn_on
data_template:
entity_id: >
{% if is_state( "input_select.scene_balcony", "Nightlight" ) %}
scene.balcony_nightlight
{%-elif is_state( "input_select.scene_balcony", "Dimmed" ) %}
scene.balcony_dimmed
{%-elif is_state( "input_select.scene_balcony", "Relax" ) %}
scene.balcony_relax
{%-elif is_state( "input_select.scene_balcony", "Read" ) %}
scene.balcony_read
{%-elif is_state( "input_select.scene_balcony", "Bright" ) %}
scene.balcony_concentrate
{%-elif is_state( "input_select.scene_balcony", "Off" ) %}
scene.balcony_off
{% endif %}
- service: input_select.select_option
data:
entity_id: input_select.scene_balcony
option: "-"
alias: Scene Dining Area
trigger:
platform: state
entity_id: input_select.scene_da
action:
- service: scene.turn_on
data_template:
entity_id: >
{% if is_state( "input_select.scene_da", "Nightlight" ) %}
scene.da_nightlight
{%-elif is_state( "input_select.scene_da", "Dimmed" ) %}
scene.da_dimmed
{%-elif is_state( "input_select.scene_da", "Relax" ) %}
scene.da_relax
{%-elif is_state( "input_select.scene_da", "Read" ) %}
scene.da_read
{%-elif is_state( "input_select.scene_da", "Bright" ) %}
scene.da_concentrate
{%-elif is_state( "input_select.scene_da", "Off" ) %}
scene.da_off
{% endif %}
- service: input_select.select_option
data:
entity_id: input_select.scene_da
option: "-"
alias: Scene Erick's Desk Lamp
trigger:
platform: state
entity_id: input_select.scene_ericks_desk_lamp
action:
- service: scene.turn_on
data_template:
entity_id: >
{% if is_state( "input_select.scene_ericks_desk_lamp", "Nightlight" ) %}
scene.ericks_desk_lamp_nightlight
{%-elif is_state( "input_select.scene_ericks_desk_lamp", "Dimmed" ) %}
scene.ericks_desk_lamp_dimmed
{%-elif is_state( "input_select.scene_ericks_desk_lamp", "Relax" ) %}
scene.ericks_desk_lamp_relax
{%-elif is_state( "input_select.scene_ericks_desk_lamp", "Read" ) %}
scene.ericks_desk_lamp_read
{%-elif is_state( "input_select.scene_ericks_desk_lamp", "Bright" ) %}
scene.ericks_desk_lamp_concentrate
{%-elif is_state( "input_select.scene_ericks_desk_lamp", "Off" ) %}
scene.ericks_desk_lamp_off
{% endif %}
- service: input_select.select_option
data:
entity_id: input_select.scene_ericks_desk_lamp
option: "-"
alias: Scene Living Room
trigger:
platform: state
entity_id: input_select.scene_lr
action:
- service: scene.turn_on
data_template:
entity_id: >
{% if is_state( "input_select.scene_lr", "Nightlight" ) %}
scene.lr_nightlight
{%-elif is_state( "input_select.scene_lr", "Dimmed" ) %}
scene.lr_dimmed
{%-elif is_state( "input_select.scene_lr", "Relax" ) %}
scene.lr_relax
{%-elif is_state( "input_select.scene_lr", "Read" ) %}
scene.lr_read
{%-elif is_state( "input_select.scene_lr", "Bright" ) %}
scene.lr_concentrate
{%-elif is_state( "input_select.scene_lr", "Off" ) %}
scene.lr_off
{% endif %}
- service: input_select.select_option
data:
entity_id: input_select.scene_lr
option: "-"
alias: Scene Master Bath
trigger:
platform: state
entity_id: input_select.scene_master_bath
action:
- service: scene.turn_on
data_template:
entity_id: >
{% if is_state( "input_select.scene_master_bath", "Nightlight" ) %}
scene.master_bath_nightlight
{%-elif is_state( "input_select.scene_master_bath", "Dimmed" ) %}
scene.master_bath_dimmed
{%-elif is_state( "input_select.scene_master_bath", "Relax" ) %}
scene.master_bath_relax
{%-elif is_state( "input_select.scene_master_bath", "Read" ) %}
scene.master_bath_read
{%-elif is_state( "input_select.scene_master_bath", "Bright" ) %}
scene.master_bath_concentrate
{%-elif is_state( "input_select.scene_master_bath", "Off" ) %}
scene.master_bath_off
{% endif %}
- service: input_select.select_option
data:
entity_id: input_select.scene_master_bath
option: "-"
alias: Scene Master Bedroom
trigger:
platform: state
entity_id: input_select.scene_master_bedroom
action:
- service: scene.turn_on
data_template:
entity_id: >
{% if is_state( "input_select.scene_master_bedroom", "Nightlight" ) %}
scene.master_bedroom_nightlight
{%-elif is_state( "input_select.scene_master_bedroom", "Dimmed" ) %}
scene.master_bedroom_dimmed
{%-elif is_state( "input_select.scene_master_bedroom", "Relax" ) %}
scene.master_bedroom_relax
{%-elif is_state( "input_select.scene_master_bedroom", "Read" ) %}
scene.master_bedroom_read
{%-elif is_state( "input_select.scene_master_bedroom", "Bright" ) %}
scene.master_bedroom_concentrate
{%-elif is_state( "input_select.scene_master_bedroom", "Off" ) %}
scene.master_bedroom_off
{% endif %}
- service: input_select.select_option
data:
entity_id: input_select.scene_master_bedroom
option: "-"
alias: Scene Office
trigger:
platform: state
entity_id: input_select.scene_office
action:
- service: scene.turn_on
data_template:
entity_id: >
{% if is_state( "input_select.scene_office", "Nightlight" ) %}
scene.office_nightlight
{%-elif is_state( "input_select.scene_office", "Dimmed" ) %}
scene.office_dimmed
{%-elif is_state( "input_select.scene_office", "Relax" ) %}
scene.office_relax
{%-elif is_state( "input_select.scene_office", "Read" ) %}
scene.office_read
{%-elif is_state( "input_select.scene_office", "Bright" ) %}
scene.office_concentrate
{%-elif is_state( "input_select.scene_office", "Off" ) %}
scene.office_off
{% endif %}
- service: input_select.select_option
data:
entity_id: input_select.scene_office
option: "-"
alias: Update notifications
trigger:
- platform: state
entity_id: updater.updater
platform: state
entity_id: updater.updater
action:
service: notify.jabber
data:
......
alias: Turn off wireless charger after delay
trigger:
- platform: state
entity_id: switch.wireless_charger
to: 'on'
platform: state
entity_id: switch.wireless_charger
to: 'on'
action:
service: homeassistant.turn_on
entity_id: script.wireless_charger_set_timeout
......@@ -40,10 +40,6 @@ recorder:
# Enables support for tracking state changes over time.
history:
# Save events to logentries service
logentries:
token: !secret logentries_token
# Discover some devices automatically
discovery:
......@@ -88,4 +84,6 @@ shell_command: !include shell_commands.yaml
automation: !include_dir_list automations
# Controls
input_select: !include input-selects.yaml
input_slider: !include input-sliders.yaml
light.office:
friendly_name: Office Lamp
light.ericks_desk_lamp:
icon: mdi:lightbulb-outline
light.ceiling_fan_1:
......
......@@ -13,6 +13,9 @@ scene.master_bedroom_read:
scene.master_bedroom_concentrate:
friendly_name: 'Bright'
icon: mdi:star-circle
scene.master_bedroom_off:
friendly_name: 'Off'
icon: mdi:flashlight-off
scene.master_bath_nightlight:
friendly_name: 'Nightlight'
icon: mdi:brightness-4
......@@ -28,6 +31,9 @@ scene.master_bath_read:
scene.master_bath_concentrate:
friendly_name: 'Bright'
icon: mdi:star-circle
scene.master_bath_off:
friendly_name: 'Off'
icon: mdi:flashlight-off
scene.lr_nightlight:
friendly_name: 'Nightlight'
icon: mdi:brightness-4
......@@ -43,6 +49,9 @@ scene.lr_read:
scene.lr_concentrate:
friendly_name: 'Bright'
icon: mdi:star-circle
scene.lr_off:
friendly_name: 'Off'
icon: mdi:flashlight-off
scene.da_nightlight:
friendly_name: 'Nightlight'
icon: mdi:brightness-4
......@@ -58,6 +67,9 @@ scene.da_read:
scene.da_concentrate:
friendly_name: 'Bright'
icon: mdi:star-circle
scene.da_off:
friendly_name: 'Off'
icon: mdi:flashlight-off
scene.office_nightlight:
friendly_name: 'Nightlight'
icon: mdi:brightness-4
......@@ -73,12 +85,18 @@ scene.office_read:
scene.office_concentrate:
friendly_name: 'Bright'
icon: mdi:star-circle
scene.office_off:
friendly_name: 'Off'
icon: mdi:flashlight-off
scene.ericks_desk_lamp_nightlight:
friendly_name: 'Desk Lamp Dim'
icon: mdi:brightness-3
scene.ericks_desk_lamp_relax:
friendly_name: 'Desk Lamp Bright'
icon: mdi:brightness-1
scene.ericks_desk_lamp_off:
friendly_name: 'Desk Lamp Off'
icon: mdi:flashlight-off
scene.balcony_nightlight:
friendly_name: 'Nightlight'
icon: mdi:brightness-4
......@@ -94,3 +112,6 @@ scene.balcony_read:
scene.balcony_concentrate:
friendly_name: 'Bright'
icon: mdi:star-circle
scene.balcony_off:
friendly_name: 'Off'
icon: mdi:flashlight-off
......@@ -101,3 +101,33 @@ sensor.pws_uv:
sensor.pws_solarradiation:
friendly_name: Solar Radiation
icon: mdi:weather-sunny
sensor.pws_dewpoint_c:
friendly_name: Dew Point (C)
sensor.pws_dewpoint_f:
friendly_name: Dew Point (F)
sensor.pws_feelslike_c:
friendly_name: Feels Like (C)
sensor.pws_feelslike_f:
friendly_name: Feels Like (F)
sensor.pws_heat_index_c:
friendly_name: Heat Index (C)
sensor.pws_heat_index_f:
friendly_name: Heat Index (F)
sensor.pws_precip_today_in:
friendly_name: Precipitation (in)
sensor.pws_precip_today_metric:
friendly_name: Precipitation (mm)
sensor.pws_pressure_mb:
friendly_name: Pressure (mb)
sensor.pws_station_id:
friendly_name: Weather Station ID
sensor.pws_temp_c:
friendly_name: Temperature (C)
sensor.pws_visibility_km:
friendly_name: Visibility
sensor.pws_wind_dir:
friendly_name: Wind Direction
sensor.pws_wind_kph:
friendly_name: Wind Speed (kph)
sensor.pws_wind_mph:
friendly_name: Wind Speed (mph)
......@@ -57,61 +57,40 @@ master_bedroom:
name: Master Bedroom
entities:
- light.nightstand
- scene.master_bedroom_nightlight
- scene.master_bedroom_dimmed
- scene.master_bedroom_relax
- scene.master_bedroom_read
- input_select.scene_master_bedroom
master_bathroom:
name: Master Bathroom
entities:
- light.master_bath_1
- light.master_bath_2
- light.master_bath_3
- scene.master_bath_nightlight
- scene.master_bath_dimmed
- scene.master_bath_relax
- scene.master_bath_read
- scene.master_bath_concentrate
- input_select.scene_master_bath
living_room:
name: Living Room
entities:
- light.endtable
- light.corner_table
- scene.lr_nightlight
- scene.lr_dimmed
- scene.lr_relax
- scene.lr_read
- input_select.scene_lr
dining_area:
name: Kitchen & Dining
entities:
- switch.kitchen
- light.ceiling_fan_1
- light.ceiling_fan_2
- scene.da_nightlight
- scene.da_dimmed
- scene.da_relax
- scene.da_read
- input_select.scene_da
office:
name: Office
entities:
- light.office
- light.ericks_desk_lamp
- switch.lava_lamp
- scene.office_nightlight
- scene.office_dimmed
- scene.office_relax
- scene.office_read
- scene.ericks_desk_lamp_nightlight
- scene.ericks_desk_lamp_relax
- input_select.scene_office
- input_select.scene_ericks_desk_lamp
balcony:
name: Balcony
entities:
- light.balcony
- scene.balcony_nightlight
- scene.balcony_dimmed
- scene.balcony_relax
- scene.balcony_read
- scene.balcony_concentrate
- input_select.scene_balcony
other:
name: Other
entities:
......
scene_balcony:
name: Scene
icon: mdi:brightness-auto
initial: "-"
options:
- "-"
- "Off"
- Nightlight
- Dimmed
- Relax
- Read
- Bright
scene_da:
name: Scene
icon: mdi:brightness-auto
initial: "-"
options:
- "-"
- "Off"
- Nightlight
- Dimmed
- Relax
- Read
scene_ericks_desk_lamp:
name: Desk Lamp Scene
icon: mdi:brightness-auto
initial: "-"
options:
- "-"
- "Off"
- Nightlight
- Relax
scene_lr:
name: Scene
icon: mdi:brightness-auto
initial: "-"
options:
- "-"
- "Off"
- Nightlight
- Dimmed
- Relax
- Read
scene_master_bath:
name: Scene
icon: mdi:brightness-auto
initial: "-"
options:
- "-"
- "Off"
- Nightlight
- Dimmed
- Relax
- Read
- Bright
scene_master_bedroom:
name: Scene
icon: mdi:brightness-auto
initial: "-"
options:
- "-"
- "Off"
- Nightlight
- Dimmed
- Relax
- Read
scene_office:
name: Office Lamp Scene
icon: mdi:brightness-auto
initial: "-"
options:
- "-"
- "Off"
- Nightlight
- Dimmed
- Relax
- Read
name: Balcony Off
entities:
light.balcony:
state: off
name: DA Off
entities:
light.ceiling_fan_1:
state: off
light.ceiling_fan_2:
state: off
name: Erick's Desk Lamp Off
entities:
light.ericks_desk_lamp:
state: off
name: LR Off
entities:
light.endtable:
state: off
light.corner_table:
state: off
name: Master Bath Off
entities:
light.master_bath_1:
state: off
light.master_bath_2:
state: off
light.master_bath_3:
state: off
name: Master Bedroom Off
entities:
light.nightstand:
state: off
name: Office Off
entities:
light.office:
state: off
......@@ -140,7 +140,7 @@ kitchen_light_set_timeout:
entity_id: script.kitchen_light_timeout
kitchen_light_timeout:
alias: "Turn off kitchen light after 15 minutes of inactivity"
alias: "Turn off kitchen light after 5 minutes of inactivity"
sequence:
- delay:
minutes: 5
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment