AutomationDataset/ahuacate/description-ready.json

287 lines
15 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

[
{
"id": "Notification Android TV - Cellular Incoming",
"automation": "- alias: Notification Android TV - Cellular Incoming\n description: Android TV notification of incoming cellular call\n triggers:\n - entity_id:\n - sensor.sm_g950f_phone_state\n - sensor.sm_n975f_phone_state\n to: ringing\n trigger: state\n conditions:\n - condition: state\n entity_id: media_player.android_tv\n state: 'on'\n actions:\n - repeat:\n sequence:\n action: notify.android_tv\n data:\n data: null\n title: Incoming Phone Call\n message: \"The Van Door is {% if is_state('binary_sensor.i_o_linc_1f_0b_58_sensor',\\\n \\ 'off') %}Closed{% else %}Open{% endif %}! color: gray position: center\\\n \\ duration: 5 fontsize: max transparency: \\\"75%\\\" interrupt: 1 icon:\\n\\\n \\ url: >-\\n {% if is_state('binary_sensor.i_o_linc_1f_0b_58_sensor',\\\n \\ 'off')\\n %} http://192.168.1.192/img/gd_closed.png {% else %}\\n \\\n \\ http://192.168.1.192/img/gd_open.png {% endif %}\\nimage:\\n path:\\\n \\ /www/images/\"\n while:\n - condition: or\n conditions:\n - condition: state\n entity_id: sensor.sm_g950f_phone_state\n state: ringing\n - condition: state\n entity_id: sensor.sm_n975f_phone_state\n state: ringing\n mode: single",
"config": [
{
"name": "Samsung G950F Phone State",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.sm_g950f_phone_state",
"device_id": null
}
},
{
"name": "Samsung N975F Phone State",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.sm_n975f_phone_state",
"device_id": null
}
},
{
"name": "Android TV",
"room": null,
"type": "media_player",
"id": {
"entity_id": "media_player.android_tv",
"device_id": null
}
},
{
"name": "Van Door Sensor",
"room": null,
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.i_o_linc_1f_0b_58_sensor",
"device_id": null
}
}
]
},
{
"id": "Notification LG TV - Incoming Cellular",
"automation": "- alias: Notification LG TV - Incoming Cellular\n description: LG TV notification of incoming cellular call\n triggers:\n - entity_id:\n - sensor.sm_a715f_phone_state\n - sensor.new_phone_phone_state\n to: ringing\n trigger: state\n conditions:\n - condition: state\n entity_id: media_player.lg_webos_tv_um7600pta\n state: 'on'\n - condition: template\n value_template: \"{% set phones = [\\n 'sensor.sm_a715f_last_notification',\\n \\\n \\ 'sensor.new_phone_last_notification'\\n] %} {% set ns = namespace(is_whatsapp_call\\\n \\ = false) %} {% for s in phones %}\\n {% if state_attr(s, 'package') == 'com.whatsapp'\\n\\\n \\ and (state_attr(s, 'category') or '') | lower == 'call'\\n and 'incoming\\\n \\ voice call' in ((state_attr(s, 'android.text') or '') | lower) %}\\n {%\\\n \\ set ns.is_whatsapp_call = true %}\\n {% endif %}\\n{% endfor %} {{ not ns.is_whatsapp_call\\\n \\ }}\"\n actions:\n - repeat:\n sequence:\n - action: notify.lg_webos_tv_um7600pta\n data:\n message: Answer your cell phone — its ringing!\n title: Incoming Call\n - delay:\n seconds: 5\n while:\n - condition: or\n conditions:\n - condition: state\n entity_id: sensor.sm_a715f_phone_state\n state: ringing\n mode: single",
"config": [
{
"name": "Samsung A715F Phone State",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.sm_a715f_phone_state",
"device_id": null
}
},
{
"name": "New Phone Phone State",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.new_phone_phone_state",
"device_id": null
}
},
{
"name": "LG WebOS TV",
"room": null,
"type": "media_player",
"id": {
"entity_id": "media_player.lg_webos_tv_um7600pta",
"device_id": null
}
},
{
"name": "Samsung A715F Last Notification",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.sm_a715f_last_notification",
"device_id": null
}
},
{
"name": "New Phone Last Notification",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.new_phone_last_notification",
"device_id": null
}
}
]
},
{
"id": "Notification LG TV - Incoming SMS",
"automation": "- alias: Notification LG TV - Incoming SMS\n description: LG TV notification of incoming cellular SMS\n triggers:\n - entity_id:\n - sensor.sm_a715f_last_notification\n - sensor.new_phone_last_notification\n for:\n hours: 0\n minutes: 0\n seconds: 0\n trigger: state\n conditions:\n - condition: template\n value_template: \"{{ trigger.entity_id in [\\n 'sensor.sm_a715f_last_notification',\\n\\\n \\ 'sensor.new_phone_last_notification']\\n and state_attr(trigger.entity_id,\\\n \\ 'package') in [\\n 'com.android.mms',\\n 'com.google.android.apps.messaging',\\n\\\n \\ 'com.samsung.android.messaging']\\n and state_attr(trigger.entity_id,\\\n \\ 'android.text') != none\\n and 'voice call' not in state_attr(trigger.entity_id,\\\n \\ 'android.text') | lower }}\"\n - condition: state\n entity_id: media_player.lg_webos_tv_um7600pta\n state: 'on'\n actions:\n - repeat:\n count: 2\n sequence:\n - action: notify.lg_webos_tv_um7600pta\n data:\n message: You have received a SMS!\n title: Incoming SMS\n - delay:\n seconds: 5\n mode: single",
"config": [
{
"name": "LG WebOS TV",
"room": null,
"type": "media_player",
"id": {
"entity_id": "media_player.lg_webos_tv_um7600pta",
"device_id": null
}
},
{
"name": "Samsung A715F Last Notification",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.sm_a715f_last_notification",
"device_id": null
}
},
{
"name": "New Phone Last Notification",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.new_phone_last_notification",
"device_id": null
}
}
]
},
{
"id": "Notification LG TV - Incoming WhatsApp",
"automation": "- alias: Notification LG TV - Incoming WhatsApp\n description: LG TV notification of incoming WhatsApp call\n triggers:\n - entity_id:\n - sensor.sm_a715f_last_notification\n - sensor.new_phone_last_notification\n for:\n hours: 0\n minutes: 0\n seconds: 0\n trigger: state\n conditions:\n - condition: state\n entity_id: media_player.lg_webos_tv_um7600pta\n state: 'on'\n - condition: template\n value_template: \"{{ trigger.entity_id in [\\n 'sensor.sm_a715f_last_notification',\\n\\\n \\ 'sensor.new_phone_last_notification']\\n and state_attr(trigger.entity_id,\\\n \\ 'package') == 'com.whatsapp'\\n and state_attr(trigger.entity_id, 'category')\\\n \\ == 'call'\\n and 'incoming voice call' in state_attr(trigger.entity_id,\\\n \\ 'android.text')|lower }}\"\n actions:\n - repeat:\n count: 2\n sequence:\n - action: notify.lg_webos_tv_um7600pta\n data:\n message: Answer your WhatsApp — its ringing!\n title: Incoming Call\n - delay:\n seconds: 5\n mode: single",
"config": [
{
"name": "LG WebOS TV",
"room": null,
"type": "media_player",
"id": {
"entity_id": "media_player.lg_webos_tv_um7600pta",
"device_id": null
}
},
{
"name": "Samsung A715F Last Notification",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.sm_a715f_last_notification",
"device_id": null
}
},
{
"name": "New Phone Last Notification",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.new_phone_last_notification",
"device_id": null
}
}
]
},
{
"id": "Notification Light - Incoming Cellular Call Flash",
"automation": "- alias: Notification Light - Incoming Cellular Call Flash\n description: Colour flash lights on incoming calls and return lights to previous\n state\n triggers:\n - entity_id:\n - sensor.sm_a715f_phone_state\n to: ringing\n trigger: state\n conditions:\n - condition: template\n value_template: \"{% set phones = [\\n 'sensor.sm_a715f_last_notification'\\n] %}\\\n \\ {% set ns = namespace(is_whatsapp_call = false) %} {% for s in phones %}\\n\\\n \\ {% if state_attr(s, 'package') == 'com.whatsapp'\\n and (state_attr(s,\\\n \\ 'category') or '') | lower == 'call'\\n and 'incoming voice call' in ((state_attr(s,\\\n \\ 'android.text') or '') | lower) %}\\n {% set ns.is_whatsapp_call = true\\\n \\ %}\\n {% endif %}\\n{% endfor %} {{ not ns.is_whatsapp_call }}\"\n actions:\n - target:\n entity_id: script.flash_alert_lights\n data:\n variables:\n light_group: light.light_group_incoming_call_flash\n col1: blue\n col2: white\n brightness_high: 80\n brightness_low: 20\n flash_count: 4\n flash_delay: 00:00:02\n action: script.turn_on\n mode: single",
"config": [
{
"name": "Samsung A715F Phone State",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.sm_a715f_phone_state",
"device_id": null
}
},
{
"name": "Samsung A715F Last Notification",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.sm_a715f_last_notification",
"device_id": null
}
},
{
"name": "Incoming Call Flash Light Group",
"room": null,
"type": "light",
"id": {
"entity_id": "light.light_group_incoming_call_flash",
"device_id": null
}
},
{
"name": "Flash Alert Lights Script",
"room": null,
"type": "script",
"id": {
"entity_id": "script.flash_alert_lights",
"device_id": null
}
}
]
},
{
"id": "Notification Light - Incoming SMS Call Flash",
"automation": "- alias: Notification Light - Incoming SMS Call Flash\n description: Colour flash lights on incoming SMS message and return lights to previous\n state\n triggers:\n - entity_id:\n - sensor.sm_a715f_last_notification\n - sensor.new_phone_last_notification\n for:\n hours: 0\n minutes: 0\n seconds: 0\n trigger: state\n conditions:\n - condition: template\n value_template: \"{{ trigger.entity_id in [\\n 'sensor.sm_a715f_last_notification',\\n\\\n \\ 'sensor.new_phone_last_notification']\\n and state_attr(trigger.entity_id,\\\n \\ 'package') in [\\n 'com.android.mms',\\n 'com.google.android.apps.messaging',\\n\\\n \\ 'com.samsung.android.messaging']\\n and state_attr(trigger.entity_id,\\\n \\ 'android.text') != none\\n and 'voice call' not in state_attr(trigger.entity_id,\\\n \\ 'android.text') | lower }}\"\n actions:\n - target:\n entity_id: script.flash_alert_lights\n data:\n variables:\n light_group: light.light_group_incoming_call_flash\n col1: yellow\n col2: white\n brightness_high: 80\n brightness_low: 20\n flash_count: 4\n flash_delay: 00:00:02\n action: script.turn_on\n mode: single",
"config": [
{
"name": "Samsung A715F Last Notification",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.sm_a715f_last_notification",
"device_id": null
}
},
{
"name": "New Phone Last Notification",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.new_phone_last_notification",
"device_id": null
}
},
{
"name": "Incoming Call Flash Light Group",
"room": null,
"type": "light",
"id": {
"entity_id": "light.light_group_incoming_call_flash",
"device_id": null
}
},
{
"name": "Flash Alert Lights Script",
"room": null,
"type": "script",
"id": {
"entity_id": "script.flash_alert_lights",
"device_id": null
}
}
]
},
{
"id": "Notification Light - Incoming WhatsApp Call Flash",
"automation": "- alias: Notification Light - Incoming WhatsApp Call Flash\n description: Flash lights on incoming WhatsApp call\n triggers:\n - entity_id:\n - sensor.sm_a715f_last_notification\n - sensor.new_phone_last_notification\n trigger: state\n conditions:\n - condition: template\n value_template: \"{{ trigger.entity_id in [\\n 'sensor.sm_a715f_last_notification',\\n\\\n \\ 'sensor.new_phone_last_notification']\\n and state_attr(trigger.entity_id,\\\n \\ 'package') == 'com.whatsapp'\\n and state_attr(trigger.entity_id, 'category')\\\n \\ == 'call'\\n and 'incoming voice call' in state_attr(trigger.entity_id, 'android.text')|lower\\\n \\ }}\"\n actions:\n - target:\n entity_id: script.flash_alert_lights\n data:\n variables:\n light_group: light.light_group_incoming_call_flash\n col1: green\n col2: white\n brightness_high: 80\n brightness_low: 20\n flash_count: 4\n flash_delay: 00:00:02\n action: script.turn_on\n mode: single",
"config": [
{
"name": "Samsung A715F Last Notification",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.sm_a715f_last_notification",
"device_id": null
}
},
{
"name": "New Phone Last Notification",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.new_phone_last_notification",
"device_id": null
}
},
{
"name": "Incoming Call Flash Light Group",
"room": null,
"type": "light",
"id": {
"entity_id": "light.light_group_incoming_call_flash",
"device_id": null
}
},
{
"name": "Flash Alert Lights Script",
"room": null,
"type": "script",
"id": {
"entity_id": "script.flash_alert_lights",
"device_id": null
}
}
]
}
]