[ { "id": "Config - Update, Check & Restart", "automation": "- alias: Config - Update, Check & Restart\n mode: single\n triggers:\n - trigger: webhook\n allowed_methods:\n - POST\n local_only: false\n webhook_id: -Z7gIJKDlN9QKCG6poK8q67CT\n action:\n - action: shell_command.git_pull\n - action: homeassistant.check_config\n - action: homeassistant.restart", "config": [ { "name": "webhook config update", "room": null, "type": "webhook", "id": { "entity_id": null, "device_id": "-Z7gIJKDlN9QKCG6poK8q67CT" } } ] }, { "id": "Dehumidifier - Basement - Toggle", "automation": "- alias: Dehumidifier - Basement - Toggle\n mode: single\n triggers:\n - trigger: state\n entity_id:\n - sensor.octopus_energy_electricity_22l3444132_1610012177566_current_rate\n action:\n - choose:\n - conditions:\n - condition: state\n entity_id: input_boolean.cheap_electricity\n state: 'on'\n sequence:\n - action: switch.turn_on\n target:\n entity_id: switch.dehumidifier_basement_switch\n - conditions:\n - condition: state\n entity_id: input_boolean.cheap_electricity\n state: 'off'\n sequence:\n - action: switch.turn_off\n target:\n entity_id: switch.dehumidifier_basement_switch", "config": [ { "name": "electricity current rate sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.octopus_energy_electricity_22l3444132_1610012177566_current_rate", "device_id": null } }, { "name": "cheap electricity input boolean", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.cheap_electricity", "device_id": null } }, { "name": "basement dehumidifier switch", "room": "basement", "type": "switch", "id": { "entity_id": "switch.dehumidifier_basement_switch", "device_id": null } } ] }, { "id": "Dehumidifier - Bedroom - Toggle", "automation": "- alias: Dehumidifier - Bedroom - Toggle\n mode: single\n triggers:\n - trigger: state\n entity_id:\n - schedule.bedroom_dehumidifier\n - trigger: time_pattern\n minutes: /15\n actions:\n - choose:\n - conditions:\n - condition: state\n entity_id: schedule.bedroom_dehumidifier\n state: 'off'\n sequence:\n - action: switch.turn_off\n target:\n entity_id: switch.dehumidifier_bedroom_switch\n - conditions:\n - condition: state\n entity_id: schedule.bedroom_dehumidifier\n state: 'on'\n - condition: state\n entity_id: binary_sensor.bedroom_window_opening\n state: 'off'\n sequence:\n - action: switch.turn_on\n target:\n entity_id: switch.dehumidifier_bedroom_switch", "config": [ { "name": "bedroom dehumidifier schedule", "room": "bedroom", "type": "schedule", "id": { "entity_id": "schedule.bedroom_dehumidifier", "device_id": null } }, { "name": "bedroom dehumidifier switch", "room": "bedroom", "type": "switch", "id": { "entity_id": "switch.dehumidifier_bedroom_switch", "device_id": null } }, { "name": "bedroom window opening sensor", "room": "bedroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.bedroom_window_opening", "device_id": null } } ] }, { "id": "Dehumidifier - Bedroom - Window", "automation": "- alias: Dehumidifier - Bedroom - Window\n mode: single\n triggers:\n - trigger: state\n entity_id:\n - binary_sensor.bedroom_window_opening\n action:\n - choose:\n - conditions:\n - condition: state\n entity_id: binary_sensor.bedroom_window_opening\n state: 'on'\n sequence:\n - action: switch.turn_off\n target:\n entity_id: switch.dehumidifier_bedroom_switch\n - conditions:\n - condition: state\n entity_id: binary_sensor.bedroom_window_opening\n state: 'off'\n sequence:\n - choose:\n - conditions:\n - condition: state\n entity_id: schedule.bedroom_dehumidifier\n state: 'on'\n sequence:\n - action: switch.turn_on\n target:\n entity_id: switch.dehumidifier_bedroom_switch\n - conditions:\n - condition: state\n entity_id: schedule.bedroom_dehumidifier\n state: 'off'\n sequence:\n - action: switch.turn_off\n target:\n entity_id: switch.dehumidifier_bedroom_switch", "config": [ { "name": "bedroom dehumidifier schedule", "room": "bedroom", "type": "schedule", "id": { "entity_id": "schedule.bedroom_dehumidifier", "device_id": null } }, { "name": "bedroom dehumidifier switch", "room": "bedroom", "type": "switch", "id": { "entity_id": "switch.dehumidifier_bedroom_switch", "device_id": null } }, { "name": "bedroom window opening sensor", "room": "bedroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.bedroom_window_opening", "device_id": null } } ] }, { "id": "Cheap Energy", "automation": "- alias: Cheap Energy\n description: Determines whether to set the Cheap Electricity switch to on/off\n mode: single\n triggers:\n - trigger: state\n entity_id:\n - sensor.octopus_energy_electricity_22l3444132_1610012177566_current_rate\n action:\n - choose:\n - conditions:\n - condition: template\n value_template: '{{ states(''sensor.octopus_energy_electricity_22l3444132_1610012177566_current_rate'')\n | float > states(''sensor.average_electricity_rate'') | float }}'\n sequence:\n - action: input_boolean.turn_off\n target:\n entity_id: input_boolean.cheap_electricity\n - conditions:\n - condition: template\n value_template: '{{ states(''sensor.octopus_energy_electricity_22l3444132_1610012177566_current_rate'')\n | float < states(''sensor.average_electricity_rate'') | float }}'\n sequence:\n - action: input_boolean.turn_on\n target:\n entity_id: input_boolean.cheap_electricity", "config": [ { "name": "electricity current rate sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.octopus_energy_electricity_22l3444132_1610012177566_current_rate", "device_id": null } }, { "name": "cheap electricity input boolean", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.cheap_electricity", "device_id": null } }, { "name": "average electricity rate sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.average_electricity_rate", "device_id": null } } ] }, { "id": "Heating - Attic - Schedule", "automation": "- alias: Heating - Attic - Schedule\n mode: single\n triggers:\n - trigger: state\n entity_id:\n - schedule.attic_wfh\n - trigger: state\n entity_id:\n - input_boolean.home_state\n - trigger: time_pattern\n minutes: /15\n action:\n - choose:\n - conditions:\n - condition: state\n entity_id: schedule.attic_wfh\n state: 'on'\n sequence:\n - choose:\n - conditions:\n - condition: state\n entity_id: input_boolean.home_state\n state: 'on'\n sequence:\n - action: climate.set_temperature\n data:\n temperature: 21\n target:\n entity_id: climate.attic\n - conditions:\n - condition: state\n entity_id: input_boolean.home_state\n state: 'off'\n sequence:\n - action: climate.set_temperature\n data:\n temperature: 18\n target:\n entity_id: climate.attic\n - conditions:\n - condition: state\n entity_id: schedule.attic_wfh\n state: 'off'\n sequence:\n - action: climate.set_temperature\n data:\n temperature: 20\n target:\n entity_id: climate.attic", "config": [ { "name": "attic wfh schedule", "room": "attic", "type": "schedule", "id": { "entity_id": "schedule.attic_wfh", "device_id": null } }, { "name": "home state input boolean", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.home_state", "device_id": null } }, { "name": "attic climate", "room": "attic", "type": "climate", "id": { "entity_id": "climate.attic", "device_id": null } } ] }, { "id": "Heating - Basement - Schedule", "automation": "- alias: Heating - Basement - Schedule\n mode: single\n triggers:\n - trigger: time_pattern\n minutes: /15\n action:\n - choose:\n - conditions:\n - condition: numeric_state\n entity_id: sensor.basement_humidity\n above: 70\n - condition: state\n entity_id: switch.dehumidifier_basement_switch\n state: 'on'\n sequence:\n - action: climate.set_temperature\n data:\n temperature: 21\n target:\n entity_id: climate.basement\n default:\n - action: climate.set_temperature\n data:\n temperature: 18\n target:\n entity_id: climate.basement", "config": [ { "name": "basement dehumidifier switch", "room": "basement", "type": "switch", "id": { "entity_id": "switch.dehumidifier_basement_switch", "device_id": null } }, { "name": "basement humidity sensor", "room": "basement", "type": "sensor", "id": { "entity_id": "sensor.basement_humidity", "device_id": null } }, { "name": "basement climate", "room": "basement", "type": "climate", "id": { "entity_id": "climate.basement", "device_id": null } } ] }, { "id": "Heating - Bathroom - Schedule", "automation": "- alias: Heating - Bathroom - Schedule\n mode: single\n triggers:\n - trigger: state\n entity_id:\n - schedule.bathroom_boost\n - trigger: time_pattern\n minutes: /15\n action:\n - choose:\n - conditions:\n - condition: state\n entity_id: schedule.bathroom_boost\n state: 'on'\n sequence:\n - choose:\n - conditions:\n - condition: state\n entity_id: input_boolean.home_state\n state: 'on'\n sequence:\n - action: climate.set_temperature\n data:\n temperature: 25\n target:\n entity_id: climate.bathroom\n - conditions:\n - condition: state\n entity_id: input_boolean.home_state\n state: 'off'\n sequence:\n - action: climate.set_temperature\n data:\n temperature: 17\n target:\n entity_id: climate.bathroom\n - conditions:\n - condition: state\n entity_id: schedule.bathroom_boost\n state: 'off'\n sequence:\n - action: climate.set_temperature\n data:\n temperature: 19\n target:\n entity_id: climate.bathroom", "config": [ { "name": "home state input boolean", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.home_state", "device_id": null } }, { "name": "bathroom boost schedule", "room": "bathroom", "type": "schedule", "id": { "entity_id": "schedule.bathroom_boost", "device_id": null } }, { "name": "bathroom climate", "room": "bathroom", "type": "climate", "id": { "entity_id": "climate.bathroom", "device_id": null } } ] }, { "id": "Heating - Bedroom - Schedule", "automation": "- alias: Heating - Bedroom - Schedule\n mode: single\n triggers:\n - trigger: state\n entity_id:\n - schedule.bedroom_daytime\n - trigger: state\n entity_id:\n - input_boolean.home_state\n - trigger: time_pattern\n minutes: /15\n condition:\n - condition: state\n entity_id: binary_sensor.upstairs_windows\n state: 'off'\n action:\n - choose:\n - conditions:\n - condition: state\n entity_id: schedule.bedroom_daytime\n state: 'on'\n sequence:\n - choose:\n - conditions:\n - condition: state\n entity_id: input_boolean.home_state\n state: 'on'\n sequence:\n - action: climate.set_temperature\n data:\n temperature: 20\n target:\n entity_id: climate.bedroom\n - conditions:\n - condition: state\n entity_id: input_boolean.home_state\n state: 'off'\n sequence:\n - action: climate.set_temperature\n data:\n temperature: 18\n target:\n entity_id: climate.bedroom\n - conditions:\n - condition: state\n entity_id: schedule.bedroom_daytime\n state: 'off'\n sequence:\n - action: climate.set_temperature\n data:\n temperature: 19\n target:\n entity_id: climate.bedroom", "config": [ { "name": "home state input boolean", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.home_state", "device_id": null } }, { "name": "bedroom daytime schedule", "room": "bedroom", "type": "schedule", "id": { "entity_id": "schedule.bedroom_daytime", "device_id": null } }, { "name": "upstairs windows sensor", "room": "upstairs", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.upstairs_windows", "device_id": null } }, { "name": "bedroom climate", "room": "bedroom", "type": "climate", "id": { "entity_id": "climate.bedroom", "device_id": null } } ] }, { "id": "Heating - Bedroom - Window", "automation": "- alias: Heating - Bedroom - Window\n mode: single\n triggers:\n - trigger: state\n entity_id:\n - binary_sensor.upstairs_windows\n action:\n - choose:\n - conditions:\n - condition: state\n entity_id: binary_sensor.upstairs_windows\n state: 'on'\n sequence:\n - action: climate.turn_off\n target:\n entity_id: climate.bedroom\n - conditions:\n - condition: state\n entity_id: binary_sensor.upstairs_windows\n state: 'off'\n sequence:\n - choose:\n - conditions:\n - condition: state\n entity_id: schedule.bedroom_daytime\n state: 'on'\n sequence:\n - action: climate.set_temperature\n data:\n temperature: 20\n target:\n entity_id: climate.bedroom\n - conditions:\n - condition: state\n entity_id: schedule.bedroom_daytime\n state: 'off'\n sequence:\n - action: climate.set_temperature\n data:\n temperature: 18\n target:\n entity_id: climate.bedroom", "config": [ { "name": "bedroom daytime schedule", "room": "bedroom", "type": "schedule", "id": { "entity_id": "schedule.bedroom_daytime", "device_id": null } }, { "name": "upstairs windows sensor", "room": "upstairs", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.upstairs_windows", "device_id": null } }, { "name": "bedroom climate", "room": "bedroom", "type": "climate", "id": { "entity_id": "climate.bedroom", "device_id": null } } ] }, { "id": "Heating - Hallway - Schedule", "automation": "- alias: Heating - Hallway - Schedule\n mode: single\n triggers:\n - trigger: state\n entity_id:\n - schedule.hallway_daytime\n - trigger: state\n entity_id:\n - input_boolean.home_state\n - trigger: time_pattern\n minutes: /15\n condition:\n - condition: state\n entity_id: binary_sensor.living_room_window_opening\n state: 'off'\n action:\n - choose:\n - conditions:\n - condition: state\n entity_id: schedule.hallway_daytime\n state: 'on'\n sequence:\n - choose:\n - conditions:\n - condition: state\n entity_id: input_boolean.home_state\n state: 'on'\n sequence:\n - action: climate.set_temperature\n data:\n temperature: 21\n target:\n entity_id: climate.hallway\n - conditions:\n - condition: state\n entity_id: input_boolean.home_state\n state: 'off'\n sequence:\n - action: climate.set_temperature\n data:\n temperature: 18\n target:\n entity_id: climate.hallway\n - conditions:\n - condition: state\n entity_id: schedule.hallway_daytime\n state: 'off'\n sequence:\n - action: climate.set_temperature\n data:\n temperature: 20\n target:\n entity_id: climate.hallway", "config": [ { "name": "home state input boolean", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.home_state", "device_id": null } }, { "name": "hallway daytime schedule", "room": "hallway", "type": "schedule", "id": { "entity_id": "schedule.hallway_daytime", "device_id": null } }, { "name": "living room window opening sensor", "room": "living_room", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.living_room_window_opening", "device_id": null } }, { "name": "hallway climate", "room": "hallway", "type": "climate", "id": { "entity_id": "climate.hallway", "device_id": null } } ] }, { "id": "Heating - Hallway - Window", "automation": "- alias: Heating - Hallway - Window\n mode: single\n triggers:\n - trigger: state\n entity_id:\n - binary_sensor.living_room_window_opening\n action:\n - choose:\n - conditions:\n - condition: state\n entity_id: binary_sensor.living_room_window_opening\n state: 'on'\n sequence:\n - action: climate.turn_off\n target:\n entity_id: climate.hallway\n - conditions:\n - condition: state\n entity_id: binary_sensor.living_room_window_opening\n state: 'off'\n sequence:\n - choose:\n - conditions:\n - condition: state\n entity_id: schedule.hallway_daytime\n state: 'on'\n sequence:\n - action: climate.set_temperature\n data:\n temperature: 21\n target:\n entity_id: climate.hallway\n - conditions:\n - condition: state\n entity_id: schedule.hallway_daytime\n state: 'off'\n sequence:\n - action: climate.set_temperature\n data:\n temperature: 20\n target:\n entity_id: climate.hallway", "config": [ { "name": "hallway daytime schedule", "room": "hallway", "type": "schedule", "id": { "entity_id": "schedule.hallway_daytime", "device_id": null } }, { "name": "living room window opening sensor", "room": "living_room", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.living_room_window_opening", "device_id": null } }, { "name": "hallway climate", "room": "hallway", "type": "climate", "id": { "entity_id": "climate.hallway", "device_id": null } } ] }, { "id": "Heating - Kitchen - Schedule", "automation": "- alias: Heating - Kitchen - Schedule\n mode: single\n triggers:\n - trigger: state\n entity_id:\n - schedule.kitchen_evening\n - trigger: state\n entity_id:\n - input_boolean.home_state\n - trigger: time_pattern\n minutes: /15\n action:\n - choose:\n - conditions:\n - condition: state\n entity_id: schedule.kitchen_evening\n state: 'on'\n sequence:\n - choose:\n - conditions:\n - condition: state\n entity_id: input_boolean.home_state\n state: 'on'\n sequence:\n - action: climate.set_temperature\n data:\n temperature: 21\n target:\n entity_id: climate.kitchen\n - conditions:\n - condition: state\n entity_id: input_boolean.home_state\n state: 'off'\n sequence:\n - action: climate.set_temperature\n data:\n temperature: 19\n target:\n entity_id: climate.kitchen\n - conditions:\n - condition: state\n entity_id: schedule.kitchen_evening\n state: 'off'\n sequence:\n - action: climate.set_temperature\n data:\n temperature: 20\n target:\n entity_id: climate.kitchen", "config": [ { "name": "home state input boolean", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.home_state", "device_id": null } }, { "name": "kitchen evening schedule", "room": "kitchen", "type": "schedule", "id": { "entity_id": "schedule.kitchen_evening", "device_id": null } }, { "name": "kitchen climate", "room": "kitchen", "type": "climate", "id": { "entity_id": "climate.kitchen", "device_id": null } } ] }, { "id": "Heating - Living Room - Schedule", "automation": "- alias: Heating - Living Room - Schedule\n mode: single\n triggers:\n - trigger: state\n entity_id:\n - schedule.living_room_evening\n - trigger: state\n entity_id:\n - input_boolean.home_state\n - trigger: time_pattern\n minutes: /15\n condition:\n - condition: state\n entity_id: binary_sensor.living_room_window_opening\n state: 'off'\n action:\n - choose:\n - conditions:\n - condition: state\n entity_id: schedule.living_room_evening\n state: 'on'\n sequence:\n - choose:\n - conditions:\n - condition: state\n entity_id: input_boolean.home_state\n state: 'on'\n sequence:\n - action: climate.set_temperature\n data:\n temperature: 22\n target:\n entity_id: climate.living_room\n - conditions:\n - condition: state\n entity_id: input_boolean.home_state\n state: 'off'\n sequence:\n - action: climate.set_temperature\n data:\n temperature: 18\n target:\n entity_id: climate.living_room\n - conditions:\n - condition: state\n entity_id: schedule.living_room_evening\n state: 'off'\n sequence:\n - action: climate.set_temperature\n data:\n temperature: 20\n target:\n entity_id: climate.living_room", "config": [ { "name": "home state input boolean", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.home_state", "device_id": null } }, { "name": "living room window opening sensor", "room": "living_room", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.living_room_window_opening", "device_id": null } }, { "name": "living room evening schedule", "room": "living_room", "type": "schedule", "id": { "entity_id": "schedule.living_room_evening", "device_id": null } }, { "name": "living room climate", "room": "living_room", "type": "climate", "id": { "entity_id": "climate.living_room", "device_id": null } } ] }, { "id": "Heating - Living Room - Window", "automation": "- alias: Heating - Living Room - Window\n mode: single\n triggers:\n - trigger: state\n entity_id:\n - binary_sensor.living_room_window_opening\n action:\n - choose:\n - conditions:\n - condition: state\n entity_id: binary_sensor.living_room_window_opening\n state: 'on'\n sequence:\n - action: climate.turn_off\n target:\n entity_id: climate.living_room\n - conditions:\n - condition: state\n entity_id: binary_sensor.living_room_window_opening\n state: 'off'\n sequence:\n - choose:\n - conditions:\n - condition: state\n entity_id: schedule.living_room_evening\n state: 'on'\n sequence:\n - action: climate.set_temperature\n data:\n temperature: 22\n target:\n entity_id: climate.living_room\n - conditions:\n - condition: state\n entity_id: schedule.living_room_evening\n state: 'off'\n sequence:\n - action: climate.set_temperature\n data:\n temperature: 20\n target:\n entity_id: climate.living_room", "config": [ { "name": "living room window opening sensor", "room": "living_room", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.living_room_window_opening", "device_id": null } }, { "name": "living room evening schedule", "room": "living_room", "type": "schedule", "id": { "entity_id": "schedule.living_room_evening", "device_id": null } }, { "name": "living room climate", "room": "living_room", "type": "climate", "id": { "entity_id": "climate.living_room", "device_id": null } } ] }, { "id": "Heating - Nursery - Schedule", "automation": "- alias: Heating - Nursery - Schedule\n mode: single\n triggers:\n - trigger: state\n entity_id:\n - input_boolean.home_state\n - trigger: time_pattern\n minutes: /15\n action:\n - choose:\n - conditions:\n - condition: state\n entity_id: input_boolean.home_state\n state: 'on'\n sequence:\n - action: climate.set_temperature\n data:\n temperature: 21\n target:\n entity_id: climate.nursery\n - conditions:\n - condition: state\n entity_id: input_boolean.home_state\n state: 'off'\n sequence:\n - action: climate.set_temperature\n data:\n temperature: 19\n target:\n entity_id: climate.nursery", "config": [ { "name": "home state input boolean", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.home_state", "device_id": null } }, { "name": "nursery climate", "room": "nursery", "type": "climate", "id": { "entity_id": "climate.nursery", "device_id": null } } ] }, { "id": "Homekit Presence - Restart", "automation": "- alias: Homekit Presence - Restart\n mode: single\n triggers:\n - trigger: homeassistant\n event: start\n action:\n - parallel:\n - if:\n - condition: state\n entity_id: input_boolean.bertie_present\n state: 'on'\n then:\n - action: device_tracker.see\n data:\n dev_id: homekit_bertie\n location_name: home\n - if:\n - condition: state\n entity_id: input_boolean.stoof_present\n state: 'on'\n then:\n - action: device_tracker.see\n data:\n dev_id: homekit_stoof\n location_name: home\n - if:\n - condition: state\n entity_id: input_boolean.housesitter_present\n state: 'on'\n then:\n - action: device_tracker.see\n data:\n dev_id: homekit_housesitter\n location_name: home", "config": [ { "name": "bertie present input boolean", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.bertie_present", "device_id": null } }, { "name": "stoof present input boolean", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.stoof_present", "device_id": null } }, { "name": "housesitter present input boolean", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.housesitter_present", "device_id": null } }, { "name": "homekit bertie device tracker", "room": null, "type": "device_tracker", "id": { "entity_id": null, "device_id": "homekit_bertie" } }, { "name": "homekit stoof device tracker", "room": null, "type": "device_tracker", "id": { "entity_id": null, "device_id": "homekit_stoof" } }, { "name": "homekit housesitter device tracker", "room": null, "type": "device_tracker", "id": { "entity_id": null, "device_id": "homekit_housesitter" } } ] }, { "id": "Homekit Presence - Toggle", "automation": "- alias: Homekit Presence - Toggle\n mode: parallel\n max: 10\n triggers:\n - trigger: state\n entity_id: input_boolean.bertie_present\n - trigger: state\n entity_id: input_boolean.stoof_present\n - trigger: state\n entity_id: input_boolean.housesitter_present\n action:\n - choose:\n - conditions:\n - condition: template\n value_template: '{{ trigger.to_state.state == ''on'' }}'\n sequence:\n - action: device_tracker.see\n data_template:\n dev_id: homekit_{{ trigger.to_state.name }}\n location_name: home\n - conditions:\n - condition: template\n value_template: '{{ trigger.to_state.state == ''off'' }}'\n sequence:\n - action: device_tracker.see\n data_template:\n dev_id: homekit_{{ trigger.to_state.name }}\n location_name: not_home", "config": [ { "name": "bertie present input boolean", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.bertie_present", "device_id": null } }, { "name": "stoof present input boolean", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.stoof_present", "device_id": null } }, { "name": "housesitter present input boolean", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.housesitter_present", "device_id": null } } ] }, { "id": "Home State - Update", "automation": "- alias: Home State - Update\n mode: single\n triggers:\n - trigger: state\n entity_id:\n - group.family\n action:\n - choose:\n - conditions:\n - condition: or\n conditions:\n - condition: state\n entity_id: group.family\n state: home\n sequence:\n - action: input_boolean.turn_on\n target:\n entity_id: input_boolean.home_state\n - conditions:\n - condition: state\n entity_id: group.family\n state: not_home\n sequence:\n - action: input_boolean.turn_off\n target:\n entity_id:\n - input_boolean.home_state", "config": [ { "name": "home state input boolean", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.home_state", "device_id": null } }, { "name": "family group", "room": null, "type": "group", "id": { "entity_id": "group.family", "device_id": null } } ] }, { "id": "Lights - Bedroom - Schedule", "automation": "- alias: Lights - Bedroom - Schedule\n mode: single\n triggers:\n - trigger: time\n at: '20:30:00'\n condition:\n - condition: or\n conditions:\n - condition: state\n entity_id: person.bertie\n state: home\n - condition: state\n entity_id: person.stoof\n state: home\n action:\n - action: light.turn_on\n target:\n entity_id:\n - light.bedroom\n data:\n kelvin: 2600\n brightness_pct: 100", "config": [ { "name": "bertie person", "room": null, "type": "person", "id": { "entity_id": "person.bertie", "device_id": null } }, { "name": "stoof person", "room": null, "type": "person", "id": { "entity_id": "person.stoof", "device_id": null } }, { "name": "bedroom light", "room": "bedroom", "type": "light", "id": { "entity_id": "light.bedroom", "device_id": null } } ] }, { "id": "Lights - Landing - Schedule", "automation": "- alias: Lights - Landing - Schedule\n mode: single\n triggers:\n - trigger: numeric_state\n entity_id: sun.sun\n attribute: elevation\n below: 5\n - trigger: time\n at: '21:00:00'\n condition:\n - condition: state\n entity_id: input_boolean.home_state\n state: 'on'\n action:\n - choose:\n - conditions:\n - condition: time\n after: '14:30:00'\n before: '21:00:00'\n sequence:\n - action: light.turn_on\n target:\n entity_id: light.hare\n data:\n kelvin: 2600\n brightness_pct: 70\n - conditions:\n - condition: time\n after: '21:00:00'\n before: 06:00:00\n sequence:\n - action: light.turn_off\n target:\n entity_id:\n - light.hare", "config": [ { "name": "home state input boolean", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.home_state", "device_id": null } }, { "name": "sun sun", "room": null, "type": "sun", "id": { "entity_id": "sun.sun", "device_id": null } }, { "name": "hare light", "room": "landing", "type": "light", "id": { "entity_id": "light.hare", "device_id": null } } ] }, { "id": "Lights - Living Room - Schedule", "automation": "- alias: Lights - Living Room - Schedule\n mode: single\n triggers:\n - trigger: numeric_state\n entity_id: sun.sun\n attribute: elevation\n below: 7\n - trigger: time\n at: 01:00:00\n condition:\n - condition: state\n entity_id: input_boolean.home_state\n state: 'on'\n - condition: state\n entity_id: light.living_room\n state: 'off'\n action:\n - choose:\n - conditions:\n - condition: time\n after: '14:30:00'\n before: '23:59:00'\n sequence:\n - action: light.turn_on\n target:\n entity_id: light.living_room\n data:\n kelvin: 2600\n brightness_pct: 70\n - conditions:\n - condition: time\n after: '23:59:00'\n before: 06:00:00\n sequence:\n - action: light.turn_off\n target:\n entity_id:\n - light.living_room", "config": [ { "name": "home state input boolean", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.home_state", "device_id": null } }, { "name": "sun sun", "room": null, "type": "sun", "id": { "entity_id": "sun.sun", "device_id": null } }, { "name": "living room light", "room": "living_room", "type": "light", "id": { "entity_id": "light.living_room", "device_id": null } } ] }, { "id": "Lights - Living Room - TV", "automation": "- alias: Lights - Living Room - TV\n mode: single\n triggers:\n - trigger: state\n from: playing\n entity_id:\n - media_player.plex_plex_for_apple_tv_apple_tv\n - trigger: state\n to: playing\n entity_id:\n - media_player.plex_plex_for_apple_tv_apple_tv\n condition:\n - condition: state\n entity_id: input_boolean.home_state\n state: 'on'\n action:\n - choose:\n - conditions:\n - condition: state\n entity_id: media_player.plex_plex_for_apple_tv_apple_tv\n state: playing\n sequence:\n - action: light.turn_on\n target:\n entity_id: light.living_room\n data:\n kelvin: 2600\n brightness_pct: 30\n default:\n - action: light.turn_on\n target:\n entity_id: light.living_room\n data:\n kelvin: 2600\n brightness_pct: 60", "config": [ { "name": "home state input boolean", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.home_state", "device_id": null } }, { "name": "living room light", "room": "living_room", "type": "light", "id": { "entity_id": "light.living_room", "device_id": null } }, { "name": "plex apple tv media player", "room": "living_room", "type": "media_player", "id": { "entity_id": "media_player.plex_plex_for_apple_tv_apple_tv", "device_id": null } } ] }, { "id": "Lights - Home - Presence", "automation": "- alias: Lights - Home - Presence\n mode: single\n triggers:\n - trigger: state\n entity_id:\n - input_boolean.home_state\n action:\n - choose:\n - conditions:\n - condition: state\n entity_id: input_boolean.home_state\n state: 'on'\n - condition: numeric_state\n entity_id: sun.sun\n attribute: elevation\n below: 5\n sequence:\n - action: light.turn_on\n target:\n entity_id:\n - light.bedroom\n - light.landing\n - light.living_room\n - light.study_corner\n data:\n brightness_pct: 100\n - conditions:\n - condition: state\n entity_id: input_boolean.home_state\n state: 'off'\n sequence:\n - action: switch.turn_off\n target:\n entity_id:\n - switch.attic_workstation_switch\n - action: light.turn_off\n target:\n entity_id:\n - light.bedroom\n - light.landing\n - light.living_room\n - light.study", "config": [ { "name": "home state input boolean", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.home_state", "device_id": null } }, { "name": "bedroom light", "room": "bedroom", "type": "light", "id": { "entity_id": "light.bedroom", "device_id": null } }, { "name": "sun sun", "room": null, "type": "sun", "id": { "entity_id": "sun.sun", "device_id": null } }, { "name": "living room light", "room": "living_room", "type": "light", "id": { "entity_id": "light.living_room", "device_id": null } }, { "name": "landing light", "room": "landing", "type": "light", "id": { "entity_id": "light.landing", "device_id": null } }, { "name": "study corner light", "room": "study", "type": "light", "id": { "entity_id": "light.study_corner", "device_id": null } }, { "name": "study light", "room": "study", "type": "light", "id": { "entity_id": "light.study", "device_id": null } }, { "name": "attic workstation switch", "room": "attic", "type": "switch", "id": { "entity_id": "switch.attic_workstation_switch", "device_id": null } } ] }, { "id": "Sensor Low Battery", "automation": "- alias: Sensor Low Battery\n triggers:\n - trigger: numeric_state\n below: 10\n entity_id:\n - sensor.nursery_window_battery\n - trigger: state\n to: unavailable\n for: 06:00:00\n entity_id:\n - sensor.nursery_window_battery\n action:\n - action: notify.mobile_app_berties_iphone\n data:\n message: 🔋 The {{ state_attr(trigger.entity_id, 'friendly_name') }} level is\n {{ trigger.to_state.state }}", "config": [ { "name": "nursery window battery sensor", "room": "nursery", "type": "sensor", "id": { "entity_id": "sensor.nursery_window_battery", "device_id": null } } ] }, { "id": "Octopus - Wheel of Fortune spins", "automation": "- alias: Octopus - Wheel of Fortune spins\n mode: single\n triggers:\n - trigger: numeric_state\n above: 0\n entity_id:\n - sensor.octopus_energy_a_e94ebeba_wheel_of_fortune_spins_electricity\n - sensor.octopus_energy_a_e94ebeba_wheel_of_fortune_spins_gas\n action:\n - action: persistent_notification.create\n data:\n title: Wheel of Fortune spins available\n message: Octopus - Wheel of Fortune spins available", "config": [ { "name": "octopus wheel of fortune electricity spins", "room": null, "type": "sensor", "id": { "entity_id": "sensor.octopus_energy_a_e94ebeba_wheel_of_fortune_spins_electricity", "device_id": null } }, { "name": "octopus wheel of fortune gas spins", "room": null, "type": "sensor", "id": { "entity_id": "sensor.octopus_energy_a_e94ebeba_wheel_of_fortune_spins_gas", "device_id": null } } ] }, { "id": "Hass Startup Notification", "automation": "- alias: Hass Startup Notification\n triggers:\n - trigger: homeassistant\n event: shutdown\n action:\n - action: notify.mobile_app_berties_iphone\n data:\n message: 🌶 Home Assistant is shutting down", "config": [] }, { "id": "Hass Startup Notification", "automation": "- alias: Hass Startup Notification\n triggers:\n - trigger: homeassistant\n event: start\n action:\n - action: notify.mobile_app_berties_iphone\n data:\n message: 🌵 Home Assistant has started", "config": [] }, { "id": "Update Available Notification", "automation": "- alias: Update Available Notification\n triggers:\n - trigger: state\n entity_id:\n - update.home_assistant_core_update\n - update.home_assistant_operating_system_update\n - update.home_assistant_supervisor_update\n to: 'on'\n action:\n - action: notify.mobile_app_berties_iphone\n data:\n message: 🛵 {{ state_attr(trigger.entity_id, 'friendly_name') }}", "config": [ { "name": "home assistant core update", "room": null, "type": "update", "id": { "entity_id": "update.home_assistant_core_update", "device_id": null } }, { "name": "home assistant os update", "room": null, "type": "update", "id": { "entity_id": "update.home_assistant_operating_system_update", "device_id": null } }, { "name": "home assistant supervisor update", "room": null, "type": "update", "id": { "entity_id": "update.home_assistant_supervisor_update", "device_id": null } } ] }, { "id": "Workstation - Attic - Schedule", "automation": "- alias: Workstation - Attic - Schedule\n mode: single\n triggers:\n - trigger: state\n entity_id:\n - schedule.attic_wfh\n condition:\n - condition: state\n entity_id: person.bertie\n state: home\n action:\n - choose:\n - conditions:\n - condition: state\n entity_id: schedule.attic_wfh\n state: 'on'\n sequence:\n - action: switch.turn_on\n target:\n entity_id:\n - switch.attic_workstation_switch\n - conditions:\n - condition: state\n entity_id: schedule.attic_wfh\n state: 'off'\n sequence:\n - action: switch.turn_off\n target:\n entity_id:\n - switch.attic_workstation_switch", "config": [ { "name": "attic wfh schedule", "room": "attic", "type": "schedule", "id": { "entity_id": "schedule.attic_wfh", "device_id": null } }, { "name": "bertie person", "room": null, "type": "person", "id": { "entity_id": "person.bertie", "device_id": null } }, { "name": "attic workstation switch", "room": "attic", "type": "switch", "id": { "entity_id": "switch.attic_workstation_switch", "device_id": null } } ] } ]