AutomationDataset/pascaliske/description-ready.json

290 lines
12 KiB
JSON

[
{
"id": "Check Home Assistant Version once a day",
"automation": "- alias: Check Home Assistant Version once a day\n triggers:\n - platform: homeassistant\n event: start\n - platform: time\n at: 08:00:00\n conditions:\n condition: template\n value_template: '{{ states(''sensor.latest_version'') > states(''sensor.current_version'')\n }}\n\n '\n actions:\n - action: notify.home_assistant\n data_template:\n target:\n - secret discord_channel\n title: Update available\n message: Theres a new version of Home Assistant Core available\n data:\n embed:\n title: '{{ states(''sensor.current_version'') }}\n\n '\n color: 15105570\n url: 'https://www.home-assistant.io/latest-release-notes\n\n '\n fields:\n - name: Current Version\n value: '{{ states(''sensor.current_version'') }}\n\n '\n inline: false\n - name: Latest Version\n value: '{{ states(''sensor.latest_version'') }}\n\n '\n inline: false\n - name: Release Notes\n value: 'https://www.home-assistant.io/latest-release-notes\n\n '\n inline: false\n - name: Source Code\n value: 'https://github.com/home-assistant/core/releases/tag/{{ states(''sensor.latest_version'')\n }}\n\n '\n inline: false\n - action: persistent_notification.create\n data_template:\n title: Update available\n notification_id: Update available\n message: 'New version available: [{{ states(''sensor.latest_version'') }}](https://github.com/home-assistant/core/releases/tag/{{\n states(''sensor.latest_version'') }}) | [Releases](https://www.home-assistant.io/blog/categories/release-notes/)\n\n '",
"config": [
{
"name": "latest version sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.latest_version",
"device_id": null
}
},
{
"name": "current version sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.current_version",
"device_id": null
}
},
{
"name": "Secret Discord Channel",
"room": null,
"type": null,
"id": {
"entity_id": "secret discord_channel",
"device_id": null
}
}
]
},
{
"id": "Good Night",
"automation": "- alias: Good Night\n triggers:\n - platform: time\n at: 00:00\n - platform: event\n event_type: ios.action_fired\n event_data:\n actionName: Good Night\n - platform: state\n entity_id: input_boolean.vacation_mode\n to: 'on'\n actions:\n - action: switch.turn_off\n target:\n entity_id: group.all_switches\n - action: light.turn_off\n target:\n entity_id: group.all_lights",
"config": [
{
"name": "vacation mode input boolean",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.vacation_mode",
"device_id": null
}
},
{
"name": "all switches group",
"room": null,
"type": "group",
"id": {
"entity_id": "group.all_switches",
"device_id": null
}
},
{
"name": "all lights group",
"room": null,
"type": "group",
"id": {
"entity_id": "group.all_lights",
"device_id": null
}
}
]
},
{
"id": "Office Desk Turn Off After Sunrise",
"automation": "- alias: Office Desk Turn Off After Sunrise\n description: This automation turns off the Office Desk light around 10 minutes after\n sunrise depending on the actual sun elevation in degrees.\n triggers:\n - platform: numeric_state\n entity_id: sun.sun\n attribute: elevation\n above: 2.5\n actions:\n - action: light.turn_off\n target:\n entity_id: light.office_desk_wled\n data:\n transition: 30",
"config": [
{
"name": "sun sun",
"room": null,
"type": "sun",
"id": {
"entity_id": "sun.sun",
"device_id": null
}
},
{
"name": "office desk wled light",
"room": "office",
"type": "light",
"id": {
"entity_id": "light.office_desk_wled",
"device_id": null
}
}
]
},
{
"id": "Startup Checks",
"automation": "- alias: Startup Checks\n triggers:\n - platform: homeassistant\n event: start\n actions:\n - action: frontend.set_theme\n data:\n name: Google - Dark\n - action: notify.home_assistant\n data:\n target:\n - secret discord_channel\n title: Home Assistant\n message: ':white_check_mark: System has been started successfully\n\n '",
"config": [
{
"name": "Secret Discord Channel",
"room": null,
"type": null,
"id": {
"entity_id": "secret discord_channel",
"device_id": null
}
}
]
},
{
"id": "Travel Log Tag",
"automation": "- alias: Travel Log Tag\n mode: single\n triggers:\n - platform: tag\n tag_id: d8011321-ba8d-482b-81ad-41f5dfbedd74\n conditions:\n condition: not\n conditions:\n - condition: state\n entity_id: device_tracker.pascals_iphone\n state: home\n actions:\n - variables:\n latitude: '{{ state_attr(\"device_tracker.pascals_iphone\", \"latitude\") }}'\n longitude: '{{ state_attr(\"device_tracker.pascals_iphone\", \"longitude\") }}'\n - action: rest_command.travel_log\n data:\n latitude: '{{ latitude }}'\n longitude: '{{ longitude }}'\n - action: notify.mobile_app_pascals_iphone\n data:\n title: Travel Log Created\n message: 'Current position logged to Travel Log: {{ latitude }}, {{ longitude\n }}\n\n '",
"config": [
{
"name": "pascals iphone device tracker",
"room": null,
"type": "device_tracker",
"id": {
"entity_id": "device_tracker.pascals_iphone",
"device_id": null
}
},
{
"name": "travel log tag",
"room": null,
"type": "tag",
"id": {
"entity_id": null,
"device_id": "d8011321-ba8d-482b-81ad-41f5dfbedd74"
}
}
]
},
{
"id": "Vacation Mode Notification",
"automation": "- alias: Vacation Mode Notification\n triggers:\n platform: state\n entity_id:\n - binary_sensor.hallway_entrance_door_lumi_contact\n - binary_sensor.kitchen_balcony_door_lumi_contact\n - binary_sensor.guest_bathroom_window_lumi_contact\n from: 'off'\n to: 'on'\n conditions:\n - condition: state\n entity_id: input_boolean.vacation_mode\n state: 'on'\n actions:\n - action: notify.home_assistant\n data_template:\n target:\n - secret discord_channel\n title: Vacation Mode Notification\n message: ':door: The {{ trigger.to_state.attributes.friendly_name }} was opened\n\n '",
"config": [
{
"name": "vacation mode input boolean",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.vacation_mode",
"device_id": null
}
},
{
"name": "hallway entrance door contact sensor",
"room": "hallway",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.hallway_entrance_door_lumi_contact",
"device_id": null
}
},
{
"name": "kitchen balcony door contact sensor",
"room": "kitchen",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.kitchen_balcony_door_lumi_contact",
"device_id": null
}
},
{
"name": "guest bathroom window contact sensor",
"room": "bathroom",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.guest_bathroom_window_lumi_contact",
"device_id": null
}
},
{
"name": "Secret Discord Channel",
"room": null,
"type": null,
"id": {
"entity_id": "secret discord_channel",
"device_id": null
}
}
]
},
{
"id": "Vacation Mode Tag",
"automation": "- alias: Vacation Mode Tag\n mode: single\n triggers:\n - platform: tag\n tag_id: 598a8118-a5e4-4610-9078-ee90a1dda05b\n actions:\n - action: notify.home_assistant\n data:\n target:\n - secret discord_channel\n title: Vacation Mode\n message: ':palm_tree: Vacation Mode will be {{ ''enabled in 3 minutes'' if is_state(''switch.vacation_mode'',\n ''off'') else ''disabled immediately'' }}.\n\n '\n - delay: '{{ ''00:03'' if is_state(''switch.vacation_mode'', ''off'') else ''00:00''\n }}'\n - action: switch.toggle\n data:\n entity_id: switch.vacation_mode\n - alias: Vacation Mode was turned off\n condition: state\n entity_id: switch.vacation_mode\n state: 'on'\n - action: homeassistant.turn_off\n data:\n entity_id:\n - group.all_switches\n - group.all_lights",
"config": [
{
"name": "all switches group",
"room": null,
"type": "group",
"id": {
"entity_id": "group.all_switches",
"device_id": null
}
},
{
"name": "all lights group",
"room": null,
"type": "group",
"id": {
"entity_id": "group.all_lights",
"device_id": null
}
},
{
"name": "vacation mode switch",
"room": null,
"type": "switch",
"id": {
"entity_id": "switch.vacation_mode",
"device_id": null
}
},
{
"name": "vacation mode tag",
"room": null,
"type": "tag",
"id": {
"entity_id": null,
"device_id": "598a8118-a5e4-4610-9078-ee90a1dda05b"
}
},
{
"name": "Secret Discord Channel",
"room": null,
"type": null,
"id": {
"entity_id": "secret discord_channel",
"device_id": null
}
}
]
},
{
"id": "Window Close Reminder",
"automation": "- alias: Window Close Reminder\n triggers:\n platform: state\n entity_id:\n - binary_sensor.guest_bathroom_window_lumi_contact\n to: 'on'\n for:\n minutes: 5\n conditions:\n - condition: or\n conditions:\n - condition: state\n entity_id: input_boolean.vacation_mode\n state: 'on'\n - condition: numeric_state\n entity_id: weather.home\n attribute: temperature\n below: 16\n actions:\n - action: notify.home_assistant\n data_template:\n target:\n - secret discord_channel\n title: Close Reminder\n message: ':window: The {{ trigger.to_state.attributes.friendly_name }} is open\n for 5 minutes with {{ state_attr(''weather.home'', ''temperature'') }}°C outside\n - close it now\n\n '",
"config": [
{
"name": "vacation mode input boolean",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.vacation_mode",
"device_id": null
}
},
{
"name": "guest bathroom window contact sensor",
"room": "bathroom",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.guest_bathroom_window_lumi_contact",
"device_id": null
}
},
{
"name": "weather home",
"room": null,
"type": "weather",
"id": {
"entity_id": "weather.home",
"device_id": null
}
},
{
"name": "Secret Discord Channel",
"room": null,
"type": null,
"id": {
"entity_id": "secret discord_channel",
"device_id": null
}
}
]
},
{
"id": "Work",
"automation": "- alias: Work\n triggers:\n - platform: event\n event_type: ios.action_fired\n event_data:\n actionName: Work\n actions:\n - action: script.turn_on\n target:\n entity_id: script.office_desk_activate\n data:\n variables:\n preset: Morning",
"config": [
{
"name": "office desk activate script",
"room": "office",
"type": "script",
"id": {
"entity_id": "script.office_desk_activate",
"device_id": null
}
}
]
}
]