AutomationDataset/davidorlea/description-ready.json

2393 lines
92 KiB
JSON

[
{
"id": "172a87e1-2a8b-43df-b17a-4a63d57540a4",
"automation": "- alias: Activate Sleep Mode of Adaptive Lighting\n id: 172a87e1-2a8b-43df-b17a-4a63d57540a4\n trigger:\n platform: state\n entity_id: input_select.bed_mode\n from: just on\n to: 'on'\n action:\n service: switch.turn_on\n target:\n entity_id:\n - switch.adaptive_lighting_sleep_mode_kitchen\n - switch.adaptive_lighting_sleep_mode_living_room",
"config": [
{
"name": "bed mode input select",
"room": "bedroom",
"type": "input_select",
"id": {
"entity_id": "input_select.bed_mode",
"device_id": null
}
},
{
"name": "adaptive lighting sleep mode kitchen",
"room": "kitchen",
"type": "switch",
"id": {
"entity_id": "switch.adaptive_lighting_sleep_mode_kitchen",
"device_id": null
}
},
{
"name": "adaptive lighting sleep mode living room",
"room": "living_room",
"type": "switch",
"id": {
"entity_id": "switch.adaptive_lighting_sleep_mode_living_room",
"device_id": null
}
}
]
},
{
"id": "2e3918de-b332-4787-940d-f64e5d5e8b21",
"automation": "- alias: Deactivate Sleep Mode of Adaptive Lighting\n id: 2e3918de-b332-4787-940d-f64e5d5e8b21\n trigger:\n platform: state\n entity_id: input_select.bed_mode\n from: 'on'\n to: just off\n action:\n service: switch.turn_off\n target:\n entity_id:\n - switch.adaptive_lighting_sleep_mode_kitchen\n - switch.adaptive_lighting_sleep_mode_living_room",
"config": [
{
"name": "bed mode input select",
"room": "bedroom",
"type": "input_select",
"id": {
"entity_id": "input_select.bed_mode",
"device_id": null
}
},
{
"name": "adaptive lighting sleep mode kitchen",
"room": "kitchen",
"type": "switch",
"id": {
"entity_id": "switch.adaptive_lighting_sleep_mode_kitchen",
"device_id": null
}
},
{
"name": "adaptive lighting sleep mode living room",
"room": "living_room",
"type": "switch",
"id": {
"entity_id": "switch.adaptive_lighting_sleep_mode_living_room",
"device_id": null
}
}
]
},
{
"id": "496e0316-b945-4f9c-a7dc-cb025d4971a9",
"automation": "- alias: Intrusion Alarm\n id: 496e0316-b945-4f9c-a7dc-cb025d4971a9\n trigger:\n platform: state\n entity_id:\n - binary_sensor.bedroom_motion_sensor_occupancy\n - binary_sensor.bedroom_window_left_contact\n - binary_sensor.bedroom_window_right_contact\n - binary_sensor.hall_motion_sensor_occupancy\n - binary_sensor.kitchen_motion_sensor_occupancy\n - binary_sensor.living_room_motion_sensor_occupancy\n - binary_sensor.outdoor_frontdoor_contact\n - binary_sensor.outdoor_backdoor_contact\n from: 'off'\n to: 'on'\n condition:\n condition: or\n conditions:\n - condition: state\n entity_id: input_select.away_mode\n state: just on\n - condition: state\n entity_id: input_select.away_mode\n state: 'on'\n action:\n - parallel:\n - if:\n - condition: state\n entity_id: input_boolean.intrusion_alarm_notification\n state: 'on'\n then:\n - service: notify.mobile_app_iphone_von_david\n data:\n title: Intrusion Alarm\n message: Intrusion detected at home!\n data:\n tag: intrusion-alarm\n push:\n sound:\n name: default\n critical: 1\n volume: 1.0\n - if:\n - condition: state\n entity_id: input_boolean.intrusion_alarm_siren\n state: 'on'\n then:\n - service: script.sonos_play\n data:\n devices:\n - media_player.sonos_device_wohnzimmer\n - media_player.sonos_device_kuche\n - media_player.sonos_device_schlafzimmer\n source: http://192.168.178.10:8123/local/sounds/alarm_siren.mp3\n volume: 0.2",
"config": [
{
"name": "bedroom motion sensor occupancy",
"room": "bedroom",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.bedroom_motion_sensor_occupancy",
"device_id": null
}
},
{
"name": "bedroom window left contact",
"room": "bedroom",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.bedroom_window_left_contact",
"device_id": null
}
},
{
"name": "bedroom window right contact",
"room": "bedroom",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.bedroom_window_right_contact",
"device_id": null
}
},
{
"name": "hall motion sensor occupancy",
"room": "hall",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.hall_motion_sensor_occupancy",
"device_id": null
}
},
{
"name": "kitchen motion sensor occupancy",
"room": "kitchen",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.kitchen_motion_sensor_occupancy",
"device_id": null
}
},
{
"name": "living room motion sensor occupancy",
"room": "living_room",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.living_room_motion_sensor_occupancy",
"device_id": null
}
},
{
"name": "outdoor frontdoor contact",
"room": "outdoor",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.outdoor_frontdoor_contact",
"device_id": null
}
},
{
"name": "outdoor backdoor contact",
"room": "outdoor",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.outdoor_backdoor_contact",
"device_id": null
}
},
{
"name": "away mode input select",
"room": null,
"type": "input_select",
"id": {
"entity_id": "input_select.away_mode",
"device_id": null
}
},
{
"name": "intrusion alarm notification input boolean",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.intrusion_alarm_notification",
"device_id": null
}
},
{
"name": "intrusion alarm siren input boolean",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.intrusion_alarm_siren",
"device_id": null
}
},
{
"name": "mobile app iphone von david",
"room": null,
"type": "notify",
"id": {
"entity_id": "notify.mobile_app_iphone_von_david",
"device_id": null
}
},
{
"name": "sonos device wohnzimmer",
"room": "living_room",
"type": "media_player",
"id": {
"entity_id": "media_player.sonos_device_wohnzimmer",
"device_id": null
}
},
{
"name": "sonos device kuche",
"room": "kitchen",
"type": "media_player",
"id": {
"entity_id": "media_player.sonos_device_kuche",
"device_id": null
}
},
{
"name": "sonos device schlafzimmer",
"room": "bedroom",
"type": "media_player",
"id": {
"entity_id": "media_player.sonos_device_schlafzimmer",
"device_id": null
}
},
{
"name": "Sonos Play",
"room": null,
"type": "script",
"id": {
"entity_id": "script.sonos_play",
"device_id": null
}
}
]
},
{
"id": "2b33953a-560a-4344-9985-776bf654d45d",
"automation": "- alias: Water Leak Alarm\n id: 2b33953a-560a-4344-9985-776bf654d45d\n trigger:\n platform: state\n entity_id:\n - binary_sensor.bathroom_water_leak_sensor_water_leak\n from: 'off'\n to: 'on'\n action:\n - service: notify.mobile_app_iphone_von_david\n data:\n title: Water Leak Alarm\n message: Water leak detected at home!\n data:\n tag: water-leak-alarm\n push:\n sound:\n name: default\n critical: 1\n volume: 1.0\n - service: script.sonos_play\n data:\n devices:\n - media_player.sonos_device_wohnzimmer\n - media_player.sonos_device_kuche\n - media_player.sonos_device_schlafzimmer\n source: http://192.168.178.10:8123/local/sounds/alarm_siren.mp3\n volume: 0.2",
"config": [
{
"name": "mobile app iphone von david",
"room": null,
"type": "notify",
"id": {
"entity_id": "notify.mobile_app_iphone_von_david",
"device_id": null
}
},
{
"name": "sonos device wohnzimmer",
"room": "living_room",
"type": "media_player",
"id": {
"entity_id": "media_player.sonos_device_wohnzimmer",
"device_id": null
}
},
{
"name": "sonos device kuche",
"room": "kitchen",
"type": "media_player",
"id": {
"entity_id": "media_player.sonos_device_kuche",
"device_id": null
}
},
{
"name": "sonos device schlafzimmer",
"room": "bedroom",
"type": "media_player",
"id": {
"entity_id": "media_player.sonos_device_schlafzimmer",
"device_id": null
}
},
{
"name": "bathroom water leak sensor water leak",
"room": "bathroom",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.bathroom_water_leak_sensor_water_leak",
"device_id": null
}
},
{
"name": "Sonos Play",
"room": null,
"type": "script",
"id": {
"entity_id": "script.sonos_play",
"device_id": null
}
}
]
},
{
"id": "5bed22d4-e379-4d9e-9363-4c7717c6358b",
"automation": "- alias: Alarm Clock\n id: 5bed22d4-e379-4d9e-9363-4c7717c6358b\n trigger:\n platform: template\n value_template: '{{ states(''sensor.time'') == ((state_attr(''input_datetime.alarm_clock'',\n ''timestamp'') - 600) | timestamp_custom(''%H:%M'', False)) }}'\n condition:\n - condition: state\n entity_id: input_boolean.alarm_clock\n state: 'on'\n - condition: or\n conditions:\n - condition: state\n entity_id: input_select.bed_mode\n state: 'on'\n - condition: state\n entity_id: input_select.bed_mode\n state: just on\n action:\n - event: alarm_clock_wake_up_started\n event_data:\n delay: 600\n - delay:\n seconds: 600\n - event: alarm_clock_wake_up_finished\n - service: media_player.unjoin\n data:\n entity_id: media_player.sonos_device_schlafzimmer\n - service: media_player.volume_set\n target:\n entity_id: media_player.sonos_device_schlafzimmer\n data:\n volume_level: 0.04\n - service: media_player.volume_mute\n target:\n entity_id: media_player.sonos_device_schlafzimmer\n data:\n is_volume_muted: false\n - service: media_player.shuffle_set\n target:\n entity_id: media_player.sonos_device_schlafzimmer\n data:\n shuffle: true\n - service: media_player.select_source\n target:\n entity_id: media_player.sonos_device_schlafzimmer\n data:\n source: Apple Music Hits",
"config": [
{
"name": "bed mode input select",
"room": "bedroom",
"type": "input_select",
"id": {
"entity_id": "input_select.bed_mode",
"device_id": null
}
},
{
"name": "sonos device schlafzimmer",
"room": "bedroom",
"type": "media_player",
"id": {
"entity_id": "media_player.sonos_device_schlafzimmer",
"device_id": null
}
},
{
"name": "time sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.time",
"device_id": null
}
},
{
"name": "alarm clock input datetime",
"room": null,
"type": "input_datetime",
"id": {
"entity_id": "input_datetime.alarm_clock",
"device_id": null
}
},
{
"name": "alarm clock input boolean",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.alarm_clock",
"device_id": null
}
}
]
},
{
"id": "c4c3fa9d-454a-4761-b34f-3b55ce72e22a",
"automation": "- alias: Transition Away Mode From Just On to On\n id: c4c3fa9d-454a-4761-b34f-3b55ce72e22a\n trigger:\n platform: state\n entity_id: input_select.away_mode\n to: just on\n for:\n minutes: 30\n action:\n service: input_select.select_option\n target:\n entity_id: input_select.away_mode\n data:\n option: 'on'",
"config": [
{
"name": "away mode input select",
"room": null,
"type": "input_select",
"id": {
"entity_id": "input_select.away_mode",
"device_id": null
}
}
]
},
{
"id": "0f672737-6463-4eb3-aecd-63e7f7791b24",
"automation": "- alias: Transition Away Mode From Just Off to Off\n id: 0f672737-6463-4eb3-aecd-63e7f7791b24\n trigger:\n platform: state\n entity_id: input_select.away_mode\n to: just off\n for:\n minutes: 10\n action:\n service: input_select.select_option\n target:\n entity_id: input_select.away_mode\n data:\n option: 'off'",
"config": [
{
"name": "away mode input select",
"room": null,
"type": "input_select",
"id": {
"entity_id": "input_select.away_mode",
"device_id": null
}
}
]
},
{
"id": "8c9f579e-effb-4bdf-babe-70e3a3736cbc",
"automation": "- alias: Transition Away Mode From Off to Just On\n id: 8c9f579e-effb-4bdf-babe-70e3a3736cbc\n trigger:\n platform: state\n entity_id: person.david\n from: home\n to: not_home\n condition:\n condition: state\n entity_id: input_select.away_mode\n state: 'off'\n action:\n service: input_select.select_option\n target:\n entity_id: input_select.away_mode\n data:\n option: just on",
"config": [
{
"name": "away mode input select",
"room": null,
"type": "input_select",
"id": {
"entity_id": "input_select.away_mode",
"device_id": null
}
},
{
"name": "person david",
"room": null,
"type": "person",
"id": {
"entity_id": "person.david",
"device_id": null
}
}
]
},
{
"id": "6b6c2087-cd67-4be6-b02d-caae12729c42",
"automation": "- alias: Transition Away Mode From Just Off to On\n id: 6b6c2087-cd67-4be6-b02d-caae12729c42\n trigger:\n platform: state\n entity_id: person.david\n from: home\n to: not_home\n condition:\n condition: state\n entity_id: input_select.away_mode\n state: just off\n action:\n service: input_select.select_option\n target:\n entity_id: input_select.away_mode\n data:\n option: 'on'",
"config": [
{
"name": "away mode input select",
"room": null,
"type": "input_select",
"id": {
"entity_id": "input_select.away_mode",
"device_id": null
}
},
{
"name": "person david",
"room": null,
"type": "person",
"id": {
"entity_id": "person.david",
"device_id": null
}
}
]
},
{
"id": "e7be0f56-70a8-4a21-9f97-1f65bbb08489",
"automation": "- alias: Transition Away Mode From On to Just Off\n id: e7be0f56-70a8-4a21-9f97-1f65bbb08489\n trigger:\n platform: state\n entity_id: person.david\n from: not_home\n to: home\n condition:\n condition: state\n entity_id: input_select.away_mode\n state: 'on'\n action:\n service: input_select.select_option\n target:\n entity_id: input_select.away_mode\n data:\n option: just off",
"config": [
{
"name": "away mode input select",
"room": null,
"type": "input_select",
"id": {
"entity_id": "input_select.away_mode",
"device_id": null
}
},
{
"name": "person david",
"room": null,
"type": "person",
"id": {
"entity_id": "person.david",
"device_id": null
}
}
]
},
{
"id": "cf3dfc60-ac0c-4f64-940d-80d47f7986e0",
"automation": "- alias: Transition Away Mode From Just On to Off\n id: cf3dfc60-ac0c-4f64-940d-80d47f7986e0\n trigger:\n platform: state\n entity_id: person.david\n from: not_home\n to: home\n condition:\n condition: state\n entity_id: input_select.away_mode\n state: just on\n action:\n service: input_select.select_option\n target:\n entity_id: input_select.away_mode\n data:\n option: 'off'",
"config": [
{
"name": "away mode input select",
"room": null,
"type": "input_select",
"id": {
"entity_id": "input_select.away_mode",
"device_id": null
}
},
{
"name": "person david",
"room": null,
"type": "person",
"id": {
"entity_id": "person.david",
"device_id": null
}
}
]
},
{
"id": "ca2eea25-0572-478b-a3c1-1463663224e5",
"automation": "- alias: Turn Bedroom Ceiling Light on when there is Movement\n id: ca2eea25-0572-478b-a3c1-1463663224e5\n trigger:\n platform: state\n entity_id: binary_sensor.bedroom_motion_sensor_occupancy\n from: 'off'\n to: 'on'\n condition:\n - condition: state\n entity_id: input_select.bed_mode\n state:\n - just off\n - 'off'\n - condition: or\n conditions:\n - condition: state\n entity_id: sensor.period_of_day\n state:\n - Sunrise\n - Day\n - Sunset\n - condition: state\n entity_id:\n - binary_sensor.bedroom_window_left_contact\n - binary_sensor.bedroom_window_right_contact\n state: 'off'\n action:\n service: light.turn_on\n target:\n entity_id: light.bedroom_ceiling_light",
"config": [
{
"name": "bed mode input select",
"room": "bedroom",
"type": "input_select",
"id": {
"entity_id": "input_select.bed_mode",
"device_id": null
}
},
{
"name": "bedroom motion sensor occupancy",
"room": "bedroom",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.bedroom_motion_sensor_occupancy",
"device_id": null
}
},
{
"name": "bedroom window left contact",
"room": "bedroom",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.bedroom_window_left_contact",
"device_id": null
}
},
{
"name": "bedroom window right contact",
"room": "bedroom",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.bedroom_window_right_contact",
"device_id": null
}
},
{
"name": "period of day sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.period_of_day",
"device_id": null
}
},
{
"name": "bedroom ceiling light",
"room": "bedroom",
"type": "light",
"id": {
"entity_id": "light.bedroom_ceiling_light",
"device_id": null
}
}
]
},
{
"id": "4ae96393-de19-4df4-a54f-b0a886e51b39",
"automation": "- alias: Turn Bedroom Ceiling Light off after last Movement\n id: 4ae96393-de19-4df4-a54f-b0a886e51b39\n trigger:\n platform: state\n entity_id: binary_sensor.bedroom_motion_sensor_occupancy\n from: 'on'\n to: 'off'\n for:\n minutes: 1\n seconds: 30\n action:\n service: light.turn_off\n target:\n entity_id: light.bedroom_ceiling_light",
"config": [
{
"name": "bedroom motion sensor occupancy",
"room": "bedroom",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.bedroom_motion_sensor_occupancy",
"device_id": null
}
},
{
"name": "bedroom ceiling light",
"room": "bedroom",
"type": "light",
"id": {
"entity_id": "light.bedroom_ceiling_light",
"device_id": null
}
}
]
},
{
"id": "4176c9f3-b6c3-4662-9574-d3898f678db1",
"automation": "- alias: Turn Bedroom Ceiling Light on when closing Windows and there is Movement\n id: 4176c9f3-b6c3-4662-9574-d3898f678db1\n trigger:\n - platform: state\n entity_id:\n - binary_sensor.bedroom_window_left_contact\n - binary_sensor.bedroom_window_right_contact\n from: 'on'\n to: 'off'\n condition:\n - condition: state\n entity_id: input_select.bed_mode\n state:\n - just off\n - 'off'\n - condition: state\n entity_id: binary_sensor.bedroom_motion_sensor_occupancy\n state: 'on'\n - condition: state\n entity_id:\n - binary_sensor.bedroom_window_left_contact\n - binary_sensor.bedroom_window_right_contact\n state: 'off'\n action:\n service: light.turn_on\n target:\n entity_id: light.bedroom_ceiling_light",
"config": [
{
"name": "bed mode input select",
"room": "bedroom",
"type": "input_select",
"id": {
"entity_id": "input_select.bed_mode",
"device_id": null
}
},
{
"name": "bedroom motion sensor occupancy",
"room": "bedroom",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.bedroom_motion_sensor_occupancy",
"device_id": null
}
},
{
"name": "bedroom window left contact",
"room": "bedroom",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.bedroom_window_left_contact",
"device_id": null
}
},
{
"name": "bedroom window right contact",
"room": "bedroom",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.bedroom_window_right_contact",
"device_id": null
}
},
{
"name": "bedroom ceiling light",
"room": "bedroom",
"type": "light",
"id": {
"entity_id": "light.bedroom_ceiling_light",
"device_id": null
}
}
]
},
{
"id": "13b59629-0bf4-4582-998d-68c72b7abf7c",
"automation": "- alias: Turn Bedroom Ceiling Light off when opening Windows and there is Movement\n id: 13b59629-0bf4-4582-998d-68c72b7abf7c\n trigger:\n - platform: state\n entity_id:\n - binary_sensor.bedroom_window_left_contact\n - binary_sensor.bedroom_window_right_contact\n from: 'off'\n to: 'on'\n condition:\n - condition: not\n conditions:\n - condition: state\n entity_id: sensor.period_of_day\n state:\n - Sunrise\n - Day\n - Sunset\n - condition: state\n entity_id: binary_sensor.bedroom_motion_sensor_occupancy\n state: 'on'\n action:\n service: light.turn_off\n target:\n entity_id: light.bedroom_ceiling_light",
"config": [
{
"name": "bedroom motion sensor occupancy",
"room": "bedroom",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.bedroom_motion_sensor_occupancy",
"device_id": null
}
},
{
"name": "bedroom window left contact",
"room": "bedroom",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.bedroom_window_left_contact",
"device_id": null
}
},
{
"name": "bedroom window right contact",
"room": "bedroom",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.bedroom_window_right_contact",
"device_id": null
}
},
{
"name": "period of day sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.period_of_day",
"device_id": null
}
},
{
"name": "bedroom ceiling light",
"room": "bedroom",
"type": "light",
"id": {
"entity_id": "light.bedroom_ceiling_light",
"device_id": null
}
}
]
},
{
"id": "7b35e327-0f6a-4395-9dbd-82af35052d3c",
"automation": "- alias: Turn Bedroom Bed Light on\n id: 7b35e327-0f6a-4395-9dbd-82af35052d3c\n trigger:\n - platform: state\n entity_id: binary_sensor.bedroom_motion_sensor_occupancy\n from: 'off'\n to: 'on'\n - platform: state\n entity_id: input_select.bed_mode\n from: 'on'\n to: just off\n condition:\n - condition: state\n entity_id: binary_sensor.bedroom_motion_sensor_occupancy\n state: 'on'\n - condition: state\n entity_id: input_select.bed_mode\n state:\n - just off\n - 'off'\n - condition: state\n entity_id: sensor.period_of_day\n state:\n - Dusk\n - Night\n - Dawn\n action:\n service: light.turn_on\n target:\n entity_id: light.bedroom_bed_light",
"config": [
{
"name": "bed mode input select",
"room": "bedroom",
"type": "input_select",
"id": {
"entity_id": "input_select.bed_mode",
"device_id": null
}
},
{
"name": "bedroom motion sensor occupancy",
"room": "bedroom",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.bedroom_motion_sensor_occupancy",
"device_id": null
}
},
{
"name": "period of day sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.period_of_day",
"device_id": null
}
},
{
"name": "bedroom bed light",
"room": "bedroom",
"type": "light",
"id": {
"entity_id": "light.bedroom_bed_light",
"device_id": null
}
}
]
},
{
"id": "be121c48-e608-4bf3-901c-3eaf9157b734",
"automation": "- alias: Turn Bedroom Bed Light off\n id: be121c48-e608-4bf3-901c-3eaf9157b734\n trigger:\n - platform: state\n entity_id: binary_sensor.bedroom_motion_sensor_occupancy\n from: 'on'\n to: 'off'\n for:\n minutes: 1\n seconds: 30\n condition:\n - condition: state\n entity_id: input_select.bed_mode\n state:\n - just off\n - 'off'\n action:\n service: light.turn_off\n target:\n entity_id: light.bedroom_bed_light",
"config": [
{
"name": "bed mode input select",
"room": "bedroom",
"type": "input_select",
"id": {
"entity_id": "input_select.bed_mode",
"device_id": null
}
},
{
"name": "bedroom motion sensor occupancy",
"room": "bedroom",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.bedroom_motion_sensor_occupancy",
"device_id": null
}
},
{
"name": "bedroom bed light",
"room": "bedroom",
"type": "light",
"id": {
"entity_id": "light.bedroom_bed_light",
"device_id": null
}
}
]
},
{
"id": "3a478c03-2e81-4036-9962-4ee3a7e94930",
"automation": "- alias: Turn Bedroom Cabinet and Dresser Light on\n id: 3a478c03-2e81-4036-9962-4ee3a7e94930\n trigger:\n - platform: state\n entity_id: binary_sensor.bedroom_motion_sensor_occupancy\n from: 'off'\n to: 'on'\n - platform: state\n entity_id: binary_sensor.hall_motion_sensor_occupancy\n from: 'off'\n to: 'on'\n - platform: state\n entity_id: input_select.bed_mode\n from: 'on'\n to: just off\n condition:\n - condition: or\n conditions:\n - condition: state\n entity_id: binary_sensor.bedroom_motion_sensor_occupancy\n state: 'on'\n - condition: state\n entity_id: binary_sensor.hall_motion_sensor_occupancy\n state: 'on'\n - condition: state\n entity_id: input_select.bed_mode\n state:\n - just off\n - 'off'\n - condition: state\n entity_id: sensor.period_of_day\n state:\n - Dusk\n - Night\n - Dawn\n action:\n service: light.turn_on\n target:\n entity_id:\n - light.bedroom_cabinet_light\n - light.bedroom_dresser_light",
"config": [
{
"name": "bed mode input select",
"room": "bedroom",
"type": "input_select",
"id": {
"entity_id": "input_select.bed_mode",
"device_id": null
}
},
{
"name": "bedroom motion sensor occupancy",
"room": "bedroom",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.bedroom_motion_sensor_occupancy",
"device_id": null
}
},
{
"name": "hall motion sensor occupancy",
"room": "hall",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.hall_motion_sensor_occupancy",
"device_id": null
}
},
{
"name": "period of day sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.period_of_day",
"device_id": null
}
},
{
"name": "bedroom cabinet light",
"room": "bedroom",
"type": "light",
"id": {
"entity_id": "light.bedroom_cabinet_light",
"device_id": null
}
},
{
"name": "bedroom dresser light",
"room": "bedroom",
"type": "light",
"id": {
"entity_id": "light.bedroom_dresser_light",
"device_id": null
}
}
]
},
{
"id": "cb3f2886-4522-4f12-9a29-a3b7fa902f02",
"automation": "- alias: Turn Bedroom Cabinet and Dresser Light off\n id: cb3f2886-4522-4f12-9a29-a3b7fa902f02\n trigger:\n - platform: state\n entity_id: binary_sensor.bedroom_motion_sensor_occupancy\n from: 'on'\n to: 'off'\n for:\n minutes: 1\n seconds: 30\n - platform: state\n entity_id: binary_sensor.hall_motion_sensor_occupancy\n from: 'on'\n to: 'off'\n for:\n minutes: 3\n condition:\n - condition: state\n entity_id: binary_sensor.bedroom_motion_sensor_occupancy\n state: 'off'\n for:\n minutes: 1\n seconds: 30\n - condition: state\n entity_id: binary_sensor.hall_motion_sensor_occupancy\n state: 'off'\n for:\n minutes: 3\n - condition: state\n entity_id: input_select.bed_mode\n state:\n - just off\n - 'off'\n action:\n service: light.turn_off\n target:\n entity_id:\n - light.bedroom_cabinet_light\n - light.bedroom_dresser_light",
"config": [
{
"name": "bed mode input select",
"room": "bedroom",
"type": "input_select",
"id": {
"entity_id": "input_select.bed_mode",
"device_id": null
}
},
{
"name": "bedroom motion sensor occupancy",
"room": "bedroom",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.bedroom_motion_sensor_occupancy",
"device_id": null
}
},
{
"name": "hall motion sensor occupancy",
"room": "hall",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.hall_motion_sensor_occupancy",
"device_id": null
}
},
{
"name": "bedroom cabinet light",
"room": "bedroom",
"type": "light",
"id": {
"entity_id": "light.bedroom_cabinet_light",
"device_id": null
}
},
{
"name": "bedroom dresser light",
"room": "bedroom",
"type": "light",
"id": {
"entity_id": "light.bedroom_dresser_light",
"device_id": null
}
}
]
},
{
"id": "70f1accf-baed-461a-8ce5-d98ef1caa656",
"automation": "- alias: Transition Bed Mode From Just On to On\n id: 70f1accf-baed-461a-8ce5-d98ef1caa656\n trigger:\n platform: state\n entity_id: input_select.bed_mode\n to: just on\n for:\n minutes: 30\n action:\n service: input_select.select_option\n target:\n entity_id: input_select.bed_mode\n data:\n option: 'on'",
"config": [
{
"name": "bed mode input select",
"room": "bedroom",
"type": "input_select",
"id": {
"entity_id": "input_select.bed_mode",
"device_id": null
}
}
]
},
{
"id": "aac75176-cda4-4715-832a-1296b9e010f8",
"automation": "- alias: Transition Bed Mode From Just Off to Off\n id: aac75176-cda4-4715-832a-1296b9e010f8\n trigger:\n platform: state\n entity_id: input_select.bed_mode\n to: just off\n for:\n minutes: 5\n action:\n service: input_select.select_option\n target:\n entity_id: input_select.bed_mode\n data:\n option: 'off'",
"config": [
{
"name": "bed mode input select",
"room": "bedroom",
"type": "input_select",
"id": {
"entity_id": "input_select.bed_mode",
"device_id": null
}
}
]
},
{
"id": "ce393b1a-b360-41d6-a527-1763128657cb",
"automation": "- alias: Transition Bed Mode From Off to Just On\n id: ce393b1a-b360-41d6-a527-1763128657cb\n trigger:\n platform: state\n entity_id: binary_sensor.bedroom_bed_occupancy\n from: 'off'\n to: 'on'\n condition:\n condition: state\n entity_id: input_select.bed_mode\n state: 'off'\n action:\n service: input_select.select_option\n target:\n entity_id: input_select.bed_mode\n data:\n option: just on",
"config": [
{
"name": "bed mode input select",
"room": "bedroom",
"type": "input_select",
"id": {
"entity_id": "input_select.bed_mode",
"device_id": null
}
},
{
"name": "bedroom bed occupancy",
"room": "bedroom",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.bedroom_bed_occupancy",
"device_id": null
}
}
]
},
{
"id": "3053b38a-cc3f-4543-81cf-cd39430631a7",
"automation": "- alias: Transition Bed Mode From Just Off to On\n id: 3053b38a-cc3f-4543-81cf-cd39430631a7\n trigger:\n platform: state\n entity_id: binary_sensor.bedroom_bed_occupancy\n from: 'off'\n to: 'on'\n condition:\n condition: state\n entity_id: input_select.bed_mode\n state: just off\n action:\n service: input_select.select_option\n target:\n entity_id: input_select.bed_mode\n data:\n option: 'on'",
"config": [
{
"name": "bed mode input select",
"room": "bedroom",
"type": "input_select",
"id": {
"entity_id": "input_select.bed_mode",
"device_id": null
}
},
{
"name": "bedroom bed occupancy",
"room": "bedroom",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.bedroom_bed_occupancy",
"device_id": null
}
}
]
},
{
"id": "70baf7e8-3309-495e-9b69-694de5346f39",
"automation": "- alias: Transition Bed Mode From On to Just Off\n id: 70baf7e8-3309-495e-9b69-694de5346f39\n trigger:\n platform: state\n entity_id: binary_sensor.bedroom_bed_occupancy\n from: 'on'\n to: 'off'\n condition:\n condition: state\n entity_id: input_select.bed_mode\n state: 'on'\n action:\n service: input_select.select_option\n target:\n entity_id: input_select.bed_mode\n data:\n option: just off",
"config": [
{
"name": "bed mode input select",
"room": "bedroom",
"type": "input_select",
"id": {
"entity_id": "input_select.bed_mode",
"device_id": null
}
},
{
"name": "bedroom bed occupancy",
"room": "bedroom",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.bedroom_bed_occupancy",
"device_id": null
}
}
]
},
{
"id": "5b8858ea-4e4a-40c7-959a-8d86b4a0beaf",
"automation": "- alias: Transition Bed Mode From Just On to Off\n id: 5b8858ea-4e4a-40c7-959a-8d86b4a0beaf\n trigger:\n platform: state\n entity_id: binary_sensor.bedroom_bed_occupancy\n from: 'on'\n to: 'off'\n condition:\n condition: state\n entity_id: input_select.bed_mode\n state: just on\n action:\n service: input_select.select_option\n target:\n entity_id: input_select.bed_mode\n data:\n option: 'off'",
"config": [
{
"name": "bed mode input select",
"room": "bedroom",
"type": "input_select",
"id": {
"entity_id": "input_select.bed_mode",
"device_id": null
}
},
{
"name": "bedroom bed occupancy",
"room": "bedroom",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.bedroom_bed_occupancy",
"device_id": null
}
}
]
},
{
"id": "dd2c9c06-bddd-43ef-8662-9710093d0f46",
"automation": "- alias: Turn Hall Ceiling Light on when there is Movement\n id: dd2c9c06-bddd-43ef-8662-9710093d0f46\n trigger:\n platform: state\n entity_id: binary_sensor.hall_motion_sensor_occupancy\n from: 'off'\n to: 'on'\n condition:\n condition: or\n conditions:\n - condition: state\n entity_id: sensor.period_of_day\n state:\n - Sunrise\n - Day\n - Sunset\n - condition: state\n entity_id: binary_sensor.outdoor_frontdoor_contact\n state: 'off'\n action:\n service: light.turn_on\n target:\n entity_id: light.hall_ceiling_light",
"config": [
{
"name": "hall motion sensor occupancy",
"room": "hall",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.hall_motion_sensor_occupancy",
"device_id": null
}
},
{
"name": "outdoor frontdoor contact",
"room": "outdoor",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.outdoor_frontdoor_contact",
"device_id": null
}
},
{
"name": "period of day sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.period_of_day",
"device_id": null
}
},
{
"name": "hall ceiling light",
"room": "hall",
"type": "light",
"id": {
"entity_id": "light.hall_ceiling_light",
"device_id": null
}
}
]
},
{
"id": "50f3bf81-9cfb-4ee6-93ac-98a6d9d63677",
"automation": "- alias: Turn Hall Ceiling Light off after last Movement\n id: 50f3bf81-9cfb-4ee6-93ac-98a6d9d63677\n trigger:\n platform: state\n entity_id: binary_sensor.hall_motion_sensor_occupancy\n from: 'on'\n to: 'off'\n for:\n minutes: 3\n action:\n service: light.turn_off\n target:\n entity_id: light.hall_ceiling_light",
"config": [
{
"name": "hall motion sensor occupancy",
"room": "hall",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.hall_motion_sensor_occupancy",
"device_id": null
}
},
{
"name": "hall ceiling light",
"room": "hall",
"type": "light",
"id": {
"entity_id": "light.hall_ceiling_light",
"device_id": null
}
}
]
},
{
"id": "e00270aa-a484-420c-a907-39f161e2a676",
"automation": "- alias: Turn Hall Ceiling Light on when opening Door\n id: e00270aa-a484-420c-a907-39f161e2a676\n trigger:\n platform: state\n entity_id: binary_sensor.outdoor_frontdoor_contact\n from: 'off'\n to: 'on'\n condition:\n condition: state\n entity_id: sensor.period_of_day\n state:\n - Sunrise\n - Day\n - Sunset\n action:\n service: light.turn_on\n target:\n entity_id: light.hall_ceiling_light",
"config": [
{
"name": "outdoor frontdoor contact",
"room": "outdoor",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.outdoor_frontdoor_contact",
"device_id": null
}
},
{
"name": "period of day sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.period_of_day",
"device_id": null
}
},
{
"name": "hall ceiling light",
"room": "hall",
"type": "light",
"id": {
"entity_id": "light.hall_ceiling_light",
"device_id": null
}
}
]
},
{
"id": "0234e869-b7ca-4d81-a661-097481a63adf",
"automation": "- alias: Turn Hall Ceiling Light off when opening Door\n id: 0234e869-b7ca-4d81-a661-097481a63adf\n trigger:\n platform: state\n entity_id: binary_sensor.outdoor_frontdoor_contact\n from: 'off'\n to: 'on'\n condition:\n condition: not\n conditions:\n - condition: state\n entity_id: sensor.period_of_day\n state:\n - Sunrise\n - Day\n - Sunset\n action:\n service: light.turn_off\n target:\n entity_id: light.hall_ceiling_light",
"config": [
{
"name": "outdoor frontdoor contact",
"room": "outdoor",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.outdoor_frontdoor_contact",
"device_id": null
}
},
{
"name": "period of day sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.period_of_day",
"device_id": null
}
},
{
"name": "hall ceiling light",
"room": "hall",
"type": "light",
"id": {
"entity_id": "light.hall_ceiling_light",
"device_id": null
}
}
]
},
{
"id": "14a20f2c-a2bf-4906-b5ab-83636906fc52",
"automation": "- alias: Turn Hall Ceiling Light on when closing Door and there is Movement\n id: 14a20f2c-a2bf-4906-b5ab-83636906fc52\n trigger:\n platform: state\n entity_id: binary_sensor.outdoor_frontdoor_contact\n from: 'on'\n to: 'off'\n condition:\n condition: state\n entity_id: binary_sensor.hall_motion_sensor_occupancy\n state: 'on'\n action:\n service: light.turn_on\n target:\n entity_id: light.hall_ceiling_light",
"config": [
{
"name": "hall motion sensor occupancy",
"room": "hall",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.hall_motion_sensor_occupancy",
"device_id": null
}
},
{
"name": "outdoor frontdoor contact",
"room": "outdoor",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.outdoor_frontdoor_contact",
"device_id": null
}
},
{
"name": "hall ceiling light",
"room": "hall",
"type": "light",
"id": {
"entity_id": "light.hall_ceiling_light",
"device_id": null
}
}
]
},
{
"id": "84446437-ea6c-424a-9a9c-9b4764587566",
"automation": "- alias: Turn Hall Ceiling Light off when closing Door without Movement\n id: 84446437-ea6c-424a-9a9c-9b4764587566\n trigger:\n platform: state\n entity_id: binary_sensor.outdoor_frontdoor_contact\n from: 'on'\n to: 'off'\n condition:\n condition: state\n entity_id: binary_sensor.hall_motion_sensor_occupancy\n state: 'off'\n action:\n service: light.turn_off\n target:\n entity_id: light.hall_ceiling_light",
"config": [
{
"name": "hall motion sensor occupancy",
"room": "hall",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.hall_motion_sensor_occupancy",
"device_id": null
}
},
{
"name": "outdoor frontdoor contact",
"room": "outdoor",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.outdoor_frontdoor_contact",
"device_id": null
}
},
{
"name": "hall ceiling light",
"room": "hall",
"type": "light",
"id": {
"entity_id": "light.hall_ceiling_light",
"device_id": null
}
}
]
},
{
"id": "8eb927c2-c053-453f-b29e-dd9724426f7a",
"automation": "- alias: Turn Coffee Maschine off\n id: 8eb927c2-c053-453f-b29e-dd9724426f7a\n trigger:\n - platform: state\n entity_id: input_select.away_mode\n from: 'off'\n to: just on\n - platform: state\n entity_id: input_select.bed_mode\n from: 'off'\n to: just on\n action:\n - service: switch.turn_off\n target:\n entity_id: switch.kitchen_coffee_machine_relay",
"config": [
{
"name": "bed mode input select",
"room": "bedroom",
"type": "input_select",
"id": {
"entity_id": "input_select.bed_mode",
"device_id": null
}
},
{
"name": "away mode input select",
"room": null,
"type": "input_select",
"id": {
"entity_id": "input_select.away_mode",
"device_id": null
}
},
{
"name": "kitchen coffee machine relay",
"room": "kitchen",
"type": "switch",
"id": {
"entity_id": "switch.kitchen_coffee_machine_relay",
"device_id": null
}
}
]
},
{
"id": "c2887c1d-e759-4d79-bcc5-1a3adee523ee",
"automation": "- alias: Turn Kitchen Fan on\n id: c2887c1d-e759-4d79-bcc5-1a3adee523ee\n trigger:\n - platform: state\n entity_id: fan.kitchen_fan\n to: 'off'\n for:\n hours: 6\n - platform: state\n entity_id: input_select.away_mode\n from: just on\n to: 'on'\n - platform: state\n entity_id: input_select.bed_mode\n from: just on\n to: 'on'\n condition:\n - condition: state\n entity_id: fan.kitchen_fan\n state: 'off'\n for:\n hours: 6\n - condition: or\n conditions:\n - condition: state\n entity_id: input_select.away_mode\n state: 'on'\n - condition: state\n entity_id: input_select.bed_mode\n state: 'on'\n action:\n - service: fan.turn_on\n target:\n entity_id: fan.kitchen_fan",
"config": [
{
"name": "bed mode input select",
"room": "bedroom",
"type": "input_select",
"id": {
"entity_id": "input_select.bed_mode",
"device_id": null
}
},
{
"name": "away mode input select",
"room": null,
"type": "input_select",
"id": {
"entity_id": "input_select.away_mode",
"device_id": null
}
},
{
"name": "kitchen fan",
"room": "kitchen",
"type": "fan",
"id": {
"entity_id": "fan.kitchen_fan",
"device_id": null
}
}
]
},
{
"id": "1ca528ab-9344-4252-a21e-286e01cb322f",
"automation": "- alias: Turn Kitchen Fan off\n id: 1ca528ab-9344-4252-a21e-286e01cb322f\n trigger:\n - platform: state\n entity_id: fan.kitchen_fan\n to: 'on'\n for:\n minutes: 60\n - platform: state\n entity_id: input_select.away_mode\n from: 'on'\n to: just off\n - platform: state\n entity_id: input_select.bed_mode\n from: 'on'\n to: just off\n action:\n - service: fan.turn_off\n target:\n entity_id: fan.kitchen_fan",
"config": [
{
"name": "bed mode input select",
"room": "bedroom",
"type": "input_select",
"id": {
"entity_id": "input_select.bed_mode",
"device_id": null
}
},
{
"name": "away mode input select",
"room": null,
"type": "input_select",
"id": {
"entity_id": "input_select.away_mode",
"device_id": null
}
},
{
"name": "kitchen fan",
"room": "kitchen",
"type": "fan",
"id": {
"entity_id": "fan.kitchen_fan",
"device_id": null
}
}
]
},
{
"id": "763269a9-c70f-4ae5-877e-fa35acea16fa",
"automation": "- alias: Turn Kitchen Ceiling and Counter Light on when there is Movement\n id: 763269a9-c70f-4ae5-877e-fa35acea16fa\n trigger:\n platform: state\n entity_id: binary_sensor.kitchen_motion_sensor_occupancy\n from: 'off'\n to: 'on'\n action:\n service: light.turn_on\n target:\n entity_id:\n - light.kitchen_ceiling_light\n - light.kitchen_counter_light",
"config": [
{
"name": "kitchen motion sensor occupancy",
"room": "kitchen",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.kitchen_motion_sensor_occupancy",
"device_id": null
}
},
{
"name": "kitchen ceiling light",
"room": "kitchen",
"type": "light",
"id": {
"entity_id": "light.kitchen_ceiling_light",
"device_id": null
}
},
{
"name": "kitchen counter light",
"room": "kitchen",
"type": "light",
"id": {
"entity_id": "light.kitchen_counter_light",
"device_id": null
}
}
]
},
{
"id": "57517167-d96e-4ba2-ab26-b050d4084689",
"automation": "- alias: Turn Kitchen Ceiling and Counter Light off after last Movement\n id: 57517167-d96e-4ba2-ab26-b050d4084689\n trigger:\n platform: state\n entity_id: binary_sensor.kitchen_motion_sensor_occupancy\n from: 'on'\n to: 'off'\n for:\n minutes: 5\n action:\n service: light.turn_off\n target:\n entity_id:\n - light.kitchen_ceiling_light\n - light.kitchen_counter_light",
"config": [
{
"name": "kitchen motion sensor occupancy",
"room": "kitchen",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.kitchen_motion_sensor_occupancy",
"device_id": null
}
},
{
"name": "kitchen ceiling light",
"room": "kitchen",
"type": "light",
"id": {
"entity_id": "light.kitchen_ceiling_light",
"device_id": null
}
},
{
"name": "kitchen counter light",
"room": "kitchen",
"type": "light",
"id": {
"entity_id": "light.kitchen_counter_light",
"device_id": null
}
}
]
},
{
"id": "912dcf60-5a35-4f9e-934b-c33fc5bdd16d",
"automation": "- alias: Turn Kitchen Sideboard Light on\n id: 912dcf60-5a35-4f9e-934b-c33fc5bdd16d\n trigger:\n - platform: state\n entity_id: sensor.period_of_day\n from: Sunset\n to: Dusk\n - platform: state\n entity_id:\n - input_select.away_mode\n - input_select.bed_mode\n from: 'on'\n to: just off\n condition:\n - condition: state\n entity_id: sensor.period_of_day\n state:\n - Dusk\n - Night\n - Dawn\n - condition: state\n entity_id: input_select.away_mode\n state:\n - just off\n - 'off'\n - condition: state\n entity_id: input_select.bed_mode\n state:\n - just off\n - 'off'\n action:\n service: script.random_color\n data:\n lights:\n - light.kitchen_sideboard_light",
"config": [
{
"name": "bed mode input select",
"room": "bedroom",
"type": "input_select",
"id": {
"entity_id": "input_select.bed_mode",
"device_id": null
}
},
{
"name": "away mode input select",
"room": null,
"type": "input_select",
"id": {
"entity_id": "input_select.away_mode",
"device_id": null
}
},
{
"name": "period of day sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.period_of_day",
"device_id": null
}
},
{
"name": "kitchen sideboard light",
"room": "kitchen",
"type": "light",
"id": {
"entity_id": "light.kitchen_sideboard_light",
"device_id": null
}
},
{
"name": "Random Color",
"room": null,
"type": "script",
"id": {
"entity_id": "script.random_color",
"device_id": null
}
}
]
},
{
"id": "213a5359-2fc3-47bd-9876-5dc402cbd7bd",
"automation": "- alias: Turn Kitchen Sideboard Light off\n id: 213a5359-2fc3-47bd-9876-5dc402cbd7bd\n trigger:\n - platform: state\n entity_id: sensor.period_of_day\n from: Dawn\n to: Sunrise\n - platform: state\n entity_id:\n - input_select.away_mode\n - input_select.bed_mode\n from:\n - just on\n - just off\n to: 'on'\n action:\n service: light.turn_off\n target:\n entity_id:\n - light.kitchen_sideboard_light",
"config": [
{
"name": "bed mode input select",
"room": "bedroom",
"type": "input_select",
"id": {
"entity_id": "input_select.bed_mode",
"device_id": null
}
},
{
"name": "away mode input select",
"room": null,
"type": "input_select",
"id": {
"entity_id": "input_select.away_mode",
"device_id": null
}
},
{
"name": "period of day sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.period_of_day",
"device_id": null
}
},
{
"name": "kitchen sideboard light",
"room": "kitchen",
"type": "light",
"id": {
"entity_id": "light.kitchen_sideboard_light",
"device_id": null
}
}
]
},
{
"id": "24c4a623-0628-45ae-964a-9436f3cba4d1",
"automation": "- alias: Turn TV on\n id: 24c4a623-0628-45ae-964a-9436f3cba4d1\n triggers:\n - trigger: device\n domain: mqtt\n device_id: 86d39ed7bb87433588884e39a14bc36d\n type: action\n subtype: brightness_move_up\n conditions:\n - condition: state\n entity_id: media_player.lg_webos_tv\n state: 'off'\n actions:\n - action: media_player.turn_on\n target:\n entity_id: media_player.lg_webos_tv",
"config": [
{
"name": "mqtt remote device",
"room": "living_room",
"type": "device",
"id": {
"entity_id": null,
"device_id": "86d39ed7bb87433588884e39a14bc36d"
}
},
{
"name": "lg webos tv",
"room": "living_room",
"type": "media_player",
"id": {
"entity_id": "media_player.lg_webos_tv",
"device_id": null
}
}
]
},
{
"id": "61529196-14fc-4945-adc3-18902d77c5ff",
"automation": "- alias: Turn TV off\n id: 61529196-14fc-4945-adc3-18902d77c5ff\n triggers:\n - trigger: device\n domain: mqtt\n device_id: 86d39ed7bb87433588884e39a14bc36d\n type: action\n subtype: brightness_move_down\n - platform: state\n entity_id: input_select.away_mode\n from: 'off'\n to: just on\n - platform: state\n entity_id: input_select.bed_mode\n from: 'off'\n to: just on\n conditions:\n - condition: state\n entity_id: media_player.lg_webos_tv\n state: 'on'\n actions:\n - action: media_player.turn_off\n target:\n entity_id: media_player.lg_webos_tv",
"config": [
{
"name": "bed mode input select",
"room": "bedroom",
"type": "input_select",
"id": {
"entity_id": "input_select.bed_mode",
"device_id": null
}
},
{
"name": "away mode input select",
"room": null,
"type": "input_select",
"id": {
"entity_id": "input_select.away_mode",
"device_id": null
}
},
{
"name": "mqtt remote device",
"room": "living_room",
"type": "device",
"id": {
"entity_id": null,
"device_id": "86d39ed7bb87433588884e39a14bc36d"
}
},
{
"name": "lg webos tv",
"room": "living_room",
"type": "media_player",
"id": {
"entity_id": "media_player.lg_webos_tv",
"device_id": null
}
}
]
},
{
"id": "d530c1f7-008d-487a-ac04-6dcd0e8dd2fd",
"automation": "- alias: Turn TV Volume up\n id: d530c1f7-008d-487a-ac04-6dcd0e8dd2fd\n triggers:\n - trigger: device\n domain: mqtt\n device_id: 86d39ed7bb87433588884e39a14bc36d\n type: action\n subtype: 'on'\n conditions:\n - condition: state\n entity_id: media_player.lg_webos_tv\n state: 'on'\n actions:\n - action: media_player.volume_up\n target:\n entity_id: media_player.lg_webos_tv",
"config": [
{
"name": "mqtt remote device",
"room": "living_room",
"type": "device",
"id": {
"entity_id": null,
"device_id": "86d39ed7bb87433588884e39a14bc36d"
}
},
{
"name": "lg webos tv",
"room": "living_room",
"type": "media_player",
"id": {
"entity_id": "media_player.lg_webos_tv",
"device_id": null
}
}
]
},
{
"id": "e2b8f04b-e7ff-45f0-8480-68cbfa1bc024",
"automation": "- alias: Turn TV Volume down\n id: e2b8f04b-e7ff-45f0-8480-68cbfa1bc024\n triggers:\n - trigger: device\n domain: mqtt\n device_id: 86d39ed7bb87433588884e39a14bc36d\n type: action\n subtype: 'off'\n conditions:\n - condition: state\n entity_id: media_player.lg_webos_tv\n state: 'on'\n actions:\n - action: media_player.volume_down\n target:\n entity_id: media_player.lg_webos_tv",
"config": [
{
"name": "mqtt remote device",
"room": "living_room",
"type": "device",
"id": {
"entity_id": null,
"device_id": "86d39ed7bb87433588884e39a14bc36d"
}
},
{
"name": "lg webos tv",
"room": "living_room",
"type": "media_player",
"id": {
"entity_id": "media_player.lg_webos_tv",
"device_id": null
}
}
]
},
{
"id": "23f2cd65-f5b3-491c-a87f-2055301daa28",
"automation": "- alias: Turn TV Power on\n id: 23f2cd65-f5b3-491c-a87f-2055301daa28\n triggers:\n - trigger: device\n domain: webostv\n device_id: ab25640d50b175aaff23e7a6e8459140\n type: webostv.turn_on\n condition:\n - condition: state\n entity_id: media_player.lg_webos_tv\n state: 'off'\n - condition: state\n entity_id: switch.living_room_tv\n state: 'off'\n actions:\n - service: switch.turn_on\n target:\n entity_id: switch.living_room_tv\n - delay:\n seconds: 5\n - repeat:\n sequence:\n - action: wake_on_lan.send_magic_packet\n data:\n mac: secret wake_on_lan_mac\n broadcast_address: secret wake_on_lan_broadcast_address\n broadcast_port: secret wake_on_lan_broadcast_port\n - delay:\n seconds: 2\n until:\n - condition: or\n conditions:\n - condition: state\n entity_id: media_player.lg_webos_tv\n state: 'on'\n - condition: template\n value_template: '{{ repeat.index >= 10 }}'",
"config": [
{
"name": "lg webos tv",
"room": "living_room",
"type": "media_player",
"id": {
"entity_id": "media_player.lg_webos_tv",
"device_id": null
}
},
{
"name": "living room tv switch",
"room": "living_room",
"type": "switch",
"id": {
"entity_id": "switch.living_room_tv",
"device_id": null
}
},
{
"name": "webostv device",
"room": "living_room",
"type": "device",
"id": {
"entity_id": null,
"device_id": "ab25640d50b175aaff23e7a6e8459140"
}
}
]
},
{
"id": "0958a97a-3efb-468a-9c75-eee8098f39ad",
"automation": "- alias: Turn TV Power off\n id: 0958a97a-3efb-468a-9c75-eee8098f39ad\n trigger:\n - platform: numeric_state\n entity_id: sensor.living_room_tv_power\n below: 5\n for:\n seconds: 30\n condition:\n - condition: state\n entity_id: media_player.lg_webos_tv\n state: 'off'\n - condition: state\n entity_id: switch.living_room_tv\n state: 'on'\n action:\n - service: switch.turn_off\n target:\n entity_id: switch.living_room_tv",
"config": [
{
"name": "lg webos tv",
"room": "living_room",
"type": "media_player",
"id": {
"entity_id": "media_player.lg_webos_tv",
"device_id": null
}
},
{
"name": "living room tv switch",
"room": "living_room",
"type": "switch",
"id": {
"entity_id": "switch.living_room_tv",
"device_id": null
}
},
{
"name": "living room tv power sensor",
"room": "living_room",
"type": "sensor",
"id": {
"entity_id": "sensor.living_room_tv_power",
"device_id": null
}
}
]
},
{
"id": "a9166a79-028c-40d2-b157-7dd6ec3189cb",
"automation": "- alias: Turn Living Room Ceiling Light on when there is Movement\n id: a9166a79-028c-40d2-b157-7dd6ec3189cb\n trigger:\n platform: state\n entity_id: binary_sensor.living_room_motion_sensor_occupancy\n from: 'off'\n to: 'on'\n condition:\n condition: state\n entity_id: input_select.bed_mode\n state:\n - 'on'\n - just on\n action:\n service: light.turn_on\n target:\n entity_id: light.living_room_ceiling_light",
"config": [
{
"name": "bed mode input select",
"room": "bedroom",
"type": "input_select",
"id": {
"entity_id": "input_select.bed_mode",
"device_id": null
}
},
{
"name": "living room motion sensor occupancy",
"room": "living_room",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.living_room_motion_sensor_occupancy",
"device_id": null
}
},
{
"name": "living room ceiling light",
"room": "living_room",
"type": "light",
"id": {
"entity_id": "light.living_room_ceiling_light",
"device_id": null
}
}
]
},
{
"id": "8de09585-9311-457c-be0b-84f7c8142d41",
"automation": "- alias: Turn Living Room Ceiling Light off after last Movement\n id: 8de09585-9311-457c-be0b-84f7c8142d41\n trigger:\n platform: state\n entity_id: binary_sensor.living_room_motion_sensor_occupancy\n from: 'on'\n to: 'off'\n for:\n minutes: 5\n condition:\n condition: state\n entity_id: input_select.bed_mode\n state:\n - 'on'\n - just on\n action:\n service: light.turn_off\n target:\n entity_id: light.living_room_ceiling_light",
"config": [
{
"name": "bed mode input select",
"room": "bedroom",
"type": "input_select",
"id": {
"entity_id": "input_select.bed_mode",
"device_id": null
}
},
{
"name": "living room motion sensor occupancy",
"room": "living_room",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.living_room_motion_sensor_occupancy",
"device_id": null
}
},
{
"name": "living room ceiling light",
"room": "living_room",
"type": "light",
"id": {
"entity_id": "light.living_room_ceiling_light",
"device_id": null
}
}
]
},
{
"id": "dc5d8157-3df4-47d5-9315-e4491ad42019",
"automation": "- alias: Turn Living Room Ceiling Light on\n id: dc5d8157-3df4-47d5-9315-e4491ad42019\n trigger:\n platform: state\n entity_id:\n - input_select.away_mode\n - input_select.bed_mode\n from: 'on'\n to: just off\n action:\n service: light.turn_on\n target:\n entity_id: light.living_room_ceiling_light",
"config": [
{
"name": "bed mode input select",
"room": "bedroom",
"type": "input_select",
"id": {
"entity_id": "input_select.bed_mode",
"device_id": null
}
},
{
"name": "away mode input select",
"room": null,
"type": "input_select",
"id": {
"entity_id": "input_select.away_mode",
"device_id": null
}
},
{
"name": "living room ceiling light",
"room": "living_room",
"type": "light",
"id": {
"entity_id": "light.living_room_ceiling_light",
"device_id": null
}
}
]
},
{
"id": "30efc83b-a870-48bb-8341-28d821a5a33d",
"automation": "- alias: Turn Living Room Ceiling Light off\n id: 30efc83b-a870-48bb-8341-28d821a5a33d\n trigger:\n platform: state\n entity_id:\n - input_select.away_mode\n - input_select.bed_mode\n from:\n - just on\n - just off\n to: 'on'\n action:\n service: light.turn_off\n target:\n entity_id: light.living_room_ceiling_light",
"config": [
{
"name": "bed mode input select",
"room": "bedroom",
"type": "input_select",
"id": {
"entity_id": "input_select.bed_mode",
"device_id": null
}
},
{
"name": "away mode input select",
"room": null,
"type": "input_select",
"id": {
"entity_id": "input_select.away_mode",
"device_id": null
}
},
{
"name": "living room ceiling light",
"room": "living_room",
"type": "light",
"id": {
"entity_id": "light.living_room_ceiling_light",
"device_id": null
}
}
]
},
{
"id": "861debaa-4310-4053-b98b-2275847691bb",
"automation": "- alias: Turn Living Room Sofa and TV Light on\n id: 861debaa-4310-4053-b98b-2275847691bb\n trigger:\n - platform: state\n entity_id: sensor.period_of_day\n from: Sunset\n to: Dusk\n - platform: state\n entity_id:\n - input_select.away_mode\n - input_select.bed_mode\n from: 'on'\n to: just off\n condition:\n - condition: state\n entity_id: sensor.period_of_day\n state:\n - Dusk\n - Night\n - Dawn\n - condition: state\n entity_id: input_select.away_mode\n state:\n - just off\n - 'off'\n - condition: state\n entity_id: input_select.bed_mode\n state:\n - just off\n - 'off'\n action:\n service: script.random_color\n data:\n lights:\n - light.living_room_sofa_light\n - light.living_room_tv_light",
"config": [
{
"name": "bed mode input select",
"room": "bedroom",
"type": "input_select",
"id": {
"entity_id": "input_select.bed_mode",
"device_id": null
}
},
{
"name": "away mode input select",
"room": null,
"type": "input_select",
"id": {
"entity_id": "input_select.away_mode",
"device_id": null
}
},
{
"name": "period of day sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.period_of_day",
"device_id": null
}
},
{
"name": "living room sofa light",
"room": "living_room",
"type": "light",
"id": {
"entity_id": "light.living_room_sofa_light",
"device_id": null
}
},
{
"name": "living room tv light",
"room": "living_room",
"type": "light",
"id": {
"entity_id": "light.living_room_tv_light",
"device_id": null
}
},
{
"name": "Random Color",
"room": null,
"type": "script",
"id": {
"entity_id": "script.random_color",
"device_id": null
}
}
]
},
{
"id": "c3dda693-5c89-453b-8ca0-647e86f7b0ba",
"automation": "- alias: Turn Living Room Sofa and TV Light off\n id: c3dda693-5c89-453b-8ca0-647e86f7b0ba\n trigger:\n - platform: state\n entity_id: sensor.period_of_day\n from: Dawn\n to: Sunrise\n - platform: state\n entity_id:\n - input_select.away_mode\n - input_select.bed_mode\n from:\n - just on\n - just off\n to: 'on'\n action:\n service: light.turn_off\n target:\n entity_id:\n - light.living_room_sofa_light\n - light.living_room_tv_light",
"config": [
{
"name": "bed mode input select",
"room": "bedroom",
"type": "input_select",
"id": {
"entity_id": "input_select.bed_mode",
"device_id": null
}
},
{
"name": "away mode input select",
"room": null,
"type": "input_select",
"id": {
"entity_id": "input_select.away_mode",
"device_id": null
}
},
{
"name": "period of day sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.period_of_day",
"device_id": null
}
},
{
"name": "living room sofa light",
"room": "living_room",
"type": "light",
"id": {
"entity_id": "light.living_room_sofa_light",
"device_id": null
}
},
{
"name": "living room tv light",
"room": "living_room",
"type": "light",
"id": {
"entity_id": "light.living_room_tv_light",
"device_id": null
}
}
]
},
{
"id": "75546147-378a-4dbc-b2ca-f4d4f707da15",
"automation": "- alias: Send Notification about unclosed Outdoor Doors\n id: 75546147-378a-4dbc-b2ca-f4d4f707da15\n max_exceeded: silent\n trigger:\n platform: state\n entity_id:\n - binary_sensor.outdoor_frontdoor_contact\n - binary_sensor.outdoor_backdoor_contact\n to: 'on'\n for:\n minutes: 10\n condition:\n - condition: state\n entity_id:\n - input_select.away_mode\n - input_select.bed_mode\n state: 'off'\n - condition: numeric_state\n entity_id: weather.meteorologisk\n attribute: temperature\n below: 16\n - condition: not\n conditions:\n - condition: state\n entity_id:\n - binary_sensor.outdoor_frontdoor_contact\n - binary_sensor.outdoor_backdoor_contact\n state: 'on'\n for:\n minutes: 10\n action:\n service: notify.mobile_app_iphone_von_david\n data:\n title: Outdoor doors unclosed\n message: Close outdoor doors to keep it warm.\n data:\n tag: unclosed-outdoor-doors",
"config": [
{
"name": "bed mode input select",
"room": "bedroom",
"type": "input_select",
"id": {
"entity_id": "input_select.bed_mode",
"device_id": null
}
},
{
"name": "outdoor frontdoor contact",
"room": "outdoor",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.outdoor_frontdoor_contact",
"device_id": null
}
},
{
"name": "outdoor backdoor contact",
"room": "outdoor",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.outdoor_backdoor_contact",
"device_id": null
}
},
{
"name": "away mode input select",
"room": null,
"type": "input_select",
"id": {
"entity_id": "input_select.away_mode",
"device_id": null
}
},
{
"name": "mobile app iphone von david",
"room": null,
"type": "notify",
"id": {
"entity_id": "notify.mobile_app_iphone_von_david",
"device_id": null
}
},
{
"name": "weather meteorologisk",
"room": null,
"type": "weather",
"id": {
"entity_id": "weather.meteorologisk",
"device_id": null
}
}
]
},
{
"id": "98cd6b76-8b4c-48f2-82c5-73d3e492e426",
"automation": "- alias: Clear Notification about unclosed Outdoor Doors\n id: 98cd6b76-8b4c-48f2-82c5-73d3e492e426\n max_exceeded: silent\n trigger:\n platform: state\n entity_id:\n - binary_sensor.outdoor_frontdoor_contact\n - binary_sensor.outdoor_backdoor_contact\n to: 'off'\n condition:\n condition: state\n entity_id:\n - binary_sensor.outdoor_frontdoor_contact\n - binary_sensor.outdoor_backdoor_contact\n state: 'off'\n action:\n service: notify.mobile_app_iphone_von_david\n data:\n message: clear_notification\n data:\n tag: unclosed-outdoor-doors",
"config": [
{
"name": "outdoor frontdoor contact",
"room": "outdoor",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.outdoor_frontdoor_contact",
"device_id": null
}
},
{
"name": "outdoor backdoor contact",
"room": "outdoor",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.outdoor_backdoor_contact",
"device_id": null
}
},
{
"name": "mobile app iphone von david",
"room": null,
"type": "notify",
"id": {
"entity_id": "notify.mobile_app_iphone_von_david",
"device_id": null
}
}
]
},
{
"id": "0c534f2d-72da-42fb-86e3-034ba16a16f0",
"automation": "- alias: Send Notification about unclosed Bedroom Windows\n id: 0c534f2d-72da-42fb-86e3-034ba16a16f0\n max_exceeded: silent\n trigger:\n platform: state\n entity_id:\n - binary_sensor.bedroom_window_left_contact\n - binary_sensor.bedroom_window_right_contact\n to: 'on'\n for:\n minutes: 10\n condition:\n - condition: state\n entity_id:\n - input_select.away_mode\n - input_select.bed_mode\n state: 'off'\n - condition: numeric_state\n entity_id: weather.meteorologisk\n attribute: temperature\n below: 16\n - condition: not\n conditions:\n - condition: state\n entity_id:\n - binary_sensor.bedroom_window_left_contact\n - binary_sensor.bedroom_window_right_contact\n state: 'on'\n for:\n minutes: 10\n action:\n service: notify.mobile_app_iphone_von_david\n data:\n title: Bedroom windows unclosed\n message: Close bedroom windows to keep it warm.\n data:\n tag: unclosed-bedroom-windows",
"config": [
{
"name": "bed mode input select",
"room": "bedroom",
"type": "input_select",
"id": {
"entity_id": "input_select.bed_mode",
"device_id": null
}
},
{
"name": "bedroom window left contact",
"room": "bedroom",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.bedroom_window_left_contact",
"device_id": null
}
},
{
"name": "bedroom window right contact",
"room": "bedroom",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.bedroom_window_right_contact",
"device_id": null
}
},
{
"name": "away mode input select",
"room": null,
"type": "input_select",
"id": {
"entity_id": "input_select.away_mode",
"device_id": null
}
},
{
"name": "mobile app iphone von david",
"room": null,
"type": "notify",
"id": {
"entity_id": "notify.mobile_app_iphone_von_david",
"device_id": null
}
},
{
"name": "weather meteorologisk",
"room": null,
"type": "weather",
"id": {
"entity_id": "weather.meteorologisk",
"device_id": null
}
}
]
},
{
"id": "e77baedc-3316-4650-9565-82049ec3ace4",
"automation": "- alias: Clear Notification about unclosed Bedroom Windows\n id: e77baedc-3316-4650-9565-82049ec3ace4\n max_exceeded: silent\n trigger:\n platform: state\n entity_id:\n - binary_sensor.bedroom_window_left_contact\n - binary_sensor.bedroom_window_right_contact\n to: 'off'\n condition:\n condition: state\n entity_id:\n - binary_sensor.bedroom_window_left_contact\n - binary_sensor.bedroom_window_right_contact\n state: 'off'\n action:\n service: notify.mobile_app_iphone_von_david\n data:\n message: clear_notification\n data:\n tag: unclosed-bedroom-windows",
"config": [
{
"name": "bedroom window left contact",
"room": "bedroom",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.bedroom_window_left_contact",
"device_id": null
}
},
{
"name": "bedroom window right contact",
"room": "bedroom",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.bedroom_window_right_contact",
"device_id": null
}
},
{
"name": "mobile app iphone von david",
"room": null,
"type": "notify",
"id": {
"entity_id": "notify.mobile_app_iphone_von_david",
"device_id": null
}
}
]
},
{
"id": "09ac3a7a-e198-4bd6-8892-6320aa9be819",
"automation": "- alias: Send Notification about pending Bedroom Ventilation\n id: 09ac3a7a-e198-4bd6-8892-6320aa9be819\n max_exceeded: silent\n trigger:\n - platform: state\n entity_id:\n - input_select.away_mode\n - input_select.bed_mode\n to: 'off'\n for:\n minutes: 30\n - platform: state\n entity_id:\n - binary_sensor.bedroom_window_left_contact\n - binary_sensor.bedroom_window_right_contact\n to: 'off'\n for:\n hours: 6\n condition:\n - condition: state\n entity_id: sensor.period_of_day\n state:\n - Sunrise\n - Day\n - Sunset\n - condition: state\n entity_id:\n - input_select.away_mode\n - input_select.bed_mode\n state: 'off'\n for:\n minutes: 30\n - condition: state\n entity_id:\n - binary_sensor.bedroom_window_left_contact\n - binary_sensor.bedroom_window_right_contact\n state: 'off'\n for:\n hours: 6\n action:\n service: notify.mobile_app_iphone_von_david\n data:\n title: Bedroom ventilation pending\n message: Open bedroom windows to get some fresh air.\n data:\n tag: pending-bedroom-ventilation",
"config": [
{
"name": "bed mode input select",
"room": "bedroom",
"type": "input_select",
"id": {
"entity_id": "input_select.bed_mode",
"device_id": null
}
},
{
"name": "bedroom window left contact",
"room": "bedroom",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.bedroom_window_left_contact",
"device_id": null
}
},
{
"name": "bedroom window right contact",
"room": "bedroom",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.bedroom_window_right_contact",
"device_id": null
}
},
{
"name": "away mode input select",
"room": null,
"type": "input_select",
"id": {
"entity_id": "input_select.away_mode",
"device_id": null
}
},
{
"name": "mobile app iphone von david",
"room": null,
"type": "notify",
"id": {
"entity_id": "notify.mobile_app_iphone_von_david",
"device_id": null
}
},
{
"name": "period of day sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.period_of_day",
"device_id": null
}
}
]
},
{
"id": "279a2bf7-b4cc-4095-a3d4-b3b6e10619bc",
"automation": "- alias: Clear Notification about pending Bedroom Ventilation\n id: 279a2bf7-b4cc-4095-a3d4-b3b6e10619bc\n max_exceeded: silent\n trigger:\n platform: state\n entity_id:\n - binary_sensor.bedroom_window_left_contact\n - binary_sensor.bedroom_window_right_contact\n to: 'on'\n condition:\n condition: not\n conditions:\n - condition: state\n entity_id:\n - binary_sensor.bedroom_window_left_contact\n - binary_sensor.bedroom_window_right_contact\n state: 'on'\n action:\n service: notify.mobile_app_iphone_von_david\n data:\n message: clear_notification\n data:\n tag: pending-bedroom-ventilation",
"config": [
{
"name": "bedroom window left contact",
"room": "bedroom",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.bedroom_window_left_contact",
"device_id": null
}
},
{
"name": "bedroom window right contact",
"room": "bedroom",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.bedroom_window_right_contact",
"device_id": null
}
},
{
"name": "mobile app iphone von david",
"room": null,
"type": "notify",
"id": {
"entity_id": "notify.mobile_app_iphone_von_david",
"device_id": null
}
}
]
},
{
"id": "d5cb8c07-9327-4859-8381-783801d076fa",
"automation": "- alias: Turn Outdoor Frontdoor Light on\n id: d5cb8c07-9327-4859-8381-783801d076fa\n trigger:\n - platform: state\n entity_id: sensor.period_of_day\n from: Sunset\n to: Dusk\n - platform: state\n entity_id: input_select.away_mode\n from: 'on'\n to: just off\n - platform: state\n entity_id: input_select.bed_mode\n from: just off\n to: 'off'\n condition:\n - condition: state\n entity_id: sensor.period_of_day\n state:\n - Dusk\n - Night\n - Dawn\n - condition: state\n entity_id: input_select.away_mode\n state:\n - just off\n - 'off'\n - condition: state\n entity_id: input_select.bed_mode\n state:\n - just off\n - 'off'\n action:\n service: light.turn_on\n target:\n entity_id: light.outdoor_frontdoor_light",
"config": [
{
"name": "bed mode input select",
"room": "bedroom",
"type": "input_select",
"id": {
"entity_id": "input_select.bed_mode",
"device_id": null
}
},
{
"name": "away mode input select",
"room": null,
"type": "input_select",
"id": {
"entity_id": "input_select.away_mode",
"device_id": null
}
},
{
"name": "period of day sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.period_of_day",
"device_id": null
}
},
{
"name": "outdoor frontdoor light",
"room": "outdoor",
"type": "light",
"id": {
"entity_id": "light.outdoor_frontdoor_light",
"device_id": null
}
}
]
},
{
"id": "d7efe2bf-f328-44ef-9ab0-98c2e5e0ba64",
"automation": "- alias: Turn Outdoor Backdoor Light on\n id: d7efe2bf-f328-44ef-9ab0-98c2e5e0ba64\n trigger:\n - platform: state\n entity_id: input_select.away_mode\n from: 'on'\n to: just off\n condition:\n - condition: state\n entity_id: sensor.period_of_day\n state:\n - Dusk\n - Night\n - Dawn\n - condition: state\n entity_id: input_select.away_mode\n state:\n - just off\n - 'off'\n - condition: state\n entity_id: input_select.bed_mode\n state:\n - just off\n - 'off'\n action:\n service: light.turn_on\n target:\n entity_id: light.outdoor_backdoor_light",
"config": [
{
"name": "bed mode input select",
"room": "bedroom",
"type": "input_select",
"id": {
"entity_id": "input_select.bed_mode",
"device_id": null
}
},
{
"name": "away mode input select",
"room": null,
"type": "input_select",
"id": {
"entity_id": "input_select.away_mode",
"device_id": null
}
},
{
"name": "period of day sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.period_of_day",
"device_id": null
}
},
{
"name": "outdoor backdoor light",
"room": "outdoor",
"type": "light",
"id": {
"entity_id": "light.outdoor_backdoor_light",
"device_id": null
}
}
]
},
{
"id": "20b82cc6-4c54-4ac0-b938-4659dc4a3bcd",
"automation": "- alias: Turn Outdoor Frontdoor Light off\n id: 20b82cc6-4c54-4ac0-b938-4659dc4a3bcd\n trigger:\n - platform: state\n entity_id: sensor.period_of_day\n from: Dawn\n to: Sunrise\n - platform: state\n entity_id: input_select.away_mode\n from: just on\n to: 'on'\n - platform: state\n entity_id: input_select.bed_mode\n from: just on\n to: 'on'\n action:\n service: light.turn_off\n target:\n entity_id: light.outdoor_frontdoor_light",
"config": [
{
"name": "bed mode input select",
"room": "bedroom",
"type": "input_select",
"id": {
"entity_id": "input_select.bed_mode",
"device_id": null
}
},
{
"name": "away mode input select",
"room": null,
"type": "input_select",
"id": {
"entity_id": "input_select.away_mode",
"device_id": null
}
},
{
"name": "period of day sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.period_of_day",
"device_id": null
}
},
{
"name": "outdoor frontdoor light",
"room": "outdoor",
"type": "light",
"id": {
"entity_id": "light.outdoor_frontdoor_light",
"device_id": null
}
}
]
},
{
"id": "19f05355-6ee0-4a43-a684-cb6738a5a585",
"automation": "- alias: Turn Outdoor Backdoor Light off\n id: 19f05355-6ee0-4a43-a684-cb6738a5a585\n trigger:\n - platform: state\n entity_id: sensor.period_of_day\n from: Dawn\n to: Sunrise\n - platform: state\n entity_id: input_select.away_mode\n from: just on\n to: 'on'\n - platform: state\n entity_id: input_select.away_mode\n from: just off\n to: 'off'\n - platform: state\n entity_id: input_select.bed_mode\n from: just on\n to: 'on'\n action:\n service: light.turn_off\n target:\n entity_id: light.outdoor_backdoor_light",
"config": [
{
"name": "bed mode input select",
"room": "bedroom",
"type": "input_select",
"id": {
"entity_id": "input_select.bed_mode",
"device_id": null
}
},
{
"name": "away mode input select",
"room": null,
"type": "input_select",
"id": {
"entity_id": "input_select.away_mode",
"device_id": null
}
},
{
"name": "period of day sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.period_of_day",
"device_id": null
}
},
{
"name": "outdoor backdoor light",
"room": "outdoor",
"type": "light",
"id": {
"entity_id": "light.outdoor_backdoor_light",
"device_id": null
}
}
]
},
{
"id": "889799ce-a39e-4e9f-b296-bd39fce3859f",
"automation": "- alias: Start Presence Simulation when Leaving\n id: 889799ce-a39e-4e9f-b296-bd39fce3859f\n trigger:\n platform: state\n entity_id: input_select.away_mode\n from: just on\n to: 'on'\n action:\n service: presence_simulation.start\n data:\n restore_states: false",
"config": [
{
"name": "away mode input select",
"room": null,
"type": "input_select",
"id": {
"entity_id": "input_select.away_mode",
"device_id": null
}
}
]
},
{
"id": "2dca1ca0-e890-4fc3-8262-ee36552064ef",
"automation": "- alias: Stop Presence Simulation when Arriving\n id: 2dca1ca0-e890-4fc3-8262-ee36552064ef\n trigger:\n platform: state\n entity_id: input_select.away_mode\n from: 'on'\n to: just off\n action:\n service: presence_simulation.stop",
"config": [
{
"name": "away mode input select",
"room": null,
"type": "input_select",
"id": {
"entity_id": "input_select.away_mode",
"device_id": null
}
}
]
},
{
"id": "cef75154-16bc-4990-b1d8-00d7fe5b13d2",
"automation": "- alias: Reset Sonos Volume\n id: cef75154-16bc-4990-b1d8-00d7fe5b13d2\n mode: queued\n trigger:\n platform: state\n entity_id:\n - media_player.sonos_device_kuche\n - media_player.sonos_device_schlafzimmer\n - media_player.sonos_device_wohnzimmer\n to:\n - idle\n - paused\n for:\n minutes: 10\n action:\n - service: media_player.volume_set\n target:\n entity_id: '{{ trigger.entity_id }}'\n data:\n volume_level: 0.08\n - service: media_player.volume_mute\n target:\n entity_id: '{{ trigger.entity_id }}'\n data:\n is_volume_muted: false",
"config": [
{
"name": "sonos device wohnzimmer",
"room": "living_room",
"type": "media_player",
"id": {
"entity_id": "media_player.sonos_device_wohnzimmer",
"device_id": null
}
},
{
"name": "sonos device kuche",
"room": "kitchen",
"type": "media_player",
"id": {
"entity_id": "media_player.sonos_device_kuche",
"device_id": null
}
},
{
"name": "sonos device schlafzimmer",
"room": "bedroom",
"type": "media_player",
"id": {
"entity_id": "media_player.sonos_device_schlafzimmer",
"device_id": null
}
}
]
},
{
"id": "6729b4c3-631f-4211-917b-9d110f94de0c",
"automation": "- alias: Pause Sonos\n id: 6729b4c3-631f-4211-917b-9d110f94de0c\n mode: queued\n trigger:\n - platform: state\n entity_id: input_select.away_mode\n from: 'off'\n to: just on\n - platform: state\n entity_id: input_select.bed_mode\n from: 'off'\n to: just on\n action:\n - service: media_player.media_pause\n target:\n entity_id:\n - media_player.sonos_device_kuche\n - media_player.sonos_device_wohnzimmer\n - condition: state\n entity_id: input_select.away_mode\n state: just on\n - service: media_player.media_pause\n target:\n entity_id: media_player.sonos_device_schlafzimmer",
"config": [
{
"name": "bed mode input select",
"room": "bedroom",
"type": "input_select",
"id": {
"entity_id": "input_select.bed_mode",
"device_id": null
}
},
{
"name": "away mode input select",
"room": null,
"type": "input_select",
"id": {
"entity_id": "input_select.away_mode",
"device_id": null
}
},
{
"name": "sonos device wohnzimmer",
"room": "living_room",
"type": "media_player",
"id": {
"entity_id": "media_player.sonos_device_wohnzimmer",
"device_id": null
}
},
{
"name": "sonos device kuche",
"room": "kitchen",
"type": "media_player",
"id": {
"entity_id": "media_player.sonos_device_kuche",
"device_id": null
}
},
{
"name": "sonos device schlafzimmer",
"room": "bedroom",
"type": "media_player",
"id": {
"entity_id": "media_player.sonos_device_schlafzimmer",
"device_id": null
}
}
]
}
]