AutomationDataset/ericz-home/description-ready.json

1289 lines
47 KiB
JSON

[
{
"id": "unset_auto_lock",
"automation": "- id: unset_auto_lock\n alias: Unset AutoLock\n triggers:\n - trigger: time\n at:\n entity_id: sensor.galaxys24_next_alarm\n offset: -00:05:00\n - trigger: state\n entity_id: input_boolean.sleep_mode\n from: 'on'\n to: 'off'\n - trigger: state\n entity_id: input_boolean.home_mode\n from: 'off'\n to: 'on'\n - trigger: state\n entity_id: lock.front_door_lock\n from: locked\n to: unlocked\n - trigger: device\n domain: mqtt\n device_id: 9d09874393e2b3fd2b18669638d127be\n type: action\n subtype: config_double\n conditions:\n - condition: state\n entity_id: input_boolean.auto_lock_front_door\n state: 'on'\n actions:\n - action: input_boolean.turn_off\n data:\n entity_id: input_boolean.auto_lock_front_door",
"config": [
{
"name": "next alarm",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.galaxys24_next_alarm",
"device_id": null
}
},
{
"name": "sleep mode",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.sleep_mode",
"device_id": null
}
},
{
"name": "home mode",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.home_mode",
"device_id": null
}
},
{
"name": "front door lock",
"room": "front_door",
"type": "lock",
"id": {
"entity_id": "lock.front_door_lock",
"device_id": null
}
},
{
"name": "mqtt device",
"room": null,
"type": "device",
"id": {
"entity_id": null,
"device_id": "9d09874393e2b3fd2b18669638d127be"
}
},
{
"name": "auto lock front door",
"room": "front_door",
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.auto_lock_front_door",
"device_id": null
}
}
]
},
{
"id": "set_auto_lock",
"automation": "- id: set_auto_lock\n alias: Set AutoLock\n triggers:\n - trigger: sun\n event: sunset\n - trigger: device\n domain: mqtt\n device_id: 9d09874393e2b3fd2b18669638d127be\n type: action\n subtype: config_single\n conditions:\n - condition: state\n entity_id: input_boolean.auto_lock_front_door\n state: 'off'\n actions:\n - action: input_boolean.turn_on\n data:\n entity_id: input_boolean.auto_lock_front_door",
"config": [
{
"name": "mqtt device",
"room": null,
"type": "device",
"id": {
"entity_id": null,
"device_id": "9d09874393e2b3fd2b18669638d127be"
}
},
{
"name": "auto lock front door",
"room": "front_door",
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.auto_lock_front_door",
"device_id": null
}
}
]
},
{
"id": "auto_lock_on_led",
"automation": "- id: auto_lock_on_led\n alias: Auto lock ON LED color\n triggers:\n - trigger: state\n entity_id: input_boolean.auto_lock_front_door\n to: 'on'\n actions:\n - action: number.set_value\n data:\n value: 5\n target:\n entity_id:\n - number.entryway_light_ledcolorwhenon\n - number.entryway_light_ledcolorwhenoff\n - action: mqtt.publish\n data:\n topic: zigbee2mqtt/Entryway Light/set\n qos: '0'\n payload: '{\"led_effect\": {\"effect\":\"chase\",\"color\":5,\"duration\":10,\"level\":25}}\n\n '",
"config": [
{
"name": "auto lock front door",
"room": "front_door",
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.auto_lock_front_door",
"device_id": null
}
},
{
"name": "entryway light led color when on",
"room": "entryway",
"type": "number",
"id": {
"entity_id": "number.entryway_light_ledcolorwhenon",
"device_id": null
}
},
{
"name": "entryway light led color when off",
"room": "entryway",
"type": "number",
"id": {
"entity_id": "number.entryway_light_ledcolorwhenoff",
"device_id": null
}
}
]
},
{
"id": "auto_lock_off_led",
"automation": "- id: auto_lock_off_led\n alias: Auto lock OFF LED color\n triggers:\n - trigger: state\n entity_id: input_boolean.auto_lock_front_door\n to: 'off'\n actions:\n - action: mqtt.publish\n data:\n topic: zigbee2mqtt/Entryway Light/set\n qos: '0'\n payload: '{\"led_effect\": {\"effect\":\"off\"}}\n\n '\n - action: number.set_value\n data:\n value: 170\n target:\n entity_id:\n - number.entryway_light_ledcolorwhenon\n - number.entryway_light_ledcolorwhenoff",
"config": [
{
"name": "auto lock front door",
"room": "front_door",
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.auto_lock_front_door",
"device_id": null
}
},
{
"name": "entryway light led color when on",
"room": "entryway",
"type": "number",
"id": {
"entity_id": "number.entryway_light_ledcolorwhenon",
"device_id": null
}
},
{
"name": "entryway light led color when off",
"room": "entryway",
"type": "number",
"id": {
"entity_id": "number.entryway_light_ledcolorwhenoff",
"device_id": null
}
}
]
},
{
"id": "charging_started",
"automation": "- id: charging_started\n alias: Charging Started\n triggers:\n - trigger: state\n entity_id: binary_sensor.my_ev6_ev_battery_charge\n from: 'off'\n to: 'on'\n actions:\n - action: script.notify_apps\n data:\n title: Car\n message: 'Charging started. Currently at {{ states(''sensor.my_ev6_ev_battery_level'')\n }}. Estimated charge duration {{ time_until(now() + timedelta(minutes=int(states(''sensor.my_ev6_estimated_charge_duration''))),\n 2) }}.\n\n '",
"config": [
{
"name": "ev battery charge",
"room": null,
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.my_ev6_ev_battery_charge",
"device_id": null
}
},
{
"name": "ev battery level",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.my_ev6_ev_battery_level",
"device_id": null
}
},
{
"name": "estimated charge duration",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.my_ev6_estimated_charge_duration",
"device_id": null
}
}
]
},
{
"id": "charging_stopped",
"automation": "- id: charging_stopped\n alias: Charging Stopped\n triggers:\n - trigger: state\n entity_id: binary_sensor.my_ev6_ev_battery_charge\n from: 'on'\n to: 'off'\n actions:\n - action: script.notify_apps\n data:\n title: Car\n message: 'Charging complete. Currently at {{ states(''sensor.my_ev6_ev_battery_level'')\n }}. Estimated range {{ states(''sensor.my_ev6_ev_range'') }}.\n\n '",
"config": [
{
"name": "ev battery charge",
"room": null,
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.my_ev6_ev_battery_charge",
"device_id": null
}
},
{
"name": "ev battery level",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.my_ev6_ev_battery_level",
"device_id": null
}
},
{
"name": "ev range",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.my_ev6_ev_range",
"device_id": null
}
}
]
},
{
"id": "charged_full",
"automation": "- id: charged_full\n alias: Charged to Full\n triggers:\n - trigger: state\n entity_id: sensor.my_ev6_ev_battery_level\n to: '100'\n actions:\n - action: input_datetime.set_datetime\n target:\n entity_id: input_datetime.ev6_last_full_charge\n data:\n timestamp: '{{ now().timestamp() }}'",
"config": [
{
"name": "ev battery level",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.my_ev6_ev_battery_level",
"device_id": null
}
},
{
"name": "ev6 last full charge",
"room": null,
"type": "input_datetime",
"id": {
"entity_id": "input_datetime.ev6_last_full_charge",
"device_id": null
}
}
]
},
{
"id": "detect_door_open",
"automation": "- id: detect_door_open\n alias: Detect Door Open\n triggers:\n - trigger: state\n entity_id: binary_sensor.front_door_contact\n from: 'off'\n to: 'on'\n - trigger: state\n entity_id: binary_sensor.sliding_door_contact\n from: 'off'\n to: 'on'\n conditions:\n - alias: not at home\n condition: state\n entity_id: input_boolean.home_mode\n state: 'off'\n actions:\n - action: script.notify_apps\n data:\n title: Doors\n message: '{{ state_attr(trigger.entity_id, ''friendly_name'') }} is open.'",
"config": [
{
"name": "home mode",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.home_mode",
"device_id": null
}
},
{
"name": "front door contact",
"room": "front_door",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.front_door_contact",
"device_id": null
}
},
{
"name": "sliding door contact",
"room": null,
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.sliding_door_contact",
"device_id": null
}
}
]
},
{
"id": "detect_front_door_open",
"automation": "- id: detect_front_door_open\n alias: Detect Door Left Open\n triggers:\n - trigger: state\n entity_id: binary_sensor.front_door_contact\n to: 'on'\n for:\n minutes: 1\n actions:\n - action: script.notify_apps\n data:\n title: Doors\n message: Front Door left open for 1 minute.",
"config": [
{
"name": "front door contact",
"room": "front_door",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.front_door_contact",
"device_id": null
}
}
]
},
{
"id": "fan_timer_stop",
"automation": "- id: fan_timer_stop\n alias: Fan Timer Stop\n triggers:\n - trigger: event\n event_type: timer.finished\n event_data:\n entity_id: timer.stop_fan\n actions:\n - action: switch.turn_off\n target:\n entity_id: switch.bedroom_fan",
"config": [
{
"name": "stop fan timer",
"room": null,
"type": "timer",
"id": {
"entity_id": "timer.stop_fan",
"device_id": null
}
},
{
"name": "bedroom fan",
"room": "bedroom",
"type": "switch",
"id": {
"entity_id": "switch.bedroom_fan",
"device_id": null
}
}
]
},
{
"id": "fan_cancel_timer",
"automation": "- id: fan_cancel_timer\n alias: Fan Cancel Timer\n triggers:\n - trigger: state\n entity_id: switch.bedroom_fan\n to: 'off'\n conditions:\n - condition: state\n entity_id: timer.stop_fan\n state:\n - active\n - paused\n actions:\n - action: timer.cancel\n target:\n entity_id: timer.stop_fan",
"config": [
{
"name": "stop fan timer",
"room": null,
"type": "timer",
"id": {
"entity_id": "timer.stop_fan",
"device_id": null
}
},
{
"name": "bedroom fan",
"room": "bedroom",
"type": "switch",
"id": {
"entity_id": "switch.bedroom_fan",
"device_id": null
}
}
]
},
{
"id": "fan_switch_on",
"automation": "- id: fan_switch_on\n alias: Switch on Fan\n triggers:\n - trigger: device\n domain: mqtt\n device_id: 9670c4fd4d208a0f5cce5158f1b7c786\n type: action\n subtype: up_double\n - trigger: numeric_state\n entity_id:\n - weather.ksea\n attribute: temperature\n above: 80\n conditions:\n - condition: state\n entity_id: switch.bedroom_fan\n state: 'off'\n actions:\n - action: switch.turn_on\n target:\n entity_id: switch.bedroom_fan",
"config": [
{
"name": "bedroom fan",
"room": "bedroom",
"type": "switch",
"id": {
"entity_id": "switch.bedroom_fan",
"device_id": null
}
},
{
"name": "mqtt device 2",
"room": null,
"type": "device",
"id": {
"entity_id": null,
"device_id": "9670c4fd4d208a0f5cce5158f1b7c786"
}
},
{
"name": "weather ksea",
"room": null,
"type": "weather",
"id": {
"entity_id": "weather.ksea",
"device_id": null
}
}
]
},
{
"id": "start_washing_machine",
"automation": "- id: start_washing_machine\n alias: Start Washing Machine\n triggers:\n - trigger: state\n entity_id: binary_sensor.washing_machine_vibration\n to: 'on'\n for:\n seconds: 7\n conditions:\n - condition: state\n entity_id: input_select.washing_machine_status\n state:\n - 'off'\n - completed\n actions:\n - action: input_select.select_option\n target:\n entity_id: input_select.washing_machine_status\n data:\n option: running\n - action: input_datetime.set_datetime\n target:\n entity_id: input_datetime.washing_machine_start\n data:\n timestamp: '{{ now().timestamp() }}'",
"config": [
{
"name": "washing machine vibration",
"room": null,
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.washing_machine_vibration",
"device_id": null
}
},
{
"name": "washing machine status",
"room": null,
"type": "input_select",
"id": {
"entity_id": "input_select.washing_machine_status",
"device_id": null
}
},
{
"name": "washing machine start",
"room": null,
"type": "input_datetime",
"id": {
"entity_id": "input_datetime.washing_machine_start",
"device_id": null
}
}
]
},
{
"id": "complete_washing_machine",
"automation": "- id: complete_washing_machine\n alias: Complete Washing Machine\n triggers:\n - trigger: state\n entity_id: binary_sensor.washing_machine_vibration\n to: 'off'\n for:\n minutes: 5\n conditions:\n - condition: state\n entity_id: input_select.washing_machine_status\n state: running\n actions:\n - action: input_select.select_option\n target:\n entity_id: input_select.washing_machine_status\n data:\n option: completed\n - action: input_datetime.set_datetime\n target:\n entity_id: input_datetime.washing_machine_start\n data:\n timestamp: '{{ now().timestamp() }}'",
"config": [
{
"name": "washing machine vibration",
"room": null,
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.washing_machine_vibration",
"device_id": null
}
},
{
"name": "washing machine status",
"room": null,
"type": "input_select",
"id": {
"entity_id": "input_select.washing_machine_status",
"device_id": null
}
},
{
"name": "washing machine start",
"room": null,
"type": "input_datetime",
"id": {
"entity_id": "input_datetime.washing_machine_start",
"device_id": null
}
}
]
},
{
"id": "start_dryer",
"automation": "- id: start_dryer\n alias: Start Dryer\n triggers:\n - trigger: state\n entity_id: binary_sensor.dryer_vibration\n to: 'on'\n for:\n seconds: 10\n conditions:\n - condition: state\n entity_id: input_select.dryer_status\n state:\n - 'off'\n - completed\n actions:\n - action: input_select.select_option\n target:\n entity_id: input_select.dryer_status\n data:\n option: running\n - action: input_datetime.set_datetime\n target:\n entity_id: input_datetime.dryer_start\n data:\n timestamp: '{{ now().timestamp() }}'",
"config": [
{
"name": "dryer vibration",
"room": null,
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.dryer_vibration",
"device_id": null
}
},
{
"name": "dryer status",
"room": null,
"type": "input_select",
"id": {
"entity_id": "input_select.dryer_status",
"device_id": null
}
},
{
"name": "dryer start",
"room": null,
"type": "input_datetime",
"id": {
"entity_id": "input_datetime.dryer_start",
"device_id": null
}
}
]
},
{
"id": "complete_dryer",
"automation": "- id: complete_dryer\n alias: Complete Dryer\n triggers:\n - trigger: state\n entity_id: binary_sensor.dryer_vibration\n to: 'off'\n for:\n minutes: 2\n conditions:\n - condition: state\n entity_id: input_select.dryer_status\n state: running\n actions:\n - action: input_select.select_option\n target:\n entity_id: input_select.dryer_status\n data:\n option: completed\n - action: input_datetime.set_datetime\n target:\n entity_id: input_datetime.dryer_start\n data:\n timestamp: '{{ now().timestamp() }}'",
"config": [
{
"name": "dryer vibration",
"room": null,
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.dryer_vibration",
"device_id": null
}
},
{
"name": "dryer status",
"room": null,
"type": "input_select",
"id": {
"entity_id": "input_select.dryer_status",
"device_id": null
}
},
{
"name": "dryer start",
"room": null,
"type": "input_datetime",
"id": {
"entity_id": "input_datetime.dryer_start",
"device_id": null
}
}
]
},
{
"id": "notify_laundry_completion",
"automation": "- id: notify_laundry_completion\n alias: Notify Laundry Complete\n triggers:\n - trigger: state\n alias: Washing machine cycle complete\n entity_id: input_select.washing_machine_status\n from: running\n to: completed\n - trigger: state\n alias: Dryer cycle complete\n entity_id: input_select.dryer_status\n from: running\n to: completed\n actions:\n - action: script.notify_single_action_apps\n data:\n title: Laundry\n message: '{{ trigger.alias }}.'\n action_key: finish_laundry\n action_title: Finish\n - wait_for_trigger:\n - platform: event\n event_type: mobile_app_notification_action\n event_data:\n action: finish_laundry\n - platform: event\n event_type: mobile_app_notification_cleared\n event_data:\n action: finish_laundry\n timeout:\n minutes: 30\n continue_on_timeout: false\n - choose:\n - conditions: '{{ wait.trigger.event.event_type == ''mobile_app_notification_action''\n }}'\n sequence:\n - action: input_select.select_option\n target:\n entity_id: '{{ trigger.entity_id }}'\n data:\n option: 'off'",
"config": [
{
"name": "washing machine status",
"room": null,
"type": "input_select",
"id": {
"entity_id": "input_select.washing_machine_status",
"device_id": null
}
},
{
"name": "dryer status",
"room": null,
"type": "input_select",
"id": {
"entity_id": "input_select.dryer_status",
"device_id": null
}
}
]
},
{
"id": "living_room_lights",
"automation": "- id: living_room_lights\n alias: Turn on Living Room Lights\n triggers:\n - trigger: state\n entity_id:\n - person.eric\n - person.laura\n to: home\n - trigger: sun\n event: sunset\n offset: -00:15:00\n conditions:\n - alias: sun down\n condition: sun\n after: sunset\n after_offset: -00:15:00\n - alias: lights off\n condition: state\n entity_id: light.twinkle_lights\n state: 'off'\n - alias: not away\n condition: state\n entity_id: input_boolean.home_mode\n state: 'on'\n - alias: not sleep\n condition: state\n entity_id: input_boolean.sleep_mode\n state: 'off'\n actions:\n - choose:\n - conditions:\n - condition: state\n entity_id: media_player.sony_xr_75x90j\n state: 'on'\n sequence:\n - action: input_select.select_option\n target:\n entity_id: input_select.living_room_scene\n data:\n option: lo\n default:\n - action: input_select.select_option\n target:\n entity_id: input_select.living_room_scene\n data:\n option: mid",
"config": [
{
"name": "sleep mode",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.sleep_mode",
"device_id": null
}
},
{
"name": "home mode",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.home_mode",
"device_id": null
}
},
{
"name": "eric person",
"room": null,
"type": "person",
"id": {
"entity_id": "person.eric",
"device_id": null
}
},
{
"name": "laura person",
"room": null,
"type": "person",
"id": {
"entity_id": "person.laura",
"device_id": null
}
},
{
"name": "twinkle lights",
"room": "living_room",
"type": "light",
"id": {
"entity_id": "light.twinkle_lights",
"device_id": null
}
},
{
"name": "sony xr tv",
"room": "living_room",
"type": "media_player",
"id": {
"entity_id": "media_player.sony_xr_75x90j",
"device_id": null
}
},
{
"name": "living room scene",
"room": "living_room",
"type": "input_select",
"id": {
"entity_id": "input_select.living_room_scene",
"device_id": null
}
}
]
},
{
"id": "select_living_room_scene",
"automation": "- id: select_living_room_scene\n alias: Select Living Room Scene\n triggers:\n - trigger: state\n entity_id: input_select.living_room_scene\n actions:\n - choose:\n - conditions:\n - condition: state\n entity_id: input_select.living_room_scene\n state: 'off'\n sequence:\n - action: scene.turn_on\n target:\n entity_id: scene.living_room_off\n - conditions:\n - condition: state\n entity_id: input_select.living_room_scene\n state: lo\n sequence:\n - action: scene.turn_on\n target:\n entity_id: scene.living_room_lo\n - conditions:\n - condition: state\n entity_id: input_select.living_room_scene\n state: mid\n sequence:\n - action: scene.turn_on\n target:\n entity_id: scene.living_room_mid\n - conditions:\n - condition: state\n entity_id: input_select.living_room_scene\n state: hi\n sequence:\n - action: scene.turn_on\n target:\n entity_id: scene.living_room_hi\n - conditions:\n - condition: state\n entity_id: input_select.living_room_scene\n state: max\n sequence:\n - action: scene.turn_on\n target:\n entity_id: scene.living_room_max",
"config": [
{
"name": "living room scene",
"room": "living_room",
"type": "input_select",
"id": {
"entity_id": "input_select.living_room_scene",
"device_id": null
}
},
{
"name": "living room off scene",
"room": "living_room",
"type": "scene",
"id": {
"entity_id": "scene.living_room_off",
"device_id": null
}
},
{
"name": "living room lo scene",
"room": "living_room",
"type": "scene",
"id": {
"entity_id": "scene.living_room_lo",
"device_id": null
}
},
{
"name": "living room mid scene",
"room": "living_room",
"type": "scene",
"id": {
"entity_id": "scene.living_room_mid",
"device_id": null
}
},
{
"name": "living room hi scene",
"room": "living_room",
"type": "scene",
"id": {
"entity_id": "scene.living_room_hi",
"device_id": null
}
},
{
"name": "living room max scene",
"room": "living_room",
"type": "scene",
"id": {
"entity_id": "scene.living_room_max",
"device_id": null
}
}
]
},
{
"id": "select_next_living_room_scene",
"automation": "- id: select_next_living_room_scene\n alias: Select Next Living Room Scene\n triggers:\n - trigger: device\n domain: mqtt\n device_id: 9d09874393e2b3fd2b18669638d127be\n type: action\n subtype: up_double\n actions:\n - action: input_select.select_next\n target:\n entity_id: input_select.living_room_scene",
"config": [
{
"name": "mqtt device",
"room": null,
"type": "device",
"id": {
"entity_id": null,
"device_id": "9d09874393e2b3fd2b18669638d127be"
}
},
{
"name": "living room scene",
"room": "living_room",
"type": "input_select",
"id": {
"entity_id": "input_select.living_room_scene",
"device_id": null
}
}
]
},
{
"id": "select_prev_living_room_scene",
"automation": "- id: select_prev_living_room_scene\n alias: Select Previous Living Room Scene\n triggers:\n - trigger: device\n domain: mqtt\n device_id: 9d09874393e2b3fd2b18669638d127be\n type: action\n subtype: down_double\n actions:\n - action: input_select.select_previous\n target:\n entity_id: input_select.living_room_scene",
"config": [
{
"name": "mqtt device",
"room": null,
"type": "device",
"id": {
"entity_id": null,
"device_id": "9d09874393e2b3fd2b18669638d127be"
}
},
{
"name": "living room scene",
"room": "living_room",
"type": "input_select",
"id": {
"entity_id": "input_select.living_room_scene",
"device_id": null
}
}
]
},
{
"id": "sleep_lights",
"automation": "- id: sleep_lights\n alias: Turn Off All Lights\n triggers:\n - trigger: state\n entity_id: input_boolean.sleep_mode\n from: 'off'\n to: 'on'\n actions:\n - action: input_select.select_option\n target:\n entity_id: input_select.living_room_scene\n data:\n option: 'off'\n - action: light.turn_off\n target:\n entity_id: light.bedroom_light\n - action: light.turn_off\n target:\n entity_id: light.dining_light",
"config": [
{
"name": "sleep mode",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.sleep_mode",
"device_id": null
}
},
{
"name": "living room scene",
"room": "living_room",
"type": "input_select",
"id": {
"entity_id": "input_select.living_room_scene",
"device_id": null
}
},
{
"name": "bedroom light",
"room": "bedroom",
"type": "light",
"id": {
"entity_id": "light.bedroom_light",
"device_id": null
}
},
{
"name": "dining light",
"room": "dining",
"type": "light",
"id": {
"entity_id": "light.dining_light",
"device_id": null
}
}
]
},
{
"id": "notify_away_lights",
"automation": "- id: notify_away_lights\n alias: Notify When Lights Are On and Not Home\n triggers:\n - trigger: state\n entity_id:\n - light.torch_light\n - light.arc_lamp\n - light.twinkle_lights\n - light.dining_light\n - light.bedroom_light\n - light.tv_room_light\n to: 'on'\n conditions:\n - condition: state\n entity_id: input_boolean.home_mode\n state: 'off'\n actions:\n - action: script.notify_apps\n data:\n title: Lights\n message: The {{ trigger.entity_id }} light is on.",
"config": [
{
"name": "home mode",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.home_mode",
"device_id": null
}
},
{
"name": "twinkle lights",
"room": "living_room",
"type": "light",
"id": {
"entity_id": "light.twinkle_lights",
"device_id": null
}
},
{
"name": "bedroom light",
"room": "bedroom",
"type": "light",
"id": {
"entity_id": "light.bedroom_light",
"device_id": null
}
},
{
"name": "dining light",
"room": "dining",
"type": "light",
"id": {
"entity_id": "light.dining_light",
"device_id": null
}
},
{
"name": "torch light",
"room": null,
"type": "light",
"id": {
"entity_id": "light.torch_light",
"device_id": null
}
},
{
"name": "arc lamp",
"room": null,
"type": "light",
"id": {
"entity_id": "light.arc_lamp",
"device_id": null
}
},
{
"name": "tv room light",
"room": "tv_room",
"type": "light",
"id": {
"entity_id": "light.tv_room_light",
"device_id": null
}
}
]
},
{
"id": "daily_unlock_door",
"automation": "- id: daily_unlock_door\n alias: Unlock the Door Daily\n triggers:\n - trigger: state\n entity_id: input_boolean.sleep_mode\n from: 'on'\n to: 'off'\n conditions:\n - alias: at home\n condition: state\n entity_id: input_boolean.home_mode\n state: 'on'\n - alias: not away\n condition: state\n entity_id: input_boolean.away_mode\n state: 'off'\n - alias: door locked\n not:\n condition: state\n entity_id: lock.front_door_lock\n state: unlocked\n actions:\n - action: lock.unlock\n target:\n entity_id: lock.front_door_lock",
"config": [
{
"name": "sleep mode",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.sleep_mode",
"device_id": null
}
},
{
"name": "home mode",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.home_mode",
"device_id": null
}
},
{
"name": "front door lock",
"room": "front_door",
"type": "lock",
"id": {
"entity_id": "lock.front_door_lock",
"device_id": null
}
},
{
"name": "away mode",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.away_mode",
"device_id": null
}
}
]
},
{
"id": "lock_door_nightly",
"automation": "- id: lock_door_nightly\n alias: Lock the Door Nightly\n triggers:\n - trigger: state\n entity_id: input_boolean.sleep_mode\n from: 'off'\n to: 'on'\n conditions:\n - alias: door unlocked\n not:\n condition: state\n entity_id: lock.front_door_lock\n state: locked\n - alias: door closed\n condition: state\n entity_id: binary_sensor.front_door_contact\n state: 'off'\n actions:\n - action: lock.lock\n target:\n entity_id: lock.front_door_lock",
"config": [
{
"name": "sleep mode",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.sleep_mode",
"device_id": null
}
},
{
"name": "front door lock",
"room": "front_door",
"type": "lock",
"id": {
"entity_id": "lock.front_door_lock",
"device_id": null
}
},
{
"name": "front door contact",
"room": "front_door",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.front_door_contact",
"device_id": null
}
}
]
},
{
"id": "auto_lock_door",
"automation": "- id: auto_lock_door\n alias: Auto Lock the Door\n triggers:\n - trigger: state\n entity_id: binary_sensor.front_door_contact\n from: 'on'\n to: 'off'\n for:\n seconds: 1\n conditions:\n - condition: state\n entity_id: input_boolean.auto_lock_front_door\n state: 'on'\n actions:\n - action: lock.lock\n target:\n entity_id: lock.front_door_lock",
"config": [
{
"name": "front door lock",
"room": "front_door",
"type": "lock",
"id": {
"entity_id": "lock.front_door_lock",
"device_id": null
}
},
{
"name": "auto lock front door",
"room": "front_door",
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.auto_lock_front_door",
"device_id": null
}
},
{
"name": "front door contact",
"room": "front_door",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.front_door_contact",
"device_id": null
}
}
]
},
{
"id": "auto_unlock_door",
"automation": "- id: auto_unlock_door\n alias: Auto Unlock the Door\n triggers:\n - trigger: state\n entity_id:\n - person.eric\n - person.laura\n to: home\n conditions:\n - alias: door locked\n not:\n condition: state\n entity_id: lock.front_door_lock\n state: unlocked\n - alias: not sleep\n condition: state\n entity_id: input_boolean.sleep_mode\n state: 'off'\n - alias: not away\n condition: state\n entity_id: input_boolean.away_mode\n state: 'off'\n actions:\n - action: lock.unlock\n target:\n entity_id: lock.front_door_lock",
"config": [
{
"name": "sleep mode",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.sleep_mode",
"device_id": null
}
},
{
"name": "front door lock",
"room": "front_door",
"type": "lock",
"id": {
"entity_id": "lock.front_door_lock",
"device_id": null
}
},
{
"name": "eric person",
"room": null,
"type": "person",
"id": {
"entity_id": "person.eric",
"device_id": null
}
},
{
"name": "laura person",
"room": null,
"type": "person",
"id": {
"entity_id": "person.laura",
"device_id": null
}
},
{
"name": "away mode",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.away_mode",
"device_id": null
}
}
]
},
{
"id": "notify_door",
"automation": "- id: notify_door\n alias: Notify Front Door Lock\n triggers:\n - trigger: state\n entity_id: lock.front_door_lock\n not_to:\n - unavailable\n - unknown\n not_from:\n - unavailable\n - unknown\n actions:\n - action: script.notify_apps\n data:\n title: Doors\n message: Front door is {{ states('lock.front_door_lock') }}.",
"config": [
{
"name": "front door lock",
"room": "front_door",
"type": "lock",
"id": {
"entity_id": "lock.front_door_lock",
"device_id": null
}
}
]
},
{
"id": "update_erics_meds",
"automation": "- id: update_erics_meds\n alias: Update Eric's Meds\n triggers:\n - trigger: tag\n tag_id: b47d9601-9f16-4ab4-b31e-11f6a529817e\n actions:\n - action: input_datetime.set_datetime\n target:\n entity_id: input_datetime.erics_meds_last\n data:\n timestamp: '{{ now().timestamp() }}'",
"config": [
{
"name": "erics meds last",
"room": null,
"type": "input_datetime",
"id": {
"entity_id": "input_datetime.erics_meds_last",
"device_id": null
}
}
]
},
{
"id": "remind_eric_meds",
"automation": "- id: remind_eric_meds\n alias: Remind Eric to Take Meds\n triggers:\n - trigger: state\n entity_id: input_boolean.sleep_mode\n from: 'on'\n to: 'off'\n for:\n minutes: 30\n conditions:\n - alias: at home\n condition: state\n entity_id: input_boolean.home_mode\n state: 'on'\n - '{{ as_local(as_datetime(states(''input_datetime.erics_meds_last''))) < today_at(''00:00'')\n }}'\n actions:\n - action: script.notify_apps\n data:\n title: Medications\n message: Reminder to take your meds.",
"config": [
{
"name": "sleep mode",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.sleep_mode",
"device_id": null
}
},
{
"name": "home mode",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.home_mode",
"device_id": null
}
},
{
"name": "erics meds last",
"room": null,
"type": "input_datetime",
"id": {
"entity_id": "input_datetime.erics_meds_last",
"device_id": null
}
}
]
},
{
"id": "set_home_mode",
"automation": "- id: set_home_mode\n alias: Set Home Mode\n triggers:\n - trigger: numeric_state\n entity_id: zone.home\n above: 0\n conditions:\n - condition: state\n entity_id: input_boolean.home_mode\n state: 'off'\n actions:\n - action: input_boolean.turn_on\n data:\n entity_id: input_boolean.home_mode",
"config": [
{
"name": "home mode",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.home_mode",
"device_id": null
}
},
{
"name": "zone home",
"room": null,
"type": "zone",
"id": {
"entity_id": "zone.home",
"device_id": null
}
}
]
},
{
"id": "unset_home_mode",
"automation": "- id: unset_home_mode\n alias: Unset Home Mode\n triggers:\n - trigger: numeric_state\n entity_id: zone.home\n below: 1\n conditions:\n - condition: state\n entity_id: input_boolean.home_mode\n state: 'on'\n actions:\n - action: input_boolean.turn_off\n data:\n entity_id: input_boolean.home_mode",
"config": [
{
"name": "home mode",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.home_mode",
"device_id": null
}
},
{
"name": "zone home",
"room": null,
"type": "zone",
"id": {
"entity_id": "zone.home",
"device_id": null
}
}
]
},
{
"id": "set_sleep_mode",
"automation": "- id: set_sleep_mode\n alias: Set Sleep Mode\n triggers:\n - trigger: device\n domain: mqtt\n device_id: 9670c4fd4d208a0f5cce5158f1b7c786\n type: action\n subtype: config_single\n - trigger: state\n entity_id: sensor.galaxys24_do_not_disturb_sensor\n not_to:\n - 'off'\n - unknown\n - unavailable\n conditions:\n - condition: state\n entity_id: input_boolean.sleep_mode\n state: 'off'\n actions:\n - delay: 5\n - action: input_boolean.turn_on\n data:\n entity_id: input_boolean.sleep_mode",
"config": [
{
"name": "sleep mode",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.sleep_mode",
"device_id": null
}
},
{
"name": "mqtt device 2",
"room": null,
"type": "device",
"id": {
"entity_id": null,
"device_id": "9670c4fd4d208a0f5cce5158f1b7c786"
}
},
{
"name": "galaxy s24 do not disturb",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.galaxys24_do_not_disturb_sensor",
"device_id": null
}
}
]
},
{
"id": "unset_sleep_mode",
"automation": "- id: unset_sleep_mode\n alias: Unset Sleep Mode\n triggers:\n - trigger: device\n domain: mqtt\n device_id: 9670c4fd4d208a0f5cce5158f1b7c786\n type: action\n subtype: config_double\n conditions:\n - condition: state\n entity_id: input_boolean.sleep_mode\n state: 'on'\n actions:\n - action: input_boolean.turn_off\n data:\n entity_id: input_boolean.sleep_mode",
"config": [
{
"name": "sleep mode",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.sleep_mode",
"device_id": null
}
},
{
"name": "mqtt device 2",
"room": null,
"type": "device",
"id": {
"entity_id": null,
"device_id": "9670c4fd4d208a0f5cce5158f1b7c786"
}
}
]
},
{
"id": "sleep_mode_on_led",
"automation": "- id: sleep_mode_on_led\n alias: Sleep mode ON LED color\n triggers:\n - trigger: state\n entity_id: input_boolean.sleep_mode\n to: 'on'\n actions:\n - action: number.set_value\n data:\n value: 200\n target:\n entity_id:\n - number.bedroom_light_ledcolorwhenon\n - number.bedroom_light_ledcolorwhenoff",
"config": [
{
"name": "sleep mode",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.sleep_mode",
"device_id": null
}
},
{
"name": "bedroom light led color when on",
"room": "bedroom",
"type": "number",
"id": {
"entity_id": "number.bedroom_light_ledcolorwhenon",
"device_id": null
}
},
{
"name": "bedroom light led color when off",
"room": "bedroom",
"type": "number",
"id": {
"entity_id": "number.bedroom_light_ledcolorwhenoff",
"device_id": null
}
}
]
},
{
"id": "sleep_mode_off_led",
"automation": "- id: sleep_mode_off_led\n alias: Sleep mode OFF LED color\n triggers:\n - trigger: state\n entity_id: input_boolean.sleep_mode\n to: 'off'\n actions:\n - action: number.set_value\n data:\n value: 170\n target:\n entity_id:\n - number.bedroom_light_ledcolorwhenon\n - number.bedroom_light_ledcolorwhenoff",
"config": [
{
"name": "sleep mode",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.sleep_mode",
"device_id": null
}
},
{
"name": "bedroom light led color when on",
"room": "bedroom",
"type": "number",
"id": {
"entity_id": "number.bedroom_light_ledcolorwhenon",
"device_id": null
}
},
{
"name": "bedroom light led color when off",
"room": "bedroom",
"type": "number",
"id": {
"entity_id": "number.bedroom_light_ledcolorwhenoff",
"device_id": null
}
}
]
},
{
"id": "turn_on_light_and_tv",
"automation": "- id: turn_on_light_and_tv\n alias: Turn on Light and TV\n triggers:\n - device_id: 0d1e1ef71dff51f437db183f4d67d7ed\n domain: mqtt\n type: action\n subtype: config_single\n trigger: device\n conditions:\n - condition: state\n entity_id: light.tv_room_light\n state: 'off'\n - condition: state\n entity_id: media_player.sony_xr_75x90j\n state: 'off'\n actions:\n - alias: turn on light\n action: light.turn_on\n target:\n entity_id: light.tv_room_light\n - alias: turn on tv\n action: media_player.turn_on\n target:\n entity_id: media_player.sony_xr_75x90j",
"config": [
{
"name": "sony xr tv",
"room": "living_room",
"type": "media_player",
"id": {
"entity_id": "media_player.sony_xr_75x90j",
"device_id": null
}
},
{
"name": "tv room light",
"room": "tv_room",
"type": "light",
"id": {
"entity_id": "light.tv_room_light",
"device_id": null
}
},
{
"name": "mqtt device 3",
"room": null,
"type": "device",
"id": {
"entity_id": null,
"device_id": "0d1e1ef71dff51f437db183f4d67d7ed"
}
}
]
},
{
"id": "turn_off_light_when_playing_media",
"automation": "- id: turn_off_light_when_playing_media\n alias: Turn off Light when Playing Media\n triggers:\n - platform: template\n value_template: '{{ state_attr(''media_player.sony_tv'', ''media_content_type'')\n is not none }}'\n for:\n seconds: 30\n conditions:\n - condition: state\n entity_id: light.tv_room_light\n state: 'on'\n actions:\n - alias: turn off light\n action: light.turn_off\n target:\n entity_id: light.tv_room_light",
"config": [
{
"name": "tv room light",
"room": "tv_room",
"type": "light",
"id": {
"entity_id": "light.tv_room_light",
"device_id": null
}
},
{
"name": "sony tv",
"room": "tv_room",
"type": "media_player",
"id": {
"entity_id": "media_player.sony_tv",
"device_id": null
}
}
]
},
{
"id": "turn_on_light_when_tv_off",
"automation": "- id: turn_on_light_when_tv_off\n alias: Turn on Light when TV is Off\n triggers:\n - platform: state\n entity_id: media_player.sony_xr_75x90j\n to: 'off'\n from: 'on'\n conditions:\n - condition: state\n entity_id: light.tv_room_light\n state: 'off'\n - condition: sun\n after: sunset\n before: sunrise\n before_offset: -00:30:00\n actions:\n - alias: turn on light\n action: light.turn_on\n target:\n entity_id: light.tv_room_light",
"config": [
{
"name": "sony xr tv",
"room": "living_room",
"type": "media_player",
"id": {
"entity_id": "media_player.sony_xr_75x90j",
"device_id": null
}
},
{
"name": "tv room light",
"room": "tv_room",
"type": "light",
"id": {
"entity_id": "light.tv_room_light",
"device_id": null
}
}
]
}
]