[ { "id": "'1709341331298'", "automation": "- id: '1709341331298'\n alias: Office lights on/off\n description: Automatically adjust lights when turned on or if they become unavailable\n or unknown\n trigger:\n - platform: state\n entity_id:\n - light.office_light\n - light.office_light_2\n to:\n - 'on'\n - unavailable\n - unknown\n - platform: tag\n tag_id: 645fad09-7423-48d3-825f-0c196998f92d\n condition: []\n action:\n - choose:\n - conditions:\n - condition: state\n entity_id:\n - light.office_light\n - light.office_light_2\n state: 'on'\n sequence:\n - choose:\n - conditions:\n - condition: sun\n after: sunrise\n before: sunset\n sequence:\n - data:\n kelvin: 5700\n target:\n entity_id:\n - light.office_fan_lights\n - light.office_monitor_backlight\n action: light.turn_on\n - data:\n kelvin: 6000\n target:\n entity_id: light.office_desk_lightstrip\n action: light.turn_on\n - conditions:\n - condition: or\n conditions:\n - condition: sun\n before: sunrise\n - condition: sun\n after: sunset\n sequence:\n - data:\n kelvin: 2800\n target:\n entity_id:\n - light.office_fan_lights\n - light.office_monitor_backlight\n action: light.turn_on\n - data:\n kelvin: 2800\n target:\n entity_id: light.office_desk_lightstrip\n action: light.turn_on\n - conditions:\n - condition: or\n conditions:\n - condition: state\n entity_id:\n - light.office_light\n - light.office_light_2\n state: unavailable\n - condition: state\n entity_id:\n - light.office_light\n - light.office_light_2\n state: unknown\n sequence:\n - target:\n entity_id:\n - light.office_monitor_backlight\n - light.office_desk_lightstrip\n data: {}\n action: light.turn_off\n mode: single", "config": [ { "name": "office light", "room": "office", "type": "light", "id": { "entity_id": "light.office_light", "device_id": null } }, { "name": "office light 2", "room": "office", "type": "light", "id": { "entity_id": "light.office_light_2", "device_id": null } }, { "name": "office fan lights", "room": "office", "type": "light", "id": { "entity_id": "light.office_fan_lights", "device_id": null } }, { "name": "office monitor backlight", "room": "office", "type": "light", "id": { "entity_id": "light.office_monitor_backlight", "device_id": null } }, { "name": "office desk lightstrip", "room": "office", "type": "light", "id": { "entity_id": "light.office_desk_lightstrip", "device_id": null } }, { "name": "work mode nfc tag", "room": null, "type": "tag", "id": { "entity_id": null, "device_id": "645fad09-7423-48d3-825f-0c196998f92d" } } ] }, { "id": "'1709792419847'", "automation": "- id: '1709792419847'\n alias: Kitchen lights on/off\n description: Control behavior of kitchen lights when they turn on or off/unavailable/unknown\n trigger:\n - platform: state\n entity_id:\n - light.kitchen_light_1\n to:\n - 'on'\n - 'off'\n - unavailable\n - unknown\n condition: []\n action:\n - choose:\n - conditions:\n - condition: state\n entity_id:\n - light.kitchen_light_1\n state: 'on'\n sequence:\n - choose:\n - conditions:\n - condition: sun\n after: sunrise\n - condition: sun\n before: sunset\n sequence:\n - data:\n kelvin: 5000\n brightness_pct: 100\n target:\n area_id: kitchen\n action: light.turn_on\n - conditions:\n - condition: or\n conditions:\n - condition: sun\n before: sunrise\n - condition: sun\n after: sunset\n sequence:\n - data:\n kelvin: 2000\n brightness_pct: 80\n target:\n area_id: kitchen\n action: light.turn_on\n - conditions:\n - condition: or\n conditions:\n - condition: state\n entity_id:\n - light.kitchen_light_1\n state: 'off'\n - condition: state\n entity_id:\n - light.kitchen_light_1\n state: unavailable\n - condition: state\n entity_id:\n - light.kitchen_light_1\n state: unknown\n sequence:\n - target:\n entity_id:\n - light.counter_light_1\n - light.counter_light_2\n data: {}\n action: light.turn_off\n mode: single", "config": [ { "name": "kitchen light 1", "room": "kitchen", "type": "light", "id": { "entity_id": "light.kitchen_light_1", "device_id": null } }, { "name": "counter light 1", "room": "kitchen", "type": "light", "id": { "entity_id": "light.counter_light_1", "device_id": null } }, { "name": "counter light 2", "room": "kitchen", "type": "light", "id": { "entity_id": "light.counter_light_2", "device_id": null } } ] }, { "id": "'1720575255139'", "automation": "- id: '1720575255139'\n alias: Tag Work Mode NFC is scanned\n description: ''\n trigger:\n - platform: tag\n tag_id: 645fad09-7423-48d3-825f-0c196998f92d\n condition: []\n action:\n - device_id: 2b2e8ba1a1ce9f22c6ecdf1aa5422e0a\n domain: mobile_app\n type: notify\n message: Enable work mode\n mode: single", "config": [ { "name": "mobile app device", "room": null, "type": "mobile_app", "id": { "entity_id": null, "device_id": "2b2e8ba1a1ce9f22c6ecdf1aa5422e0a" } }, { "name": "work mode nfc tag", "room": null, "type": "tag", "id": { "entity_id": null, "device_id": "645fad09-7423-48d3-825f-0c196998f92d" } } ] }, { "id": "'1720575893940'", "automation": "- id: '1720575893940'\n alias: Tag Game Mode NFC is scanned\n description: ''\n triggers:\n - tag_id: 8d5f8587-3b83-4c92-9d6e-829b2745cc8d\n trigger: tag\n conditions: []\n actions:\n - target:\n entity_id:\n - light.office_fan_lights\n data:\n transition: 15\n action: light.turn_off\n - metadata: {}\n data:\n rgb_color:\n - 130\n - 188\n - 36\n action: light.turn_on\n target:\n entity_id: light.office_monitor_backlight\n - action: light.turn_on\n metadata: {}\n data:\n rgb_color:\n - 153\n - 255\n - 0\n target:\n entity_id: light.office_desk_lightstrip\n mode: single", "config": [ { "name": "office fan lights", "room": "office", "type": "light", "id": { "entity_id": "light.office_fan_lights", "device_id": null } }, { "name": "office monitor backlight", "room": "office", "type": "light", "id": { "entity_id": "light.office_monitor_backlight", "device_id": null } }, { "name": "office desk lightstrip", "room": "office", "type": "light", "id": { "entity_id": "light.office_desk_lightstrip", "device_id": null } }, { "name": "game mode nfc tag", "room": null, "type": "tag", "id": { "entity_id": null, "device_id": "8d5f8587-3b83-4c92-9d6e-829b2745cc8d" } } ] }, { "id": "'1720670552296'", "automation": "- id: '1720670552296'\n alias: Kitchen lights color temperature at sunrise and sunset\n description: Adjust kitchen lights color temperature at sunrise and sunset\n trigger:\n - platform: sun\n event: sunset\n offset: 0\n - platform: sun\n event: sunrise\n offset: 0\n condition:\n - condition: state\n entity_id: light.kitchen_light_1\n state: 'on'\n action:\n - choose:\n - conditions:\n - condition: sun\n before: sunrise\n after: sunset\n sequence:\n - data:\n kelvin: 2000\n transition: 90\n brightness_pct: 80\n target:\n area_id: kitchen\n action: light.turn_on\n - conditions:\n - condition: sun\n before: sunset\n after: sunrise\n sequence:\n - data:\n kelvin: 5000\n transition: 300\n brightness_pct: 100\n target:\n area_id: kitchen\n action: light.turn_on\n mode: single", "config": [ { "name": "kitchen light 1", "room": "kitchen", "type": "light", "id": { "entity_id": "light.kitchen_light_1", "device_id": null } } ] }, { "id": "'1720830788593'", "automation": "- id: '1720830788593'\n alias: Office lights color temperature at sunrise and sunset\n description: Adjust office lights color temperature at sunrise and sunset\n trigger:\n - platform: sun\n event: sunset\n offset: 0\n - platform: sun\n event: sunrise\n offset: 0\n condition:\n - condition: state\n entity_id: light.office_desk_lightstrip\n state: 'on'\n action:\n - choose:\n - conditions:\n - condition: sun\n before: sunset\n after: sunrise\n sequence:\n - data:\n kelvin: 5700\n transition: 15\n target:\n entity_id:\n - light.office_monitor_backlight\n - light.office_fan_lights\n action: light.turn_on\n - data:\n kelvin: 6000\n transition: 15\n target:\n entity_id:\n - light.office_desk_lightstrip\n action: light.turn_on\n - conditions:\n - condition: sun\n before: sunrise\n after: sunset\n sequence:\n - data:\n kelvin: 2800\n transition: 15\n target:\n entity_id:\n - light.office_desk_lightstrip\n action: light.turn_on\n - data:\n kelvin: 2800\n transition: 15\n target:\n entity_id:\n - light.office_monitor_backlight\n - light.office_fan_lights\n action: light.turn_on\n mode: single", "config": [ { "name": "office fan lights", "room": "office", "type": "light", "id": { "entity_id": "light.office_fan_lights", "device_id": null } }, { "name": "office monitor backlight", "room": "office", "type": "light", "id": { "entity_id": "light.office_monitor_backlight", "device_id": null } }, { "name": "office desk lightstrip", "room": "office", "type": "light", "id": { "entity_id": "light.office_desk_lightstrip", "device_id": null } } ] }, { "id": "'1725363208408'", "automation": "- id: '1725363208408'\n alias: Hallway light motion-controlled\n description: Turn on the hallway light when motion is detected and turn it off after\n a delay when no motion is detected.\n trigger:\n - platform: state\n entity_id: binary_sensor.aqara_motion_sensor_hallway_occupancy_5\n from: 'off'\n to: 'on'\n - platform: state\n entity_id: binary_sensor.aqara_motion_sensor_hallway_occupancy_5\n from: 'on'\n to: 'off'\n for: 00:00:10\n condition:\n - condition: or\n conditions:\n - condition: sun\n before: sunrise\n - condition: sun\n after: sunset\n action:\n - choose:\n - conditions:\n - condition: state\n entity_id: binary_sensor.aqara_motion_sensor_hallway_occupancy_5\n state: 'on'\n sequence:\n - target:\n entity_id: light.hallway_light\n data: {}\n action: light.turn_on\n - conditions:\n - condition: state\n entity_id: binary_sensor.aqara_motion_sensor_hallway_occupancy_5\n state: 'off'\n sequence:\n - target:\n entity_id: light.hallway_light\n data: {}\n action: light.turn_off\n mode: single", "config": [ { "name": "hallway motion sensor occupancy", "room": "hallway", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.aqara_motion_sensor_hallway_occupancy_5", "device_id": null } }, { "name": "hallway light", "room": "hallway", "type": "light", "id": { "entity_id": "light.hallway_light", "device_id": null } } ] }, { "id": "'1725364482087'", "automation": "- id: '1725364482087'\n alias: Hallway lights color temperature at sunrise and sunset\n description: Adjust hallway lights color temperature at sunrise and sunset\n triggers:\n - event: sunset\n offset: 0\n trigger: sun\n - event: sunrise\n offset: 0\n trigger: sun\n conditions:\n - condition: or\n conditions:\n - condition: state\n entity_id: light.hallway_light\n state: 'on'\n - condition: state\n entity_id: light.hallway_light_2\n state: 'on'\n - condition: state\n entity_id: light.smart_wi_fi_lighting\n state: 'on'\n actions:\n - choose:\n - conditions:\n - condition: sun\n after: sunset\n sequence:\n - target:\n entity_id: \"{% set lights = [] %} {% if is_state('light.hallway_light','on')\\\n \\ %}\\n {% set lights = lights + ['light.hallway_light'] %}\\n{% endif\\\n \\ %} {% if is_state('light.hallway_light_2', 'on') %}\\n {% set lights\\\n \\ = lights + ['light.hallway_light_2'] %}\\n{% endif %} {% if is_state('light.smart_wi_fi_lighting',\\\n \\ 'on') %}\\n {% set lights = lights + ['light.smart_wi_fi_lighting']\\\n \\ %}\\n{% endif %} {{ lights | join(', ') }}\\n\"\n data:\n kelvin: 2000\n transition: 90\n brightness_pct: 80\n action: light.turn_on\n - conditions:\n - condition: sun\n after: sunrise\n sequence:\n - target:\n entity_id: \"{% set lights = [] %} {% if is_state('light.hallway_light',\\\n \\ 'on') %}\\n {% set lights = lights + ['light.hallway_light'] %}\\n{%\\\n \\ endif %} {% if is_state('light.hallway_light_2', 'on') %}\\n {% set\\\n \\ lights = lights + ['light.hallway_light_2'] %}\\n{% endif %} {% if is_state('light.smart_wi_fi_lighting',\\\n \\ 'on') %}\\n {% set lights = lights + ['light.smart_wi_fi_lighting']\\\n \\ %}\\n{% endif %} {{ lights | join(', ') }}\\n\"\n data:\n kelvin: 5000\n transition: 300\n brightness_pct: 100\n action: light.turn_on\n mode: single", "config": [ { "name": "hallway light", "room": "hallway", "type": "light", "id": { "entity_id": "light.hallway_light", "device_id": null } }, { "name": "hallway light 2", "room": "hallway", "type": "light", "id": { "entity_id": "light.hallway_light_2", "device_id": null } }, { "name": "smart wi fi lighting", "room": "hallway", "type": "light", "id": { "entity_id": "light.smart_wi_fi_lighting", "device_id": null } } ] }, { "id": "'1741171850753'", "automation": "- id: '1741171850753'\n alias: Ambient mode The Frame\n description: ''\n triggers:\n - device_id: 34208c67fd30108e53ebcf1b33d393e8\n domain: media_player\n entity_id: 0c6acb4d0b07099a6fbb1a21d0f716b9\n type: turned_off\n trigger: device\n conditions: []\n actions:\n - action: remote.send_command\n metadata: {}\n data:\n num_repeats: 1\n delay_secs: 0.4\n hold_secs: 0\n command: KEY_AMBIENT\n target:\n entity_id: remote.65_the_frame\n mode: single", "config": [ { "name": "media player device", "room": null, "type": "media_player", "id": { "entity_id": "0c6acb4d0b07099a6fbb1a21d0f716b9", "device_id": "34208c67fd30108e53ebcf1b33d393e8" } }, { "name": "the frame remote", "room": null, "type": "remote", "id": { "entity_id": "remote.65_the_frame", "device_id": null } } ] }, { "id": "'1751539910148'", "automation": "- id: '1751539910148'\n alias: Hallway Lightstrip On-Off\n description: Automatically adjust lights when turned on or if they become unavailable\n or unknown\n triggers:\n - entity_id:\n - light.smart_wi_fi_lighting\n to:\n - 'on'\n - unavailable\n - unknown\n trigger: state\n conditions: []\n actions:\n - choose:\n - conditions:\n - condition: state\n entity_id:\n - light.smart_wi_fi_lighting\n state: 'on'\n sequence:\n - choose:\n - conditions:\n - condition: sun\n after: sunrise\n before: sunset\n sequence:\n - data:\n kelvin: 5000\n action: light.turn_on\n target:\n entity_id:\n - light.smart_wi_fi_lighting\n - conditions:\n - condition: or\n conditions:\n - condition: sun\n after: sunset\n before: sunrise\n sequence:\n - data:\n kelvin: 2000\n action: light.turn_on\n target:\n entity_id:\n - light.smart_wi_fi_lighting\n - conditions:\n - condition: or\n conditions:\n - condition: state\n entity_id:\n - light.smart_wi_fi_lighting\n state: unavailable\n - condition: state\n entity_id:\n - light.smart_wi_fi_lighting\n state: unknown\n sequence:\n - data: {}\n action: light.turn_off\n target:\n entity_id:\n - light.smart_wi_fi_lighting\n mode: single", "config": [ { "name": "smart wi fi lighting", "room": "hallway", "type": "light", "id": { "entity_id": "light.smart_wi_fi_lighting", "device_id": null } } ] }, { "id": "'1751540240213'", "automation": "- id: '1751540240213'\n alias: Hallway Chandelier Light On/Off\n description: Automatically adjust lights when turned on or if they become unavailable\n or unknown\n triggers:\n - entity_id:\n - light.hallway_light_2\n to:\n - 'on'\n - unavailable\n - unknown\n trigger: state\n conditions: []\n actions:\n - choose:\n - conditions:\n - condition: state\n entity_id:\n - light.hallway_light_2\n state: 'on'\n sequence:\n - choose:\n - conditions:\n - condition: sun\n after: sunrise\n before: sunset\n sequence:\n - data:\n kelvin: 5000\n action: light.turn_on\n target:\n entity_id:\n - light.hallway_light_2\n - conditions:\n - condition: or\n conditions:\n - condition: sun\n after: sunset\n before: sunrise\n sequence:\n - data:\n kelvin: 2000\n action: light.turn_on\n target:\n entity_id:\n - light.hallway_light_2\n - conditions:\n - condition: or\n conditions:\n - condition: state\n entity_id:\n - light.hallway_light_2\n state: unavailable\n - condition: state\n entity_id:\n - light.hallway_light_2\n state: unknown\n sequence:\n - data: {}\n action: light.turn_off\n target:\n entity_id:\n - light.hallway_light_2\n mode: single", "config": [ { "name": "hallway light", "room": "hallway", "type": "light", "id": { "entity_id": "light.hallway_light", "device_id": null } }, { "name": "hallway light 2", "room": "hallway", "type": "light", "id": { "entity_id": "light.hallway_light_2", "device_id": null } } ] }, { "id": "'1751659782405'", "automation": "- id: '1751659782405'\n alias: Curtain action at sunrise and sunset\n description: ''\n triggers:\n - trigger: sun\n event: sunset\n offset: 0\n - trigger: sun\n event: sunrise\n offset: 0\n conditions: []\n actions:\n - choose:\n - conditions:\n - condition: sun\n after: sunset\n before: sunrise\n sequence:\n - device_id: 77f605ff6472af1fdcc9d5edcc6c00b3\n domain: cover\n entity_id: 2094f6d59f26ab8a969a200bfe574df2\n type: close\n - conditions:\n - condition: sun\n after: sunrise\n before: sunset\n sequence:\n - device_id: 77f605ff6472af1fdcc9d5edcc6c00b3\n domain: cover\n entity_id: 2094f6d59f26ab8a969a200bfe574df2\n type: open\n mode: single", "config": [ { "name": "curtain device", "room": null, "type": "cover", "id": { "entity_id": "2094f6d59f26ab8a969a200bfe574df2", "device_id": "77f605ff6472af1fdcc9d5edcc6c00b3" } } ] } ]