Sync with upstream

edadb98
parent fdc77f01
alias: Turn on dining area lights when front door opens alias: Turn on dining area lights when front door opens
trigger: trigger:
- platform: state platform: state
entity_id: binary_sensor.front_door entity_id: binary_sensor.front_door
to: 'off' to: 'off'
condition: condition:
condition: and condition: and
conditions: conditions:
......
alias: Turn off dining area lights after no motion alias: Turn off dining area lights after no motion
trigger: trigger:
- platform: state platform: state
entity_id: binary_sensor.lr_motion_sensor_over_utility_closet entity_id: binary_sensor.lr_motion_sensor_over_utility_closet
to: 'on' to: 'on'
condition: condition:
condition: or condition: or
conditions: conditions:
......
alias: Turn on lights when dining room window opened from outside alias: Turn on lights when dining room window opened from outside
trigger: trigger:
- platform: state platform: state
entity_id: binary_sensor.dining_area_window_motion entity_id: binary_sensor.dining_area_window_motion
to: 'on' to: 'on'
condition: condition:
condition: and condition: and
conditions: conditions:
......
alias: Turn off kitchen light after no motion alias: Turn off kitchen light after no motion
trigger: trigger:
- platform: state platform: state
entity_id: switch.kitchen entity_id: binary_sensor.kitchen
to: 'on' to: 'on'
condition: condition:
condition: and condition: or
conditions: conditions:
- condition: state - condition: state
entity_id: binary_sensor.kitchen entity_id: switch.kitchen
state: 'on' state: 'on'
action: action:
service: homeassistant.turn_on service: homeassistant.turn_on
......
alias: Turn off lights when alarm is set to away alias: Turn off lights when alarm is set to away
trigger: trigger:
- platform: state platform: state
entity_id: alarm_control_panel.shm entity_id: alarm_control_panel.shm
to: 'armed_away' to: 'armed_away'
action: action:
service: homeassistant.turn_off service: homeassistant.turn_off
entity_id: entity_id:
......
alias: Turn off living room lights after no motion alias: Turn off living room lights after no motion
trigger: trigger:
- platform: state platform: state
entity_id: binary_sensor.lr_motion_sensor_over_slider entity_id: binary_sensor.lr_motion_sensor_over_slider
to: 'on' to: 'on'
condition: condition:
condition: or condition: or
conditions: conditions:
......
alias: Turn on all lights when all accelerometers move alias: Turn on all lights when all accelerometers move
trigger: trigger:
- platform: state platform: state
entity_id: binary_sensor.office_cabinet_door_motion entity_id: binary_sensor.office_cabinet_door_motion
to: 'on' to: 'on'
condition: condition:
condition: and condition: and
conditions: conditions:
......
alias: Turn off office lights after no motion alias: Turn off office lights after no motion
trigger: trigger:
- platform: state platform: state
entity_id: binary_sensor.office_motion_sensor_over_closet entity_id: binary_sensor.office_motion_sensor_over_closet
to: 'on' to: 'on'
condition: condition:
condition: or condition: or
conditions: 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 alias: Update notifications
trigger: trigger:
- platform: state platform: state
entity_id: updater.updater entity_id: updater.updater
action: action:
service: notify.jabber service: notify.jabber
data: data:
......
alias: Turn off wireless charger after delay alias: Turn off wireless charger after delay
trigger: trigger:
- platform: state platform: state
entity_id: switch.wireless_charger entity_id: switch.wireless_charger
to: 'on' to: 'on'
action: action:
service: homeassistant.turn_on service: homeassistant.turn_on
entity_id: script.wireless_charger_set_timeout entity_id: script.wireless_charger_set_timeout
...@@ -40,10 +40,6 @@ recorder: ...@@ -40,10 +40,6 @@ recorder:
# Enables support for tracking state changes over time. # Enables support for tracking state changes over time.
history: history:
# Save events to logentries service
logentries:
token: !secret logentries_token
# Discover some devices automatically # Discover some devices automatically
discovery: discovery:
...@@ -88,4 +84,6 @@ shell_command: !include shell_commands.yaml ...@@ -88,4 +84,6 @@ shell_command: !include shell_commands.yaml
automation: !include_dir_list automations automation: !include_dir_list automations
# Controls # Controls
input_select: !include input-selects.yaml
input_slider: !include input-sliders.yaml input_slider: !include input-sliders.yaml
light.office:
friendly_name: Office Lamp
light.ericks_desk_lamp: light.ericks_desk_lamp:
icon: mdi:lightbulb-outline icon: mdi:lightbulb-outline
light.ceiling_fan_1: light.ceiling_fan_1:
......
...@@ -13,6 +13,9 @@ scene.master_bedroom_read: ...@@ -13,6 +13,9 @@ scene.master_bedroom_read:
scene.master_bedroom_concentrate: scene.master_bedroom_concentrate:
friendly_name: 'Bright' friendly_name: 'Bright'
icon: mdi:star-circle icon: mdi:star-circle
scene.master_bedroom_off:
friendly_name: 'Off'
icon: mdi:flashlight-off
scene.master_bath_nightlight: scene.master_bath_nightlight:
friendly_name: 'Nightlight' friendly_name: 'Nightlight'
icon: mdi:brightness-4 icon: mdi:brightness-4
...@@ -28,6 +31,9 @@ scene.master_bath_read: ...@@ -28,6 +31,9 @@ scene.master_bath_read:
scene.master_bath_concentrate: scene.master_bath_concentrate:
friendly_name: 'Bright' friendly_name: 'Bright'
icon: mdi:star-circle icon: mdi:star-circle
scene.master_bath_off:
friendly_name: 'Off'
icon: mdi:flashlight-off
scene.lr_nightlight: scene.lr_nightlight:
friendly_name: 'Nightlight' friendly_name: 'Nightlight'
icon: mdi:brightness-4 icon: mdi:brightness-4
...@@ -43,6 +49,9 @@ scene.lr_read: ...@@ -43,6 +49,9 @@ scene.lr_read:
scene.lr_concentrate: scene.lr_concentrate:
friendly_name: 'Bright' friendly_name: 'Bright'
icon: mdi:star-circle icon: mdi:star-circle
scene.lr_off:
friendly_name: 'Off'
icon: mdi:flashlight-off
scene.da_nightlight: scene.da_nightlight:
friendly_name: 'Nightlight' friendly_name: 'Nightlight'
icon: mdi:brightness-4 icon: mdi:brightness-4
...@@ -58,6 +67,9 @@ scene.da_read: ...@@ -58,6 +67,9 @@ scene.da_read:
scene.da_concentrate: scene.da_concentrate:
friendly_name: 'Bright' friendly_name: 'Bright'
icon: mdi:star-circle icon: mdi:star-circle
scene.da_off:
friendly_name: 'Off'
icon: mdi:flashlight-off
scene.office_nightlight: scene.office_nightlight:
friendly_name: 'Nightlight' friendly_name: 'Nightlight'
icon: mdi:brightness-4 icon: mdi:brightness-4
...@@ -73,12 +85,18 @@ scene.office_read: ...@@ -73,12 +85,18 @@ scene.office_read:
scene.office_concentrate: scene.office_concentrate:
friendly_name: 'Bright' friendly_name: 'Bright'
icon: mdi:star-circle icon: mdi:star-circle
scene.office_off:
friendly_name: 'Off'
icon: mdi:flashlight-off
scene.ericks_desk_lamp_nightlight: scene.ericks_desk_lamp_nightlight:
friendly_name: 'Desk Lamp Dim' friendly_name: 'Desk Lamp Dim'
icon: mdi:brightness-3 icon: mdi:brightness-3
scene.ericks_desk_lamp_relax: scene.ericks_desk_lamp_relax:
friendly_name: 'Desk Lamp Bright' friendly_name: 'Desk Lamp Bright'
icon: mdi:brightness-1 icon: mdi:brightness-1
scene.ericks_desk_lamp_off:
friendly_name: 'Desk Lamp Off'
icon: mdi:flashlight-off
scene.balcony_nightlight: scene.balcony_nightlight:
friendly_name: 'Nightlight' friendly_name: 'Nightlight'
icon: mdi:brightness-4 icon: mdi:brightness-4
...@@ -94,3 +112,6 @@ scene.balcony_read: ...@@ -94,3 +112,6 @@ scene.balcony_read:
scene.balcony_concentrate: scene.balcony_concentrate:
friendly_name: 'Bright' friendly_name: 'Bright'
icon: mdi:star-circle icon: mdi:star-circle
scene.balcony_off:
friendly_name: 'Off'
icon: mdi:flashlight-off
...@@ -101,3 +101,33 @@ sensor.pws_uv: ...@@ -101,3 +101,33 @@ sensor.pws_uv:
sensor.pws_solarradiation: sensor.pws_solarradiation:
friendly_name: Solar Radiation friendly_name: Solar Radiation
icon: mdi:weather-sunny 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: ...@@ -57,61 +57,40 @@ master_bedroom:
name: Master Bedroom name: Master Bedroom
entities: entities:
- light.nightstand - light.nightstand
- scene.master_bedroom_nightlight - input_select.scene_master_bedroom
- scene.master_bedroom_dimmed
- scene.master_bedroom_relax
- scene.master_bedroom_read
master_bathroom: master_bathroom:
name: Master Bathroom name: Master Bathroom
entities: entities:
- light.master_bath_1 - light.master_bath_1
- light.master_bath_2 - light.master_bath_2
- light.master_bath_3 - light.master_bath_3
- scene.master_bath_nightlight - input_select.scene_master_bath
- scene.master_bath_dimmed
- scene.master_bath_relax
- scene.master_bath_read
- scene.master_bath_concentrate
living_room: living_room:
name: Living Room name: Living Room
entities: entities:
- light.endtable - light.endtable
- light.corner_table - light.corner_table
- scene.lr_nightlight - input_select.scene_lr
- scene.lr_dimmed
- scene.lr_relax
- scene.lr_read
dining_area: dining_area:
name: Kitchen & Dining name: Kitchen & Dining
entities: entities:
- switch.kitchen - switch.kitchen
- light.ceiling_fan_1 - light.ceiling_fan_1
- light.ceiling_fan_2 - light.ceiling_fan_2
- scene.da_nightlight - input_select.scene_da
- scene.da_dimmed
- scene.da_relax
- scene.da_read
office: office:
name: Office name: Office
entities: entities:
- light.office - light.office
- light.ericks_desk_lamp - light.ericks_desk_lamp
- switch.lava_lamp - switch.lava_lamp
- scene.office_nightlight - input_select.scene_office
- scene.office_dimmed - input_select.scene_ericks_desk_lamp
- scene.office_relax
- scene.office_read
- scene.ericks_desk_lamp_nightlight
- scene.ericks_desk_lamp_relax
balcony: balcony:
name: Balcony name: Balcony
entities: entities:
- light.balcony - light.balcony
- scene.balcony_nightlight - input_select.scene_balcony
- scene.balcony_dimmed
- scene.balcony_relax
- scene.balcony_read
- scene.balcony_concentrate
other: other:
name: Other name: Other
entities: 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