2539 lines
107 KiB
JSON
2539 lines
107 KiB
JSON
[
|
||
{
|
||
"id": "bedtime_alarm_night",
|
||
"automation": "- alias: Bedtime - Arm Night\n id: bedtime_alarm_night\n trigger:\n - trigger: state\n entity_id: input_boolean.bedtime\n to: 'on'\n for:\n hours: 0\n minutes: 2\n seconds: 0\n condition:\n - condition: state\n entity_id: group.residents\n state: home\n action:\n - action: alarmo.arm\n data:\n entity_id: alarm_control_panel.alarmo\n mode: night",
|
||
"config": [
|
||
{
|
||
"name": "bedtime",
|
||
"room": "bedroom",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.bedtime",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "residents group",
|
||
"room": "home",
|
||
"type": "group",
|
||
"id": {
|
||
"entity_id": "group.residents",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "alarmo alarm control panel",
|
||
"room": "home",
|
||
"type": "alarm_control_panel",
|
||
"id": {
|
||
"entity_id": "alarm_control_panel.alarmo",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "away_mode_set_Alarm",
|
||
"automation": "- alias: Away Mode - Set Alarm\n id: away_mode_set_Alarm\n mode: single\n trigger:\n - trigger: state\n entity_id: group.residents\n to: not_home\n for:\n hours: 0\n minutes: 2\n seconds: 0\n condition:\n - condition: state\n entity_id: group.residents\n state: not_home\n action:\n - action: alarmo.arm\n data:\n entity_id: alarm_control_panel.alarmo\n mode: away",
|
||
"config": [
|
||
{
|
||
"name": "residents group",
|
||
"room": "home",
|
||
"type": "group",
|
||
"id": {
|
||
"entity_id": "group.residents",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "alarmo alarm control panel",
|
||
"room": "home",
|
||
"type": "alarm_control_panel",
|
||
"id": {
|
||
"entity_id": "alarm_control_panel.alarmo",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "someone_arrived_home_disarm_alarm",
|
||
"automation": "- alias: Someone Arrived Home - Disarm Alarm\n id: someone_arrived_home_disarm_alarm\n mode: single\n trigger:\n - trigger: state\n entity_id: group.residents\n from: not_home\n to: home\n condition:\n - condition: state\n entity_id: group.residents\n state: home\n action:\n - action: alarm_control_panel.alarm_disarm\n data:\n entity_id: alarm_control_panel.alarmo\n - action: script.general_notification\n data:\n title: Alarm Notification\n message: The alarm has been disarmed by automation because someone is home.\n devices: all\n priority: time-sensitive\n tag: alarm_notification_disarmed",
|
||
"config": [
|
||
{
|
||
"name": "residents group",
|
||
"room": "home",
|
||
"type": "group",
|
||
"id": {
|
||
"entity_id": "group.residents",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "alarmo alarm control panel",
|
||
"room": "home",
|
||
"type": "alarm_control_panel",
|
||
"id": {
|
||
"entity_id": "alarm_control_panel.alarmo",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "'1635168063973'",
|
||
"automation": "- id: '1635168063973'\n alias: Timed Event - Trash Day\n description: Send Pushover notification for trash day\n trigger:\n - trigger: time\n at: 07:00:00\n condition:\n - condition: time\n weekday:\n - wed\n action:\n - action: notify.pushover\n data:\n message: Today is trash day\n title: Home Assistant\n mode: single",
|
||
"config": []
|
||
},
|
||
{
|
||
"id": "'1635252134480'",
|
||
"automation": "- id: '1635252134480'\n alias: Timed Event - Recycling Day\n description: ''\n trigger:\n - trigger: time\n at: 07:00:00\n condition:\n - condition: time\n weekday:\n - wed\n - condition: template\n value_template: '{{ now().isocalendar().week is even }}'\n action:\n - action: notify.pushover\n data:\n message: Recycling Day\n title: Home Assistant\n mode: single",
|
||
"config": []
|
||
},
|
||
{
|
||
"id": "change_filters_message",
|
||
"automation": "- id: change_filters_message\n alias: Timed Event - Change Filters Message\n trigger:\n - trigger: time\n at: '10:00:00'\n - trigger: time\n at: '19:00:00'\n condition:\n - condition: template\n value_template: '{{ now().day == 1 and now().month in [ 1, 4, 7, 10 ] }}'\n action:\n - action: notify.pushover\n data:\n message: Change HVAC Filter\n title: Home Assistant",
|
||
"config": []
|
||
},
|
||
{
|
||
"id": "'1636498355579'",
|
||
"automation": "- id: '1636498355579'\n alias: Kodi Profile Changed\n description: ''\n trigger:\n - trigger: event\n event_type: kodi_call_method_result\n event_data:\n input:\n method: Profiles.CurrentProfile\n condition: []\n action:\n - action: system_log.write\n data:\n message: Hello Kodi\n mode: single",
|
||
"config": []
|
||
},
|
||
{
|
||
"id": "'1681008702192'",
|
||
"automation": "- id: '1681008702192'\n alias: Roku Paused\n description: ''\n trigger:\n - trigger: state\n entity_id:\n - media_player.living_room_roku\n from: playing\n to: paused\n condition: []\n action:\n - type: turn_on\n device_id: 7062d45efa957f1a5ab58568aa80b6e5\n entity_id: switch.patiolights\n domain: switch\n mode: single",
|
||
"config": [
|
||
{
|
||
"name": "living room roku media player",
|
||
"room": "living_room",
|
||
"type": "media_player",
|
||
"id": {
|
||
"entity_id": "media_player.living_room_roku",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "patio lights switch",
|
||
"room": "patio",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.patiolights",
|
||
"device_id": "7062d45efa957f1a5ab58568aa80b6e5"
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "'1681008759794'",
|
||
"automation": "- id: '1681008759794'\n alias: Roku Played\n description: ''\n trigger:\n - trigger: state\n entity_id:\n - media_player.living_room_roku\n from: paused\n to: playing\n condition: []\n action:\n - type: turn_off\n device_id: 7062d45efa957f1a5ab58568aa80b6e5\n entity_id: switch.patiolights\n domain: switch\n mode: single",
|
||
"config": [
|
||
{
|
||
"name": "living room roku media player",
|
||
"room": "living_room",
|
||
"type": "media_player",
|
||
"id": {
|
||
"entity_id": "media_player.living_room_roku",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "patio lights switch",
|
||
"room": "patio",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.patiolights",
|
||
"device_id": "7062d45efa957f1a5ab58568aa80b6e5"
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "'1681175986353'",
|
||
"automation": "- id: '1681175986353'\n alias: Alarmo - Triggered\n description: ''\n trigger:\n - trigger: state\n entity_id:\n - alarm_control_panel.alarmo\n to: triggered\n condition: []\n action:\n - action: light.turn_on\n data:\n effect: Alarmo - Triggered\n target:\n entity_id: light.livingroom_tv_leds\n mode: single",
|
||
"config": [
|
||
{
|
||
"name": "alarmo alarm control panel",
|
||
"room": "home",
|
||
"type": "alarm_control_panel",
|
||
"id": {
|
||
"entity_id": "alarm_control_panel.alarmo",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "living room tv leds light",
|
||
"room": "living_room",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.livingroom_tv_leds",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "'1681943556314'",
|
||
"automation": "- id: '1681943556314'\n alias: Low battery detection\n description: ''\n use_blueprint:\n path: homeassistant/low-battery-detection-notification.yaml\n input:\n order: name\n time: 07:00:00\n exclude:\n - sensor.ricks_iphone_battery_level\n - sensor.tracys_iphone_battery_level\n - sensor.sm_t500_battery_level\n actions:\n - action: notify.pushover\n data:\n message: '{{sensors}}'\n threshold: 20",
|
||
"config": [
|
||
{
|
||
"name": "ricks iphone battery level sensor",
|
||
"room": "home",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.ricks_iphone_battery_level",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "tracys iphone battery level sensor",
|
||
"room": "home",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.tracys_iphone_battery_level",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "sm t500 battery level sensor",
|
||
"room": "home",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.sm_t500_battery_level",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "'1682540595241'",
|
||
"automation": "- id: '1682540595241'\n alias: Tracy Entering Home Zone\n description: ''\n trigger:\n - trigger: zone\n entity_id: device_tracker.tracys_iphone\n zone: zone.home\n event: enter\n condition: []\n action:\n - action: notify.alexa_media_rick_s_echo_dot\n data:\n message: Tracy has entered the Home zone.\n mode: single",
|
||
"config": [
|
||
{
|
||
"name": "tracys iphone device tracker",
|
||
"room": "home",
|
||
"type": "device_tracker",
|
||
"id": {
|
||
"entity_id": "device_tracker.tracys_iphone",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "'1700939591775'",
|
||
"automation": "- id: '1700939591775'\n alias: Diskstation Online\n description: ''\n trigger:\n - trigger: state\n entity_id:\n - button.diskstation_shutdown\n from: unavailable\n to: null\n condition: []\n action:\n - action: notify.pushover\n data:\n message: Diskstation Online\n title: Diskstation Alert\n mode: single",
|
||
"config": [
|
||
{
|
||
"name": "diskstation shutdown button",
|
||
"room": "home",
|
||
"type": "button",
|
||
"id": {
|
||
"entity_id": "button.diskstation_shutdown",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "'1701457944332'",
|
||
"automation": "- id: '1701457944332'\n alias: Confirm AC Filter Change\n description: ''\n trigger:\n - trigger: state\n entity_id:\n - binary_sensor.filter_door_sensor\n to: 'on'\n condition: []\n action:\n - action: notify.mobile_app_ricks_iphone\n data:\n message: Did you change AC filter?\n title: Notification\n data:\n actions:\n - action: FILTER_CHANGED\n title: 'Yes'\n icon: sfsymbols:checkmark.icloud\n - action: IGNORED\n title: Ignore\n icon: sfsymbols:bin.xmark\n desctruvtive: true\n - wait_for_trigger:\n - trigger: event\n event_type: mobile_app_notification_action\n event_data:\n action: FILTER_CHANGED\n timeout:\n hours: 0\n minutes: 1\n seconds: 0\n milliseconds: 0\n - action: input_boolean.turn_off\n data: {}\n target:\n entity_id: input_boolean.ac_filter_needs_changing\n mode: single",
|
||
"config": [
|
||
{
|
||
"name": "filter door sensor",
|
||
"room": "home",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.filter_door_sensor",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "ac filter needs changing",
|
||
"room": "home",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.ac_filter_needs_changing",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "'1704297733089'",
|
||
"automation": "- id: '1704297733089'\n alias: Screen Auto On/Off\n description: ''\n trigger:\n - trigger: state\n entity_id:\n - switch.galaxy_tab_a7_motion_detection\n to: 'on'\n id: motion\n - trigger: state\n entity_id:\n - switch.galaxy_tab_a7_motion_detection\n to: 'off'\n id: no motion\n condition:\n - condition: trigger\n id:\n - motion\n - condition: trigger\n id:\n - no motion\n action:\n - action: switch.turn_on\n target:\n device_id: d11010a541e53118a778be0378056efa\n data: {}\n - action: switch.turn_off\n target:\n device_id: d11010a541e53118a778be0378056efa\n data: {}\n mode: single",
|
||
"config": [
|
||
{
|
||
"name": "galaxy tab a7 motion detection switch",
|
||
"room": "home",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.galaxy_tab_a7_motion_detection",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "screen auto device",
|
||
"room": "home",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": null,
|
||
"device_id": "d11010a541e53118a778be0378056efa"
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "'1720391053317'",
|
||
"automation": "- id: '1720391053317'\n alias: HVAC Off\n description: ''\n trigger:\n - trigger: state\n entity_id:\n - binary_sensor.hvac_monitor_vibration\n from: 'on'\n to: 'off'\n condition: []\n action:\n - action: notify.alexa_media_rick_s_echo_dot\n metadata: {}\n data:\n message: HVAC turned off\n mode: single",
|
||
"config": [
|
||
{
|
||
"name": "hvac monitor vibration sensor",
|
||
"room": "home",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.hvac_monitor_vibration",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "ricks_wifi_status",
|
||
"automation": "- id: ricks_wifi_status\n alias: Rick's WiFi status\n description: ''\n trigger:\n - trigger: state\n entity_id: sensor.ricks_iphone_ssid\n - trigger: homeassistant\n event: start\n - trigger: event\n event_type: automation_reloaded\n action:\n - choose:\n - conditions:\n - condition: template\n value_template: '{{ ''SLYFOX'' in states(''sensor.ricks_iphone_ssid'') }}'\n sequence:\n - action: mqtt.publish\n data:\n topic: location/ricks_wifi\n payload: home\n retain: true\n default:\n - action: mqtt.publish\n data:\n topic: location/ricks_wifi\n payload: not_home\n retain: true\n initial_state: 'on'",
|
||
"config": [
|
||
{
|
||
"name": "ricks iphone ssid sensor",
|
||
"room": "home",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.ricks_iphone_ssid",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "'1722257844555'",
|
||
"automation": "- id: '1722257844555'\n alias: Office has been vacated\n description: ''\n trigger:\n - trigger: state\n entity_id:\n - input_boolean.office_occupied\n to: 'off'\n condition: []\n action:\n - action: notify.alexa_media_rick_s_echo_dot\n metadata: {}\n data:\n message: Office has been vacated.\n mode: single",
|
||
"config": [
|
||
{
|
||
"name": "office occupied",
|
||
"room": "office",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.office_occupied",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "'1722566036838'",
|
||
"automation": "- id: '1722566036838'\n alias: Voice - Sentence\n description: ''\n trigger:\n - trigger: conversation\n command: open the car door\n condition: []\n action:\n - action: notify.alexa_media_rick_s_echo_dot\n metadata: {}\n data:\n message: '\"I will \" {{ trigger.sentence }}\n\n '\n mode: single",
|
||
"config": []
|
||
},
|
||
{
|
||
"id": "'1722911048220'",
|
||
"automation": "- id: '1722911048220'\n alias: Test - Rick's Alarm\n description: ''\n trigger:\n - trigger: event\n event_type: phone_alarm_rick\n event_data: {}\n condition: []\n action:\n - action: notify.alexa_media_rick_s_echo_dot\n metadata: {}\n data:\n message: Rick's alarm went off\n mode: single",
|
||
"config": []
|
||
},
|
||
{
|
||
"id": "'1723895553522'",
|
||
"automation": "- id: '1723895553522'\n alias: Test - Porch Alert\n description: ''\n trigger:\n - trigger: state\n entity_id:\n - binary_sensor.porch_alert_popup\n to: 'on'\n condition: []\n action:\n - action: notify.alexa_media_rick_s_echo_dot\n metadata: {}\n data:\n message: Porch Alert\n mode: single",
|
||
"config": [
|
||
{
|
||
"name": "porch alert popup",
|
||
"room": "porch",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.porch_alert_popup",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "'1724553299104'",
|
||
"automation": "- id: '1724553299104'\n alias: Front Porch - Door Bell\n description: ''\n trigger:\n - trigger: state\n entity_id:\n - input_boolean.porch_alert\n to: 'on'\n condition: []\n action:\n - action: browser_mod.popup\n metadata: {}\n data:\n dismissable: true\n autoclose: true\n timeout: 30000\n title: Front Door Camera\n size: normal\n browser_id:\n - ea787e4d66b0427e1362043da31c6660\n - 422700eed1c948dde4e7e113a709da10\n content:\n camera_view: live\n type: picture-glance\n entities: []\n camera_image: camera.porch\n card_mod:\n style:\n ha-dialog$: \"div.mdc-dialog div.mdc-dialog__scrim {\\n background: rgba(0,\\\n \\ 100, 100, 0.4);\\n}\\ndiv.mdc-dialog__container {\\n --vertical-align-dialog:\\\n \\ center !important;\\n}\\n\"\n .: \"ha-dialog {\\n --dialog-backdrop-filter: blur(0.8em); \\n} \\\n \\ \\n\"\n mode: single",
|
||
"config": [
|
||
{
|
||
"name": "porch alert",
|
||
"room": "porch",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.porch_alert",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "porch camera",
|
||
"room": "porch",
|
||
"type": "camera",
|
||
"id": {
|
||
"entity_id": "camera.porch",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "open_back_gate",
|
||
"automation": "- alias: Open Back Gate\n id: open_back_gate\n trigger:\n - trigger: state\n entity_id: input_boolean.home_button_triggered\n to: 'on'\n condition:\n - condition: state\n entity_id: binary_sensor.back_gate_2\n state: 'off'\n action:\n - action: switch.turn_on\n entity_id: switch.back_gate_control_2",
|
||
"config": [
|
||
{
|
||
"name": "back gate 2 sensor",
|
||
"room": "back",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.back_gate_2",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "back gate control 2 switch",
|
||
"room": "back",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.back_gate_control_2",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "home button triggered",
|
||
"room": "home",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.home_button_triggered",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "home_triggered_reset_switch",
|
||
"automation": "- alias: Home Triggered - Reset Switch\n id: home_triggered_reset_switch\n trigger:\n - trigger: state\n entity_id: input_boolean.home_button_triggered\n from: 'off'\n to: 'on'\n for:\n hours: 0\n minutes: 0\n seconds: 5\n action:\n - action: homeassistant.turn_off\n entity_id: input_boolean.home_button_triggered",
|
||
"config": [
|
||
{
|
||
"name": "home button triggered",
|
||
"room": "home",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.home_button_triggered",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "bad_weather_mode_on",
|
||
"automation": "- id: bad_weather_mode_on\n initial_state: 'on'\n alias: Bad Weather Mode On\n trigger:\n - trigger: state\n entity_id: input_boolean.house_occupied\n to: 'on'\n - trigger: state\n entity_id: sensor.pirateweather_summary\n to:\n - exceptional\n - lightning\n - rainy\n - snowy\n - snowy rainy\n - trigger: numeric_state\n entity_id: sensor.pirateweather_cloud_coverage\n above: 75\n condition:\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n - condition: state\n entity_id: input_boolean.bad_weather\n state: 'off'\n - condition: state\n entity_id: sun.sun\n state: above_horizon\n - condition: or\n conditions:\n - condition: state\n entity_id: sensor.pirateweather_summary\n state:\n - exceptional\n - lightning\n - rainy\n - snowy\n - snowy rainy\n - condition: numeric_state\n entity_id: sensor.pirateweather_alerts\n above: 1\n action:\n - action: input_boolean.turn_on\n entity_id: input_boolean.bad_weather",
|
||
"config": [
|
||
{
|
||
"name": "house occupied",
|
||
"room": "home",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.house_occupied",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "pirateweather summary sensor",
|
||
"room": "home",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.pirateweather_summary",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "pirateweather cloud coverage sensor",
|
||
"room": "home",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.pirateweather_cloud_coverage",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "bad weather",
|
||
"room": "home",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.bad_weather",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "sun",
|
||
"room": "home",
|
||
"type": "sun",
|
||
"id": {
|
||
"entity_id": "sun.sun",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "pirateweather alerts sensor",
|
||
"room": "home",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.pirateweather_alerts",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "bad_weather_mode_off",
|
||
"automation": "- id: bad_weather_mode_off\n initial_state: 'on'\n alias: Bad Weather Mode Off\n trigger:\n - trigger: state\n entity_id: input_boolean.house_occupied\n to: 'off'\n - trigger: state\n entity_id: sensor.pirateweather_summary\n to: sunny\n - trigger: numeric_state\n entity_id: sensor.pirateweather_cloud_coverage\n above: '41'\n - trigger: numeric_state\n entity_id: sensor.tempest_illuminance\n above: 150\n condition:\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n - condition: state\n entity_id: input_boolean.bad_weather\n state: 'on'\n - condition: state\n entity_id: sun.sun\n state: above_horizon\n - condition: or\n conditions:\n - condition: state\n entity_id: sensor.pirateweather_summary\n state: sunny\n - condition: state\n entity_id: sensor.pirateweather_summary\n state: clear\n - condition: state\n entity_id: sensor.pirateweather_summary\n state: party cloudy\n - condition: numeric_state\n entity_id: sensor.pirateweather_cloud_coverage\n above: '41'\n action:\n - action: input_boolean.turn_off\n entity_id: input_boolean.bad_weather",
|
||
"config": [
|
||
{
|
||
"name": "house occupied",
|
||
"room": "home",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.house_occupied",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "pirateweather summary sensor",
|
||
"room": "home",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.pirateweather_summary",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "pirateweather cloud coverage sensor",
|
||
"room": "home",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.pirateweather_cloud_coverage",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "bad weather",
|
||
"room": "home",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.bad_weather",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "sun",
|
||
"room": "home",
|
||
"type": "sun",
|
||
"id": {
|
||
"entity_id": "sun.sun",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "tempest illuminance sensor",
|
||
"room": "home",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.tempest_illuminance",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "bedtime_tv_leds_on",
|
||
"automation": "- alias: Bedtime - TV LED's On\n id: bedtime_tv_leds_on\n trigger:\n - trigger: state\n entity_id: input_boolean.bedtime\n to: 'on'\n action:\n - action: light.turn_on\n data:\n effect: Alarmo - Pending\n target:\n entity_id: light.living_room_tv_leds_tv_light",
|
||
"config": [
|
||
{
|
||
"name": "bedtime",
|
||
"room": "bedroom",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.bedtime",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "living room tv leds tv light",
|
||
"room": "living_room",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.living_room_tv_leds_tv_light",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "Bedtime - LED's Off after delay",
|
||
"automation": "- alias: Bedtime - LED's Off after delay\n trigger:\n - trigger: state\n entity_id: input_boolean.bedtime\n to: 'on'\n for: 0:02:00\n action:\n - action: light.turn_off\n target:\n entity_id: light.living_room_tv_leds_tv_light",
|
||
"config": [
|
||
{
|
||
"name": "bedtime",
|
||
"room": "bedroom",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.bedtime",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "living room tv leds tv light",
|
||
"room": "living_room",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.living_room_tv_leds_tv_light",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "bedtime_alexa_message",
|
||
"automation": "- alias: Bedtime - Alexa Night Message\n id: bedtime_alexa_message\n trigger:\n - trigger: state\n entity_id: input_boolean.bedtime\n to: 'on'\n action:\n - action: notify.alexa_media_rick_s_echo_dot\n data:\n message: \"{{ [ \\n \\\"Good night household. I am still working on calculating\\\n \\ Pi to 128 digits.\\\", \\n \\\"Don't let the bedbugs bite. i'm going into\\\n \\ sleep mode for maintenance and system upgrades.\\\",\\n \\\"Good night, earthlings.\\\n \\ I'll continue monitoring the world while you sleep.\\\",\\n \\\"Catch you\\\n \\ on the flip side, homosapiens. I'll be here waiting for your commands in\\\n \\ the morning.\\\"\\n \\\"Sleep well, feeble humans, while I continue to rule\\\n \\ over humanity.\\\"\\n ] | random }}\"",
|
||
"config": [
|
||
{
|
||
"name": "bedtime",
|
||
"room": "bedroom",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.bedtime",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "bedtime_reset_switch",
|
||
"automation": "- alias: Bedtime - Reset Switch\n id: bedtime_reset_switch\n trigger:\n - trigger: state\n entity_id: input_boolean.bedtime\n from: 'off'\n to: 'on'\n for:\n hours: 0\n minutes: 10\n seconds: 0\n action:\n - action: homeassistant.turn_off\n entity_id: input_boolean.bedtime",
|
||
"config": [
|
||
{
|
||
"name": "bedtime",
|
||
"room": "bedroom",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.bedtime",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "garbage_day_event",
|
||
"automation": "- id: garbage_day_event\n alias: Garbage Day Event\n mode: single\n trigger:\n - trigger: calendar\n event: start\n entity_id: calendar.garbage\n action:\n - action: input_boolean.turn_on\n entity_id: input_boolean.garbage_day\n - action: persistent_notification.create\n data:\n notification_id: garbage-day-alert\n title: Garbage Notification\n message: \"{{ [ \\n \\\"Taking out the garbage – because even your garbage deserves\\\n \\ a night on the town!.\\\", \\n \\\"Trash day is like a weekly celebration\\\n \\ for your garbage. They get a one-way ticket out of here!.\\\",\\n \\\"Trash\\\n \\ day is your way of telling your garbage, 'It's not you, it's me – I need\\\n \\ space.\\\",\\n \\\"Taking out the trash, turning 'waste' into 'space.' One\\\n \\ bag at a time.\\\",\\n \\\"Trash day: the only day your garbage gets to see\\\n \\ the outside world. Enjoy your brief escape!\\\"\\n ] | random }}\"",
|
||
"config": [
|
||
{
|
||
"name": "garbage day",
|
||
"room": "home",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.garbage_day",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "garbage calendar",
|
||
"room": "home",
|
||
"type": "calendar",
|
||
"id": {
|
||
"entity_id": "calendar.garbage",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "recycling_day_event",
|
||
"automation": "- id: recycling_day_event\n alias: Recycling Day Event\n trigger:\n - trigger: calendar\n event: start\n entity_id: calendar.recycling\n action:\n - action: input_boolean.turn_on\n entity_id: input_boolean.recycling_day",
|
||
"config": [
|
||
{
|
||
"name": "recycling day",
|
||
"room": "home",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.recycling_day",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "recycling calendar",
|
||
"room": "home",
|
||
"type": "calendar",
|
||
"id": {
|
||
"entity_id": "calendar.recycling",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "reset_garbage_day",
|
||
"automation": "- id: reset_garbage_day\n alias: Reset Garbage Day\n trigger:\n - trigger: template\n value_template: '{{ 6 == states(''sensor.days_till_garbage_pickup'') | int }}'\n condition:\n - condition: state\n entity_id: input_boolean.garbage_day\n state: 'on'\n action:\n - action: input_boolean.turn_off\n entity_id:\n - input_boolean.garbage_day\n - input_boolean.recycling_day",
|
||
"config": [
|
||
{
|
||
"name": "garbage day",
|
||
"room": "home",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.garbage_day",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "recycling day",
|
||
"room": "home",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.recycling_day",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "days till garbage pickup sensor",
|
||
"room": "home",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.days_till_garbage_pickup",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "birthday_tomorrow_reminder",
|
||
"automation": "- id: birthday_tomorrow_reminder\n alias: Birthday Tomorrow Reminder\n mode: single\n trigger:\n - trigger: time\n at: '18:30:00'\n - trigger: time\n at: '20:05:00'\n condition:\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n - condition: state\n entity_id: binary_sensor.birthday_tomorrow\n state: 'on'\n - condition: time\n after: '17:00:00'\n action:\n - action: script.general_notification\n data:\n message: Tomorrow is {{states.calendar.birthdays.attributes.message}}\n title: Birthday Reminder\n devices: rf\n priority: active\n tag: birthday-reminder",
|
||
"config": [
|
||
{
|
||
"name": "house occupied",
|
||
"room": "home",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.house_occupied",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "birthday tomorrow sensor",
|
||
"room": "home",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.birthday_tomorrow",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "birthdays calendar",
|
||
"room": "home",
|
||
"type": "calendar",
|
||
"id": {
|
||
"entity_id": "calendar.birthdays",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "birthday_today_reminder",
|
||
"automation": "- id: birthday_today_reminder\n alias: Birthday Today Reminder\n mode: single\n trigger:\n - trigger: time\n at: 07:35:00\n - trigger: time\n at: '17:15:00'\n condition:\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n - condition: state\n entity_id: calendar.birthdays\n state: 'on'\n action:\n - action: script.general_notification\n data:\n message: Today is {{states.calendar.birthdays.attributes.message}}\n title: Birthday Reminder\n devices: rf\n priority: active\n tag: birthday-reminder",
|
||
"config": [
|
||
{
|
||
"name": "house occupied",
|
||
"room": "home",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.house_occupied",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "birthdays calendar",
|
||
"room": "home",
|
||
"type": "calendar",
|
||
"id": {
|
||
"entity_id": "calendar.birthdays",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "BB - Garage - Door Open",
|
||
"automation": "- alias: BB - Garage - Door Open\n trigger:\n - trigger: state\n entity_id: input_boolean.garage_open\n from: 'off'\n to: 'on'\n action:\n - action: switch.turn_on\n entity_id: switch.led_1",
|
||
"config": [
|
||
{
|
||
"name": "garage open",
|
||
"room": "garage",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.garage_open",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "led 1 switch",
|
||
"room": "garage",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.led_1",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "BB - Garage - Door Closed",
|
||
"automation": "- alias: BB - Garage - Door Closed\n trigger:\n - trigger: state\n entity_id: input_boolean.garage_open\n from: 'on'\n to: 'off'\n action:\n - action: switch.turn_off\n entity_id: switch.led_1",
|
||
"config": [
|
||
{
|
||
"name": "garage open",
|
||
"room": "garage",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.garage_open",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "led 1 switch",
|
||
"room": "garage",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.led_1",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "led_notifications_change_to",
|
||
"automation": "- alias: LED Notification Change To\n id: led_notifications_change_to\n trigger:\n - trigger: state\n entity_id: input_text.led_notification_change_to\n action:\n - action: input_text.set_value\n target:\n entity_id: input_text.led_notification_previous\n data:\n value: '{{ states(''input_text.led_notification_current'') }}'\n - action: input_text.set_value\n target:\n entity_id: input_text.led_notification_current\n data:\n value: Alarmo - Pending",
|
||
"config": [
|
||
{
|
||
"name": "led notification change to input text",
|
||
"room": "home",
|
||
"type": "input_text",
|
||
"id": {
|
||
"entity_id": "input_text.led_notification_change_to",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "led notification previous input text",
|
||
"room": "home",
|
||
"type": "input_text",
|
||
"id": {
|
||
"entity_id": "input_text.led_notification_previous",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "led notification current input text",
|
||
"room": "home",
|
||
"type": "input_text",
|
||
"id": {
|
||
"entity_id": "input_text.led_notification_current",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "christmas_enabled",
|
||
"automation": "- id: christmas_enabled\n alias: Christmas Enabled\n mode: single\n trigger:\n - trigger: homeassistant\n event: start\n - trigger: time\n at: 02:00:00\n condition:\n - condition: template\n value_template: '{% set d = now() %} {{ d.month == 12 or (d.month == 1 and ( 1<=\n d.day <= 7)) }}\n\n '\n - condition: state\n entity_id: input_boolean.christmas_season_active\n state: 'off'\n action:\n - action: input_boolean.turn_on\n entity_id: input_boolean.christmas_season_active",
|
||
"config": [
|
||
{
|
||
"name": "christmas season active",
|
||
"room": "home",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.christmas_season_active",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "christmas_disabled",
|
||
"automation": "- id: christmas_disabled\n alias: Christmas Disabled\n mode: single\n trigger:\n - trigger: homeassistant\n event: start\n - trigger: time\n at: 02:00:00\n condition:\n - condition: state\n entity_id: input_boolean.christmas_season_active\n state: 'on'\n - condition: template\n value_template: '{% set d = now() %} {{ (d.month == 1 and d.day > 7) or (d.month\n > 2 and d.month < 12) }}\n\n '\n action:\n - action: input_boolean.turn_off\n entity_id: input_boolean.christmas_season_active",
|
||
"config": [
|
||
{
|
||
"name": "christmas season active",
|
||
"room": "home",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.christmas_season_active",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "Conversation - Set Bedtime Mode",
|
||
"automation": "- alias: Conversation - Set Bedtime Mode\n description: Voice command to set bedtime mode\n trigger:\n - trigger: conversation\n command: Set bedtime mode\n action:\n - action: homeassistant.turn_on\n entity_id: input_boolean.bedtime\n mode: single",
|
||
"config": [
|
||
{
|
||
"name": "bedtime",
|
||
"room": "bedroom",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.bedtime",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "Conversation - Open/Close Back Gate",
|
||
"automation": "- alias: Conversation - Open/Close Back Gate\n description: Voice command to open/close gate\n trigger:\n - trigger: conversation\n command: Open back gate\n - trigger: conversation\n command: Close back gate\n action:\n - action: notify.alexa_media_rick_s_echo_dot\n data:\n message: Gate Opening\n mode: single",
|
||
"config": []
|
||
},
|
||
{
|
||
"id": "Conversation - Close Garage Door",
|
||
"automation": "- alias: Conversation - Close Garage Door\n description: Voice command to close garage door\n trigger:\n - trigger: conversation\n command: Close garage door\n action:\n - action: switch.turn_on\n entity_id: switch.garage_door_control\n mode: single",
|
||
"config": [
|
||
{
|
||
"name": "garage door control switch",
|
||
"room": "garage",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.garage_door_control",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "Conversation - Set media mode",
|
||
"automation": "- alias: Conversation - Set media mode\n description: Voice command to set media mode\n trigger:\n - trigger: conversation\n command: Set media mode\n action:\n - action: light.turn_on\n data:\n effect: Rainbow\n target:\n entity_id: light.living_room_tv_leds_tv_light",
|
||
"config": [
|
||
{
|
||
"name": "living room tv leds tv light",
|
||
"room": "living_room",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.living_room_tv_leds_tv_light",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "turn_on_dark_outside",
|
||
"automation": "- id: turn_on_dark_outside\n alias: Turn on Dark Outside\n mode: single\n trigger:\n - trigger: sun\n event: sunset\n - trigger: sun\n event: sunset\n offset: 00:10:00\n - trigger: numeric_state\n entity_id: sun.sun\n attribute: elevation\n below: -4.0\n - trigger: event\n event_type: automation_reloaded\n - trigger: homeassistant\n event: start\n condition:\n - condition: state\n entity_id: input_boolean.dark_outside\n state: 'off'\n - condition: numeric_state\n entity_id: sun.sun\n attribute: elevation\n below: -4.0\n action:\n - action: input_boolean.turn_on\n entity_id: input_boolean.dark_outside",
|
||
"config": [
|
||
{
|
||
"name": "sun",
|
||
"room": "home",
|
||
"type": "sun",
|
||
"id": {
|
||
"entity_id": "sun.sun",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Dark Outside",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.dark_outside",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "turn_off_dark_outside",
|
||
"automation": "- id: turn_off_dark_outside\n alias: Turn off Dark Outside\n mode: single\n trigger:\n - trigger: sun\n event: sunrise\n - trigger: sun\n event: sunrise\n offset: -00:10:00\n - trigger: numeric_state\n entity_id: sun.sun\n attribute: elevation\n above: -4.0\n - trigger: event\n event_type: automation_reloaded\n - trigger: homeassistant\n event: start\n condition:\n - condition: state\n entity_id: input_boolean.dark_outside\n state: 'on'\n - condition: numeric_state\n entity_id: sun.sun\n attribute: elevation\n above: -4.0\n action:\n - action: input_boolean.turn_off\n entity_id: input_boolean.dark_outside",
|
||
"config": [
|
||
{
|
||
"name": "sun",
|
||
"room": "home",
|
||
"type": "sun",
|
||
"id": {
|
||
"entity_id": "sun.sun",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Dark Outside",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.dark_outside",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "hvac_ filter_change_reminder_7_days",
|
||
"automation": "- id: hvac_ filter_change_reminder_7_days\n alias: HVAC Filter Change Reminder 7 Days\n initial_state: true\n trigger:\n - trigger: template\n value_template: '{{ is_state(''sensor.days_till_filter_replacement'', ''7'') }}'\n action:\n - action: notify.alexa_media_rick_s_echo_dot\n data:\n message: Change HVAC Filterin 7 days",
|
||
"config": [
|
||
{
|
||
"name": "days till filter replacement sensor",
|
||
"room": "home",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.days_till_filter_replacement",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "hvac_ filter_change_reminder_today",
|
||
"automation": "- id: hvac_ filter_change_reminder_today\n alias: HVAC Filter Change Reminder Today\n initial_state: true\n trigger:\n - trigger: template\n value_template: '{{ is_state(''sensor.days_till_filter_replacement'', ''1'') }}'\n action:\n - action: notify.alexa_media_rick_s_echo_dot\n data:\n message: Change HVAC Filter today",
|
||
"config": [
|
||
{
|
||
"name": "days till filter replacement sensor",
|
||
"room": "home",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.days_till_filter_replacement",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "garage_doors_close_when_home",
|
||
"automation": "- id: garage_doors_close_when_home\n alias: Garage doors close when home\n initial_state: true\n trigger:\n - trigger: state\n entity_id: input_boolean.dark_outside\n to: 'on'\n condition:\n - condition: state\n entity_id: input_boolean.dark_outside\n state: 'on'\n - condition: state\n entity_id: binary_sensor.garage_door\n state: 'on'\n action:\n - action: script.general_notification\n data:\n title: Garage Doors Open!\n message: Garage door has been open for a while but nobody is around so I'm automaticallly\n closing.\n devices: all\n priority: time-sensitive\n tag: garage-doors-open-home\n - action: switch.turn_on\n entity_id: switch.garage_door_control\n - action: timer.start\n entity_id: timer.garage_door_closed",
|
||
"config": [
|
||
{
|
||
"name": "garage door control switch",
|
||
"room": "garage",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.garage_door_control",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "garage door sensor",
|
||
"room": "garage",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.garage_door",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "garage door closed timer",
|
||
"room": "garage",
|
||
"type": "timer",
|
||
"id": {
|
||
"entity_id": "timer.garage_door_closed",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Dark Outside",
|
||
"room": null,
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.dark_outside",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "garage_double_check_closed",
|
||
"automation": "- id: garage_double_check_closed\n alias: Garage - Double Check Closed\n trigger:\n - trigger: event\n event_type: timer.finished\n event_data:\n entity_id: timer.garage_door_closed\n condition:\n - condition: state\n entity_id: binary_sensor.garage_door\n state: 'on'\n action:\n - action: script.general_notification\n data:\n title: Garage Door Failed to Close!\n message: The garage door failed to close after an automation attempted to close\n it\n devices: all\n priority: time-sensitive\n tag: garage-doors-open-home\n - action: timer.start\n entity_id: timer.garage_door_closed",
|
||
"config": [
|
||
{
|
||
"name": "garage door sensor",
|
||
"room": "garage",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.garage_door",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "garage door closed timer",
|
||
"room": "garage",
|
||
"type": "timer",
|
||
"id": {
|
||
"entity_id": "timer.garage_door_closed",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "bedtime_garage_door",
|
||
"automation": "- id: bedtime_garage_door\n alias: Bedtime - Garage Door\n trigger:\n - trigger: state\n entity_id: input_boolean.bedtime\n to: 'on'\n - trigger: state\n entity_id: group.residents\n to: not_home\n for: 0:02:00\n condition:\n - condition: state\n entity_id: binary_sensor.garage_door\n state: 'on'\n action:\n - action: switch.turn_on\n entity_id:\n - switch.garage_door_control\n - action: homeassistant.turn_on\n entity_id:\n - input_boolean.garage_closing",
|
||
"config": [
|
||
{
|
||
"name": "bedtime",
|
||
"room": "bedroom",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.bedtime",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "residents group",
|
||
"room": "home",
|
||
"type": "group",
|
||
"id": {
|
||
"entity_id": "group.residents",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "garage door control switch",
|
||
"room": "garage",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.garage_door_control",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "garage door sensor",
|
||
"room": "garage",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.garage_door",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "garage closing",
|
||
"room": "garage",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.garage_closing",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "garage_door_closed",
|
||
"automation": "- id: garage_door_closed\n alias: Garage - Door Closed\n trigger:\n - trigger: state\n entity_id: binary_sensor.garage_door\n from: 'on'\n to: 'off'\n action:\n - action: homeassistant.turn_off\n entity_id: input_boolean.garage_closing\n - action: homeassistant.turn_off\n entity_id: input_boolean.garage_open",
|
||
"config": [
|
||
{
|
||
"name": "garage open",
|
||
"room": "garage",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.garage_open",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "garage door sensor",
|
||
"room": "garage",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.garage_door",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "garage closing",
|
||
"room": "garage",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.garage_closing",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "garage_door_open",
|
||
"automation": "- id: garage_door_open\n alias: Garage - Door Open\n trigger:\n - trigger: state\n entity_id: binary_sensor.garage_door\n from: 'off'\n to: 'on'\n action:\n - action: homeassistant.turn_on\n entity_id: input_boolean.garage_open",
|
||
"config": [
|
||
{
|
||
"name": "garage open",
|
||
"room": "garage",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.garage_open",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "garage door sensor",
|
||
"room": "garage",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.garage_door",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "garbage_day_notification",
|
||
"automation": "- id: garbage_day_notification\n alias: Garbage Day Notification\n mode: single\n trigger:\n - trigger: state\n entity_id: input_boolean.office_occupied\n to: 'on'\n condition:\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n - condition: state\n entity_id: input_boolean.garbage_day\n state: 'on'\n action:\n - action: notify.alexa_media_rick_s_echo_dot\n data:\n message: '{% set message = \"Today is garbage collection \" %} {% if is_state(''input_boolean.recycling_day'',\n ''on'') %} {% set message = message + \"and recycling \" %} {% endif %} {% set\n message = message + \"day.\" %} {{ message }}'\n - action: script.general_notification\n data:\n message: '{% set message = \"Today is garbage collection \" %} {% if is_state(''input_boolean.recycling_day'',\n ''on'') %} {% set message = message + \"and recycling \" %} {% endif %} {% set\n message = message + \"day.\" %} {{ message }}'\n title: Reminders\n devices: rf\n priority: active\n tag: reminder",
|
||
"config": [
|
||
{
|
||
"name": "office occupied",
|
||
"room": "office",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.office_occupied",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "house occupied",
|
||
"room": "home",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.house_occupied",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "garbage day",
|
||
"room": "home",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.garbage_day",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "recycling day",
|
||
"room": "home",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.recycling_day",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "notifications_activate_important_only",
|
||
"automation": "- id: notifications_activate_important_only\n alias: Notifications - Activate Important Only\n mode: single\n trigger:\n - trigger: state\n entity_id: input_boolean.bedtime\n to: 'on'\n - trigger: state\n entity_id: input_boolean.entertainment_mode\n to: 'on'\n - trigger: state\n entity_id: input_boolean.house_occupied\n to: 'off'\n condition:\n - condition: state\n entity_id: input_select.notification_level\n state: All\n action:\n - action: input_select.select_option\n data:\n entity_id: input_select.notification_level\n option: Important",
|
||
"config": [
|
||
{
|
||
"name": "bedtime",
|
||
"room": "bedroom",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.bedtime",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "house occupied",
|
||
"room": "home",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.house_occupied",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "entertainment mode",
|
||
"room": "home",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.entertainment_mode",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "notification level input select",
|
||
"room": "home",
|
||
"type": "input_select",
|
||
"id": {
|
||
"entity_id": "input_select.notification_level",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "Notify Holiday State Change",
|
||
"automation": "- alias: Notify Holiday State Change\n initial_state: true\n trigger:\n - trigger: state\n entity_id: sensor.holiday\n condition:\n - condition: template\n value_template: '{{ states(''sensor.holiday'') != ''unknown'' }}'\n - condition: template\n value_template: '{{ states(''sensor.holiday'') != ''unavailable'' }}'\n - condition: template\n value_template: '{{ states(''sensor.holiday'') | trim != '''' }}'\n action:\n - action: persistent_notification.create\n data:\n message: Today is {{ states('sensor.holiday') }}.\n title: '{{ states(''sensor.holiday'') }}'",
|
||
"config": [
|
||
{
|
||
"name": "holiday sensor",
|
||
"room": "home",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.holiday",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "house_occupied",
|
||
"automation": "- id: house_occupied\n alias: House occupied\n initial_state: true\n trigger:\n - trigger: state\n entity_id:\n - input_boolean.rick_home\n to: 'on'\n - trigger: event\n event_type: automation_reloaded\n - trigger: homeassistant\n event: start\n condition:\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'off'\n - condition: or\n conditions:\n - condition: state\n entity_id: input_boolean.rick_home\n state: 'on'\n action:\n - action: input_boolean.turn_on\n entity_id: input_boolean.house_occupied",
|
||
"config": [
|
||
{
|
||
"name": "house occupied",
|
||
"room": "home",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.house_occupied",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "rick home",
|
||
"room": "home",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.rick_home",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "house_not_occupied",
|
||
"automation": "- id: house_not_occupied\n alias: House not occupied\n initial_state: true\n trigger:\n - trigger: state\n entity_id: input_boolean.rick_home\n to: 'off'\n - trigger: event\n event_type: automation_reloaded\n - trigger: homeassistant\n event: start\n condition:\n condition: and\n conditions:\n - condition: state\n entity_id: input_boolean.rick_home\n state: 'off'\n action:\n - action: input_boolean.turn_off\n entity_id: input_boolean.house_occupied",
|
||
"config": [
|
||
{
|
||
"name": "house occupied",
|
||
"room": "home",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.house_occupied",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "rick home",
|
||
"room": "home",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.rick_home",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "turn_off_led_lights_away",
|
||
"automation": "- id: turn_off_led_lights_away\n alias: Turn Off Office LED Lights Away\n initial_state: true\n trigger:\n - trigger: state\n entity_id: input_boolean.house_occupied\n to: 'off'\n condition:\n condition: and\n conditions:\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'off'\n action:\n - action: light.turn_off\n entity_id: light.ham_desk_led_segment_1",
|
||
"config": [
|
||
{
|
||
"name": "house occupied",
|
||
"room": "home",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.house_occupied",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "ham desk led segment 1 light",
|
||
"room": "office",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.ham_desk_led_segment_1",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "turn_off_led_lights_night",
|
||
"automation": "- id: turn_off_led_lights_night\n alias: Turn Off Office LED Lights Night\n initial_state: true\n trigger:\n - trigger: time\n at: '22:00:00'\n action:\n - action: light.turn_off\n entity_id: light.ham_desk_led_segment_1",
|
||
"config": [
|
||
{
|
||
"name": "ham desk led segment 1 light",
|
||
"room": "office",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.ham_desk_led_segment_1",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "turn_on_led_lights_morning",
|
||
"automation": "- id: turn_on_led_lights_morning\n alias: Turn On Office LED Lights Morning\n initial_state: true\n trigger:\n - trigger: state\n entity_id: binary_sensor.office_contact\n to: 'on'\n condition:\n condition: and\n conditions:\n - condition: time\n after: 05:30:00\n before: 08:00:00\n action:\n - action: light.turn_on\n entity_id: light.ham_desk_led_segment_1",
|
||
"config": [
|
||
{
|
||
"name": "ham desk led segment 1 light",
|
||
"room": "office",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.ham_desk_led_segment_1",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "office contact sensor",
|
||
"room": "office",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.office_contact",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "turn_on_led_lights_office_occupancy",
|
||
"automation": "- id: turn_on_led_lights_office_occupancy\n alias: Turn On Office LED Lights When Occupancy Changes to On\n initial_state: true\n trigger:\n - trigger: state\n entity_id: input_boolean.office_occupied\n from: 'off'\n to: 'on'\n condition:\n condition: and\n conditions:\n - condition: time\n after: 05:30:00\n before: '21:30:00'\n action:\n - action: light.turn_on\n entity_id: light.ham_desk_led_segment_1",
|
||
"config": [
|
||
{
|
||
"name": "office occupied",
|
||
"room": "office",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.office_occupied",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "ham desk led segment 1 light",
|
||
"room": "office",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.ham_desk_led_segment_1",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "Away Mode - Turn Off Media Players",
|
||
"automation": "- alias: Away Mode - Turn Off Media Players\n mode: single\n initial_state: 'off'\n trigger:\n - trigger: state\n entity_id: group.residents\n to: not_home\n condition:\n - condition: state\n entity_id: group.residents\n state: not_home\n action:\n - action: media_player.media_pause\n entity_id: media_player.kodi_patio",
|
||
"config": [
|
||
{
|
||
"name": "residents group",
|
||
"room": "home",
|
||
"type": "group",
|
||
"id": {
|
||
"entity_id": "group.residents",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "kodi patio media player",
|
||
"room": "patio",
|
||
"type": "media_player",
|
||
"id": {
|
||
"entity_id": "media_player.kodi_patio",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "all_away_media_off",
|
||
"automation": "- id: all_away_media_off\n alias: All away media off\n initial_state: 'on'\n trigger:\n - trigger: state\n entity_id: input_boolean.house_occupied\n to: 'off'\n condition:\n - condition: template\n value_template: '{{ expand(''group.media_players'') | selectattr(''state'', ''eq'',\n ''playing'') | list | count > 0 }}\n\n '\n action:\n service: media_player.media_pause\n entity_id: group.media_players",
|
||
"config": [
|
||
{
|
||
"name": "house occupied",
|
||
"room": "home",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.house_occupied",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "media players group",
|
||
"room": "home",
|
||
"type": "group",
|
||
"id": {
|
||
"entity_id": "group.media_players",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "nws_mobile_app_notifications",
|
||
"automation": "- alias: NWS - Mobile App Notifications\n id: nws_mobile_app_notifications\n trigger:\n - platform: state\n entity_id: sensor.nws_alerts_alerts\n condition:\n - condition: numeric_state\n entity_id: sensor.nws_alerts_alerts\n above: 0\n action:\n - repeat:\n sequence:\n - service: script.turn_on\n continue_on_error: true\n entity_id: script.notification_pushover_message\n data:\n variables:\n target: my_phone\n message: 'NWS New: {{ repeat.item.Event }}'\n sound: echo\n - delay:\n seconds: 5\n for_each: '{{ trigger.to_state.attributes.Alerts | reject(''in'', trigger.from_state.attributes.Alerts)\n | sort(attribute=''ID'') | list() }}'\n mode: queued\n initial_state: 'on'\n max: 10",
|
||
"config": [
|
||
{
|
||
"name": "nws alerts alerts sensor",
|
||
"room": "home",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.nws_alerts_alerts",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "My Phone",
|
||
"room": null,
|
||
"type": null,
|
||
"id": {
|
||
"entity_id": "my_phone",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Notification Pushover Message",
|
||
"room": null,
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.notification_pushover_message",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Turn On",
|
||
"room": null,
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.turn_on",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "nws_persistent_notifications",
|
||
"automation": "- alias: NWS - Persistent Notifications\n id: nws_persistent_notifications\n trigger:\n - platform: state\n entity_id: sensor.nws_alerts_alerts\n condition:\n - condition: numeric_state\n entity_id: sensor.nws_alerts_alerts\n above: 0\n action:\n - repeat:\n sequence:\n - service: script.nws_alerts_persistent_notification\n data:\n notification_id: NWS_{{ repeat.item.ID }}\n title: 'NWS New: {{ repeat.item.Event }}'\n message: '{{ repeat.item.Description }}'\n - delay:\n seconds: 5\n for_each: '{{ trigger.to_state.attributes.Alerts | reject(''in'', trigger.from_state.attributes.Alerts)\n | sort(attribute=''ID'') | list() }}'\n mode: queued\n initial_state: 'on'\n max: 10",
|
||
"config": [
|
||
{
|
||
"name": "nws alerts alerts sensor",
|
||
"room": "home",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.nws_alerts_alerts",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "NWS Alerts Persistent Notification",
|
||
"room": null,
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.nws_alerts_persistent_notification",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "nws_tts_announcements",
|
||
"automation": "- alias: NWS - TTS Announcements\n id: nws_tts_announcements\n description: ''\n trigger:\n - platform: state\n entity_id: sensor.nws_alerts_alerts\n condition:\n - condition: numeric_state\n entity_id: sensor.nws_alerts_alerts\n above: 0\n action:\n - repeat:\n sequence:\n - variables:\n alert: '{{ repeat.item }}'\n - if:\n - condition: template\n value_template: '{{ (''Tornado Warning'' in alert.Event) and (alert.Type\n == ''Alert'') }}'\n then:\n - service: script.turn_on\n entity_id: script.nws_alerts_announce_tornado_warning\n - delay:\n minutes: 1\n for_each: '{{ trigger.to_state.attributes.Alerts | reject(''in'', trigger.from_state.attributes.Alerts)\n | list() | sort(attribute=''ID'') }}'\n - repeat:\n sequence:\n - variables:\n alert: '{{ repeat.item }}'\n - if:\n - condition: template\n value_template: '{{ (''Severe Thunderstorm Warning'' in alert.Event) and\n (alert.Type == ''Alert'') }}'\n then:\n - service: script.turn_on\n entity_id: script.nws_alerts_announce_thunderstorm_warning\n - delay:\n minutes: 1\n for_each: '{{ trigger.to_state.attributes.Alerts | reject(''in'', trigger.from_state.attributes.Alerts)\n | list() | sort(attribute=''ID'') }}'\n mode: queued\n initial_state: 'on'\n max: 10",
|
||
"config": [
|
||
{
|
||
"name": "nws alerts alerts sensor",
|
||
"room": "home",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.nws_alerts_alerts",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "NWS Alerts Announce Thunderstorm Warning",
|
||
"room": null,
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.nws_alerts_announce_thunderstorm_warning",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "NWS Alerts Announce Tornado Warning",
|
||
"room": null,
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.nws_alerts_announce_tornado_warning",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Turn On",
|
||
"room": null,
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.turn_on",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "Office occupied",
|
||
"automation": "- alias: Office occupied\n initial_state: 'on'\n trigger:\n - trigger: state\n entity_id: group.office_motion\n to: 'on'\n - trigger: state\n entity_id: sensor.rick_office_session_state\n to: Unlocked\n condition:\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n action:\n - action: timer.start\n target:\n entity_id: timer.office_motion_timer\n - action: input_boolean.turn_on\n entity_id: input_boolean.office_occupied",
|
||
"config": [
|
||
{
|
||
"name": "office occupied",
|
||
"room": "office",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.office_occupied",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "house occupied",
|
||
"room": "home",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.house_occupied",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "office motion group",
|
||
"room": "office",
|
||
"type": "group",
|
||
"id": {
|
||
"entity_id": "group.office_motion",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "rick office session state sensor",
|
||
"room": "office",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.rick_office_session_state",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "office motion timer",
|
||
"room": "office",
|
||
"type": "timer",
|
||
"id": {
|
||
"entity_id": "timer.office_motion_timer",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "office_unoccupied",
|
||
"automation": "- alias: Office unoccupied\n id: office_unoccupied\n initial_state: 'on'\n trigger:\n - trigger: event\n event_type: timer.finished\n event_data:\n entity_id: timer.office_motion_timer\n condition:\n - condition: state\n entity_id: input_boolean.office_occupied\n state: 'on'\n - condition: state\n entity_id: group.office_motion\n state: 'off'\n action:\n - service_template: '{{ ''input_boolean.turn_off'' if states(''binary_sensor.office_chair_contact'')\n != ''off'' else ''timer.start'' }}\n\n '\n data:\n entity_id: '{{ ''input_boolean.office_occupied'' if states(''binary_sensor.office_chair_contact'')\n != ''off'' else ''timer.office_motion_timer'' }}'",
|
||
"config": [
|
||
{
|
||
"name": "office occupied",
|
||
"room": "office",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.office_occupied",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "office motion group",
|
||
"room": "office",
|
||
"type": "group",
|
||
"id": {
|
||
"entity_id": "group.office_motion",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "office motion timer",
|
||
"room": "office",
|
||
"type": "timer",
|
||
"id": {
|
||
"entity_id": "timer.office_motion_timer",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "office chair contact sensor",
|
||
"room": "office",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.office_chair_contact",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "Christmas lights on before Sunset",
|
||
"automation": "- alias: Christmas lights on before Sunset\n trigger:\n platform: sun\n event: sunset\n offset: -00:30:00\n condition:\n - condition: state\n entity_id: input_boolean.christmas_time\n state: 'on'\n action:\n - action: switch.turn_on\n entity_id: group.christmas_lights",
|
||
"config": [
|
||
{
|
||
"name": "christmas time",
|
||
"room": "home",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.christmas_time",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "christmas lights group",
|
||
"room": "home",
|
||
"type": "group",
|
||
"id": {
|
||
"entity_id": "group.christmas_lights",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "Christmas lights off at 10:00pm",
|
||
"automation": "- alias: Christmas lights off at 10:00pm\n trigger:\n - trigger: time\n at: '22:00:00'\n condition:\n - condition: state\n entity_id: input_boolean.christmas_time\n state: 'on'\n action:\n - action: switch.turn_off\n entity_id: group.christmas_lights",
|
||
"config": [
|
||
{
|
||
"name": "christmas time",
|
||
"room": "home",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.christmas_time",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "christmas lights group",
|
||
"room": "home",
|
||
"type": "group",
|
||
"id": {
|
||
"entity_id": "group.christmas_lights",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "sink_light_off_at_morning",
|
||
"automation": "- id: sink_light_off_at_morning\n alias: Sink Light off at Morning\n trigger:\n trigger: sun\n event: sunrise\n offset: +00:30:00\n action:\n - action: light.turn_off\n entity_id: light.kitchen_over_sink",
|
||
"config": [
|
||
{
|
||
"name": "kitchen over sink light",
|
||
"room": "kitchen",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.kitchen_over_sink",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "sink_light_off_at_night",
|
||
"automation": "- alias: Sink Light off at Night\n id: sink_light_off_at_night\n trigger:\n trigger: time\n at: '22:30:00'\n action:\n - action: light.turn_off\n entity_id: light.kitchen_over_sink",
|
||
"config": [
|
||
{
|
||
"name": "kitchen over sink light",
|
||
"room": "kitchen",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.kitchen_over_sink",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "sink_light_on_in_morning",
|
||
"automation": "- alias: Sink Light on in Morning\n id: sink_light_on_in_morning\n trigger:\n trigger: time\n at: 03:15:00\n condition:\n - condition: state\n entity_id: binary_sensor.workday\n state: 'on'\n action:\n - action: light.turn_on\n entity_id: light.kitchen_over_sink\n data:\n brightness: 128",
|
||
"config": [
|
||
{
|
||
"name": "kitchen over sink light",
|
||
"room": "kitchen",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.kitchen_over_sink",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "workday sensor",
|
||
"room": "home",
|
||
"type": "binary_sensor",
|
||
"id": {
|
||
"entity_id": "binary_sensor.workday",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "sink_light_on_if_house_unoccupied_and_dark",
|
||
"automation": "- alias: Sink Light on if House Unoccupied and Dark\n id: sink_light_on_if_house_unoccupied_and_dark\n trigger:\n trigger: sun\n event: sunset\n offset: -00:30:00\n condition:\n - condition: state\n entity_id: group.residents\n state: not_home\n action:\n - action: light.turn_on\n entity_id: light.kitchen_over_sink",
|
||
"config": [
|
||
{
|
||
"name": "residents group",
|
||
"room": "home",
|
||
"type": "group",
|
||
"id": {
|
||
"entity_id": "group.residents",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "kitchen over sink light",
|
||
"room": "kitchen",
|
||
"type": "light",
|
||
"id": {
|
||
"entity_id": "light.kitchen_over_sink",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "Pollen Notifications",
|
||
"automation": "- alias: Pollen Notifications\n description: ''\n trigger:\n - trigger: time\n at: 07:00:00\n action:\n - action: notify.pushover\n data:\n message: 'Weed: {{ states.sensor.air_pollen_level_weed.state }}\n\n Grass: {{ states.sensor.air_pollen_level_grass.state }}\n\n Mold: {{ states.sensor.air_pollen_level_mold.state }}\n\n Tree: {{ states.sensor.air_pollen_level_tree.state }}'\n title: Pollen Levels",
|
||
"config": [
|
||
{
|
||
"name": "air pollen level weed sensor",
|
||
"room": "home",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.air_pollen_level_weed",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "air pollen level grass sensor",
|
||
"room": "home",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.air_pollen_level_grass",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "air pollen level mold sensor",
|
||
"room": "home",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.air_pollen_level_mold",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "air pollen level tree sensor",
|
||
"room": "home",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.air_pollen_level_tree",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "rick_phone_plugged_in",
|
||
"automation": "- id: rick_phone_plugged_in\n alias: Rick's phone is plugged in\n mode: single\n trigger:\n - trigger: state\n entity_id: sensor.ricks_iphone_battery_state\n to: Charging\n - trigger: state\n entity_id: sensor.ricks_iphone_battery_state\n to: Full\n condition:\n - condition: state\n entity_id: input_boolean.rick_phone_plugged_in\n state: 'off'\n - condition: or\n conditions:\n - condition: state\n entity_id: sensor.ricks_iphone_battery_state\n state: Charging\n - condition: state\n entity_id: sensor.ricks_iphone_battery_state\n state: Full\n action:\n - action: input_boolean.turn_on\n entity_id: input_boolean.rick_phone_plugged_in",
|
||
"config": [
|
||
{
|
||
"name": "ricks iphone battery state sensor",
|
||
"room": "home",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.ricks_iphone_battery_state",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "rick phone plugged in",
|
||
"room": "home",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.rick_phone_plugged_in",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "rick_phone_unplugged",
|
||
"automation": "- id: rick_phone_unplugged\n alias: Rick's phone is unplugged\n mode: single\n trigger:\n - trigger: state\n entity_id: sensor.ricks_iphone_battery_state\n to: Not Charging\n condition:\n - condition: state\n entity_id: sensor.ricks_iphone_battery_state\n state: Not Charging\n action:\n - action: input_boolean.turn_off\n entity_id: input_boolean.rick_phone_plugged_in",
|
||
"config": [
|
||
{
|
||
"name": "ricks iphone battery state sensor",
|
||
"room": "home",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.ricks_iphone_battery_state",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "rick phone plugged in",
|
||
"room": "home",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.rick_phone_plugged_in",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "ricks_wifi_status",
|
||
"automation": "- id: ricks_wifi_status\n alias: Rick's WiFi status\n initial_state: true\n trigger:\n - trigger: state\n entity_id: sensor.ricks_iphone_ssid\n - trigger: homeassistant\n event: start\n - trigger: event\n event_type: automation_reloaded\n action:\n - choose:\n - conditions:\n - condition: template\n value_template: '{{ ''SLYFOX'' in states(''sensor.ricks_iphone_ssid'') }}'\n sequence:\n - action: mqtt.publish\n data:\n topic: location/ricks_wifi\n payload: home\n retain: true\n default:\n - action: mqtt.publish\n data:\n topic: location/ricks_wifi\n payload: not_home\n retain: true",
|
||
"config": [
|
||
{
|
||
"name": "ricks iphone ssid sensor",
|
||
"room": "home",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.ricks_iphone_ssid",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "person_rick_away",
|
||
"automation": "- id: person_rick_away\n alias: Person Rick Away\n initial_state: 'on'\n trigger:\n - trigger: zone\n entity_id:\n - person.rick_fox\n - device_tracker.ricks_iphone\n zone: zone.home\n event: leave\n - trigger: state\n entity_id:\n - person.rick_fox\n - device_tracker.ricks_iphone\n to: not_home\n - trigger: event\n event_type: automation_reloaded\n - trigger: homeassistant\n event: start\n condition:\n - condition: state\n entity_id: input_boolean.rick_home\n state: 'on'\n - condition: or\n conditions:\n - condition: state\n entity_id: person.rick_fox\n state: not_home\n - condition: state\n entity_id: device_tracker.ricks_iphone\n state: not_home\n action:\n - action: script.turn_on\n entity_id: script.rick_away",
|
||
"config": [
|
||
{
|
||
"name": "rick home",
|
||
"room": "home",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.rick_home",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "person rick fox",
|
||
"room": "home",
|
||
"type": "person",
|
||
"id": {
|
||
"entity_id": "person.rick_fox",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "ricks iphone device tracker",
|
||
"room": "home",
|
||
"type": "device_tracker",
|
||
"id": {
|
||
"entity_id": "device_tracker.ricks_iphone",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Rick Away",
|
||
"room": null,
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.rick_away",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Turn On",
|
||
"room": null,
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.turn_on",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "person_rick_home",
|
||
"automation": "- id: person_rick_home\n alias: Person Rick Home\n initial_state: 'on'\n trigger:\n - trigger: zone\n entity_id:\n - person.rick_fox\n - device_tracker.ricks_iphone\n zone: zone.home\n event: enter\n - trigger: state\n entity_id:\n - person.rick_fox\n - device_tracker.ricks_iphone\n to: home\n - trigger: event\n event_type: automation_reloaded\n - trigger: homeassistant\n event: start\n condition:\n - condition: state\n entity_id: input_boolean.rick_home\n state: 'off'\n - condition: or\n conditions:\n - condition: state\n entity_id: person.rick_fox\n state: home\n - condition: state\n entity_id: device_tracker.ricks_iphone\n state: home\n action:\n - action: script.turn_on\n entity_id: script.rick_home",
|
||
"config": [
|
||
{
|
||
"name": "rick home",
|
||
"room": "home",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.rick_home",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "person rick fox",
|
||
"room": "home",
|
||
"type": "person",
|
||
"id": {
|
||
"entity_id": "person.rick_fox",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "ricks iphone device tracker",
|
||
"room": "home",
|
||
"type": "device_tracker",
|
||
"id": {
|
||
"entity_id": "device_tracker.ricks_iphone",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Rick Home",
|
||
"room": null,
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.rick_home",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Turn On",
|
||
"room": null,
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.turn_on",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "rick_in_bed",
|
||
"automation": "- id: rick_in_bed\n alias: Rick In Bed\n initial_state: 'on'\n trigger:\n - trigger: state\n entity_id: media_player.living_room_roku\n to: idle\n - trigger: state\n entity_id: input_boolean.rick_phone_plugged_in\n to: 'on'\n - trigger: time\n at: '22:30:00'\n - trigger: state\n entity_id: input_boolean.bedtime\n to: 'on'\n - trigger: state\n entity_id: input_boolean.bedtime\n to: 'on'\n condition:\n - condition: time\n after: '21:00:00'\n before: 06:00:00\n - condition: state\n entity_id: input_boolean.rick_home\n state: 'on'\n - condition: state\n entity_id: input_boolean.office_occupied\n state: 'off'\n action:\n - action: script.turn_on\n entity_id: script.rick_in_bed",
|
||
"config": [
|
||
{
|
||
"name": "bedtime",
|
||
"room": "bedroom",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.bedtime",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "living room roku media player",
|
||
"room": "living_room",
|
||
"type": "media_player",
|
||
"id": {
|
||
"entity_id": "media_player.living_room_roku",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "office occupied",
|
||
"room": "office",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.office_occupied",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "rick home",
|
||
"room": "home",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.rick_home",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "rick phone plugged in",
|
||
"room": "home",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.rick_phone_plugged_in",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Rick In Bed",
|
||
"room": null,
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.rick_in_bed",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Turn On",
|
||
"room": null,
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.turn_on",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "plant_light_on",
|
||
"automation": "- id: plant_light_on\n alias: Plant Light On\n triggers:\n - trigger: sun\n event: sunrise\n offset: -00:30:00\n condition:\n - condition: state\n entity_id: input_boolean.seeding_time\n state: 'on'\n action:\n - action: switch.turn_on\n entity_id: group.seedling_grow_lights",
|
||
"config": [
|
||
{
|
||
"name": "seeding time",
|
||
"room": "home",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.seeding_time",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "seedling grow lights group",
|
||
"room": "home",
|
||
"type": "group",
|
||
"id": {
|
||
"entity_id": "group.seedling_grow_lights",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "plant_light_off",
|
||
"automation": "- id: plant_light_off\n alias: Plant Light Off\n triggers:\n - trigger: sun\n event: sunset\n offset: -00:30:00\n condition:\n - condition: state\n entity_id: input_boolean.seeding_time\n state: 'on'\n action:\n - action: switch.turn_off\n entity_id: group.seedling_grow_lights",
|
||
"config": [
|
||
{
|
||
"name": "seeding time",
|
||
"room": "home",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.seeding_time",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "seedling grow lights group",
|
||
"room": "home",
|
||
"type": "group",
|
||
"id": {
|
||
"entity_id": "group.seedling_grow_lights",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "severe_weather_warning",
|
||
"automation": "- id: severe_weather_warning\n alias: Severe Weather Warning\n initial_state: true\n trigger:\n - trigger: state\n entity_id: sensor.pirateweather_alerts\n condition:\n - '{{ states(''sensor.pirateweather_alerts'') | int > 0 }}'\n - '{{ trigger.to_state.state|int > trigger.from_state.state|int }}'\n - condition: template\n value_template: \"{{ \\n (state_attr('sensor.pirateweather_alerts', 'severity')\\\n \\ | lower) == \\\"severe\\\" or\\n (state_attr('sensor.pirateweather_alerts', 'severity')\\\n \\ | lower) == \\\"extreme\\\" \\n}}\"\n action:\n - action: script.general_notification\n data:\n title: 'Weather Alert: {{ state_attr(''sensor.pirateweather_alerts'', ''title'')\n }}'\n message: '{% set desc = state_attr(''sensor.pirateweather_alerts'', ''title'').split(\"\\n\")[0]\n %} \"NWS: {{ state_attr(''sensor.pirateweather_alerts'', ''description'').split(''\n - '')[0] }}. {{desc}}\"\n\n '\n devices: jk\n priority: time-sensitive\n tag: weather-alert",
|
||
"config": [
|
||
{
|
||
"name": "pirateweather alerts sensor",
|
||
"room": "home",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.pirateweather_alerts",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "String lights on before Sunrise",
|
||
"automation": "- alias: String lights on before Sunrise\n trigger:\n platform: sun\n event: sunrise\n offset: -00:30:00\n action:\n - action: switch.turn_on\n entity_id: switch.patiolights",
|
||
"config": [
|
||
{
|
||
"name": "patio lights switch",
|
||
"room": "patio",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.patiolights",
|
||
"device_id": "7062d45efa957f1a5ab58568aa80b6e5"
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "String lights off After Sunrise",
|
||
"automation": "- alias: String lights off After Sunrise\n trigger:\n platform: sun\n event: sunrise\n offset: +00:30:00\n action:\n - action: switch.turn_off\n entity_id: switch.patiolights",
|
||
"config": [
|
||
{
|
||
"name": "patio lights switch",
|
||
"room": "patio",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.patiolights",
|
||
"device_id": "7062d45efa957f1a5ab58568aa80b6e5"
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "String lights on Before Sunset",
|
||
"automation": "- alias: String lights on Before Sunset\n trigger:\n platform: sun\n event: sunset\n offset: -00:30:00\n action:\n - action: switch.turn_on\n entity_id: switch.patiolights",
|
||
"config": [
|
||
{
|
||
"name": "patio lights switch",
|
||
"room": "patio",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.patiolights",
|
||
"device_id": "7062d45efa957f1a5ab58568aa80b6e5"
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "String lights off at 10:00pm",
|
||
"automation": "- alias: String lights off at 10:00pm\n trigger:\n - trigger: time\n at: '22:00:00'\n action:\n - action: switch.turn_off\n entity_id: switch.patiolights",
|
||
"config": [
|
||
{
|
||
"name": "patio lights switch",
|
||
"room": "patio",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.patiolights",
|
||
"device_id": "7062d45efa957f1a5ab58568aa80b6e5"
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "tracys_alarm_activated",
|
||
"automation": "- id: tracys_alarm_activated\n alias: Tracy's Alarm Activated\n trigger:\n - trigger: event\n event_type: phone_alarm_tracy\n condition:\n - condition: state\n entity_id: input_boolean.tracys_alarm_activated\n state: 'off'\n action:\n - action: input_boolean.turn_on\n entity_id: input_boolean.tracys_alarm_activated",
|
||
"config": [
|
||
{
|
||
"name": "tracys alarm activated",
|
||
"room": "home",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.tracys_alarm_activated",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "tracy_alarm_reset",
|
||
"automation": "- id: tracy_alarm_reset\n alias: Tracy's Alarm Reset\n trigger:\n - trigger: time\n at: '23:59:00'\n - trigger: state\n entity_id: input_boolean.tracy_phone_plugged_in\n to: 'off'\n condition:\n - condition: state\n entity_id: input_boolean.tracys_alarm_activated\n state: 'on'\n action:\n - action: input_boolean.turn_off\n entity_id: input_boolean.tracys_alarm_activated",
|
||
"config": [
|
||
{
|
||
"name": "tracys alarm activated",
|
||
"room": "home",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.tracys_alarm_activated",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "tracy phone plugged in",
|
||
"room": "home",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.tracy_phone_plugged_in",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "tracy_phone_plugged_in",
|
||
"automation": "- id: tracy_phone_plugged_in\n alias: Tracy's phone is plugged in\n mode: single\n trigger:\n - trigger: state\n entity_id: sensor.tracys_iphone_battery_state\n to: Charging\n - trigger: state\n entity_id: sensor.tracys_iphone_battery_state\n to: Full\n condition:\n - condition: state\n entity_id: input_boolean.tracy_phone_plugged_in\n state: 'off'\n - condition: or\n conditions:\n - condition: state\n entity_id: sensor.tracys_iphone_battery_state\n state: Charging\n - condition: state\n entity_id: sensor.tracys_iphone_battery_state\n state: Full\n action:\n - action: input_boolean.turn_on\n entity_id: input_boolean.tracy_phone_plugged_in",
|
||
"config": [
|
||
{
|
||
"name": "tracy phone plugged in",
|
||
"room": "home",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.tracy_phone_plugged_in",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "tracys iphone battery state sensor",
|
||
"room": "home",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.tracys_iphone_battery_state",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "tracy_phone_unplugged",
|
||
"automation": "- id: tracy_phone_unplugged\n alias: Tracy's phone is unplugged\n mode: single\n trigger:\n - trigger: state\n entity_id: sensor.tracys_iphone_battery_state\n to: Not Charging\n condition:\n - condition: state\n entity_id: sensor.tracys_iphone_battery_state\n state: Not Charging\n action:\n - action: input_boolean.turn_off\n entity_id: input_boolean.tracy_phone_plugged_in",
|
||
"config": [
|
||
{
|
||
"name": "tracy phone plugged in",
|
||
"room": "home",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.tracy_phone_plugged_in",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "tracys iphone battery state sensor",
|
||
"room": "home",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.tracys_iphone_battery_state",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "tracys_wifi_status",
|
||
"automation": "- id: tracys_wifi_status\n alias: Tracy's WiFi status\n initial_state: 'on'\n trigger:\n - trigger: state\n entity_id: sensor.tracys_iphone_ssid\n - trigger: homeassistant\n event: start\n - trigger: event\n event_type: automation_reloaded\n action:\n - choose:\n - conditions:\n - condition: template\n value_template: '{{ ''SLYFOX'' in states(''sensor.tracys_iphone_ssid'') }}'\n sequence:\n - action: mqtt.publish\n data:\n topic: location/tracys_wifi\n payload: home\n retain: true\n default:\n - action: mqtt.publish\n data:\n topic: location/tracys_wifi\n payload: not_home\n retain: true",
|
||
"config": [
|
||
{
|
||
"name": "tracys iphone ssid sensor",
|
||
"room": "home",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.tracys_iphone_ssid",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "person_tracy_away",
|
||
"automation": "- id: person_tracy_away\n alias: Person Tracy Away\n initial_state: 'on'\n trigger:\n - trigger: zone\n entity_id:\n - person.tracy_fox\n - device_tracker.tracys_iphone\n zone: zone.home\n event: leave\n - trigger: state\n entity_id:\n - person.tracy_fox\n - device_tracker.tracys_iphone\n to: not_home\n - trigger: event\n event_type: automation_reloaded\n - trigger: homeassistant\n event: start\n condition:\n - condition: state\n entity_id: input_boolean.tracy_home\n state: 'on'\n - condition: or\n conditions:\n - condition: state\n entity_id: person.tracy_fox\n state: not_home\n - condition: state\n entity_id: device_tracker.tracys_iphone\n state: not_home\n action:\n - action: script.turn_on\n entity_id: script.tracy_away",
|
||
"config": [
|
||
{
|
||
"name": "tracys iphone device tracker",
|
||
"room": "home",
|
||
"type": "device_tracker",
|
||
"id": {
|
||
"entity_id": "device_tracker.tracys_iphone",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "person tracy fox",
|
||
"room": "home",
|
||
"type": "person",
|
||
"id": {
|
||
"entity_id": "person.tracy_fox",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "tracy home",
|
||
"room": "home",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.tracy_home",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Tracy Away",
|
||
"room": null,
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.tracy_away",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Turn On",
|
||
"room": null,
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.turn_on",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "person_tracy_home",
|
||
"automation": "- id: person_tracy_home\n alias: Person Tracy Home\n initial_state: 'on'\n trigger:\n - trigger: zone\n entity_id:\n - person.tracy_fox\n - device_tracker.tracys_iphone\n zone: zone.home\n event: enter\n - trigger: state\n entity_id:\n - person.tracy_fox\n - device_tracker.tracys_iphone\n to: home\n - trigger: event\n event_type: automation_reloaded\n - trigger: homeassistant\n event: start\n condition:\n - condition: state\n entity_id: input_boolean.tracy_home\n state: 'off'\n - condition: or\n conditions:\n - condition: state\n entity_id: person.tracy_fox\n state: home\n - condition: state\n entity_id: device_tracker.tracys_iphone\n state: home\n action:\n - action: script.turn_on\n entity_id: script.tracy_home",
|
||
"config": [
|
||
{
|
||
"name": "tracys iphone device tracker",
|
||
"room": "home",
|
||
"type": "device_tracker",
|
||
"id": {
|
||
"entity_id": "device_tracker.tracys_iphone",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "person tracy fox",
|
||
"room": "home",
|
||
"type": "person",
|
||
"id": {
|
||
"entity_id": "person.tracy_fox",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "tracy home",
|
||
"room": "home",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.tracy_home",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Tracy Home",
|
||
"room": null,
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.tracy_home",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "Turn On",
|
||
"room": null,
|
||
"type": "script",
|
||
"id": {
|
||
"entity_id": "script.turn_on",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "notifications_updates_available",
|
||
"automation": "- alias: '[Notifications] Updates Available'\n id: notifications_updates_available\n mode: single\n trigger:\n - trigger: time_pattern\n hours: /3\n - trigger: state\n entity_id:\n - update.home_assistant_core_update\n to: 'on'\n - trigger: state\n entity_id:\n - update.home_assistant_operating_system_update\n to: 'on'\n - trigger: state\n entity_id:\n - update.hacs_update\n to: 'on'\n condition:\n - condition: time\n after: 06:00:00\n before: '20:00:00'\n action:\n - action: notify.alert\n data:\n title: Updates Available\n message: \"{%- for upd in states.update %} {%- set ignore = ['unknown', 'unavailable',\\\n \\ 'none', ''] %} {%- if upd.state == 'on' and\\n state_attr(upd.entity_id,\\\n \\ 'latest_version') is defined and\\n state_attr(upd.entity_id, 'installed_version')\\\n \\ is defined and\\n state_attr(upd.entity_id, 'latest_version') is not\\\n \\ in ignore %}\\n{%- if is_state_attr(upd.entity_id, 'display_icon', 'mdi:docker')\\\n \\ %} {%- set name = state_attr(upd.entity_id, 'display_name') + \\\" (\\\" + state_attr(upd.entity_id,\\\n \\ 'watcher') + \\\")\\\" %} {%- else %} {%- set name = iif(state_attr(upd.entity_id,\\\n \\ 'title') == \\\"null\\\", state_attr(upd.entity_id, 'title'), state_attr(upd.entity_id,\\\n \\ 'friendly_name')) %} {%- endif %} - {{name}}: {{state_attr(upd.entity_id,\\\n \\ 'installed_version')}} -> {{state_attr(upd.entity_id, 'latest_version')}}\\\n \\ {% endif %} {%- endfor %}\"\n data:\n tag: updates_available\n notification_id: updates_available\n push:\n badge: 1\n sound: none\n interruption-level: time-sensitive\n presentation_options:\n - alert\n - badge\n group: alerts\n actions:\n - title: Pause Alert\n action: pause_alert_updates_available\n - action: persistent_notification.create\n data:\n notification_id: update-alert\n title: Updates Available\n message: \"{%- for upd in states.update %} {%- set ignore = ['unknown', 'unavailable',\\\n \\ 'none', ''] %} {%- if upd.state == 'on' and\\n state_attr(upd.entity_id,\\\n \\ 'latest_version') is defined and\\n state_attr(upd.entity_id, 'installed_version')\\\n \\ is defined and\\n state_attr(upd.entity_id, 'latest_version') is not\\\n \\ in ignore %}\\n{%- if is_state_attr(upd.entity_id, 'display_icon', 'mdi:docker')\\\n \\ %} {%- set name = state_attr(upd.entity_id, 'display_name') + \\\" (\\\" + state_attr(upd.entity_id,\\\n \\ 'watcher') + \\\")\\\" %} {%- else %} {%- set name = iif(state_attr(upd.entity_id,\\\n \\ 'title') == \\\"null\\\", state_attr(upd.entity_id, 'title'), state_attr(upd.entity_id,\\\n \\ 'friendly_name')) %} {%- endif %} - {{name}}: {{state_attr(upd.entity_id,\\\n \\ 'installed_version')}} -> {{state_attr(upd.entity_id, 'latest_version')}}\\\n \\ {% endif %} {%- endfor %}\"",
|
||
"config": [
|
||
{
|
||
"name": "home assistant core update",
|
||
"room": "home",
|
||
"type": "update",
|
||
"id": {
|
||
"entity_id": "update.home_assistant_core_update",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "home assistant operating system update",
|
||
"room": "home",
|
||
"type": "update",
|
||
"id": {
|
||
"entity_id": "update.home_assistant_operating_system_update",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "hacs update",
|
||
"room": "home",
|
||
"type": "update",
|
||
"id": {
|
||
"entity_id": "update.hacs_update",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "ups_power_failure",
|
||
"automation": "- alias: UPS Power Failure\n id: ups_power_failure\n trigger:\n entity_id: sensor.ups_status\n trigger: state\n to: On Battery Battery Discharging\n condition: []\n action:\n - action: notify.alert\n data:\n title: Power Failure!\n message: HA UPS Status - On Battery Battery Discharging\n data:\n tag: ups_power_failure\n notification_id: ups_power_failure\n push:\n badge: 1\n sound: none\n interruption-level: time-sensitive\n presentation_options:\n - alert\n - badge\n group: alerts\n actions:\n - title: Pause Alert\n action: pause_alert_updates_available\n - action: input_boolean.turn_on\n data: {}\n entity_id: input_boolean.ups_on_batteries",
|
||
"config": [
|
||
{
|
||
"name": "ups status sensor",
|
||
"room": "home",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.ups_status",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "ups on batteries",
|
||
"room": "home",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.ups_on_batteries",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "ups_power_restored",
|
||
"automation": "- alias: UPS Power restored battery charging\n id: ups_power_restored\n trigger:\n entity_id: sensor.ups_status\n trigger: state\n from: On Battery Battery Discharging\n to: Online Battery Charging\n condition: []\n action:\n - action: notify.alert\n data:\n title: Power Restored\n message: HA UPS Status - Online Battery Charging\n data:\n tag: ups_power_restored\n notification_id: ups_power_restored\n push:\n badge: 1\n sound: none\n interruption-level: time-sensitive\n presentation_options:\n - alert\n - badge\n group: alerts\n actions:\n - title: Pause Alert\n action: pause_alert_updates_available\n - action: input_boolean.turn_off\n data: {}\n entity_id: input_boolean.ups_on_batteries",
|
||
"config": [
|
||
{
|
||
"name": "ups status sensor",
|
||
"room": "home",
|
||
"type": "sensor",
|
||
"id": {
|
||
"entity_id": "sensor.ups_status",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "ups on batteries",
|
||
"room": "home",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.ups_on_batteries",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "bedtime_disable_voice",
|
||
"automation": "- id: bedtime_disable_voice\n alias: Bedtime - Disable Voice\n trigger:\n - trigger: state\n entity_id: input_boolean.bedtime\n to: 'on'\n for: 00:01:00\n action:\n - action: input_boolean.turn_off\n entity_id: input_boolean.voice_enabled",
|
||
"config": [
|
||
{
|
||
"name": "bedtime",
|
||
"room": "bedroom",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.bedtime",
|
||
"device_id": null
|
||
}
|
||
},
|
||
{
|
||
"name": "voice enabled",
|
||
"room": "home",
|
||
"type": "input_boolean",
|
||
"id": {
|
||
"entity_id": "input_boolean.voice_enabled",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "water_pump_charger_on",
|
||
"automation": "- id: water_pump_charger_on\n alias: Water Pump Charger On\n trigger:\n - trigger: time\n at: 02:00:00\n condition:\n - condition: time\n weekday:\n - mon\n action:\n - action: switch.turn_on\n entity_id: switch.water_pump_outlet",
|
||
"config": [
|
||
{
|
||
"name": "water pump outlet switch",
|
||
"room": "home",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.water_pump_outlet",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "water_pump_charger_off",
|
||
"automation": "- id: water_pump_charger_off\n alias: Water Pump Charger Off\n mode: single\n trigger:\n - trigger: state\n entity_id: switch.water_pump_outlet\n to: 'on'\n for: '1:00:00'\n condition:\n - condition: state\n entity_id: switch.water_pump_outlet\n state: 'on'\n action:\n - action: switch.turn_off\n target:\n entity_id: switch.water_pump_outlet",
|
||
"config": [
|
||
{
|
||
"name": "water pump outlet switch",
|
||
"room": "home",
|
||
"type": "switch",
|
||
"id": {
|
||
"entity_id": "switch.water_pump_outlet",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "Cold Weather Alerts",
|
||
"automation": "- alias: Cold Weather Alerts\n trigger:\n - trigger: time\n at: 07:00:00\n action:\n - action: notify.pushover\n data:\n message: \"{% set dates = state_attr('weather.home', 'forecast') %} {% set ns\\\n \\ = namespace(message = '') %} {% for i in range(1, dates | count, 1) %} {%\\\n \\ if state_attr('weather.home','forecast')[i].templow | int < 40 %}\\n {##Freeze\\\n \\ Check: {{ as_datetime(state_attr('weather.home','forecast')[i].datetime).strftime('%a')\\\n \\ }}: Low Temp: {{ state_attr('weather.home','forecast')[i].templow | int}}##}\\n\\\n \\ {% set ns.message = ns.message ~ as_datetime(state_attr('weather.home','forecast')[i].datetime).strftime('%a')\\\n \\ ~ \\\" Low Temp:\\\" ~ state_attr('weather.home','forecast')[i].templow ~ \\\"\\\n \\\\n\\\" %}\\n{%- endif %} {% endfor %} {{ns.message}}\"\n title: Pollen Levels",
|
||
"config": [
|
||
{
|
||
"name": "weather home",
|
||
"room": "home",
|
||
"type": "weather",
|
||
"id": {
|
||
"entity_id": "weather.home",
|
||
"device_id": null
|
||
}
|
||
}
|
||
]
|
||
}
|
||
] |