AutomationDataset/oscarb/description-ready.json

1071 lines
40 KiB
JSON

[
{
"id": "ktgrzl14",
"automation": "- id: ktgrzl14\n alias: Turn office lights on when computer is active\n triggers:\n - trigger: state\n entity_id: binary_sensor.macbook_pro\n to: 'on'\n conditions:\n - condition: state\n entity_id: binary_sensor.macbook_pro_at_desk\n state: 'on'\n actions:\n - action: light.turn_on\n data:\n entity_id: group.office",
"config": [
{
"name": "macbook pro",
"room": "office",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.macbook_pro",
"device_id": null
}
},
{
"name": "macbook pro at desk",
"room": "office",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.macbook_pro_at_desk",
"device_id": null
}
},
{
"name": "office group",
"room": "office",
"type": "group",
"id": {
"entity_id": "group.office",
"device_id": null
}
}
]
},
{
"id": "zcbujwFc",
"automation": "- id: zcbujwFc\n alias: Turn office lights off when computer is inactive\n triggers:\n - trigger: state\n entity_id: binary_sensor.macbook_pro\n to: 'off'\n conditions:\n - condition: and\n conditions:\n - condition: state\n entity_id: binary_sensor.macbook_pro_at_desk\n state: 'on'\n - condition: time\n after: '15:30:00'\n actions:\n - action: light.turn_off\n data:\n entity_id:\n - office.office_spotlights\n - office.office_desk_lamp",
"config": [
{
"name": "macbook pro",
"room": "office",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.macbook_pro",
"device_id": null
}
},
{
"name": "macbook pro at desk",
"room": "office",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.macbook_pro_at_desk",
"device_id": null
}
},
{
"name": "office spotlights",
"room": "office",
"type": "light",
"id": {
"entity_id": "office.office_spotlights",
"device_id": null
}
},
{
"name": "office desk lamp",
"room": "office",
"type": "light",
"id": {
"entity_id": "office.office_desk_lamp",
"device_id": null
}
}
]
},
{
"id": "5kRhfCr6",
"automation": "- id: 5kRhfCr6\n alias: Hallway motion turns on tablet\n triggers:\n - trigger: state\n entity_id: binary_sensor.hallway_motion_sensor\n from: 'off'\n to: 'on'\n conditions: []\n actions:\n - action: homeassistant.turn_on\n target:\n entity_id:\n - switch.magic_mirror\n - switch.hallway_sideboard_light\n - switch.hallway_christmas_tree_mini",
"config": [
{
"name": "hallway motion sensor",
"room": "hallway",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.hallway_motion_sensor",
"device_id": null
}
},
{
"name": "magic mirror",
"room": "hallway",
"type": "switch",
"id": {
"entity_id": "switch.magic_mirror",
"device_id": null
}
},
{
"name": "hallway sideboard light",
"room": "hallway",
"type": "switch",
"id": {
"entity_id": "switch.hallway_sideboard_light",
"device_id": null
}
},
{
"name": "hallway christmas tree mini",
"room": "hallway",
"type": "switch",
"id": {
"entity_id": "switch.hallway_christmas_tree_mini",
"device_id": null
}
}
]
},
{
"id": "100JZqsD",
"automation": "- id: 100JZqsD\n alias: Hallway motion absence turns off tablet\n triggers:\n - trigger: state\n entity_id: binary_sensor.hallway_motion_sensor\n from: 'on'\n to: 'off'\n for:\n minutes: 2\n conditions: []\n actions:\n - action: homeassistant.turn_off\n entity_id:\n - switch.magic_mirror\n - switch.hallway_sideboard_light",
"config": [
{
"name": "hallway motion sensor",
"room": "hallway",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.hallway_motion_sensor",
"device_id": null
}
},
{
"name": "magic mirror",
"room": "hallway",
"type": "switch",
"id": {
"entity_id": "switch.magic_mirror",
"device_id": null
}
},
{
"name": "hallway sideboard light",
"room": "hallway",
"type": "switch",
"id": {
"entity_id": "switch.hallway_sideboard_light",
"device_id": null
}
}
]
},
{
"id": "qPY0qTsQ",
"automation": "- id: qPY0qTsQ\n alias: Bathroom motion turns on bathroom ceiling lamp dimmed\n triggers:\n - trigger: state\n entity_id: binary_sensor.mqtt_bathroom_motion\n from: 'off'\n to: 'on'\n conditions:\n - condition: time\n after: '22:00'\n before: 08:00\n actions:\n - action: light.turn_on\n data:\n brightness: 1\n entity_id: light.bathroom_ceiling",
"config": [
{
"name": "bathroom motion",
"room": "bathroom",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.mqtt_bathroom_motion",
"device_id": null
}
},
{
"name": "bathroom ceiling",
"room": "bathroom",
"type": "light",
"id": {
"entity_id": "light.bathroom_ceiling",
"device_id": null
}
}
]
},
{
"id": "Etd7vGR0",
"automation": "- id: Etd7vGR0\n alias: Bathroom motion turns on bathroom ceiling lamp strong\n triggers:\n - trigger: state\n entity_id: binary_sensor.mqtt_bathroom_motion\n from: 'off'\n to: 'on'\n conditions:\n - condition: time\n after: 08:00\n before: '22:00'\n actions:\n - action: light.turn_on\n data:\n brightness: 255\n entity_id: light.bathroom_ceiling",
"config": [
{
"name": "bathroom motion",
"room": "bathroom",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.mqtt_bathroom_motion",
"device_id": null
}
},
{
"name": "bathroom ceiling",
"room": "bathroom",
"type": "light",
"id": {
"entity_id": "light.bathroom_ceiling",
"device_id": null
}
}
]
},
{
"id": "WRU2Iewy",
"automation": "- id: WRU2Iewy\n alias: Bathroom motion sensor disabled turns off light\n triggers:\n - trigger: state\n entity_id: binary_sensor.mqtt_bathroom_motion\n from: 'on'\n to: 'off'\n conditions: []\n actions:\n - action: light.turn_off\n data:\n entity_id: light.bathroom_ceiling",
"config": [
{
"name": "bathroom motion",
"room": "bathroom",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.mqtt_bathroom_motion",
"device_id": null
}
},
{
"name": "bathroom ceiling",
"room": "bathroom",
"type": "light",
"id": {
"entity_id": "light.bathroom_ceiling",
"device_id": null
}
}
]
},
{
"id": "w5g7FTpO",
"automation": "- id: w5g7FTpO\n alias: Turn on office lights when PC turns on\n description: ''\n triggers:\n - trigger: state\n entity_id: switch.computer_power\n from: 'off'\n to: 'on'\n conditions: []\n actions:\n - action: light.turn_on\n data: {}\n entity_id: group.office",
"config": [
{
"name": "office group",
"room": "office",
"type": "group",
"id": {
"entity_id": "group.office",
"device_id": null
}
},
{
"name": "computer power",
"room": "office",
"type": "switch",
"id": {
"entity_id": "switch.computer_power",
"device_id": null
}
}
]
},
{
"id": "nzf1opOZ",
"automation": "- id: nzf1opOZ\n alias: Turn off office lights when PC turns off\n description: ''\n triggers:\n - trigger: state\n entity_id: switch.computer_power\n from: 'on'\n to: 'off'\n conditions: []\n actions:\n - action: light.turn_off\n data: {}\n entity_id: group.office",
"config": [
{
"name": "office group",
"room": "office",
"type": "group",
"id": {
"entity_id": "group.office",
"device_id": null
}
},
{
"name": "computer power",
"room": "office",
"type": "switch",
"id": {
"entity_id": "switch.computer_power",
"device_id": null
}
}
]
},
{
"id": "fRLa11Es",
"automation": "- id: fRLa11Es\n alias: TV volume control\n triggers:\n - trigger: state\n entity_id: input_number.tv_volume\n actions:\n - action: media_player.volume_set\n target:\n entity_id: media_player.tv\n data:\n volume_level: '{{ trigger.to_state.state | float / 60 }}'",
"config": [
{
"name": "tv volume",
"room": "living_room",
"type": "input_number",
"id": {
"entity_id": "input_number.tv_volume",
"device_id": null
}
},
{
"name": "tv",
"room": "living_room",
"type": "media_player",
"id": {
"entity_id": "media_player.tv",
"device_id": null
}
}
]
},
{
"id": "eFPBd9m3",
"automation": "- id: eFPBd9m3\n alias: TV device trigger (turn on)\n triggers:\n - trigger: device\n device_id: 3db85e45506d5575e3ab481d650bf776\n domain: philips_js\n type: turn_on\n actions:\n - action: script.turn_tv_on",
"config": [
{
"name": "philips tv remote",
"room": "living_room",
"type": "device",
"id": {
"entity_id": null,
"device_id": "3db85e45506d5575e3ab481d650bf776"
}
}
]
},
{
"id": "MMpEZi5k",
"automation": "- id: MMpEZi5k\n alias: Kids room button clicked\n triggers:\n - trigger: event\n event_type: flic\n event_data:\n name: kids room\n action: PUSH\n actions:\n - action: light.turn_off\n entity_id: light.kids_room_ceiling\n - action: switch.turn_off\n entity_id: switch.kids_room_star\n - action: switch.turn_off\n entity_id: switch.kids_room_reading_lamp\n - delay: 2\n - action: switch.turn_off\n entity_id: switch.kids_room_butterfly\n - action: timer.start\n entity_id: timer.kids_room_sleep_timer\n - action: script.cast_goodnight_playlist",
"config": [
{
"name": "kids room ceiling",
"room": "kids_room",
"type": "light",
"id": {
"entity_id": "light.kids_room_ceiling",
"device_id": null
}
},
{
"name": "kids room star",
"room": "kids_room",
"type": "switch",
"id": {
"entity_id": "switch.kids_room_star",
"device_id": null
}
},
{
"name": "kids room reading lamp",
"room": "kids_room",
"type": "switch",
"id": {
"entity_id": "switch.kids_room_reading_lamp",
"device_id": null
}
},
{
"name": "kids room butterfly",
"room": "kids_room",
"type": "switch",
"id": {
"entity_id": "switch.kids_room_butterfly",
"device_id": null
}
},
{
"name": "kids room sleep timer",
"room": "kids_room",
"type": "timer",
"id": {
"entity_id": "timer.kids_room_sleep_timer",
"device_id": null
}
}
]
},
{
"id": "3xnyaeC7",
"automation": "- id: 3xnyaeC7\n alias: Flic Twist ⚫️\n triggers:\n - trigger: event\n event_type: flic\n event_data:\n name: office\n actions:\n - choose:\n - conditions: '{{ trigger.event.data.action == ''PUSH'' }}'\n sequence:\n - action: switch.toggle\n target:\n entity_id: switch.speakers\n - conditions: '{{ trigger.event.data.action == ''DOUBLE_PUSH'' }}'\n sequence:\n - action: persistent_notification.create\n data:\n title: DOUBLE PUSH\n message: TEST",
"config": [
{
"name": "speakers",
"room": "office",
"type": "switch",
"id": {
"entity_id": "switch.speakers",
"device_id": null
}
}
]
},
{
"id": "KhwCeo0X",
"automation": "- id: KhwCeo0X\n alias: Stop kids room playback when sleep timer finishes\n triggers:\n - trigger: event\n event_type: timer.finished\n event_data:\n entity_id: timer.kids_room_sleep_timer\n actions:\n - action: media_player.media_stop\n target:\n entity_id: media_player.kids_room_speaker",
"config": [
{
"name": "kids room sleep timer",
"room": "kids_room",
"type": "timer",
"id": {
"entity_id": "timer.kids_room_sleep_timer",
"device_id": null
}
},
{
"name": "kids room speaker",
"room": "kids_room",
"type": "media_player",
"id": {
"entity_id": "media_player.kids_room_speaker",
"device_id": null
}
}
]
},
{
"id": "eJqn2aZN",
"automation": "- id: eJqn2aZN\n alias: Turn light on/off when pressing remote\n mode: parallel\n triggers:\n - trigger: state\n entity_id: event.kids_room_remote\n variables:\n button1: switch.kids_room_butterfly\n button2: switch.kids_room_star\n button3: switch.kids_room_reading_lamp\n - trigger: state\n entity_id:\n - event.bedroom_remote_1\n - event.bedroom_remote_2\n variables:\n button1: light.bedroom_bedside_table_1\n button2: light.bedroom_bedside_table_2\n button3: light.bedroom_sideboard\n - trigger: state\n entity_id: event.christmas_remote\n variables:\n button1:\n - switch.living_room_christmas_tree\n - switch.hallway_christmas_tree_mini\n button2: switch.balcony_lights\n button3:\n - switch.kitchen_advent_candlestick\n - switch.bedroom_advent_candlestick\n conditions:\n - condition: state\n alias: Ensure LilyGO was not recently restarted\n entity_id: binary_sensor.omg_lilygo_rtl_433_esp_sys_connectivity\n state: 'on'\n for:\n minutes: 1\n actions:\n - action: \"{% if trigger.to_state.attributes.event_type == 'on' %}\\n homeassistant.turn_on\\n\\\n {% else %}\\n homeassistant.turn_off\\n{% endif %}\\n\"\n target:\n entity_id: \"{% from 'utilities.jinja' import flatten %} {% if trigger.to_state.attributes.group\\\n \\ %}\\n {{ flatten(button1, button2, button3) }}\\n{% else %}\\n {% set i =\\\n \\ trigger.to_state.attributes.unit % 3 %}\\n {{ [button1, button2, button3][i]\\\n \\ }}\\n{% endif %}\\n\"",
"config": [
{
"name": "hallway christmas tree mini",
"room": "hallway",
"type": "switch",
"id": {
"entity_id": "switch.hallway_christmas_tree_mini",
"device_id": null
}
},
{
"name": "kids room star",
"room": "kids_room",
"type": "switch",
"id": {
"entity_id": "switch.kids_room_star",
"device_id": null
}
},
{
"name": "kids room reading lamp",
"room": "kids_room",
"type": "switch",
"id": {
"entity_id": "switch.kids_room_reading_lamp",
"device_id": null
}
},
{
"name": "kids room butterfly",
"room": "kids_room",
"type": "switch",
"id": {
"entity_id": "switch.kids_room_butterfly",
"device_id": null
}
},
{
"name": "kids room remote",
"room": "kids_room",
"type": "event",
"id": {
"entity_id": "event.kids_room_remote",
"device_id": null
}
},
{
"name": "bedroom remote 1",
"room": "bedroom",
"type": "event",
"id": {
"entity_id": "event.bedroom_remote_1",
"device_id": null
}
},
{
"name": "bedroom remote 2",
"room": "bedroom",
"type": "event",
"id": {
"entity_id": "event.bedroom_remote_2",
"device_id": null
}
},
{
"name": "bedroom bedside table 1",
"room": "bedroom",
"type": "light",
"id": {
"entity_id": "light.bedroom_bedside_table_1",
"device_id": null
}
},
{
"name": "bedroom bedside table 2",
"room": "bedroom",
"type": "light",
"id": {
"entity_id": "light.bedroom_bedside_table_2",
"device_id": null
}
},
{
"name": "bedroom sideboard",
"room": "bedroom",
"type": "light",
"id": {
"entity_id": "light.bedroom_sideboard",
"device_id": null
}
},
{
"name": "christmas remote",
"room": "living_room",
"type": "event",
"id": {
"entity_id": "event.christmas_remote",
"device_id": null
}
},
{
"name": "living room christmas tree",
"room": "living_room",
"type": "switch",
"id": {
"entity_id": "switch.living_room_christmas_tree",
"device_id": null
}
},
{
"name": "balcony lights",
"room": "balcony",
"type": "switch",
"id": {
"entity_id": "switch.balcony_lights",
"device_id": null
}
},
{
"name": "kitchen advent candlestick",
"room": "kitchen",
"type": "switch",
"id": {
"entity_id": "switch.kitchen_advent_candlestick",
"device_id": null
}
},
{
"name": "bedroom advent candlestick",
"room": "bedroom",
"type": "switch",
"id": {
"entity_id": "switch.bedroom_advent_candlestick",
"device_id": null
}
},
{
"name": "lilygo connectivity",
"room": null,
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.omg_lilygo_rtl_433_esp_sys_connectivity",
"device_id": null
}
}
]
},
{
"id": "z3gStMbe",
"automation": "- id: z3gStMbe\n alias: Initiate Christmas feelings on Christmas Eve morning\n triggers:\n - trigger: sun\n event: sunrise\n conditions:\n - condition: template\n alias: Christmas\n value_template: '{{ now().month == 12 and now().day == 24 }}'\n actions:\n - action: script.initiate_christmas_feeling",
"config": []
},
{
"id": "Gh8A5yyM",
"automation": "- id: Gh8A5yyM\n alias: Turn on/off speakers when audio available\n triggers:\n - trigger: state\n entity_id: binary_sensor.speakers_audio_available\n to: 'on'\n for: 00:00:02\n - trigger: state\n entity_id: binary_sensor.speakers_audio_available\n to: 'off'\n for: 00:05:00\n actions:\n - action: \"{% if trigger.to_state.state == 'on' %}\\n homeassistant.turn_on\\n{%\\\n \\ else %}\\n homeassistant.turn_off\\n{% endif %}\\n\"\n target:\n entity_id: switch.speakers",
"config": [
{
"name": "speakers",
"room": "office",
"type": "switch",
"id": {
"entity_id": "switch.speakers",
"device_id": null
}
},
{
"name": "speakers audio available",
"room": "office",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.speakers_audio_available",
"device_id": null
}
}
]
},
{
"id": "BZqOlbuJ",
"automation": "- id: BZqOlbuJ\n alias: Music button clicked\n triggers:\n - trigger: event\n event_type: flic\n event_data:\n name: Music\n actions:\n - action: \"{% if trigger.event.data.action == 'PUSH' %}\\n media_player.media_next_track\\n\\\n {% elif trigger.event.data.action == 'DOUBLE_PUSH' %}\\n media_player.media_play_pause\\n\\\n {% endif %}\\n\"\n target:\n entity_id: media_player.spotify_paq",
"config": [
{
"name": "spotify paq",
"room": "living_room",
"type": "media_player",
"id": {
"entity_id": "media_player.spotify_paq",
"device_id": null
}
}
]
},
{
"id": "'1704037367965'",
"automation": "- id: '1704037367965'\n alias: Adjust desk office brightness using Tradfri wireless dimmer\n description: ''\n use_blueprint:\n path: dieneuser/zha-remote-tradfri-wireless-dimmer-ictc-g-1-for-light.yaml\n input:\n remote: 5093364d7cf432e4ada7f489d8fd0d30\n light: light.office_desk",
"config": [
{
"name": "tradfri remote",
"room": "office",
"type": "device",
"id": {
"entity_id": null,
"device_id": "5093364d7cf432e4ada7f489d8fd0d30"
}
},
{
"name": "office desk",
"room": "office",
"type": "light",
"id": {
"entity_id": "light.office_desk",
"device_id": null
}
}
]
},
{
"id": "'1704206458274'",
"automation": "- id: '1704206458274'\n alias: IKEA E1743 Trådfri on/off switch - Cabinet Light\n description: ''\n use_blueprint:\n path: oscarb/ikea_tradfri_e1743_light.yaml\n input:\n light: light.cabinet\n remote: 9e898747b9d814c5d3b5b904ac8a9a59",
"config": [
{
"name": "cabinet",
"room": "living_room",
"type": "light",
"id": {
"entity_id": "light.cabinet",
"device_id": null
}
},
{
"name": "tradfri remote 2",
"room": "living_room",
"type": "device",
"id": {
"entity_id": null,
"device_id": "9e898747b9d814c5d3b5b904ac8a9a59"
}
}
]
},
{
"id": "'1707650578350'",
"automation": "- id: '1707650578350'\n alias: Trådfri remote - office desk\n description: ''\n use_blueprint:\n path: oscarb/ikea_tradfri_e1743_light.yaml\n input:\n light: light.office_desk\n remote: 9e898747b9d814c5d3b5b904ac8a9a59",
"config": [
{
"name": "office desk",
"room": "office",
"type": "light",
"id": {
"entity_id": "light.office_desk",
"device_id": null
}
},
{
"name": "tradfri remote 2",
"room": "living_room",
"type": "device",
"id": {
"entity_id": null,
"device_id": "9e898747b9d814c5d3b5b904ac8a9a59"
}
}
]
},
{
"id": "'1714303256311'",
"automation": "- id: '1714303256311'\n alias: IKEA TRADFRI Remote - Kids room\n description: Control lights in kids room with IKEA Tradfri remote\n use_blueprint:\n path: niro1987/zha_ikea_tradfri_5button_remote_custom.yaml\n input:\n remote: 2629c586f4e4647f1ecdd1be567ca8ba\n power_short:\n - action: light.toggle\n metadata: {}\n data: {}\n target:\n entity_id: light.kids_room_ceiling\n dimup_short:\n - action: switch.toggle\n metadata: {}\n data: {}\n target:\n entity_id: switch.kids_room_star\n colorup_short:\n - action: switch.toggle\n metadata: {}\n data: {}\n target:\n entity_id: switch.kids_room_reading_lamp\n colordown_short:\n - action: switch.toggle\n metadata: {}\n data: {}\n target:\n entity_id: switch.kids_room_butterfly\n dimdown_short:\n - action: script.group_toggle\n metadata: {}\n data:\n group: group.kids_room",
"config": [
{
"name": "kids room ceiling",
"room": "kids_room",
"type": "light",
"id": {
"entity_id": "light.kids_room_ceiling",
"device_id": null
}
},
{
"name": "kids room star",
"room": "kids_room",
"type": "switch",
"id": {
"entity_id": "switch.kids_room_star",
"device_id": null
}
},
{
"name": "kids room reading lamp",
"room": "kids_room",
"type": "switch",
"id": {
"entity_id": "switch.kids_room_reading_lamp",
"device_id": null
}
},
{
"name": "kids room butterfly",
"room": "kids_room",
"type": "switch",
"id": {
"entity_id": "switch.kids_room_butterfly",
"device_id": null
}
},
{
"name": "kids room tradfri remote",
"room": "kids_room",
"type": "device",
"id": {
"entity_id": null,
"device_id": "2629c586f4e4647f1ecdd1be567ca8ba"
}
},
{
"name": "kids room group",
"room": "kids_room",
"type": "group",
"id": {
"entity_id": "group.kids_room",
"device_id": null
}
}
]
},
{
"id": "'1714317708649'",
"automation": "- id: '1714317708649'\n alias: Philips Tap Dial - Spotify volume\n description: ''\n use_blueprint:\n path: Ddemooij1984/philips_tap_dial_switch volume-and-actions.yaml\n input:\n remote: de15c1b3e9b21af302b60512baa104a7\n turnwheel_left:\n - action: media_player.volume_down\n metadata: {}\n data: {}\n target:\n entity_id: media_player.spotify_paq\n turnwheel_right:\n - action: media_player.volume_up\n metadata: {}\n data: {}\n target:\n entity_id: media_player.spotify_paq",
"config": [
{
"name": "spotify paq",
"room": "living_room",
"type": "media_player",
"id": {
"entity_id": "media_player.spotify_paq",
"device_id": null
}
},
{
"name": "philips tap dial",
"room": "living_room",
"type": "device",
"id": {
"entity_id": null,
"device_id": "de15c1b3e9b21af302b60512baa104a7"
}
}
]
},
{
"id": "'1722513643379'",
"automation": "- id: '1722513643379'\n alias: Increase bathroom brightness with remote\n description: ''\n triggers:\n - trigger: device\n device_id: de92640f89b2ee6968d48f4ab01827eb\n domain: zha\n type: remote_button_short_press\n subtype: turn_on\n conditions: []\n actions:\n - action: light.turn_on\n metadata: {}\n data:\n brightness_pct: 100\n target:\n entity_id: light.bathroom_ceiling\n mode: single",
"config": [
{
"name": "bathroom ceiling",
"room": "bathroom",
"type": "light",
"id": {
"entity_id": "light.bathroom_ceiling",
"device_id": null
}
},
{
"name": "bathroom remote",
"room": "bathroom",
"type": "device",
"id": {
"entity_id": null,
"device_id": "de92640f89b2ee6968d48f4ab01827eb"
}
}
]
},
{
"id": "'1722513747771'",
"automation": "- id: '1722513747771'\n alias: Decrease bathroom brightness using remote\n description: ''\n triggers:\n - trigger: device\n device_id: de92640f89b2ee6968d48f4ab01827eb\n domain: zha\n type: remote_button_short_press\n subtype: turn_off\n conditions:\n - condition: numeric_state\n entity_id: light.bathroom_ceiling\n attribute: brightness\n above: 1\n actions:\n - action: light.turn_on\n metadata: {}\n data:\n brightness: 1\n target:\n entity_id: light.bathroom_ceiling\n mode: single",
"config": [
{
"name": "bathroom ceiling",
"room": "bathroom",
"type": "light",
"id": {
"entity_id": "light.bathroom_ceiling",
"device_id": null
}
},
{
"name": "bathroom remote",
"room": "bathroom",
"type": "device",
"id": {
"entity_id": null,
"device_id": "de92640f89b2ee6968d48f4ab01827eb"
}
}
]
},
{
"id": "isRB46wN",
"automation": "- id: isRB46wN\n alias: Turn Christmas lights on when dark outside\n triggers:\n - trigger: numeric_state\n entity_id: sun.sun\n attribute: elevation\n below: -3.0\n conditions:\n - condition: state\n entity_id: input_boolean.is_christmas_time\n state: 'on'\n actions:\n - action: homeassistant.turn_on\n target:\n entity_id: group.christmas_lights",
"config": [
{
"name": "sun",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sun.sun",
"device_id": null
}
},
{
"name": "is christmas time",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.is_christmas_time",
"device_id": null
}
},
{
"name": "christmas lights group",
"room": null,
"type": "group",
"id": {
"entity_id": "group.christmas_lights",
"device_id": null
}
}
]
},
{
"id": "zQqB7S81",
"automation": "- id: zQqB7S81\n alias: Turn Christmas lights off when bright outside\n triggers:\n - trigger: sun\n event: sunrise\n conditions:\n - condition: state\n entity_id: input_boolean.is_christmas_time\n state: 'on'\n actions:\n - action: homeassistant.turn_off\n target:\n entity_id: group.christmas_lights",
"config": [
{
"name": "is christmas time",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.is_christmas_time",
"device_id": null
}
},
{
"name": "christmas lights group",
"room": null,
"type": "group",
"id": {
"entity_id": "group.christmas_lights",
"device_id": null
}
}
]
},
{
"id": "V14JZxnL",
"automation": "- id: V14JZxnL\n alias: Turn off Christmas lights at night\n triggers:\n - trigger: time\n at: 00:30\n conditions:\n - condition: state\n entity_id: input_boolean.is_christmas_time\n state: 'on'\n actions:\n - action: homeassistant.turn_off\n target:\n entity_id: group.christmas_lights",
"config": [
{
"name": "is christmas time",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.is_christmas_time",
"device_id": null
}
},
{
"name": "christmas lights group",
"room": null,
"type": "group",
"id": {
"entity_id": "group.christmas_lights",
"device_id": null
}
}
]
},
{
"id": "nte2ttE1",
"automation": "- id: nte2ttE1\n alias: Turn off bedroom advent candlestick when charging phone by night\n triggers:\n - trigger: state\n entity_id:\n - binary_sensor.bedside_charger_1_charging\n - binary_sensor.bedside_charger_2_charging\n from: 'off'\n to: 'on'\n conditions:\n - condition: time\n after: '21:00:00'\n actions:\n - action: homeassistant.turn_off\n target:\n entity_id: switch.bedroom_advent_candlestick",
"config": [
{
"name": "bedroom advent candlestick",
"room": "bedroom",
"type": "switch",
"id": {
"entity_id": "switch.bedroom_advent_candlestick",
"device_id": null
}
},
{
"name": "bedside charger 1 charging",
"room": "bedroom",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.bedside_charger_1_charging",
"device_id": null
}
},
{
"name": "bedside charger 2 charging",
"room": "bedroom",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.bedside_charger_2_charging",
"device_id": null
}
}
]
},
{
"id": "tiykEfAD",
"automation": "- id: tiykEfAD\n alias: Reset selected rooms when docked\n trigger:\n platform: state\n entity_id: vacuum.robocop\n to: docked\n action:\n - action: input_boolean.turn_off\n target:\n label_id: selective_room_cleaning",
"config": [
{
"name": "robocop",
"room": null,
"type": "vacuum",
"id": {
"entity_id": "vacuum.robocop",
"device_id": null
}
}
]
},
{
"id": "gt4n94pi",
"automation": "- id: gt4n94pi\n alias: Clean home when being told so\n triggers:\n - trigger: conversation\n command:\n - (clean|vacuum) (the|my) (home|apartment)\n actions:\n - action: vacuum.start\n target:\n entity_id: vacuum.robocop",
"config": [
{
"name": "robocop",
"room": null,
"type": "vacuum",
"id": {
"entity_id": "vacuum.robocop",
"device_id": null
}
}
]
},
{
"id": "6NYdgMcf",
"automation": "- id: 6NYdgMcf\n alias: Clean room\n description: Start Roborock room cleaning triggered from Assist\n triggers:\n - trigger: conversation\n command:\n - (clean|vacuum) (the) {rooms}\n actions:\n - action: python_script.vacuum_room\n target:\n entity_id: vacuum.robocop\n data_template:\n area: '{{ trigger.slots.rooms }}'",
"config": [
{
"name": "robocop",
"room": null,
"type": "vacuum",
"id": {
"entity_id": "vacuum.robocop",
"device_id": null
}
}
]
},
{
"id": "5zdAw089",
"automation": "- id: 5zdAw089\n alias: Send notification when vacuum ecnounters an error\n variables:\n notify_service: '{{ states(''input_text.notify_service_mobile_oscar'') }}'\n triggers:\n - trigger: state\n entity_id: vacuum.robocop\n to: error\n actions:\n - action: '{{ notify_service }}'\n data_template:\n title: '{% set current_clean_area = states(''sensor.robocop_current_clean_area'')\n | round(0, 0) ~ '' '' ~ state_attr(''sensor.robocop_current_clean_area'',\n ''unit_of_measurement'') %} {% set current_clean_duration = int(states(''sensor.robocop_current_clean_duration''))\n // 60 ~ '' min'' %} Robocop - {{ state_attr(''vacuum.robocop'', ''status'')\n }} ({{ current_clean_area }}, {{ current_clean_duration }})\n\n '\n message: '❌ {{ state_attr(''vacuum.robocop'', ''error'') }}\n\n '\n data:\n channel: Vacuum\n clickAction: app://com.xiaomi.smarthome\n notification_icon: mdi:robot-vacuum\n actions:\n - action: resume_vacuum\n title: Resume",
"config": [
{
"name": "robocop",
"room": null,
"type": "vacuum",
"id": {
"entity_id": "vacuum.robocop",
"device_id": null
}
},
{
"name": "notify service mobile oscar",
"room": null,
"type": "input_text",
"id": {
"entity_id": "input_text.notify_service_mobile_oscar",
"device_id": null
}
},
{
"name": "robocop current clean area",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.robocop_current_clean_area",
"device_id": null
}
},
{
"name": "robocop current clean duration",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.robocop_current_clean_duration",
"device_id": null
}
}
]
},
{
"id": "dMSwlTgC",
"automation": "- id: dMSwlTgC\n alias: Resume cleaning on notification action\n triggers:\n - trigger: event\n event_type: mobile_app_notification_action\n event_data:\n action: resume_vacuum\n conditions: []\n actions:\n - action: vacuum.start\n target:\n entity_id: vacuum.robocop",
"config": [
{
"name": "robocop",
"room": null,
"type": "vacuum",
"id": {
"entity_id": "vacuum.robocop",
"device_id": null
}
}
]
},
{
"id": "TaAgXTBO",
"automation": "- id: TaAgXTBO\n alias: Send notification when vacuum returns to base with action to go to waste\n bin\n variables:\n apartment_size: secret apartment_size\n notify_service: '{{ states(''input_text.notify_service_mobile_oscar'') }}'\n triggers:\n - trigger: state\n entity_id: sensor.robocop_total_clean_area\n conditions:\n - condition: template\n value_template: \"{{ trigger.from_state is not none and\\n trigger.to_state is\\\n \\ not none and\\n trigger.from_state.state not in [\\\"unavailable\\\"] and\\n \\\n \\ trigger.to_state.state | float(0) > trigger.from_state.state | float(0)\\n\\\n }}\\n\"\n actions:\n - action: '{{ notify_service }}'\n data_template:\n title: '{% set clean_area = states(''sensor.robocop_last_clean_area'') | round(0,\n 0) ~ '' '' ~ state_attr(''sensor.robocop_last_clean_area'', ''unit_of_measurement'')\n %} {% set clean_duration = int(states(''sensor.robocop_last_clean_duration''))\n // 60 ~ '' min'' %} Robocop - Clean-up complete: {{ clean_area }}, {{ clean_duration\n }}\n\n '\n message: \"{% set clean_area_old = trigger.from_state.state | int %} {% set clean_area_new\\\n \\ = trigger.to_state.state | int %} {% if clean_area_new // (apartment_size\\\n \\ * 2) > clean_area_old // (apartment_size * 2) -%}\\n ⚠️ Empty dustbin and\\\n \\ clean filter.\\n{%- elif clean_area_new // apartment_size > clean_area_old\\\n \\ // apartment_size -%}\\n ⚠️ Empty dustbin.\\n{%- endif %} {%- if is_state('binary_sensor.robocop_mop_attached',\\\n \\ 'on') -%}\\n ⚠️ Remove water tank.\\n{%- endif %} Finished cleaning, returning\\\n \\ to base.\\n\"\n data:\n channel: Vacuum\n clickAction: app://com.xiaomi.smarthome\n notification_icon: mdi:robot-vacuum\n actions:\n - action: send_robocop_to_waste_bin\n title: Go to waste bin\n - action: URI\n title: Manual\n uri: secret roborock_manual",
"config": [
{
"name": "notify service mobile oscar",
"room": null,
"type": "input_text",
"id": {
"entity_id": "input_text.notify_service_mobile_oscar",
"device_id": null
}
},
{
"name": "robocop total clean area",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.robocop_total_clean_area",
"device_id": null
}
},
{
"name": "robocop last clean area",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.robocop_last_clean_area",
"device_id": null
}
},
{
"name": "robocop last clean duration",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.robocop_last_clean_duration",
"device_id": null
}
},
{
"name": "robocop mop attached",
"room": null,
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.robocop_mop_attached",
"device_id": null
}
}
]
},
{
"id": "jgu5sWGm",
"automation": "- id: jgu5sWGm\n alias: Send Robocop to waste bin on notification action\n triggers:\n - trigger: event\n event_type: mobile_app_notification_action\n event_data:\n action: send_robocop_to_waste_bin\n conditions: []\n actions:\n - action: script.send_robocop_to_waste_bin\n data: {}",
"config": []
}
]