AutomationDataset/kraevski/description-ready.json

131 lines
7.1 KiB
JSON

[
{
"id": "DryingMachine",
"automation": "- alias: DryingMachine\n description: ''\n triggers:\n - type: power\n device_id: e8402b89cc894a3be0a84c2a905fc101\n entity_id: 13febcca1216ffc189673489017dbd7f\n domain: sensor\n trigger: device\n above: 100\n for:\n hours: 0\n minutes: 0\n seconds: 10\n id: Start\n - type: power\n device_id: e8402b89cc894a3be0a84c2a905fc101\n entity_id: 13febcca1216ffc189673489017dbd7f\n domain: sensor\n trigger: device\n below: 10\n for:\n hours: 0\n minutes: 0\n seconds: 30\n id: Stop\n conditions: []\n actions:\n - choose:\n - conditions:\n - condition: trigger\n id: Start\n sequence:\n - action: input_boolean.turn_on\n metadata: {}\n data: {}\n target:\n entity_id: input_boolean.dryingmachine\n - conditions:\n - condition: trigger\n id:\n - Stop\n - condition: state\n entity_id: input_boolean.dryingmachine\n state: 'on'\n sequence:\n - action: input_boolean.turn_off\n metadata: {}\n data: {}\n target:\n entity_id: input_boolean.dryingmachine\n mode: single\n max_exceeded: silent",
"config": [
{
"name": "drying machine power sensor",
"room": "laundry",
"type": "sensor",
"id": {
"entity_id": "13febcca1216ffc189673489017dbd7f",
"device_id": "e8402b89cc894a3be0a84c2a905fc101"
}
},
{
"name": "drying machine status",
"room": "laundry",
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.dryingmachine",
"device_id": null
}
}
]
},
{
"id": "WashingMachine",
"automation": "- alias: WashingMachine\n description: ''\n triggers:\n - type: power\n device_id: 6d71414c602802c31ecb40ed135cab0b\n entity_id: sensor.washing_machine_plug_power\n domain: sensor\n trigger: device\n above: 6\n for:\n hours: 0\n minutes: 0\n seconds: 30\n id: Start\n - type: power\n device_id: 6d71414c602802c31ecb40ed135cab0b\n entity_id: sensor.washing_machine_plug_power\n domain: sensor\n trigger: device\n below: 5\n for:\n hours: 0\n minutes: 3\n seconds: 0\n id: Stop\n conditions: []\n actions:\n - choose:\n - conditions:\n - condition: trigger\n id: Start\n sequence:\n - action: input_boolean.turn_on\n metadata: {}\n data: {}\n target:\n entity_id: input_boolean.washingmachine\n - conditions:\n - condition: trigger\n id:\n - Stop\n - condition: state\n entity_id: input_boolean.washingmachine\n state: 'on'\n sequence:\n - action: input_boolean.turn_off\n metadata: {}\n data: {}\n target:\n entity_id: input_boolean.washingmachine\n mode: single\n max_exceeded: silent",
"config": [
{
"name": "washing machine plug power",
"room": "laundry",
"type": "sensor",
"id": {
"entity_id": "sensor.washing_machine_plug_power",
"device_id": "6d71414c602802c31ecb40ed135cab0b"
}
},
{
"name": "washing machine status",
"room": "laundry",
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.washingmachine",
"device_id": null
}
}
]
},
{
"id": "weather_card_weekly_hourly",
"automation": "- alias: weather_card_weekly_hourly\n description: ''\n triggers:\n - entity_id:\n - input_boolean.weather_card_weekly\n to: 'on'\n id: weekly\n trigger: state\n - entity_id:\n - input_boolean.weather_card_hourly\n to: 'on'\n id: hourly\n trigger: state\n conditions: []\n actions:\n - choose:\n - conditions:\n - condition: trigger\n id:\n - weekly\n sequence:\n - data: {}\n target:\n entity_id:\n - input_boolean.weather_card_hourly\n action: input_boolean.turn_off\n - conditions:\n - condition: trigger\n id:\n - hourly\n sequence:\n - data: {}\n target:\n entity_id:\n - input_boolean.weather_card_weekly\n action: input_boolean.turn_off\n mode: single",
"config": [
{
"name": "weather card weekly",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.weather_card_weekly",
"device_id": null
}
},
{
"name": "weather card hourly",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.weather_card_hourly",
"device_id": null
}
}
]
},
{
"id": "PrinterLowToner",
"automation": "- alias: PrinterLowToner\n description: Toner under 30% in Brother printer\n triggers:\n - entity_id: sensor.brother_dcp_l2622dw_bk\n below: 30\n trigger: numeric_state\n actions:\n - data:\n message: '{{ state_attr(''sensor.brother_dcp_l2622dw'', ''info'') }} Toner is\n at {{ trigger.to_state.state }} %'\n title: Printer Toner is low\n action: notify.mobile_app_sm_f956b\n mode: single",
"config": [
{
"name": "printer black toner",
"room": "office",
"type": "sensor",
"id": {
"entity_id": "sensor.brother_dcp_l2622dw_bk",
"device_id": null
}
},
{
"name": "printer info",
"room": "office",
"type": "sensor",
"id": {
"entity_id": "sensor.brother_dcp_l2622dw",
"device_id": null
}
},
{
"name": "mobile notification",
"room": null,
"type": "notify",
"id": {
"entity_id": "notify.mobile_app_sm_f956b",
"device_id": null
}
}
]
},
{
"id": "UpdateImageHelpers",
"automation": "- alias: UpdateImageHelpers\n description: ''\n triggers:\n - trigger: time_pattern\n hours: /6\n actions:\n - action: pyscript.update_image_helpers\n metadata: {}\n data: {}\n - action: downloader.download_file\n metadata: {}\n data:\n overwrite: true\n filename: jameswebb.jpg\n url: '{{ states(''input_text.downloadimageurl'') }}'\n - choose:\n - conditions:\n - condition: template\n value_template: '{{ states(''input_text.articleurl'') != ''missing'' }}'\n sequence:\n - action: downloader.download_file\n metadata: {}\n data:\n overwrite: true\n subdir: articles\n filename: article_nasa.html\n url: '{{ states(''input_text.articleurl'') }}'\n mode: single",
"config": [
{
"name": "download image url",
"room": null,
"type": "input_text",
"id": {
"entity_id": "input_text.downloadimageurl",
"device_id": null
}
},
{
"name": "article url",
"room": null,
"type": "input_text",
"id": {
"entity_id": "input_text.articleurl",
"device_id": null
}
}
]
}
]