AutomationDataset/mikevanes/description-ready.json

1176 lines
50 KiB
JSON

[
{
"id": "66e5e1bbc8e94369a8886b91a5630cae",
"automation": "- alias: Set pc_mike_lock based on session lock state\n trigger:\n - platform: state\n entity_id: sensor.pc_mike_session\n condition: []\n action:\n - choose:\n - conditions:\n - condition: state\n entity_id: sensor.pc_mike_session\n state: Unlocked\n sequence:\n - service: input_boolean.turn_on\n target:\n entity_id: input_boolean.pc_mike_lock\n - conditions:\n - condition: template\n value_template: '{{ is_state(''sensor.pc_mike_session'', ''Unavailable'')\n or is_state(''sensor.pc_mike_session'', ''Locked'') }}\n\n '\n sequence:\n - service: input_boolean.turn_off\n target:\n entity_id: input_boolean.pc_mike_lock\n id: 66e5e1bbc8e94369a8886b91a5630cae",
"config": [
{
"name": "PC Mike session sensor",
"room": "office",
"type": "sensor",
"id": {
"entity_id": "sensor.pc_mike_session",
"device_id": null
}
},
{
"name": "PC Mike lock input boolean",
"room": "office",
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.pc_mike_lock",
"device_id": null
}
}
]
},
{
"id": "'1727017828258'",
"automation": "- id: '1727017828258'\n alias: Set pc_mike_lock and active based on session lock state\n description: ''\n trigger:\n - platform: state\n entity_id: sensor.pc_mike_session\n condition: []\n action:\n - choose:\n - conditions:\n - condition: state\n entity_id: sensor.pc_mike_session\n state: Unlocked\n sequence:\n - target:\n entity_id: input_boolean.pc_mike_lock\n action: input_boolean.turn_on\n data: {}\n - conditions:\n - condition: template\n value_template: '{{ is_state(''sensor.pc_mike_session'', ''Unavailable'')\n or is_state(''sensor.pc_mike_session'', ''Locked'') }}\n\n '\n sequence:\n - target:\n entity_id: input_boolean.pc_mike_lock\n action: input_boolean.turn_off\n data: {}\n - action: switch.turn_on\n metadata: {}\n data: {}\n target:\n entity_id: switch.pc_mike\n mode: single",
"config": [
{
"name": "PC Mike session sensor",
"room": "office",
"type": "sensor",
"id": {
"entity_id": "sensor.pc_mike_session",
"device_id": null
}
},
{
"name": "PC Mike lock input boolean",
"room": "office",
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.pc_mike_lock",
"device_id": null
}
},
{
"name": "PC Mike switch",
"room": "office",
"type": "switch",
"id": {
"entity_id": "switch.pc_mike",
"device_id": null
}
}
]
},
{
"id": "'1728806979894'",
"automation": "- id: '1728806979894'\n alias: Lampen aan, bij bezetting en zonsondergang\n description: ''\n triggers:\n - entity_id: binary_sensor.presence_detector_wc_presence\n to: 'on'\n trigger: state\n conditions:\n - condition: or\n conditions:\n - condition: numeric_state\n entity_id: sensor.presence_detector_wc_illuminance_lux\n below: 750\n - condition: state\n entity_id: sun.sun\n state: below_horizon\n actions:\n - target:\n entity_id: light.all_lights\n action: light.turn_on\n data: {}\n mode: single",
"config": [
{
"name": "WC presence detector",
"room": "toilet",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.presence_detector_wc_presence",
"device_id": null
}
},
{
"name": "WC presence detector illuminance",
"room": "toilet",
"type": "sensor",
"id": {
"entity_id": "sensor.presence_detector_wc_illuminance_lux",
"device_id": null
}
},
{
"name": "Sun",
"room": null,
"type": "sun",
"id": {
"entity_id": "sun.sun",
"device_id": null
}
},
{
"name": "All lights group",
"room": null,
"type": "light",
"id": {
"entity_id": "light.all_lights",
"device_id": null
}
}
]
},
{
"id": "'1730031942190'",
"automation": "- id: '1730031942190'\n alias: HUE dimmer keuken\n description: ''\n use_blueprint:\n path: CrazyCoder/zigbee2mqtt_hue_dimmer_v2.yaml\n input:\n action_sensor: sensor.hue_schakelaar_keuken_action\n helper_last_controller_event: input_text.hue_dimmer_keuken\n on_press:\n - action: light.toggle\n metadata: {}\n data: {}\n target:\n entity_id: light.keuken\n up_press:\n - action: light.turn_on\n target:\n entity_id: light.keuken\n data:\n brightness_step_pct: 10\n up_hold:\n - action: light.turn_on\n metadata: {}\n data:\n brightness_step_pct: 5\n target:\n entity_id: light.keuken\n down_press:\n - action: light.turn_on\n metadata: {}\n data:\n brightness_step_pct: -10\n target:\n entity_id: light.keuken\n down_hold:\n - action: light.turn_on\n metadata: {}\n data:\n brightness_step_pct: -5\n target:\n entity_id: light.keuken",
"config": [
{
"name": "Hue kitchen switch action",
"room": "kitchen",
"type": "sensor",
"id": {
"entity_id": "sensor.hue_schakelaar_keuken_action",
"device_id": null
}
},
{
"name": "Hue kitchen dimmer helper",
"room": "kitchen",
"type": "input_text",
"id": {
"entity_id": "input_text.hue_dimmer_keuken",
"device_id": null
}
},
{
"name": "Kitchen light",
"room": "kitchen",
"type": "light",
"id": {
"entity_id": "light.keuken",
"device_id": null
}
}
]
},
{
"id": "'1730305912339'",
"automation": "- id: '1730305912339'\n alias: Hue dimmer slaapkamer\n description: ''\n use_blueprint:\n path: CrazyCoder/zigbee2mqtt_hue_dimmer_v2.yaml\n input:\n action_sensor: sensor.hue_schakelaar_slaapkamer_action\n helper_last_controller_event: input_text.hue_button_slaapkamer_text_helper\n on_press:\n - action: light.toggle\n target:\n entity_id:\n - light.slaapkamer\n data: {}\n up_press:\n - action: light.turn_on\n metadata: {}\n data:\n brightness_step_pct: 10\n target:\n entity_id: light.slaapkamer\n up_hold:\n - action: light.turn_on\n target:\n entity_id: light.slaapkamer\n data:\n brightness_step_pct: 5\n down_press:\n - action: light.turn_on\n metadata: {}\n data:\n brightness_step_pct: -10\n target:\n entity_id: light.slaapkamer\n down_hold:\n - action: light.turn_on\n metadata: {}\n data:\n brightness_step_pct: -5\n target:\n entity_id: light.slaapkamer",
"config": [
{
"name": "Hue bedroom switch action",
"room": "bedroom",
"type": "sensor",
"id": {
"entity_id": "sensor.hue_schakelaar_slaapkamer_action",
"device_id": null
}
},
{
"name": "Hue bedroom button helper",
"room": "bedroom",
"type": "input_text",
"id": {
"entity_id": "input_text.hue_button_slaapkamer_text_helper",
"device_id": null
}
},
{
"name": "Bedroom light",
"room": "bedroom",
"type": "light",
"id": {
"entity_id": "light.slaapkamer",
"device_id": null
}
}
]
},
{
"id": "'1730307935329'",
"automation": "- id: '1730307935329'\n alias: HUE dimmer toilet\n description: ''\n use_blueprint:\n path: CrazyCoder/zigbee2mqtt_hue_dimmer_v2.yaml\n input:\n action_sensor: sensor.hue_schakelaar_toilet_action\n helper_last_controller_event: input_text.hue_dimmer_toilet\n on_press:\n - action: light.toggle\n metadata: {}\n data: {}\n target:\n entity_id: light.toilet\n up_press:\n - action: light.turn_on\n metadata: {}\n data:\n brightness_step_pct: 10\n target:\n entity_id: light.toilet\n up_hold:\n - action: light.turn_on\n metadata: {}\n data:\n brightness_step_pct: 5\n target:\n entity_id: light.toilet\n down_press:\n - action: light.turn_on\n metadata: {}\n data:\n brightness_step_pct: -10\n target:\n entity_id: light.toilet\n down_hold:\n - action: light.turn_on\n metadata: {}\n data:\n brightness_step_pct: -5\n target:\n entity_id: light.toilet",
"config": [
{
"name": "Hue toilet switch action",
"room": "toilet",
"type": "sensor",
"id": {
"entity_id": "sensor.hue_schakelaar_toilet_action",
"device_id": null
}
},
{
"name": "Hue toilet dimmer helper",
"room": "toilet",
"type": "input_text",
"id": {
"entity_id": "input_text.hue_dimmer_toilet",
"device_id": null
}
},
{
"name": "Toilet light",
"room": "toilet",
"type": "light",
"id": {
"entity_id": "light.toilet",
"device_id": null
}
}
]
},
{
"id": "'1730312823062'",
"automation": "- id: '1730312823062'\n alias: HUE dimmer kantoor\n description: ''\n use_blueprint:\n path: CrazyCoder/zigbee2mqtt_hue_dimmer_v2.yaml\n input:\n action_sensor: sensor.hue_schakelaar_kantoor_action\n helper_last_controller_event: input_text.hue_dimmer_kantoor\n on_press:\n - action: light.toggle\n target:\n entity_id: light.kantoor\n data: {}\n up_press:\n - action: light.turn_on\n metadata: {}\n data:\n brightness_step_pct: 10\n target:\n entity_id: light.kantoor\n up_hold:\n - action: light.turn_on\n metadata: {}\n data:\n brightness_step_pct: 5\n target:\n entity_id: light.kantoor\n down_press:\n - action: light.turn_on\n metadata: {}\n data:\n brightness_step_pct: -10\n target:\n entity_id: light.kantoor\n down_hold:\n - action: light.turn_on\n target:\n entity_id: light.kantoor\n data:\n brightness_step_pct: -5",
"config": [
{
"name": "Hue office switch action",
"room": "office",
"type": "sensor",
"id": {
"entity_id": "sensor.hue_schakelaar_kantoor_action",
"device_id": null
}
},
{
"name": "Hue office dimmer helper",
"room": "office",
"type": "input_text",
"id": {
"entity_id": "input_text.hue_dimmer_kantoor",
"device_id": null
}
},
{
"name": "Office light",
"room": "office",
"type": "light",
"id": {
"entity_id": "light.kantoor",
"device_id": null
}
}
]
},
{
"id": "Daily Backup at 2 AM",
"automation": "- alias: Daily Backup at 2 AM\n mode: single\n triggers:\n - trigger: time\n at: 02:00:00\n conditions: []\n actions:\n - action: auto_backup.backup\n data:\n name: Automatic Backup {{ now().strftime('%Y-%m-%d') }}\n keep_days: 2\n - action: hassio.addon_restart\n data:\n addon: 19a172aa_rclone_backup",
"config": []
},
{
"id": "Turn off pc_mike when session is unavailable",
"automation": "- alias: Turn off pc_mike when session is unavailable\n trigger:\n - platform: time_pattern\n minutes: '*'\n condition:\n - condition: template\n value_template: '{{ states(''sensor.pc_mike_session'') == ''unavailable'' }}'\n action:\n - action: switch.turn_off\n target:\n entity_id: switch.pc_mike_wol",
"config": [
{
"name": "PC Mike session sensor",
"room": "office",
"type": "sensor",
"id": {
"entity_id": "sensor.pc_mike_session",
"device_id": null
}
},
{
"name": "PC Mike switch",
"room": "office",
"type": "switch",
"id": {
"entity_id": "switch.pc_mike",
"device_id": null
}
},
{
"name": "PC Mike WOL switch",
"room": "office",
"type": "switch",
"id": {
"entity_id": "switch.pc_mike_wol",
"device_id": null
}
}
]
},
{
"id": "Set lock on boot",
"automation": "- alias: Set lock on boot\n trigger:\n - platform: time_pattern\n minutes: '*'\n condition:\n - condition: template\n value_template: '{{ states(''sensor.pc_mike_session'') == ''unlocked'' }}'\n action:\n - action: switch.turn_on\n target:\n entity_id: input_boolean.pc_mike_lock",
"config": [
{
"name": "PC Mike session sensor",
"room": "office",
"type": "sensor",
"id": {
"entity_id": "sensor.pc_mike_session",
"device_id": null
}
},
{
"name": "PC Mike lock input boolean",
"room": "office",
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.pc_mike_lock",
"device_id": null
}
}
]
},
{
"id": "Set pc_mike_lock and active based on session lock state and turn on PC when",
"automation": "- alias: Set pc_mike_lock and active based on session lock state and turn on PC when\n sensor information is in.\n description: ''\n trigger:\n - platform: state\n entity_id: sensor.pc_mike_session\n action:\n - choose:\n - conditions:\n - condition: state\n entity_id: sensor.pc_mike_session\n state: Unlocked\n sequence:\n - target:\n entity_id: input_boolean.pc_mike_lock\n action: input_boolean.turn_on\n - conditions:\n - condition: template\n value_template: '{{ is_state(''sensor.pc_mike_session'', ''unavailable'')\n or is_state(''sensor.pc_mike_session'', ''unknown'') or is_state(''sensor.pc_mike_session'',\n ''locked'') }}'\n sequence:\n - target:\n entity_id: input_boolean.pc_mike_lock\n action: input_boolean.turn_off\n - action: switch.turn_on\n target:\n entity_id: switch.pc_mike_wol\n mode: single",
"config": [
{
"name": "PC Mike session sensor",
"room": "office",
"type": "sensor",
"id": {
"entity_id": "sensor.pc_mike_session",
"device_id": null
}
},
{
"name": "PC Mike lock input boolean",
"room": "office",
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.pc_mike_lock",
"device_id": null
}
},
{
"name": "PC Mike switch",
"room": "office",
"type": "switch",
"id": {
"entity_id": "switch.pc_mike",
"device_id": null
}
},
{
"name": "PC Mike WOL switch",
"room": "office",
"type": "switch",
"id": {
"entity_id": "switch.pc_mike_wol",
"device_id": null
}
}
]
},
{
"id": "Dim lights weekdays after 23:00",
"automation": "- alias: Dim lights weekdays after 23:00\n mode: single\n triggers:\n - trigger: time\n at: '23:00:00'\n conditions:\n - condition: time\n weekday:\n - mon\n - tue\n - wed\n - thu\n - sun\n actions:\n - action: light.turn_on\n metadata: {}\n data:\n brightness_pct: 5\n target:\n device_id:\n - 2174e320c3d355e2ec34162a89c6a842\n - 02fffc146db35f9170df1998a6812199\n - action: light.turn_off\n metadata: {}\n data: {}\n target:\n device_id:\n - 2174e320c3d355e2ec34162a89c6a842\n - 02fffc146db35f9170df1998a6812199",
"config": [
{
"name": "Device 1 light",
"room": "bedroom",
"type": "light",
"id": {
"entity_id": null,
"device_id": "2174e320c3d355e2ec34162a89c6a842"
}
},
{
"name": "Device 2 light",
"room": "bedroom",
"type": "light",
"id": {
"entity_id": null,
"device_id": "02fffc146db35f9170df1998a6812199"
}
}
]
},
{
"id": "Undim lights weekdays after 06:40",
"automation": "- alias: Undim lights weekdays after 06:40\n mode: single\n triggers:\n - trigger: time\n at: 06:40:00\n conditions:\n - condition: time\n weekday:\n - mon\n - tue\n - wed\n - thu\n - fri\n actions:\n - action: light.turn_on\n metadata: {}\n data:\n brightness_pct: 70\n target:\n device_id:\n - 2174e320c3d355e2ec34162a89c6a842\n - action: light.turn_on\n metadata: {}\n data:\n brightness_pct: 50\n target:\n device_id: 02fffc146db35f9170df1998a6812199\n - action: light.turn_off\n metadata: {}\n data: {}\n target:\n device_id:\n - 2174e320c3d355e2ec34162a89c6a842\n - 02fffc146db35f9170df1998a6812199",
"config": [
{
"name": "Device 1 light",
"room": "bedroom",
"type": "light",
"id": {
"entity_id": null,
"device_id": "2174e320c3d355e2ec34162a89c6a842"
}
},
{
"name": "Device 2 light",
"room": "bedroom",
"type": "light",
"id": {
"entity_id": null,
"device_id": "02fffc146db35f9170df1998a6812199"
}
}
]
},
{
"id": "Dim lights weekends after 24:00",
"automation": "- alias: Dim lights weekends after 24:00\n mode: single\n triggers:\n - trigger: time\n at: 00:00:00\n conditions:\n - condition: time\n weekday:\n - fri\n - sat\n actions:\n - action: light.turn_on\n metadata: {}\n data:\n brightness_pct: 5\n target:\n device_id:\n - 2174e320c3d355e2ec34162a89c6a842\n - 02fffc146db35f9170df1998a6812199\n - action: light.turn_off\n metadata: {}\n data: {}\n target:\n device_id:\n - 2174e320c3d355e2ec34162a89c6a842\n - 02fffc146db35f9170df1998a6812199",
"config": [
{
"name": "Device 1 light",
"room": "bedroom",
"type": "light",
"id": {
"entity_id": null,
"device_id": "2174e320c3d355e2ec34162a89c6a842"
}
},
{
"name": "Device 2 light",
"room": "bedroom",
"type": "light",
"id": {
"entity_id": null,
"device_id": "02fffc146db35f9170df1998a6812199"
}
}
]
},
{
"id": "Undim lights weekends after 08:00",
"automation": "- alias: Undim lights weekends after 08:00\n mode: single\n triggers:\n - trigger: time\n at: 08:00:00\n conditions:\n - condition: time\n weekday:\n - sat\n - sun\n actions:\n - action: light.turn_on\n metadata: {}\n data:\n brightness_pct: 70\n target:\n device_id:\n - 2174e320c3d355e2ec34162a89c6a842\n - action: light.turn_on\n metadata: {}\n data:\n brightness_pct: 70\n target:\n device_id: 02fffc146db35f9170df1998a6812199\n - action: light.turn_off\n metadata: {}\n data: {}\n target:\n device_id:\n - 2174e320c3d355e2ec34162a89c6a842\n - 02fffc146db35f9170df1998a6812199",
"config": [
{
"name": "Device 1 light",
"room": "bedroom",
"type": "light",
"id": {
"entity_id": null,
"device_id": "2174e320c3d355e2ec34162a89c6a842"
}
},
{
"name": "Device 2 light",
"room": "bedroom",
"type": "light",
"id": {
"entity_id": null,
"device_id": "02fffc146db35f9170df1998a6812199"
}
}
]
},
{
"id": "Update Moving Average Daily Power Usage",
"automation": "- alias: Update Moving Average Daily Power Usage\n mode: single\n triggers:\n - trigger: state\n entity_id:\n - sensor.p1_meter_energy_import\n conditions: []\n actions:\n - action: homeassistant.update_entity\n metadata: {}\n data:\n entity_id:\n - sensor.gemiddeld_vebruik_per_dag",
"config": [
{
"name": "P1 meter energy import",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.p1_meter_energy_import",
"device_id": null
}
},
{
"name": "Average daily consumption",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.gemiddeld_vebruik_per_dag",
"device_id": null
}
}
]
},
{
"id": "Hal aan, bij bezetting",
"automation": "- alias: Hal aan, bij bezetting\n mode: single\n triggers:\n - type: occupied\n device_id: 2d02a851db74e4ec11ff3ae22e450821\n entity_id: 5b2d8aa75dc98370228e34e3f24ba0f0\n domain: binary_sensor\n trigger: device\n - type: occupied\n device_id: e2ef60d6f1f976dfe0c364719b5b79a8\n entity_id: d5b47dc01767e563447c9dc9186ccd8b\n domain: binary_sensor\n trigger: device\n conditions:\n - condition: or\n conditions:\n - type: is_illuminance\n condition: device\n device_id: e2ef60d6f1f976dfe0c364719b5b79a8\n entity_id: d22554a54b78d98ebdefb3868985c414\n domain: sensor\n below: 1200\n - type: is_illuminance\n condition: device\n device_id: 2d02a851db74e4ec11ff3ae22e450821\n entity_id: bbed1d39984abbf24b5008d8a96e37f0\n domain: sensor\n below: 10\n actions:\n - action: light.turn_on\n target:\n entity_id: light.hal",
"config": [
{
"name": "Hall motion sensor device occupancy",
"room": "hall",
"type": "binary_sensor",
"id": {
"entity_id": "5b2d8aa75dc98370228e34e3f24ba0f0",
"device_id": "2d02a851db74e4ec11ff3ae22e450821"
}
},
{
"name": "Hall motion sensor device illuminance",
"room": "hall",
"type": "sensor",
"id": {
"entity_id": "bbed1d39984abbf24b5008d8a96e37f0",
"device_id": "2d02a851db74e4ec11ff3ae22e450821"
}
},
{
"name": "Hall second motion sensor device occupancy",
"room": "hall",
"type": "binary_sensor",
"id": {
"entity_id": "d5b47dc01767e563447c9dc9186ccd8b",
"device_id": "e2ef60d6f1f976dfe0c364719b5b79a8"
}
},
{
"name": "Hall second motion sensor device illuminance",
"room": "hall",
"type": "sensor",
"id": {
"entity_id": "d22554a54b78d98ebdefb3868985c414",
"device_id": "e2ef60d6f1f976dfe0c364719b5b79a8"
}
},
{
"name": "Hall light",
"room": "hall",
"type": "light",
"id": {
"entity_id": "light.hal",
"device_id": null
}
}
]
},
{
"id": "Hal uit, zonder bezetting",
"automation": "- alias: Hal uit, zonder bezetting\n mode: single\n trigger:\n - platform: state\n entity_id:\n - binary_sensor.motion_hal_occupancy\n - binary_sensor.motion_kapstok_occupancy\n to: 'off'\n condition:\n - condition: state\n entity_id: light.hal\n state: 'on'\n - condition: state\n entity_id: binary_sensor.motion_hal_occupancy\n state: 'off'\n - condition: state\n entity_id: binary_sensor.motion_kapstok_occupancy\n state: 'off'\n actions:\n - action: light.turn_off\n target:\n entity_id: light.hal",
"config": [
{
"name": "Hall light",
"room": "hall",
"type": "light",
"id": {
"entity_id": "light.hal",
"device_id": null
}
},
{
"name": "Hall motion occupancy sensor",
"room": "hall",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.motion_hal_occupancy",
"device_id": null
}
},
{
"name": "Closet motion occupancy sensor",
"room": "hall",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.motion_kapstok_occupancy",
"device_id": null
}
}
]
},
{
"id": "Kantoor aan, bij beweging",
"automation": "- alias: Kantoor aan, bij beweging\n mode: single\n triggers:\n - type: occupied\n device_id: 668ef345afec87b1f1aec4ddd46187e3\n entity_id: 5a360ab6b47bd6ab824c3d2f358ebca3\n domain: binary_sensor\n trigger: device\n conditions:\n - type: is_illuminance\n condition: device\n device_id: 668ef345afec87b1f1aec4ddd46187e3\n entity_id: 89fb1f48db5b3b5330e443c3b19c5124\n domain: sensor\n below: 1200\n - condition: device\n type: is_off\n device_id: f9a01f0ec04b3b6cbcc5aefdce7ae76c\n entity_id: ceab16e01605389230a9da19817409d5\n domain: light\n actions:\n - action: light.turn_on\n target:\n entity_id: light.kantoor",
"config": [
{
"name": "Office light",
"room": "office",
"type": "light",
"id": {
"entity_id": "light.kantoor",
"device_id": null
}
},
{
"name": "Office motion sensor device occupancy",
"room": "office",
"type": "binary_sensor",
"id": {
"entity_id": "5a360ab6b47bd6ab824c3d2f358ebca3",
"device_id": "668ef345afec87b1f1aec4ddd46187e3"
}
},
{
"name": "Office motion sensor device illuminance",
"room": "office",
"type": "sensor",
"id": {
"entity_id": "89fb1f48db5b3b5330e443c3b19c5124",
"device_id": "668ef345afec87b1f1aec4ddd46187e3"
}
},
{
"name": "Office monitor light device",
"room": "office",
"type": "light",
"id": {
"entity_id": "ceab16e01605389230a9da19817409d5",
"device_id": "f9a01f0ec04b3b6cbcc5aefdce7ae76c"
}
}
]
},
{
"id": "Kantoor aan lamp, donker",
"automation": "- alias: Kantoor aan lamp, donker\n mode: single\n triggers:\n - type: illuminance\n device_id: 668ef345afec87b1f1aec4ddd46187e3\n entity_id: 89fb1f48db5b3b5330e443c3b19c5124\n domain: sensor\n trigger: device\n below: 1200\n conditions:\n - condition: or\n conditions:\n - condition: not\n conditions:\n - condition: device\n device_id: 9d29e8a29d0e305aaa42131571850594\n domain: media_player\n entity_id: a65b8647d257fce5cf20eb79392a1cfa\n type: is_off\n - condition: not\n conditions:\n - condition: device\n device_id: 9d29e8a29d0e305aaa42131571850594\n domain: media_player\n entity_id: a65b8647d257fce5cf20eb79392a1cfa\n type: is_idle\n actions:\n - action: light.turn_on\n target:\n entity_id: light.kantoor",
"config": [
{
"name": "Office light",
"room": "office",
"type": "light",
"id": {
"entity_id": "light.kantoor",
"device_id": null
}
},
{
"name": "Office motion sensor device occupancy",
"room": "office",
"type": "binary_sensor",
"id": {
"entity_id": "5a360ab6b47bd6ab824c3d2f358ebca3",
"device_id": "668ef345afec87b1f1aec4ddd46187e3"
}
},
{
"name": "Office motion sensor device illuminance",
"room": "office",
"type": "sensor",
"id": {
"entity_id": "89fb1f48db5b3b5330e443c3b19c5124",
"device_id": "668ef345afec87b1f1aec4ddd46187e3"
}
},
{
"name": "Office media player device",
"room": "office",
"type": "media_player",
"id": {
"entity_id": "a65b8647d257fce5cf20eb79392a1cfa",
"device_id": "9d29e8a29d0e305aaa42131571850594"
}
}
]
},
{
"id": "Kantoor uit, geen beweging en monitor uit.",
"automation": "- alias: Kantoor uit, geen beweging en monitor uit.\n mode: single\n triggers:\n - trigger: state\n entity_id:\n - binary_sensor.motion_kantoor_occupancy\n to: 'off'\n conditions:\n - condition: state\n entity_id: light.kantoor\n state: 'on'\n - condition: or\n conditions:\n - condition: state\n entity_id: media_player.32_odyssey_oled_g8\n state: 'off'\n - condition: state\n entity_id: media_player.32_odyssey_oled_g8\n state: standby\n actions:\n - action: light.turn_off\n target:\n entity_id: light.kantoor",
"config": [
{
"name": "Office light",
"room": "office",
"type": "light",
"id": {
"entity_id": "light.kantoor",
"device_id": null
}
},
{
"name": "Office motion occupancy sensor",
"room": "office",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.motion_kantoor_occupancy",
"device_id": null
}
},
{
"name": "Office Odyssey OLED monitor",
"room": "office",
"type": "media_player",
"id": {
"entity_id": "media_player.32_odyssey_oled_g8",
"device_id": null
}
}
]
},
{
"id": "Kantoor uit, monitor uit en geen beweging.",
"automation": "- alias: Kantoor uit, monitor uit en geen beweging.\n mode: single\n triggers:\n - trigger: state\n entity_id:\n - media_player.32_odyssey_oled_g8\n to: 'off'\n - trigger: state\n entity_id:\n - media_player.32_odyssey_oled_g8\n to: idle\n conditions:\n - condition: state\n entity_id: light.kantoor\n state: 'on'\n - condition: state\n entity_id: binary_sensor.motion_kantoor_occupancy\n state: 'off'\n actions:\n - action: light.turn_off\n target:\n entity_id: light.kantoor",
"config": [
{
"name": "Office light",
"room": "office",
"type": "light",
"id": {
"entity_id": "light.kantoor",
"device_id": null
}
},
{
"name": "Office motion occupancy sensor",
"room": "office",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.motion_kantoor_occupancy",
"device_id": null
}
},
{
"name": "Office Odyssey OLED monitor",
"room": "office",
"type": "media_player",
"id": {
"entity_id": "media_player.32_odyssey_oled_g8",
"device_id": null
}
}
]
},
{
"id": "Turn on NAS 09:00 on weekends.",
"automation": "- alias: Turn on NAS 09:00 on weekends.\n description: ''\n mode: single\n triggers:\n - trigger: time\n at: 09:30:00\n conditions:\n - condition: time\n weekday:\n - sat\n - sun\n actions:\n - action: wake_on_lan.send_magic_packet\n data:\n mac: secret nasmac\n broadcast_address: secret nasbroadcast\n - delay: 00:00:10\n - action: shell_command.nas_cpu\n - action: homeassistant.update_entity\n target:\n entity_id: sensor.nas_cpu\n - action: shell_command.nas_ram\n - action: homeassistant.update_entity\n target:\n entity_id: sensor.nas_ram\n - action: shell_command.nas_container_count\n - action: homeassistant.update_entity\n target:\n entity_id: sensor.nas_container_count\n - action: shell_command.nas_container_stopped\n - action: homeassistant.update_entity\n target:\n entity_id: sensor.nas_container_stopped\n - action: shell_command.nas_container_paused\n - action: homeassistant.update_entity\n target:\n entity_id: sensor.nas_container_paused\n - action: shell_command.nas_avg_disk_temp\n - action: homeassistant.update_entity\n target:\n entity_id: sensor.nas_avg_disk_temp\n - action: shell_command.nas_uptime\n - action: homeassistant.update_entity\n target:\n entity_id: sensor.nas_uptime",
"config": [
{
"name": "NAS CPU sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.nas_cpu",
"device_id": null
}
},
{
"name": "NAS RAM sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.nas_ram",
"device_id": null
}
},
{
"name": "NAS container count sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.nas_container_count",
"device_id": null
}
},
{
"name": "NAS container stopped sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.nas_container_stopped",
"device_id": null
}
},
{
"name": "NAS container paused sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.nas_container_paused",
"device_id": null
}
},
{
"name": "NAS average disk temperature sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.nas_avg_disk_temp",
"device_id": null
}
},
{
"name": "NAS uptime sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.nas_uptime",
"device_id": null
}
}
]
},
{
"id": "Turn on NAS 16:00 on weekdays.",
"automation": "- alias: Turn on NAS 16:00 on weekdays.\n mode: single\n triggers:\n - trigger: time\n at: '16:00:00'\n conditions:\n - condition: time\n weekday:\n - mon\n - tue\n - wed\n - thu\n - fri\n actions:\n - action: wake_on_lan.send_magic_packet\n data:\n mac: secret nasmac\n broadcast_address: secret nasbroadcast\n - delay: 00:00:10\n - action: shell_command.nas_cpu\n - action: homeassistant.update_entity\n target:\n entity_id: sensor.nas_cpu\n - action: shell_command.nas_ram\n - action: homeassistant.update_entity\n target:\n entity_id: sensor.nas_ram\n - action: shell_command.nas_container_count\n - action: homeassistant.update_entity\n target:\n entity_id: sensor.nas_container_count\n - action: shell_command.nas_container_stopped\n - action: homeassistant.update_entity\n target:\n entity_id: sensor.nas_container_stopped\n - action: shell_command.nas_container_paused\n - action: homeassistant.update_entity\n target:\n entity_id: sensor.nas_container_paused\n - action: shell_command.nas_avg_disk_temp\n - action: homeassistant.update_entity\n target:\n entity_id: sensor.nas_avg_disk_temp\n - action: shell_command.nas_uptime\n - action: homeassistant.update_entity\n target:\n entity_id: sensor.nas_uptime",
"config": [
{
"name": "NAS CPU sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.nas_cpu",
"device_id": null
}
},
{
"name": "NAS RAM sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.nas_ram",
"device_id": null
}
},
{
"name": "NAS container count sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.nas_container_count",
"device_id": null
}
},
{
"name": "NAS container stopped sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.nas_container_stopped",
"device_id": null
}
},
{
"name": "NAS container paused sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.nas_container_paused",
"device_id": null
}
},
{
"name": "NAS average disk temperature sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.nas_avg_disk_temp",
"device_id": null
}
},
{
"name": "NAS uptime sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.nas_uptime",
"device_id": null
}
}
]
},
{
"id": "Turn off NAS during the night.",
"automation": "- alias: Turn off NAS during the night.\n mode: single\n triggers:\n - trigger: time\n at: 00:10:00\n actions:\n - action: shell_command.nas_off",
"config": []
},
{
"id": "Run NAS Commands Daily at 16:30",
"automation": "- alias: Run NAS Commands Daily at 16:30\n trigger:\n - platform: time\n at: '16:30:00'\n action:\n - action: shell_command.nas_cpu\n - action: homeassistant.update_entity\n target:\n entity_id: sensor.nas_cpu\n - action: shell_command.nas_ram\n - action: homeassistant.update_entity\n target:\n entity_id: sensor.nas_ram\n - action: shell_command.nas_container_count\n - action: homeassistant.update_entity\n target:\n entity_id: sensor.nas_container_count\n - action: shell_command.nas_container_stopped\n - action: homeassistant.update_entity\n target:\n entity_id: sensor.nas_container_stopped\n - action: shell_command.nas_container_paused\n - action: homeassistant.update_entity\n target:\n entity_id: sensor.nas_container_paused\n - action: shell_command.nas_avg_disk_temp\n - action: homeassistant.update_entity\n target:\n entity_id: sensor.nas_avg_disk_temp\n - action: shell_command.nas_uptime\n - action: homeassistant.update_entity\n target:\n entity_id: sensor.nas_uptime",
"config": [
{
"name": "NAS CPU sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.nas_cpu",
"device_id": null
}
},
{
"name": "NAS RAM sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.nas_ram",
"device_id": null
}
},
{
"name": "NAS container count sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.nas_container_count",
"device_id": null
}
},
{
"name": "NAS container stopped sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.nas_container_stopped",
"device_id": null
}
},
{
"name": "NAS container paused sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.nas_container_paused",
"device_id": null
}
},
{
"name": "NAS average disk temperature sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.nas_avg_disk_temp",
"device_id": null
}
},
{
"name": "NAS uptime sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.nas_uptime",
"device_id": null
}
}
]
},
{
"id": "Fetch Random JPEG Data Every minute",
"automation": "- alias: Fetch Random JPEG Data Every minute\n trigger:\n - platform: time_pattern\n seconds: /10\n action:\n - action: shell_command.random_immich_photo_json\n - action: homeassistant.update_entity\n target:\n entity_id: sensor.random_immich_photo_json",
"config": [
{
"name": "Random Immich photo JSON sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.random_immich_photo_json",
"device_id": null
}
}
]
},
{
"id": "'8423590985012'",
"automation": "- alias: person_home\n id: '8423590985012'\n mode: parallel\n trigger:\n platform: state\n entity_id:\n - person.mike\n - person.anna\n from:\n - home\n - not_home\n to:\n - home\n - not_home\n action:\n action: mqtt.publish\n data:\n topic: 'homeassistant/persistence/{{ trigger.to_state.name | lower }}\n\n '\n payload: '{{ now() }}\n\n '\n retain: true",
"config": [
{
"name": "Mike person",
"room": null,
"type": "person",
"id": {
"entity_id": "person.mike",
"device_id": null
}
},
{
"name": "Anna person",
"room": null,
"type": "person",
"id": {
"entity_id": "person.anna",
"device_id": null
}
}
]
},
{
"id": "WC aan, bij bezetting",
"automation": "- alias: WC aan, bij bezetting\n description: Turn on WC light when occupied\n mode: single\n trigger:\n - platform: state\n entity_id: binary_sensor.presence_wc_presence\n to: 'on'\n action:\n - service: light.turn_on\n target:\n entity_id: light.toilet",
"config": [
{
"name": "Toilet light",
"room": "toilet",
"type": "light",
"id": {
"entity_id": "light.toilet",
"device_id": null
}
},
{
"name": "WC presence sensor",
"room": "toilet",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.presence_wc_presence",
"device_id": null
}
}
]
},
{
"id": "WC uit, zonder bezetting",
"automation": "- alias: WC uit, zonder bezetting\n description: Turn off WC light when unoccupied\n mode: single\n trigger:\n - platform: state\n entity_id: binary_sensor.presence_wc_presence\n to: 'off'\n condition:\n - condition: state\n entity_id: light.toilet\n state: 'on'\n action:\n - service: light.turn_off\n target:\n entity_id: light.toilet",
"config": [
{
"name": "Toilet light",
"room": "toilet",
"type": "light",
"id": {
"entity_id": "light.toilet",
"device_id": null
}
},
{
"name": "WC presence sensor",
"room": "toilet",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.presence_wc_presence",
"device_id": null
}
}
]
},
{
"id": "Douche aan, bij bezetting",
"automation": "- alias: Douche aan, bij bezetting\n description: Turn on shower light when occupied\n mode: single\n trigger:\n - platform: state\n entity_id: binary_sensor.presence_douche_presence\n to: 'on'\n action:\n - service: light.turn_on\n target:\n entity_id: light.badkamer",
"config": [
{
"name": "Shower presence sensor",
"room": "bathroom",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.presence_douche_presence",
"device_id": null
}
},
{
"name": "Bathroom light",
"room": "bathroom",
"type": "light",
"id": {
"entity_id": "light.badkamer",
"device_id": null
}
}
]
},
{
"id": "Douche uit, zonder bezetting",
"automation": "- alias: Douche uit, zonder bezetting\n description: Turn off shower light when unoccupied\n mode: single\n trigger:\n - platform: state\n entity_id: binary_sensor.presence_douche_presence\n to: 'off'\n condition:\n - condition: state\n entity_id: light.badkamer\n state: 'on'\n action:\n - service: light.turn_off\n target:\n entity_id: light.badkamer",
"config": [
{
"name": "Shower presence sensor",
"room": "bathroom",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.presence_douche_presence",
"device_id": null
}
},
{
"name": "Bathroom light",
"room": "bathroom",
"type": "light",
"id": {
"entity_id": "light.badkamer",
"device_id": null
}
}
]
},
{
"id": "Washok aan, bij bezetting",
"automation": "- alias: Washok aan, bij bezetting\n description: Turn on shower light when occupied\n mode: single\n trigger:\n - platform: state\n entity_id: binary_sensor.presence_washok_presence\n to: 'on'\n action:\n - service: light.turn_on\n target:\n entity_id: light.washok",
"config": [
{
"name": "Laundry room presence sensor",
"room": "laundry_room",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.presence_washok_presence",
"device_id": null
}
},
{
"name": "Laundry room light",
"room": "laundry_room",
"type": "light",
"id": {
"entity_id": "light.washok",
"device_id": null
}
}
]
},
{
"id": "Washok uit, zonder bezetting",
"automation": "- alias: Washok uit, zonder bezetting\n description: Turn off shower light when unoccupied\n mode: single\n trigger:\n - platform: state\n entity_id: binary_sensor.presence_washok_presence\n to: 'off'\n condition:\n - condition: state\n entity_id: light.washok\n state: 'on'\n action:\n - service: light.turn_off\n target:\n entity_id: light.washok",
"config": [
{
"name": "Laundry room presence sensor",
"room": "laundry_room",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.presence_washok_presence",
"device_id": null
}
},
{
"name": "Laundry room light",
"room": "laundry_room",
"type": "light",
"id": {
"entity_id": "light.washok",
"device_id": null
}
}
]
},
{
"id": "Set active spotify player when spotify state changes",
"automation": "- alias: Set active spotify player when spotify state changes\n mode: single\n triggers:\n - trigger: state\n entity_id:\n - media_player.spotify\n - media_player.spotify_anna\n conditions: []\n actions:\n - action: script.select_active_spotify_player",
"config": [
{
"name": "Spotify media player",
"room": "living_room",
"type": "media_player",
"id": {
"entity_id": "media_player.spotify",
"device_id": null
}
},
{
"name": "Anna's Spotify media player",
"room": "living_room",
"type": "media_player",
"id": {
"entity_id": "media_player.spotify_anna",
"device_id": null
}
}
]
},
{
"id": "Switch to Anna's Account if Spotify Source Changes",
"automation": "- alias: Switch to Anna's Account if Spotify Source Changes\n mode: single\n triggers:\n - trigger: state\n entity_id:\n - media_player.spotify\n attribute: source\n from: '[LG] webOS TV OLED55C46LA'\n to: iPhone\n - trigger: state\n entity_id:\n - media_player.spotify\n attribute: source\n from: '[LG] webOS TV OLED55C46LA'\n to: DESKTOP-VQI6KC7\n conditions:\n - condition: or\n conditions:\n - condition: state\n entity_id: media_player.spotify_anna\n state: 'off'\n - condition: state\n entity_id: media_player.spotify_anna\n state: idle\n - condition: state\n entity_id: media_player.spotify_anna\n state: standby\n - condition: state\n entity_id: media_player.spotify_anna\n state: paused\n actions:\n - action: spotcast.start\n data:\n account: anna\n entity_id: media_player.lg_webos_tv_oled55c46la\n shuffle: true\n random_song: true\n force_playback: true",
"config": [
{
"name": "Spotify media player",
"room": "living_room",
"type": "media_player",
"id": {
"entity_id": "media_player.spotify",
"device_id": null
}
},
{
"name": "Anna's Spotify media player",
"room": "living_room",
"type": "media_player",
"id": {
"entity_id": "media_player.spotify_anna",
"device_id": null
}
},
{
"name": "LG webOS TV",
"room": "living_room",
"type": "media_player",
"id": {
"entity_id": "media_player.lg_webos_tv_oled55c46la",
"device_id": null
}
}
]
},
{
"id": "Switch to Mike's Account if Anna's Spotify Source Changes",
"automation": "- alias: Switch to Mike's Account if Anna's Spotify Source Changes\n mode: single\n triggers:\n - trigger: state\n entity_id:\n - media_player.spotify_anna\n attribute: Source\n from: '[LG] webOS TV OLED55C46LA'\n to: iPhone\n conditions:\n - condition: or\n conditions:\n - condition: state\n entity_id: media_player.spotify\n state: 'off'\n - condition: state\n entity_id: media_player.spotify\n state: idle\n - condition: state\n entity_id: media_player.spotify\n state: standby\n - condition: state\n entity_id: media_player.spotify\n state: paused\n actions:\n - action: spotcast.start\n data:\n account: mike\n entity_id: media_player.lg_webos_tv_oled55c46la\n shuffle: true\n random_song: true\n force_playback: true",
"config": [
{
"name": "Spotify media player",
"room": "living_room",
"type": "media_player",
"id": {
"entity_id": "media_player.spotify",
"device_id": null
}
},
{
"name": "Anna's Spotify media player",
"room": "living_room",
"type": "media_player",
"id": {
"entity_id": "media_player.spotify_anna",
"device_id": null
}
},
{
"name": "LG webOS TV",
"room": "living_room",
"type": "media_player",
"id": {
"entity_id": "media_player.lg_webos_tv_oled55c46la",
"device_id": null
}
}
]
}
]