diff --git a/configuration/automations/ac.yaml b/configuration/automations/ac.yaml index d7b617f..a387743 100644 --- a/configuration/automations/ac.yaml +++ b/configuration/automations/ac.yaml @@ -12,6 +12,9 @@ - condition: state entity_id: input_select.home_mode state: Day + - condition: state + entity_id: input_boolean.vacation_mode + state: 'off' - condition: state entity_id: binary_sensor.dining_window_1_open_close state: 'off' diff --git a/configuration/automations/alarm-notify-guest.yaml b/configuration/automations/alarm-notify-guest.yaml new file mode 100644 index 0000000..7b07767 --- /dev/null +++ b/configuration/automations/alarm-notify-guest.yaml @@ -0,0 +1,24 @@ +- id: alarm-notify-guest + alias: '[Alarm] Notify about guest' + description: '' + mode: single + trigger: + - platform: state + entity_id: + - person.andrzej_legowski + - person.piotr_madej + - person.matka + - person.mariusz_ablewicz + to: home + condition: + - condition: not + conditions: + - condition: state + entity_id: alarm_control_panel.home_alarm + state: disarmed + action: + - service: notify.mobile_app_iphone_pg + data: + title: "Someone is near home" + message: > + {{ state_attr(trigger.entity_id, 'friendly_name') }} has connected to guest wifi \ No newline at end of file diff --git a/configuration/automations/alarm-vacation-disarm-andrzej.yaml b/configuration/automations/alarm-vacation-disarm-andrzej.yaml new file mode 100644 index 0000000..f3de776 --- /dev/null +++ b/configuration/automations/alarm-vacation-disarm-andrzej.yaml @@ -0,0 +1,23 @@ +- id: alarm-disarm-andrzej + alias: "[Alarm][Vacation] Disarm Andrzej arrive" + mode: single + trigger: + - platform: state + entity_id: + - person.andrzej_legowski + to: home + condition: [ ] + action: + - service: script.arrive_home + +- id: alarm-disarm-andrzej + alias: "[Alarm][Vacation] Disarm Andrzej arrive" + mode: single + trigger: + - platform: state + entity_id: + - person.andrzej_legowski + to: not_home + action: + - service: script.leave_home + diff --git a/configuration/automations/f1.yaml b/configuration/automations/f1.yaml index f2c4a92..28be2e2 100644 --- a/configuration/automations/f1.yaml +++ b/configuration/automations/f1.yaml @@ -5,6 +5,10 @@ - platform: state entity_id: calendar.2021_fia_formula_one_world_championship_race_calendar to: 'on' + condition: + - condition: state + entity_id: input_select.home_mode + state: Day action: - service: media_player.play_media data: diff --git a/configuration/automations/vacation.yaml b/configuration/automations/vacation.yaml new file mode 100644 index 0000000..63de3fb --- /dev/null +++ b/configuration/automations/vacation.yaml @@ -0,0 +1,29 @@ +- id: vacation-enable + alias: '[Vacation] mode enabled' + trigger: + - platform: state + entity_id: + - input_boolean.vacation_mode + to: 'on' + action: + - service: presence_simulation.start + data: + entity_id: + - light.bedroom_lights + - light.bed_lamps + - light.office + - light.kitchen_lights + - light.hallway_light + delta: 5 + restore_states: True + random: 300 + +- id: vacation-disable + alias: '[Vacation] mode disabled' + trigger: + - platform: state + entity_id: + - input_boolean.vacation_mode + to: 'off' + action: + - service: presence_simulation.stop diff --git a/configuration/configuration.yaml b/configuration/configuration.yaml index 51a0426..7655ebf 100644 --- a/configuration/configuration.yaml +++ b/configuration/configuration.yaml @@ -37,6 +37,9 @@ input_boolean: sleep_mode: name: "Sleep mode" icon: "mdi:weather-night" + vacation_mode: + name: "Vacation mode" + icon: "mdi:beach" vacuum_office: name: "Vacuum Office" icon: "mdi:chair-rolling"