243 lines
14 KiB
JSON
243 lines
14 KiB
JSON
[
|
|
{
|
|
"id": "alert_action_handler",
|
|
"automation": "- id: alert_action_handler\n alias: Notification Action Handler\n description: 'Handle notification action events and execute the correct system action.\n\n '\n mode: parallel\n max: 10\n triggers:\n - trigger: event\n event_type: mobile_app_notification_action\n conditions:\n - condition: template\n value_template: '{{ trigger.event.data.action.startswith(''alert.'') }}\n\n '\n actions:\n - variables:\n action_parts: '{{ trigger.event.data.action.split(''.'') }}'\n action_entity_id: '{{ action_parts[0] + ''.'' + action_parts[1] }}'\n action_command: '{{ action_parts[2] }}'\n - choose:\n - conditions:\n - condition: template\n value_template: '{{ action_command == ''mute'' }}'\n sequence:\n - action: alert.turn_off\n target:\n entity_id: '{{ action_entity_id }}'\n - conditions:\n - condition: template\n value_template: '{{ action_command == ''unmute'' }}'\n sequence:\n - action: alert.turn_on\n target:\n entity_id: '{{ action_entity_id }}'",
|
|
"config": []
|
|
},
|
|
{
|
|
"id": "alert_daily_unmute",
|
|
"automation": "- id: alert_daily_unmute\n alias: Daily Re-enable Muted Alerts\n description: 'Re-enables any muted alerts daily at 9am to prevent forgetting about\n them.\n\n '\n triggers:\n - trigger: time\n at: 09:00:00\n actions:\n - action: alert.turn_on\n target:\n entity_id: \"{{ states.alert\\n | selectattr('state', 'eq', 'off')\\n | map(attribute='entity_id')\\n\\\n \\ | list }}\\n\"",
|
|
"config": []
|
|
},
|
|
{
|
|
"id": "'1727566814378'",
|
|
"automation": "- id: '1727566814378'\n alias: Privacy after sunsset\n description: ''\n triggers:\n - event: sunset\n offset: -00:10:00\n trigger: sun\n conditions: []\n actions:\n - action: cover.close_cover\n metadata: {}\n data: {}\n target:\n label_id: privacy\n - action: switch.turn_on\n metadata: {}\n data: {}\n target:\n label_id: exterior_lights\n mode: single",
|
|
"config": []
|
|
},
|
|
{
|
|
"id": "'1727619363042'",
|
|
"automation": "- id: '1727619363042'\n alias: Open shades in the morning\n description: ''\n trigger:\n - platform: time\n at: 08:00:00\n condition: []\n action:\n - action: cover.set_cover_position\n metadata: {}\n data:\n position: 50\n target:\n area_id:\n - kitchen\n - office\n - action: cover.open_cover\n metadata: {}\n data: {}\n target:\n area_id:\n - dining_room\n - flex_room\n mode: single",
|
|
"config": []
|
|
},
|
|
{
|
|
"id": "'1736729071588'",
|
|
"automation": "- id: '1736729071588'\n alias: Turn off heat mats after 4h\n description: ''\n triggers:\n - type: turned_on\n device_id: 41d526899fcd5a046a93f31ff8e68c95\n entity_id: a19db08a70cc0f17f9cb1498921b491f\n domain: switch\n trigger: device\n for:\n hours: 4\n minutes: 0\n seconds: 0\n conditions: []\n actions:\n - type: turn_off\n device_id: 41d526899fcd5a046a93f31ff8e68c95\n entity_id: a19db08a70cc0f17f9cb1498921b491f\n domain: switch\n mode: single",
|
|
"config": [
|
|
{
|
|
"name": "heat mat switch",
|
|
"room": null,
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "a19db08a70cc0f17f9cb1498921b491f",
|
|
"device_id": "41d526899fcd5a046a93f31ff8e68c95"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'1740363545295'",
|
|
"automation": "- id: '1740363545295'\n alias: Night Lockup\n description: ''\n triggers:\n - trigger: time\n at: '23:00:00'\n conditions: []\n actions:\n - action: switch.turn_off\n metadata: {}\n data: {}\n target:\n label_id: exterior_lights\n mode: single",
|
|
"config": []
|
|
},
|
|
{
|
|
"id": "back_office_auto_lights",
|
|
"automation": "- id: back_office_auto_lights\n alias: Back Office Auto Lights\n description: Toggle the wall lighting with the main switch.\n triggers:\n - trigger: state\n entity_id: switch.back_office_lightswitch\n to: 'off'\n id: back_office_switch_off\n - trigger: state\n entity_id: switch.back_office_lightswitch\n to: 'on'\n id: back_office_switch_on\n actions:\n - choose:\n - conditions:\n - condition: trigger\n id: back_office_switch_off\n sequence:\n - action: switch.turn_off\n target:\n entity_id: switch.back_office_wall_lights\n - conditions:\n - condition: trigger\n id: back_office_switch_on\n sequence:\n - action: switch.turn_on\n target:\n entity_id: switch.back_office_wall_lights\n mode: single",
|
|
"config": [
|
|
{
|
|
"name": "back office light switch",
|
|
"room": "office",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.back_office_lightswitch",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "back office wall lights",
|
|
"room": "office",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.back_office_wall_lights",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "garage_double_auto_close",
|
|
"automation": "- id: garage_double_auto_close\n alias: Garage Double Auto Close\n description: Close double garage door if left open for 10 minutes.\n triggers:\n - trigger: state\n entity_id: cover.konnected_f0f5bd514400_garage_door\n to: open\n for:\n hours: 0\n minutes: 10\n seconds: 0\n conditions:\n - condition: state\n entity_id: lock.konnected_f0f5bd514400_lock\n state: unlocked\n actions:\n - action: cover.close_cover\n target:\n entity_id: cover.konnected_f0f5bd514400_garage_door\n mode: restart",
|
|
"config": [
|
|
{
|
|
"name": "garage door",
|
|
"room": "garage",
|
|
"type": "cover",
|
|
"id": {
|
|
"entity_id": "cover.konnected_f0f5bd514400_garage_door",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "garage lock",
|
|
"room": "garage",
|
|
"type": "lock",
|
|
"id": {
|
|
"entity_id": "lock.konnected_f0f5bd514400_lock",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "garage_double_auto_lights",
|
|
"automation": "- id: garage_double_auto_lights\n alias: Garage Double Auto Lights\n description: Turn on garage lights when double garage door is open.\n triggers:\n - trigger: state\n entity_id: cover.konnected_f0f5bd514400_garage_door\n to: opening\n id: double_garage_door_opening\n - trigger: state\n entity_id: cover.konnected_f0f5bd514400_garage_door\n to: closed\n id: double_garage_door_closed\n actions:\n - choose:\n - conditions:\n - condition: trigger\n id: double_garage_door_opening\n sequence:\n - if:\n - condition: template\n value_template: '{{ states(''scene.garage_lights_previous_state'') == ''unknown''\n }}'\n then:\n - action: scene.create\n data:\n snapshot_entities:\n - switch.garage_lights\n - switch.outside_garage_lights\n scene_id: garage_lights_previous_state\n - action: switch.turn_on\n target:\n entity_id:\n - switch.garage_lights\n - switch.outside_garage_lights\n - conditions:\n - condition: trigger\n id: double_garage_door_closed\n sequence:\n - delay:\n minutes: 5\n - action: scene.turn_on\n target:\n entity_id: scene.garage_lights_previous_state\n - action: scene.delete\n target:\n entity_id: scene.garage_lights_previous_state\n mode: restart",
|
|
"config": [
|
|
{
|
|
"name": "garage door",
|
|
"room": "garage",
|
|
"type": "cover",
|
|
"id": {
|
|
"entity_id": "cover.konnected_f0f5bd514400_garage_door",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "garage lights",
|
|
"room": "garage",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.garage_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "outside garage lights",
|
|
"room": "garage",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.outside_garage_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "garage lights previous state scene",
|
|
"room": "garage",
|
|
"type": "scene",
|
|
"id": {
|
|
"entity_id": "scene.garage_lights_previous_state",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "mudroom_closet_auto_lights",
|
|
"automation": "- id: mudroom_closet_auto_lights\n alias: Mudroom Closet Auto Lights\n description: 'Turn on closet lights when door opens, turn off 2 minutes after door\n closes.\n\n '\n triggers:\n - trigger: state\n entity_id: binary_sensor.mudroom_closet_door\n to: 'on'\n id: door_opened\n - trigger: state\n entity_id: binary_sensor.mudroom_closet_door\n to: 'off'\n for:\n minutes: 2\n id: door_closed\n actions:\n - choose:\n - conditions:\n - condition: trigger\n id: door_opened\n sequence:\n - action: switch.turn_on\n target:\n entity_id: switch.mudroom_closet_light_switch\n - conditions:\n - condition: trigger\n id: door_closed\n sequence:\n - action: switch.turn_off\n target:\n entity_id: switch.mudroom_closet_light_switch\n mode: restart",
|
|
"config": [
|
|
{
|
|
"name": "mudroom closet door sensor",
|
|
"room": "mudroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.mudroom_closet_door",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "mudroom closet light switch",
|
|
"room": "mudroom",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.mudroom_closet_light_switch",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "mudroom_closet_lights_auto_off",
|
|
"automation": "- id: mudroom_closet_lights_auto_off\n alias: Mudroom Closet Lights Auto Off\n description: Turn off idle closet lights.\n triggers:\n - trigger: state\n entity_id: switch.mudroom_closet_light_switch\n to: 'on'\n for:\n hours: 1\n actions:\n - action: switch.turn_off\n target:\n entity_id: switch.mudroom_closet_light_switch\n mode: restart",
|
|
"config": [
|
|
{
|
|
"name": "mudroom closet light switch",
|
|
"room": "mudroom",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.mudroom_closet_light_switch",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "theater_auto_pause_lights",
|
|
"automation": "- id: theater_auto_pause_lights\n alias: Theater Auto Pause Lights\n description: Set theater-lights-paused scene when Apple TV is paused or idle\n triggers:\n - trigger: state\n entity_id: media_player.home_theater\n to: paused\n for:\n seconds: 2\n - trigger: state\n entity_id: media_player.home_theater\n to: idle\n for:\n seconds: 2\n conditions: []\n actions:\n - action: scene.turn_on\n target:\n entity_id: scene.theater_lights_paused\n data:\n transition: 2\n mode: restart",
|
|
"config": [
|
|
{
|
|
"name": "home theater media player",
|
|
"room": "theater",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.home_theater",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "theater lights paused scene",
|
|
"room": "theater",
|
|
"type": "scene",
|
|
"id": {
|
|
"entity_id": "scene.theater_lights_paused",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "theater_auto_playing_lights",
|
|
"automation": "- id: theater_auto_playing_lights\n alias: Theater Auto Playing Lights\n description: Set theater-lights-playing scene when Apple TV starts playing content\n triggers:\n - trigger: state\n entity_id: media_player.home_theater\n to: playing\n for:\n seconds: 10\n actions:\n - action: scene.turn_on\n target:\n entity_id: scene.theater_lights_playing\n data:\n transition: 2\n mode: restart",
|
|
"config": [
|
|
{
|
|
"name": "home theater media player",
|
|
"room": "theater",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.home_theater",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "theater lights playing scene",
|
|
"room": "theater",
|
|
"type": "scene",
|
|
"id": {
|
|
"entity_id": "scene.theater_lights_playing",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "theater_auto_off_lights",
|
|
"automation": "- id: theater_auto_off_lights\n alias: Theater Auto Off Lights\n description: Set theater-lights-full scene when Apple TV turns off\n triggers:\n - trigger: state\n entity_id: media_player.home_theater\n to: standby\n not_from: unknown\n - trigger: state\n entity_id: media_player.home_theater\n to: 'off'\n not_from: unknown\n conditions: []\n actions:\n - action: scene.turn_on\n target:\n entity_id: scene.theater_lights_full\n data:\n transition: 2\n mode: restart",
|
|
"config": [
|
|
{
|
|
"name": "home theater media player",
|
|
"room": "theater",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.home_theater",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "theater lights full scene",
|
|
"room": "theater",
|
|
"type": "scene",
|
|
"id": {
|
|
"entity_id": "scene.theater_lights_full",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
}
|
|
] |