AutomationDataset/joshuaspence/description-ready.json

528 lines
24 KiB
JSON

[
{
"id": "c9e5b5d8-3d97-404c-8158-50956278fb72",
"automation": "- id: c9e5b5d8-3d97-404c-8158-50956278fb72\n alias: Alarm Notify\n triggers:\n trigger: state\n entity_id: alarm_control_panel.alarm\n to: triggered\n actions:\n parallel:\n - action: notify.notify\n data:\n message: The alarm has been triggered\n - action: light.turn_on\n entity_id: all\n trace:\n stored_traces: 20",
"config": [
{
"name": "alarm",
"room": null,
"type": "alarm_control_panel",
"id": {
"entity_id": "alarm_control_panel.alarm",
"device_id": null
}
}
]
},
{
"id": "5350a641-9769-4587-b0a0-3dd2ba6d0fd3",
"automation": "- id: 5350a641-9769-4587-b0a0-3dd2ba6d0fd3\n alias: Alarm Trigger\n triggers:\n trigger: state\n entity_id:\n - binary_sensor.back_door\n - binary_sensor.dining_room_sliding_door\n - binary_sensor.front_door\n - binary_sensor.living_room_sliding_door\n to: 'on'\n conditions:\n condition: state\n entity_id: alarm_control_panel.alarm\n state: armed_away\n actions:\n action: alarm_control_panel.alarm_trigger\n entity_id: alarm_control_panel.alarm\n trace:\n stored_traces: 20",
"config": [
{
"name": "alarm",
"room": null,
"type": "alarm_control_panel",
"id": {
"entity_id": "alarm_control_panel.alarm",
"device_id": null
}
},
{
"name": "back door sensor",
"room": "back",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.back_door",
"device_id": null
}
},
{
"name": "dining room sliding door sensor",
"room": "dining_room",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.dining_room_sliding_door",
"device_id": null
}
},
{
"name": "front door sensor",
"room": "front",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.front_door",
"device_id": null
}
},
{
"name": "living room sliding door sensor",
"room": "living_room",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.living_room_sliding_door",
"device_id": null
}
}
]
},
{
"id": "7a14e9b0-b1ea-43da-9057-fcd7be8c66c3",
"automation": "- id: 7a14e9b0-b1ea-43da-9057-fcd7be8c66c3\n alias: Arriving Home\n triggers:\n trigger: state\n entity_id: group.family\n from: not_home\n to: home\n conditions:\n condition: sun\n after: sunset\n actions:\n - parallel:\n - action: scene.turn_on\n entity_id: scene.arriving_home\n - wait_for_trigger:\n trigger: state\n entity_id: binary_sensor.front_door\n from: 'off'\n to: 'on'\n timeout: 900\n continue_on_timeout: false\n - wait_for_trigger:\n trigger: state\n entity_id: binary_sensor.front_door\n from: 'on'\n to: 'off'\n timeout: 300\n - delay: 300\n - action: light.turn_off\n entity_id: light.outside_wall\n mode: single",
"config": [
{
"name": "front door sensor",
"room": "front",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.front_door",
"device_id": null
}
},
{
"name": "family group",
"room": null,
"type": "group",
"id": {
"entity_id": "group.family",
"device_id": null
}
},
{
"name": "arriving home scene",
"room": null,
"type": "scene",
"id": {
"entity_id": "scene.arriving_home",
"device_id": null
}
},
{
"name": "outside wall light",
"room": "outside",
"type": "light",
"id": {
"entity_id": "light.outside_wall",
"device_id": null
}
}
]
},
{
"id": "05cfb2f2-6f36-498f-a321-88756cfe534d",
"automation": "- id: 05cfb2f2-6f36-498f-a321-88756cfe534d\n alias: Attic Fan\n triggers:\n - trigger: numeric_state\n id: low\n entity_id: sensor.attic_temperature\n below: 25\n variables:\n action: fan.turn_off\n - trigger: numeric_state\n id: high\n entity_id: sensor.attic_temperature\n above: 30\n variables:\n action: fan.turn_on\n actions:\n action: '{{ action }}'\n target:\n area_id: attic\n mode: single",
"config": [
{
"name": "attic temperature sensor",
"room": "attic",
"type": "sensor",
"id": {
"entity_id": "sensor.attic_temperature",
"device_id": null
}
}
]
},
{
"id": "d66c61c9-1819-4909-bf49-accb40fadfea",
"automation": "- id: d66c61c9-1819-4909-bf49-accb40fadfea\n alias: Basement Dehumidifier\n triggers:\n trigger: state\n entity_id:\n - sensor.basement_humidity\n - sensor.outside_humidity\n conditions:\n condition: template\n value_template: '{{ (as_timestamp(now()) - as_timestamp(state_attr(\"automation.basement_dehumidifier\",\n \"last_triggered\")) | int(0)) > 1800 }}'\n actions:\n choose:\n - conditions:\n condition: numeric_state\n entity_id: sensor.basement_humidity\n below: 40\n sequence:\n action: switch.turn_off\n entity_id:\n - switch.basement_primary_dehumidifier\n - switch.basement_secondary_dehumidifier\n - conditions:\n condition: numeric_state\n entity_id: sensor.basement_humidity\n above: 80\n sequence:\n action: switch.turn_on\n entity_id:\n - switch.basement_primary_dehumidifier\n - switch.basement_secondary_dehumidifier\n - conditions:\n condition: numeric_state\n entity_id: sensor.basement_humidity\n above: sensor.outside_humidity\n sequence:\n parallel:\n - action: switch.turn_on\n entity_id: switch.basement_primary_dehumidifier\n - action: switch.turn_off\n entity_id: switch.basement_secondary_dehumidifier\n - conditions:\n condition: numeric_state\n entity_id: sensor.basement_humidity\n below: sensor.outside_humidity\n sequence:\n action: switch.turn_off\n entity_id:\n - switch.basement_primary_dehumidifier\n - switch.basement_secondary_dehumidifier\n mode: single\n max_exceeded: silent\n trace:\n stored_traces: 20",
"config": [
{
"name": "basement humidity sensor",
"room": "basement",
"type": "sensor",
"id": {
"entity_id": "sensor.basement_humidity",
"device_id": null
}
},
{
"name": "outside humidity sensor",
"room": "outside",
"type": "sensor",
"id": {
"entity_id": "sensor.outside_humidity",
"device_id": null
}
},
{
"name": "basement primary dehumidifier switch",
"room": "basement",
"type": "switch",
"id": {
"entity_id": "switch.basement_primary_dehumidifier",
"device_id": null
}
},
{
"name": "basement secondary dehumidifier switch",
"room": "basement",
"type": "switch",
"id": {
"entity_id": "switch.basement_secondary_dehumidifier",
"device_id": null
}
}
]
},
{
"id": "31c797b8-4353-4bd6-b4b8-d185c6e963f0",
"automation": "- id: 31c797b8-4353-4bd6-b4b8-d185c6e963f0\n alias: Day Lighting\n triggers:\n trigger: sun\n event: sunrise\n actions:\n - scene: scene.day_time\n - action: light.turn_on\n target:\n entity_id:\n - light.hallway\n - light.toilet\n data:\n brightness: 255\n - action: light.turn_off\n target:\n entity_id:\n - light.hallway\n - light.toilet",
"config": [
{
"name": "day time scene",
"room": null,
"type": "scene",
"id": {
"entity_id": "scene.day_time",
"device_id": null
}
},
{
"name": "hallway light",
"room": "hallway",
"type": "light",
"id": {
"entity_id": "light.hallway",
"device_id": null
}
},
{
"name": "toilet light",
"room": "toilet",
"type": "light",
"id": {
"entity_id": "light.toilet",
"device_id": null
}
}
]
},
{
"id": "7fa5aace-5294-4181-a6f3-4720b1fe1fde",
"automation": "- alias: Device Offline\n id: 7fa5aace-5294-4181-a6f3-4720b1fe1fde\n triggers:\n trigger: state\n entity_id: sensor.unavailable_devices\n not_to: unavailable\n actions:\n - delay: 5\n - choose:\n conditions:\n - condition: numeric_state\n entity_id: sensor.unavailable_devices\n below: 1\n - condition: numeric_state\n entity_id: sensor.unavailable_devices\n value_template: '{{ state.attributes.entities | count }}'\n below: 1\n sequence:\n action: script.mobile_app_clear_notification\n data:\n target: josh_phone\n tag: devices-offline\n default:\n action: script.mobile_app_notify\n data:\n target: josh_phone\n title: Devices Offline\n subtitle: '{{ states(''sensor.unavailable_devices'') }} {{ is_state(''sensor.unavailable_devices'',\n ''1'') | iif(''device is'', ''devices are'') }} offline.'\n message: '{% for device, entities in state_attr(''sensor.unavailable_devices'',\n ''devices'').items() -%} - {{ device_attr(device, ''name_by_user'') | default(device_attr(device,\n ''name''), true) }} {% endfor %} {% for entity in state_attr(''sensor.unavailable_devices'',\n ''entities'') -%} - {{ entity }} {% endfor %}'\n channel: Device Offline\n icon: mdi:lan-disconnect\n persistent: true\n sticky: true\n tag: devices-offline\n url: entityId:sensor.unavailable_devices\n mode: restart\n trace:\n stored_traces: 10",
"config": [
{
"name": "unavailable devices sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.unavailable_devices",
"device_id": null
}
},
{
"name": "josh phone",
"room": null,
"type": "device",
"id": {
"entity_id": null,
"device_id": "josh_phone"
}
}
]
},
{
"id": "e672aca4-7227-422f-b4e5-af477cb67cbf",
"automation": "- id: e672aca4-7227-422f-b4e5-af477cb67cbf\n alias: Device Registry Notification\n triggers:\n trigger: event\n event_type: device_registry_updated\n event_data:\n action: create\n variables:\n device_id: '{{ trigger.event.data.device_id }}'\n actions:\n action: persistent_notification.create\n data:\n title: New device registered\n message: '[{{ device_attr(device_id, ''name_by_user'') | default(device_attr(device_id,\n ''name''), true) }}](/config/devices/device/{{device_id}}) was added to the\n device registry.'\n notification_id: device_registry_{{ device_id }}\n mode: parallel",
"config": []
},
{
"id": "b6b9bdb0-b60f-4de0-91b0-c545ad0b0f06",
"automation": "- alias: Leaving Home\n id: b6b9bdb0-b60f-4de0-91b0-c545ad0b0f06\n triggers:\n trigger: state\n entity_id: group.family\n from: home\n to: not_home\n actions:\n - action: light.turn_off\n entity_id: all\n - action: climate.turn_off\n entity_id: climate.aircon\n mode: single",
"config": [
{
"name": "family group",
"room": null,
"type": "group",
"id": {
"entity_id": "group.family",
"device_id": null
}
},
{
"name": "aircon climate",
"room": null,
"type": "climate",
"id": {
"entity_id": "climate.aircon",
"device_id": null
}
}
]
},
{
"id": "94d091f3-9e9d-49d8-a192-a6cb7ca679bd",
"automation": "- alias: Let's Encrypt Certificate Renewal\n id: 94d091f3-9e9d-49d8-a192-a6cb7ca679bd\n triggers:\n trigger: time\n at: 00:00:00\n conditions:\n condition: template\n value_template: '{{ (as_datetime(states(''sensor.homeassistant_certificate_expiry''))\n - now()).days < 7 }}'\n actions:\n - action: hassio.addon_start\n data:\n addon: core_letsencrypt\n - alias: Wait for addon to start\n wait_for_trigger:\n trigger: state\n entity_id: binary_sensor.lets_encrypt_addon_running\n to: 'on'\n timeout: 5\n - alias: Wait for addon to stop\n wait_for_trigger:\n trigger: state\n entity_id: binary_sensor.lets_encrypt_addon_running\n to: 'off'\n timeout: 120\n - action: hassio.addon_restart\n data:\n addon: core_nginx_proxy\n - action: homeassistant.update_entity\n data:\n entity_id: sensor.homeassistant_certificate_expiry",
"config": [
{
"name": "homeassistant certificate expiry sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.homeassistant_certificate_expiry",
"device_id": null
}
},
{
"name": "lets encrypt addon running sensor",
"room": null,
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.lets_encrypt_addon_running",
"device_id": null
}
}
]
},
{
"id": "685c0eb4-1d80-4ca3-8b5f-46a5e4e20c27",
"automation": "- alias: Low Battery\n id: 685c0eb4-1d80-4ca3-8b5f-46a5e4e20c27\n triggers:\n trigger: state\n entity_id: sensor.low_battery\n actions:\n if:\n condition: numeric_state\n entity_id: sensor.low_battery\n below: 1\n then:\n action: script.mobile_app_clear_notification\n data:\n target: josh_phone\n tag: low-battery\n else:\n action: script.mobile_app_notify\n data:\n target: josh_phone\n title: Low Battery\n message: '{{ states(''sensor.low_battery'') }} devices with low battery.\n\n {% for entity in state_attr(''sensor.low_battery'', ''entities'') -%} -\n {{ entity }} {% endfor %}'\n tag: low-battery\n mode: restart",
"config": [
{
"name": "low battery sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.low_battery",
"device_id": null
}
},
{
"name": "josh phone",
"room": null,
"type": "device",
"id": {
"entity_id": null,
"device_id": "josh_phone"
}
}
]
},
{
"id": "ffb89ef2-6be4-4625-9e12-953d23b5b4a7",
"automation": "- id: ffb89ef2-6be4-4625-9e12-953d23b5b4a7\n alias: Low Storage\n triggers:\n trigger: numeric_state\n entity_id: sensor.disk_use_percent\n above: '90'\n actions:\n action: script.mobile_app_notify\n data:\n target: josh_phone\n message: '{{ trigger.to_state.state }}'\n title: Low Storage",
"config": [
{
"name": "disk use percent sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.disk_use_percent",
"device_id": null
}
},
{
"name": "josh phone",
"room": null,
"type": "device",
"id": {
"entity_id": null,
"device_id": "josh_phone"
}
}
]
},
{
"id": "4f1d6cb3-b8fb-42d1-a0fc-b90eee1bf7a5",
"automation": "- id: 4f1d6cb3-b8fb-42d1-a0fc-b90eee1bf7a5\n alias: Mail Delivery\n triggers:\n trigger: state\n entity_id: binary_sensor.mailbox_top_door\n from: 'off'\n to: 'on'\n conditions:\n condition: time\n after: 08:00:00\n before: '18:00:00'\n weekday:\n - mon\n - tue\n - wed\n - thu\n - fri\n actions:\n action: script.mobile_app_notify\n data:\n target: josh_phone\n title: Mailbox Activity\n message: Mailbox door was opened.\n tag: mail-delivery",
"config": [
{
"name": "mailbox top door sensor",
"room": "mailbox",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.mailbox_top_door",
"device_id": null
}
},
{
"name": "josh phone",
"room": null,
"type": "device",
"id": {
"entity_id": null,
"device_id": "josh_phone"
}
}
]
},
{
"id": "e6dc7aa0-14e9-4750-80a0-cb05da0c459c",
"automation": "- alias: Zigbee2MQTT Health Check\n id: e6dc7aa0-14e9-4750-80a0-cb05da0c459c\n triggers:\n trigger: time_pattern\n minutes: '*'\n actions:\n action: mqtt.publish\n data:\n topic: zigbee2mqtt/bridge/request/health_check\n trace:\n stored_traces: 0",
"config": []
},
{
"id": "a7cf20d9-3be3-4b9d-8cb0-67652ebe48ae",
"automation": "- id: a7cf20d9-3be3-4b9d-8cb0-67652ebe48ae\n alias: Smoke Alarm\n triggers:\n trigger: state\n entity_id:\n - binary_sensor.carbon_monoxide_alarm\n - binary_sensor.heat_alarm\n - binary_sensor.smoke_alarm\n to: 'on'\n actions:\n action: script.mobile_app_notify\n data:\n target:\n - josh_phone\n - lily_phone\n title: '{{ trigger.to_state.attributes.friendly_name }}'\n url: entityId:{{ trigger.entity_id }}",
"config": [
{
"name": "carbon monoxide alarm sensor",
"room": null,
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.carbon_monoxide_alarm",
"device_id": null
}
},
{
"name": "heat alarm sensor",
"room": null,
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.heat_alarm",
"device_id": null
}
},
{
"name": "smoke alarm sensor",
"room": null,
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.smoke_alarm",
"device_id": null
}
},
{
"name": "josh phone",
"room": null,
"type": "device",
"id": {
"entity_id": null,
"device_id": "josh_phone"
}
},
{
"name": "lily phone",
"room": null,
"type": "device",
"id": {
"entity_id": null,
"device_id": "lily_phone"
}
}
]
},
{
"id": "595cc2f2-ac5d-4447-a995-5d6e71327141",
"automation": "- id: 595cc2f2-ac5d-4447-a995-5d6e71327141\n alias: Netgear SMS\n triggers:\n - trigger: event\n event_type: netgear_lte_sms\n id: receive\n - trigger: event\n event_type: mobile_app_notification_action\n event_data:\n action: netgear_lte.delete_sms\n id: delete\n actions:\n choose:\n - conditions:\n condition: trigger\n id: receive\n sequence:\n action: script.mobile_app_notify\n data:\n target: josh_phone\n title: SMS Message Received\n subtitle: '{{ trigger.event.data.from }}'\n message: '{{ trigger.event.data.message }}'\n actions:\n - action: URI\n title: Open\n uri: http://{{ trigger.event.data.host }}#messaging/{{ trigger.event.data.sms_id\n }}\n - action: netgear_lte.delete_sms\n title: Delete\n uri: '{{ trigger.event.data.sms_id }}'\n channel: Netgear LTE SMS\n group: netgear_lte\n icon: mdi:message-text\n - conditions:\n condition: trigger\n id: delete\n sequence:\n action: netgear_lte.delete_sms\n data:\n sms_id: '{{ trigger.event.data.action_2_uri }}'",
"config": [
{
"name": "josh phone",
"room": null,
"type": "device",
"id": {
"entity_id": null,
"device_id": "josh_phone"
}
}
]
},
{
"id": "c142089f-4826-4de4-b813-c188885e874f",
"automation": "- alias: Speedtest Unavailable\n id: c142089f-4826-4de4-b813-c188885e874f\n triggers:\n trigger: state\n entity_id: &id001\n - sensor.speedtest_download\n - sensor.speedtest_ping\n - sensor.speedtest_upload\n to: unavailable\n for: 60\n conditions:\n condition: state\n entity_id: *id001\n state: unavailable\n actions:\n action: homeassistant.update_entity\n target:\n entity_id: *id001\n mode: restart",
"config": [
{
"name": "speedtest download sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.speedtest_download",
"device_id": null
}
},
{
"name": "speedtest ping sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.speedtest_ping",
"device_id": null
}
},
{
"name": "speedtest upload sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.speedtest_upload",
"device_id": null
}
}
]
},
{
"id": "116e3a13-2dfa-4199-9fcb-982d1f6708da",
"automation": "- id: 116e3a13-2dfa-4199-9fcb-982d1f6708da\n alias: Living Room TV Sleep\n triggers:\n trigger: state\n entity_id: media_player.living_room_tv\n to:\n - idle\n - standby\n for: 600\n actions:\n action: media_player.turn_off\n entity_id: media_player.living_room_tv",
"config": [
{
"name": "living room tv media player",
"room": "living_room",
"type": "media_player",
"id": {
"entity_id": "media_player.living_room_tv",
"device_id": null
}
}
]
},
{
"id": "a7e693d8-45df-4f2a-85e4-b0fa7cf6a682",
"automation": "- id: a7e693d8-45df-4f2a-85e4-b0fa7cf6a682\n alias: Water Leak\n triggers:\n trigger: state\n entity_id:\n - binary_sensor.bathroom_sink_water_leak\n - binary_sensor.dishwasher_water_leak\n - binary_sensor.kitchen_sink_water_leak\n - binary_sensor.spa_bath_water_leak\n - binary_sensor.toilet_sink_water_leak\n from: 'off'\n to: 'on'\n actions:\n action: script.mobile_app_notify\n data:\n target: josh_phone\n title: Water Leak\n subtitle: '{{ area_name(trigger.entity_id) }}'\n message: Water leak detected by {{ trigger.to_state.attributes.friendly_name\n }} sensor.\n tag: water-leak\n url: entityId:{{ trigger.entity_id }}\n trace:\n stored_traces: 20",
"config": [
{
"name": "bathroom sink water leak sensor",
"room": "bathroom",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.bathroom_sink_water_leak",
"device_id": null
}
},
{
"name": "dishwasher water leak sensor",
"room": "kitchen",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.dishwasher_water_leak",
"device_id": null
}
},
{
"name": "kitchen sink water leak sensor",
"room": "kitchen",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.kitchen_sink_water_leak",
"device_id": null
}
},
{
"name": "spa bath water leak sensor",
"room": "bathroom",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.spa_bath_water_leak",
"device_id": null
}
},
{
"name": "toilet sink water leak sensor",
"room": "toilet",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.toilet_sink_water_leak",
"device_id": null
}
},
{
"name": "josh phone",
"room": null,
"type": "device",
"id": {
"entity_id": null,
"device_id": "josh_phone"
}
}
]
}
]