[ { "id": "network_refresh_zigbee_router_lqi_action_scheduled", "automation": "- id: network_refresh_zigbee_router_lqi_action_scheduled\n alias: 'Network: Refresh Zigbee router network link qualities on schedule'\n triggers:\n - trigger: time_pattern\n hours: 1\n actions:\n - action: input_boolean.turn_on\n entity_id: input_boolean.network_refresh_zigbee_router_lqi", "config": [ { "name": "network refresh zigbee router lqi", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.network_refresh_zigbee_router_lqi", "device_id": null } } ] }, { "id": "network_refresh_zigbee_router_lqi_action", "automation": "- id: network_refresh_zigbee_router_lqi_action\n alias: 'Network: Refresh Zigbee router network link qualities'\n triggers:\n - trigger: state\n entity_id: input_boolean.network_refresh_zigbee_router_lqi\n from: 'off'\n to: 'on'\n actions:\n - action: mqtt.publish\n data:\n topic: zigbee/Driveway Repeater/1/set\n payload: '{\"read\":{\"attributes\":[\"dateCode\",\"modelId\"],\"cluster\":\"genBasic\",\"options\":{}}}'\n - delay: 00:00:01\n - action: mqtt.publish\n data:\n topic: zigbee/Landing Repeater/1/set\n payload: '{\"read\":{\"attributes\":[\"dateCode\",\"modelId\"],\"cluster\":\"genBasic\",\"options\":{}}}'\n - delay: 00:00:01\n - action: mqtt.publish\n data:\n topic: zigbee/Garden Repeater/1/set\n payload: '{\"read\":{\"attributes\":[\"dateCode\",\"modelId\"],\"cluster\":\"genBasic\",\"options\":{}}}'\n - delay: 00:00:01\n - action: mqtt.publish\n data:\n topic: zigbee/Kitchen Fan Outlet/11/set\n payload: '{\"read\":{\"attributes\":[\"dateCode\",\"modelId\"],\"cluster\":\"genBasic\",\"options\":{}}}'\n - delay: 00:00:01\n - action: mqtt.publish\n data:\n topic: zigbee/Deck Fans Outlet/11/set\n payload: '{\"read\":{\"attributes\":[\"dateCode\",\"modelId\"],\"cluster\":\"genBasic\",\"options\":{}}}'\n - delay: 00:00:01\n - action: mqtt.publish\n data:\n topic: zigbee/Edwin Wardrobe Outlet/11/set\n payload: '{\"read\":{\"attributes\":[\"dateCode\",\"modelId\"],\"cluster\":\"genBasic\",\"options\":{}}}'\n - delay: 00:00:01\n - delay: 00:00:01\n - if:\n - condition: template\n value_template: \"{{ ((states('sensor.driveway_repeater_last_seen') | lower)\\\n \\ in ['unavailable', 'unknown', 'none', 'n/a']) or\\n ((as_timestamp(now())\\\n \\ - as_timestamp(states('sensor.driveway_repeater_last_seen'))) > 11) }}\"\n then:\n - action: mqtt.publish\n data:\n topic: zigbee/Driveway Repeater\n payload: '{ \"last_seen\": null, \"linkquality\": 0, \"state\": null, \"update\":\n { \"installed_version\": null, \"latest_version\": null, \"state\": null }, \"update_available\":\n false }'\n - delay: 00:00:01\n - if:\n - condition: template\n value_template: \"{{ ((states('sensor.landing_repeater_last_seen') | lower) in\\\n \\ ['unavailable', 'unknown', 'none', 'n/a']) or\\n ((as_timestamp(now())\\\n \\ - as_timestamp(states('sensor.landing_repeater_last_seen'))) > 11) }}\"\n then:\n - action: mqtt.publish\n data:\n topic: zigbee/Landing Repeater\n payload: '{ \"last_seen\": null, \"linkquality\": 0, \"state\": null, \"update\":\n { \"installed_version\": null, \"latest_version\": null, \"state\": null }, \"update_available\":\n false }'\n - delay: 00:00:01\n - if:\n - condition: template\n value_template: \"{{ ((states('sensor.garden_repeater_last_seen') | lower) in\\\n \\ ['unavailable', 'unknown', 'none', 'n/a']) or\\n ((as_timestamp(now())\\\n \\ - as_timestamp(states('sensor.garden_repeater_last_seen'))) > 11) }}\"\n then:\n - action: mqtt.publish\n data:\n topic: zigbee/Garden Repeater\n payload: '{ \"last_seen\": null, \"linkquality\": 0, \"state\": null, \"update\":\n { \"installed_version\": null, \"latest_version\": null, \"state\": null }, \"update_available\":\n false }'\n - delay: 00:00:01\n - if:\n - condition: template\n value_template: \"{{ ((states('sensor.kitchen_fan_outlet_last_seen') | lower)\\\n \\ in ['unavailable', 'unknown', 'none', 'n/a']) or\\n ((as_timestamp(now())\\\n \\ - as_timestamp(states('sensor.kitchen_fan_outlet_last_seen'))) > 11) }}\"\n then:\n - action: mqtt.publish\n data:\n topic: zigbee/Kitchen Fan Outlet\n payload: '{ \"last_seen\": null, \"linkquality\": 0, \"state\": null, \"update\":\n { \"installed_version\": null, \"latest_version\": null, \"state\": null }, \"update_available\":\n false }'\n - delay: 00:00:01\n - if:\n - condition: template\n value_template: \"{{ ((states('sensor.deck_fans_outlet_last_seen') | lower) in\\\n \\ ['unavailable', 'unknown', 'none', 'n/a']) or\\n ((as_timestamp(now())\\\n \\ - as_timestamp(states('sensor.deck_fans_outlet_last_seen'))) > 11) }}\"\n then:\n - action: mqtt.publish\n data:\n topic: zigbee/Deck Fans Outlet\n payload: '{ \"last_seen\": null, \"linkquality\": 0, \"state\": null, \"update\":\n { \"installed_version\": null, \"latest_version\": null, \"state\": null }, \"update_available\":\n false }'\n - delay: 00:00:01\n - if:\n - condition: template\n value_template: \"{{ ((states('sensor.edwin_wardrobe_outlet_last_seen') | lower)\\\n \\ in ['unavailable', 'unknown', 'none', 'n/a']) or\\n ((as_timestamp(now())\\\n \\ - as_timestamp(states('sensor.edwin_wardrobe_outlet_last_seen'))) > 11)\\\n \\ }}\"\n then:\n - action: mqtt.publish\n data:\n topic: zigbee/Edwin Wardrobe Outlet\n payload: '{ \"last_seen\": null, \"linkquality\": 0, \"state\": null, \"update\":\n { \"installed_version\": null, \"latest_version\": null, \"state\": null }, \"update_available\":\n false }'\n - action: input_boolean.turn_off\n entity_id: input_boolean.network_refresh_zigbee_router_lqi", "config": [ { "name": "network refresh zigbee router lqi", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.network_refresh_zigbee_router_lqi", "device_id": null } }, { "name": "driveway repeater last seen", "room": "driveway", "type": "sensor", "id": { "entity_id": "sensor.driveway_repeater_last_seen", "device_id": null } }, { "name": "landing repeater last seen", "room": "landing", "type": "sensor", "id": { "entity_id": "sensor.landing_repeater_last_seen", "device_id": null } }, { "name": "garden repeater last seen", "room": "garden", "type": "sensor", "id": { "entity_id": "sensor.garden_repeater_last_seen", "device_id": null } }, { "name": "kitchen fan outlet last seen", "room": "kitchen", "type": "sensor", "id": { "entity_id": "sensor.kitchen_fan_outlet_last_seen", "device_id": null } }, { "name": "deck fans outlet last seen", "room": "deck", "type": "sensor", "id": { "entity_id": "sensor.deck_fans_outlet_last_seen", "device_id": null } }, { "name": "edwin wardrobe outlet last seen", "room": "edwin", "type": "sensor", "id": { "entity_id": "sensor.edwin_wardrobe_outlet_last_seen", "device_id": null } } ] }, { "id": "lighting_reset_adaptive_lighting_announce", "automation": "- id: lighting_reset_adaptive_lighting_announce\n alias: 'Lighting: Reset Adaptive Lighting on bulb announce'\n mode: single\n triggers:\n - trigger: mqtt\n topic: zigbee/bridge/event\n condition:\n - condition: template\n value_template: '{{ trigger.payload_json.data.friendly_name | regex_search(\" Bulb\n 1$\") }}'\n actions:\n - variables:\n light: '{{ \"light.\" + (trigger.payload_json.data.friendly_name | regex_replace(\"\n Bulb 1$\") | replace(\" \", \"_\") | lower) }}'\n light_reset: '{{ \"input_boolean.lighting_reset_adaptive_lighting_\" + (light\n | replace(\"light.\", \"\")) }}'\n - if:\n - condition: template\n value_template: '{{ is_state(light_reset, \"off\") }}'\n then:\n - action: input_boolean.turn_on\n data_template:\n entity_id: '{{ light_reset }}'\n else:\n - action: light.turn_on\n data_template:\n color_temp: 366\n brightness_pct: 100\n entity_id: '{{ light }}'", "config": [] }, { "id": "lighting_reset_adaptive_lighting_for_all_lights", "automation": "- id: lighting_reset_adaptive_lighting_for_all_lights\n alias: 'Lighting: Reset Adaptive Lighting for All Lights'\n mode: single\n triggers:\n - trigger: state\n entity_id: input_boolean.lighting_reset_adaptive_lighting_all\n from: 'off'\n to: 'on'\n actions:\n - action: switch.turn_off\n entity_id: switch.adaptive_lighting_task\n - delay: 00:00:01\n - action: switch.turn_on\n entity_id: switch.adaptive_lighting_task\n - action: switch.turn_off\n entity_id: switch.adaptive_lighting_night\n - delay: 00:00:01\n - action: switch.turn_on\n entity_id: switch.adaptive_lighting_night\n - action: switch.turn_off\n entity_id: switch.adaptive_lighting_ambient_narrowband_dimming\n - delay: 00:00:01\n - action: switch.turn_on\n entity_id: switch.adaptive_lighting_ambient_narrowband_dimming\n - action: switch.turn_off\n entity_id: switch.adaptive_lighting_ambient\n - delay: 00:00:01\n - action: switch.turn_on\n entity_id: switch.adaptive_lighting_ambient\n - action: switch.turn_off\n entity_id: switch.adaptive_lighting_ambient_dimming\n - delay: 00:00:01\n - action: switch.turn_on\n entity_id: switch.adaptive_lighting_ambient_dimming\n - action: switch.turn_off\n entity_id: switch.adaptive_lighting_task_narrowband\n - delay: 00:00:01\n - action: switch.turn_on\n entity_id: switch.adaptive_lighting_task_narrowband\n - action: input_boolean.turn_off\n entity_id: input_boolean.lighting_reset_adaptive_lighting_all", "config": [ { "name": "lighting reset adaptive lighting all", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.lighting_reset_adaptive_lighting_all", "device_id": null } }, { "name": "adaptive lighting task", "room": null, "type": "switch", "id": { "entity_id": "switch.adaptive_lighting_task", "device_id": null } }, { "name": "adaptive lighting night", "room": null, "type": "switch", "id": { "entity_id": "switch.adaptive_lighting_night", "device_id": null } }, { "name": "adaptive lighting ambient narrowband dimming", "room": null, "type": "switch", "id": { "entity_id": "switch.adaptive_lighting_ambient_narrowband_dimming", "device_id": null } }, { "name": "adaptive lighting ambient", "room": null, "type": "switch", "id": { "entity_id": "switch.adaptive_lighting_ambient", "device_id": null } }, { "name": "adaptive lighting ambient dimming", "room": null, "type": "switch", "id": { "entity_id": "switch.adaptive_lighting_ambient_dimming", "device_id": null } }, { "name": "adaptive lighting task narrowband", "room": null, "type": "switch", "id": { "entity_id": "switch.adaptive_lighting_task_narrowband", "device_id": null } } ] }, { "id": "lighting_reset_adaptive_lighting_ada_lamp", "automation": "- id: lighting_reset_adaptive_lighting_ada_lamp\n alias: 'Lighting: Reset Adaptive Lighting on request of Ada Lamp'\n triggers:\n - trigger: state\n entity_id: input_boolean.lighting_reset_adaptive_lighting_ada_lamp\n from: 'off'\n to: 'on'\n actions:\n - action: adaptive_lighting.set_manual_control\n data:\n entity_id: switch.adaptive_lighting_task\n lights: light.ada_lamp\n manual_control: false\n - delay: 00:00:10\n - action: input_boolean.turn_off\n entity_id: input_boolean.lighting_reset_adaptive_lighting_ada_lamp", "config": [ { "name": "adaptive lighting task", "room": null, "type": "switch", "id": { "entity_id": "switch.adaptive_lighting_task", "device_id": null } }, { "name": "ada lamp", "room": "ada", "type": "light", "id": { "entity_id": "light.ada_lamp", "device_id": null } }, { "name": "Reset Adaptive Lighting Ada Lamp", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.lighting_reset_adaptive_lighting_ada_lamp", "device_id": null } } ] }, { "id": "lighting_reset_adaptive_lighting_edwin_night_light", "automation": "- id: lighting_reset_adaptive_lighting_edwin_night_light\n alias: 'Lighting: Reset Adaptive Lighting on request of Edwin Night Light'\n triggers:\n - trigger: state\n entity_id: input_boolean.lighting_reset_adaptive_lighting_edwin_night_light\n from: 'off'\n to: 'on'\n actions:\n - action: adaptive_lighting.set_manual_control\n data:\n entity_id: switch.adaptive_lighting_night\n lights: light.edwin_night_light\n manual_control: false\n - delay: 00:00:10\n - action: input_boolean.turn_off\n entity_id: input_boolean.lighting_reset_adaptive_lighting_edwin_night_light", "config": [ { "name": "adaptive lighting night", "room": null, "type": "switch", "id": { "entity_id": "switch.adaptive_lighting_night", "device_id": null } }, { "name": "edwin night light", "room": "edwin", "type": "light", "id": { "entity_id": "light.edwin_night_light", "device_id": null } }, { "name": "Reset Adaptive Lighting Edwin Night Light", "room": "Edwin", "type": "input_boolean", "id": { "entity_id": "input_boolean.lighting_reset_adaptive_lighting_edwin_night_light", "device_id": null } } ] }, { "id": "lighting_reset_adaptive_lighting_hallway_main", "automation": "- id: lighting_reset_adaptive_lighting_hallway_main\n alias: 'Lighting: Reset Adaptive Lighting on request of Hallway Main'\n triggers:\n - trigger: state\n entity_id: input_boolean.lighting_reset_adaptive_lighting_hallway_main\n from: 'off'\n to: 'on'\n actions:\n - action: adaptive_lighting.set_manual_control\n data:\n entity_id: switch.adaptive_lighting_ambient_narrowband_dimming\n lights: light.hallway_main\n manual_control: false\n - delay: 00:00:10\n - action: input_boolean.turn_off\n entity_id: input_boolean.lighting_reset_adaptive_lighting_hallway_main", "config": [ { "name": "adaptive lighting ambient narrowband dimming", "room": null, "type": "switch", "id": { "entity_id": "switch.adaptive_lighting_ambient_narrowband_dimming", "device_id": null } }, { "name": "adaptive lighting ambient", "room": null, "type": "switch", "id": { "entity_id": "switch.adaptive_lighting_ambient", "device_id": null } }, { "name": "hallway main", "room": "hallway", "type": "light", "id": { "entity_id": "light.hallway_main", "device_id": null } }, { "name": "Reset Adaptive Lighting Hallway Main", "room": "Hallway", "type": "input_boolean", "id": { "entity_id": "input_boolean.lighting_reset_adaptive_lighting_hallway_main", "device_id": null } } ] }, { "id": "lighting_reset_adaptive_lighting_hallway_sconces", "automation": "- id: lighting_reset_adaptive_lighting_hallway_sconces\n alias: 'Lighting: Reset Adaptive Lighting on request of Hallway Sconces'\n triggers:\n - trigger: state\n entity_id: input_boolean.lighting_reset_adaptive_lighting_hallway_sconces\n from: 'off'\n to: 'on'\n actions:\n - action: adaptive_lighting.set_manual_control\n data:\n entity_id: switch.adaptive_lighting_ambient_narrowband_dimming\n lights: light.hallway_sconces\n manual_control: false\n - delay: 00:00:10\n - action: input_boolean.turn_off\n entity_id: input_boolean.lighting_reset_adaptive_lighting_hallway_sconces", "config": [ { "name": "adaptive lighting ambient narrowband dimming", "room": null, "type": "switch", "id": { "entity_id": "switch.adaptive_lighting_ambient_narrowband_dimming", "device_id": null } }, { "name": "adaptive lighting ambient", "room": null, "type": "switch", "id": { "entity_id": "switch.adaptive_lighting_ambient", "device_id": null } }, { "name": "hallway sconces", "room": "hallway", "type": "light", "id": { "entity_id": "light.hallway_sconces", "device_id": null } }, { "name": "Reset Adaptive Lighting Hallway Sconces", "room": "Hallway", "type": "input_boolean", "id": { "entity_id": "input_boolean.lighting_reset_adaptive_lighting_hallway_sconces", "device_id": null } } ] }, { "id": "lighting_reset_adaptive_lighting_dining_main", "automation": "- id: lighting_reset_adaptive_lighting_dining_main\n alias: 'Lighting: Reset Adaptive Lighting on request of Dining Main'\n triggers:\n - trigger: state\n entity_id: input_boolean.lighting_reset_adaptive_lighting_dining_main\n from: 'off'\n to: 'on'\n actions:\n - action: adaptive_lighting.set_manual_control\n data:\n entity_id: switch.adaptive_lighting_ambient\n lights: light.dining_main\n manual_control: false\n - delay: 00:00:10\n - action: input_boolean.turn_off\n entity_id: input_boolean.lighting_reset_adaptive_lighting_dining_main", "config": [ { "name": "adaptive lighting ambient", "room": null, "type": "switch", "id": { "entity_id": "switch.adaptive_lighting_ambient", "device_id": null } }, { "name": "dining main", "room": "dining", "type": "light", "id": { "entity_id": "light.dining_main", "device_id": null } }, { "name": "Reset Adaptive Lighting Dining Main", "room": "Dining", "type": "input_boolean", "id": { "entity_id": "input_boolean.lighting_reset_adaptive_lighting_dining_main", "device_id": null } } ] }, { "id": "lighting_reset_adaptive_lighting_lounge_main", "automation": "- id: lighting_reset_adaptive_lighting_lounge_main\n alias: 'Lighting: Reset Adaptive Lighting on request of Lounge Main'\n triggers:\n - trigger: state\n entity_id: input_boolean.lighting_reset_adaptive_lighting_lounge_main\n from: 'off'\n to: 'on'\n actions:\n - action: adaptive_lighting.set_manual_control\n data:\n entity_id: switch.adaptive_lighting_ambient\n lights: light.lounge_main\n manual_control: false\n - delay: 00:00:10\n - action: input_boolean.turn_off\n entity_id: input_boolean.lighting_reset_adaptive_lighting_lounge_main", "config": [ { "name": "adaptive lighting ambient", "room": null, "type": "switch", "id": { "entity_id": "switch.adaptive_lighting_ambient", "device_id": null } }, { "name": "lounge main", "room": "lounge", "type": "light", "id": { "entity_id": "light.lounge_main", "device_id": null } }, { "name": "Reset Adaptive Lighting Lounge Main", "room": "Lounge", "type": "input_boolean", "id": { "entity_id": "input_boolean.lighting_reset_adaptive_lighting_lounge_main", "device_id": null } } ] }, { "id": "lighting_reset_adaptive_lighting_lounge_lamp", "automation": "- id: lighting_reset_adaptive_lighting_lounge_lamp\n alias: 'Lighting: Reset Adaptive Lighting on request of Lounge Lamp'\n triggers:\n - trigger: state\n entity_id: input_boolean.lighting_reset_adaptive_lighting_lounge_lamp\n from: 'off'\n to: 'on'\n actions:\n - action: adaptive_lighting.set_manual_control\n data:\n entity_id: switch.adaptive_lighting_task\n lights: light.lounge_lamp\n manual_control: false\n - delay: 00:00:10\n - action: input_boolean.turn_off\n entity_id: input_boolean.lighting_reset_adaptive_lighting_lounge_lamp", "config": [ { "name": "adaptive lighting task", "room": null, "type": "switch", "id": { "entity_id": "switch.adaptive_lighting_task", "device_id": null } }, { "name": "lounge lamp", "room": "lounge", "type": "light", "id": { "entity_id": "light.lounge_lamp", "device_id": null } }, { "name": "Reset Adaptive Lighting Lounge Lamp", "room": "Lounge", "type": "input_boolean", "id": { "entity_id": "input_boolean.lighting_reset_adaptive_lighting_lounge_lamp", "device_id": null } } ] }, { "id": "lighting_reset_adaptive_lighting_parents_main", "automation": "- id: lighting_reset_adaptive_lighting_parents_main\n alias: 'Lighting: Reset Adaptive Lighting on request of Parents Main'\n triggers:\n - trigger: state\n entity_id: input_boolean.lighting_reset_adaptive_lighting_parents_main\n from: 'off'\n to: 'on'\n actions:\n - action: adaptive_lighting.set_manual_control\n data:\n entity_id: switch.adaptive_lighting_ambient_dimming\n lights: light.parents_main\n manual_control: false\n - delay: 00:00:10\n - action: input_boolean.turn_off\n entity_id: input_boolean.lighting_reset_adaptive_lighting_parents_main", "config": [ { "name": "adaptive lighting ambient", "room": null, "type": "switch", "id": { "entity_id": "switch.adaptive_lighting_ambient", "device_id": null } }, { "name": "adaptive lighting ambient dimming", "room": null, "type": "switch", "id": { "entity_id": "switch.adaptive_lighting_ambient_dimming", "device_id": null } }, { "name": "parents main", "room": "parents", "type": "light", "id": { "entity_id": "light.parents_main", "device_id": null } }, { "name": "Reset Adaptive Lighting Parents Main", "room": "Parents", "type": "input_boolean", "id": { "entity_id": "input_boolean.lighting_reset_adaptive_lighting_parents_main", "device_id": null } } ] }, { "id": "lighting_reset_adaptive_lighting_parents_jane_bedside", "automation": "- id: lighting_reset_adaptive_lighting_parents_jane_bedside\n alias: 'Lighting: Reset Adaptive Lighting on request of Jane Bedside'\n triggers:\n - trigger: state\n entity_id: input_boolean.lighting_reset_adaptive_lighting_parents_jane_bedside\n from: 'off'\n to: 'on'\n actions:\n - action: adaptive_lighting.set_manual_control\n data:\n entity_id: switch.adaptive_lighting_task_narrowband\n lights: light.parents_jane_bedside\n manual_control: false\n - delay: 00:00:10\n - action: input_boolean.turn_off\n entity_id: input_boolean.lighting_reset_adaptive_lighting_parents_jane_bedside", "config": [ { "name": "adaptive lighting task", "room": null, "type": "switch", "id": { "entity_id": "switch.adaptive_lighting_task", "device_id": null } }, { "name": "adaptive lighting task narrowband", "room": null, "type": "switch", "id": { "entity_id": "switch.adaptive_lighting_task_narrowband", "device_id": null } }, { "name": "parents jane bedside", "room": "parents", "type": "light", "id": { "entity_id": "light.parents_jane_bedside", "device_id": null } }, { "name": "Reset Adaptive Lighting Parents Jane Bedside", "room": "Parents", "type": "input_boolean", "id": { "entity_id": "input_boolean.lighting_reset_adaptive_lighting_parents_jane_bedside", "device_id": null } } ] }, { "id": "lighting_reset_adaptive_lighting_parents_graham_bedside", "automation": "- id: lighting_reset_adaptive_lighting_parents_graham_bedside\n alias: 'Lighting: Reset Adaptive Lighting on request of Graham Bedside'\n triggers:\n - trigger: state\n entity_id: input_boolean.lighting_reset_adaptive_lighting_parents_graham_bedside\n from: 'off'\n to: 'on'\n actions:\n - action: adaptive_lighting.set_manual_control\n data:\n entity_id: switch.adaptive_lighting_task_narrowband\n lights: light.parents_graham_bedside\n manual_control: false\n - delay: 00:00:10\n - action: input_boolean.turn_off\n entity_id: input_boolean.lighting_reset_adaptive_lighting_parents_graham_bedside", "config": [ { "name": "adaptive lighting task", "room": null, "type": "switch", "id": { "entity_id": "switch.adaptive_lighting_task", "device_id": null } }, { "name": "adaptive lighting task narrowband", "room": null, "type": "switch", "id": { "entity_id": "switch.adaptive_lighting_task_narrowband", "device_id": null } }, { "name": "parents graham bedside", "room": "parents", "type": "light", "id": { "entity_id": "light.parents_graham_bedside", "device_id": null } }, { "name": "Reset Adaptive Lighting Parents Graham Bedside", "room": "Parents", "type": "input_boolean", "id": { "entity_id": "input_boolean.lighting_reset_adaptive_lighting_parents_graham_bedside", "device_id": null } } ] }, { "id": "lighting_reset_adaptive_lighting_study_lamp", "automation": "- id: lighting_reset_adaptive_lighting_study_lamp\n alias: 'Lighting: Reset Adaptive Lighting on request of Study Lamp'\n triggers:\n - trigger: state\n entity_id: input_boolean.lighting_reset_adaptive_lighting_study_lamp\n from: 'off'\n to: 'on'\n actions:\n - action: adaptive_lighting.set_manual_control\n data:\n entity_id: switch.adaptive_lighting_task\n lights: light.study_lamp\n manual_control: false\n - delay: 00:00:10\n - action: input_boolean.turn_off\n entity_id: input_boolean.lighting_reset_adaptive_lighting_study_lamp", "config": [ { "name": "adaptive lighting task", "room": null, "type": "switch", "id": { "entity_id": "switch.adaptive_lighting_task", "device_id": null } }, { "name": "study lamp", "room": "study", "type": "light", "id": { "entity_id": "light.study_lamp", "device_id": null } }, { "name": "Reset Adaptive Lighting Study Lamp", "room": "Study", "type": "input_boolean", "id": { "entity_id": "input_boolean.lighting_reset_adaptive_lighting_study_lamp", "device_id": null } } ] }, { "id": "lighting_reset_adaptive_lighting_kitchen_main", "automation": "- id: lighting_reset_adaptive_lighting_kitchen_main\n alias: 'Lighting: Reset Adaptive Lighting on request of Kitchen Main'\n triggers:\n - trigger: state\n entity_id: input_boolean.lighting_reset_adaptive_lighting_kitchen_main\n from: 'off'\n to: 'on'\n actions:\n - action: adaptive_lighting.set_manual_control\n data:\n entity_id: switch.adaptive_lighting_ambient\n lights: light.kitchen_main\n manual_control: false\n - delay: 00:00:10\n - action: input_boolean.turn_off\n entity_id: input_boolean.lighting_reset_adaptive_lighting_kitchen_main", "config": [ { "name": "adaptive lighting ambient", "room": null, "type": "switch", "id": { "entity_id": "switch.adaptive_lighting_ambient", "device_id": null } }, { "name": "kitchen main", "room": "kitchen", "type": "light", "id": { "entity_id": "light.kitchen_main", "device_id": null } }, { "name": "Reset Adaptive Lighting Kitchen Main", "room": "Kitchen", "type": "input_boolean", "id": { "entity_id": "input_boolean.lighting_reset_adaptive_lighting_kitchen_main", "device_id": null } } ] }, { "id": "lighting_reset_adaptive_lighting_laundry_main", "automation": "- id: lighting_reset_adaptive_lighting_laundry_main\n alias: 'Lighting: Reset Adaptive Lighting on request of Laundry Main'\n triggers:\n - trigger: state\n entity_id: input_boolean.lighting_reset_adaptive_lighting_laundry_main\n from: 'off'\n to: 'on'\n actions:\n - action: adaptive_lighting.set_manual_control\n data:\n entity_id: switch.adaptive_lighting_ambient\n lights: light.laundry_main\n manual_control: false\n - delay: 00:00:10\n - action: input_boolean.turn_off\n entity_id: input_boolean.lighting_reset_adaptive_lighting_laundry_main", "config": [ { "name": "adaptive lighting ambient", "room": null, "type": "switch", "id": { "entity_id": "switch.adaptive_lighting_ambient", "device_id": null } }, { "name": "laundry main", "room": "laundry", "type": "light", "id": { "entity_id": "light.laundry_main", "device_id": null } }, { "name": "Reset Adaptive Lighting Laundry Main", "room": "Laundry", "type": "input_boolean", "id": { "entity_id": "input_boolean.lighting_reset_adaptive_lighting_laundry_main", "device_id": null } } ] }, { "id": "lighting_reset_adaptive_lighting_pantry_main", "automation": "- id: lighting_reset_adaptive_lighting_pantry_main\n alias: 'Lighting: Reset Adaptive Lighting on request of Pantry Main'\n triggers:\n - trigger: state\n entity_id: input_boolean.lighting_reset_adaptive_lighting_pantry_main\n from: 'off'\n to: 'on'\n actions:\n - action: adaptive_lighting.set_manual_control\n data:\n entity_id: switch.adaptive_lighting_ambient\n lights: light.pantry_main\n manual_control: false\n - delay: 00:00:10\n - action: input_boolean.turn_off\n entity_id: input_boolean.lighting_reset_adaptive_lighting_pantry_main", "config": [ { "name": "adaptive lighting ambient", "room": null, "type": "switch", "id": { "entity_id": "switch.adaptive_lighting_ambient", "device_id": null } }, { "name": "pantry main", "room": "pantry", "type": "light", "id": { "entity_id": "light.pantry_main", "device_id": null } }, { "name": "Reset Adaptive Lighting Pantry Main", "room": "Pantry", "type": "input_boolean", "id": { "entity_id": "input_boolean.lighting_reset_adaptive_lighting_pantry_main", "device_id": null } } ] }, { "id": "lighting_reset_adaptive_lighting_office_main", "automation": "- id: lighting_reset_adaptive_lighting_office_main\n alias: 'Lighting: Reset Adaptive Lighting on request of Office Main'\n triggers:\n - trigger: state\n entity_id: input_boolean.lighting_reset_adaptive_lighting_office_main\n from: 'off'\n to: 'on'\n actions:\n - action: light.turn_on\n data_template:\n color_temp: 250\n brightness_pct: 100\n entity_id: light.office_main\n - delay: 00:00:10\n - action: input_boolean.turn_off\n entity_id: input_boolean.lighting_reset_adaptive_lighting_office_main", "config": [ { "name": "office main", "room": "office", "type": "light", "id": { "entity_id": "light.office_main", "device_id": null } }, { "name": "Reset Adaptive Lighting Office Main", "room": "Office", "type": "input_boolean", "id": { "entity_id": "input_boolean.lighting_reset_adaptive_lighting_office_main", "device_id": null } } ] }, { "id": "lighting_reset_adaptive_lighting_bathroom_main", "automation": "- id: lighting_reset_adaptive_lighting_bathroom_main\n alias: 'Lighting: Reset Adaptive Lighting on request of Bathroom Main'\n triggers:\n - trigger: state\n entity_id: input_boolean.lighting_reset_adaptive_lighting_bathroom_main\n from: 'off'\n to: 'on'\n actions:\n - action: adaptive_lighting.set_manual_control\n data:\n entity_id: switch.adaptive_lighting_ambient_dimming\n lights: light.bathroom_main\n manual_control: false\n - delay: 00:00:10\n - action: input_boolean.turn_off\n entity_id: input_boolean.lighting_reset_adaptive_lighting_bathroom_main", "config": [ { "name": "adaptive lighting ambient", "room": null, "type": "switch", "id": { "entity_id": "switch.adaptive_lighting_ambient", "device_id": null } }, { "name": "adaptive lighting ambient dimming", "room": null, "type": "switch", "id": { "entity_id": "switch.adaptive_lighting_ambient_dimming", "device_id": null } }, { "name": "bathroom main", "room": "bathroom", "type": "light", "id": { "entity_id": "light.bathroom_main", "device_id": null } }, { "name": "Reset Adaptive Lighting Bathroom Main", "room": "Bathroom", "type": "input_boolean", "id": { "entity_id": "input_boolean.lighting_reset_adaptive_lighting_bathroom_main", "device_id": null } } ] }, { "id": "lighting_reset_adaptive_lighting_bathroom_sconces", "automation": "- id: lighting_reset_adaptive_lighting_bathroom_sconces\n alias: 'Lighting: Reset Adaptive Lighting on request of Bathroom Sconces'\n triggers:\n - trigger: state\n entity_id: input_boolean.lighting_reset_adaptive_lighting_bathroom_sconces\n from: 'off'\n to: 'on'\n actions:\n - action: adaptive_lighting.set_manual_control\n data:\n entity_id: switch.adaptive_lighting_task_narrowband\n lights: light.bathroom_sconces\n manual_control: false\n - delay: 00:00:10\n - action: input_boolean.turn_off\n entity_id: input_boolean.lighting_reset_adaptive_lighting_bathroom_sconces", "config": [ { "name": "adaptive lighting task", "room": null, "type": "switch", "id": { "entity_id": "switch.adaptive_lighting_task", "device_id": null } }, { "name": "adaptive lighting task narrowband", "room": null, "type": "switch", "id": { "entity_id": "switch.adaptive_lighting_task_narrowband", "device_id": null } }, { "name": "bathroom sconces", "room": "bathroom", "type": "light", "id": { "entity_id": "light.bathroom_sconces", "device_id": null } }, { "name": "Reset Adaptive Lighting Bathroom Sconces", "room": "Bathroom", "type": "input_boolean", "id": { "entity_id": "input_boolean.lighting_reset_adaptive_lighting_bathroom_sconces", "device_id": null } } ] }, { "id": "lighting_reset_adaptive_lighting_ensuite_main", "automation": "- id: lighting_reset_adaptive_lighting_ensuite_main\n alias: 'Lighting: Reset Adaptive Lighting on request of Ensuite Main'\n triggers:\n - trigger: state\n entity_id: input_boolean.lighting_reset_adaptive_lighting_ensuite_main\n from: 'off'\n to: 'on'\n actions:\n - action: adaptive_lighting.set_manual_control\n data:\n entity_id: switch.adaptive_lighting_ambient_dimming\n lights: light.ensuite_main\n manual_control: false\n - delay: 00:00:10\n - action: input_boolean.turn_off\n entity_id: input_boolean.lighting_reset_adaptive_lighting_ensuite_main", "config": [ { "name": "adaptive lighting ambient", "room": null, "type": "switch", "id": { "entity_id": "switch.adaptive_lighting_ambient", "device_id": null } }, { "name": "adaptive lighting ambient dimming", "room": null, "type": "switch", "id": { "entity_id": "switch.adaptive_lighting_ambient_dimming", "device_id": null } }, { "name": "ensuite main", "room": "ensuite", "type": "light", "id": { "entity_id": "light.ensuite_main", "device_id": null } }, { "name": "Reset Adaptive Lighting Ensuite Main", "room": "Ensuite", "type": "input_boolean", "id": { "entity_id": "input_boolean.lighting_reset_adaptive_lighting_ensuite_main", "device_id": null } } ] }, { "id": "lighting_reset_adaptive_lighting_ensuite_sconces", "automation": "- id: lighting_reset_adaptive_lighting_ensuite_sconces\n alias: 'Lighting: Reset Adaptive Lighting on request of Ensuite Sconces'\n triggers:\n - trigger: state\n entity_id: input_boolean.lighting_reset_adaptive_lighting_ensuite_sconces\n from: 'off'\n to: 'on'\n actions:\n - action: adaptive_lighting.set_manual_control\n data:\n entity_id: switch.adaptive_lighting_task_narrowband\n lights: light.ensuite_sconces\n manual_control: false\n - delay: 00:00:10\n - action: input_boolean.turn_off\n entity_id: input_boolean.lighting_reset_adaptive_lighting_ensuite_sconces", "config": [ { "name": "adaptive lighting task", "room": null, "type": "switch", "id": { "entity_id": "switch.adaptive_lighting_task", "device_id": null } }, { "name": "adaptive lighting task narrowband", "room": null, "type": "switch", "id": { "entity_id": "switch.adaptive_lighting_task_narrowband", "device_id": null } }, { "name": "ensuite sconces", "room": "ensuite", "type": "light", "id": { "entity_id": "light.ensuite_sconces", "device_id": null } }, { "name": "Reset Adaptive Lighting Ensuite Sconces", "room": "Ensuite", "type": "input_boolean", "id": { "entity_id": "input_boolean.lighting_reset_adaptive_lighting_ensuite_sconces", "device_id": null } } ] }, { "id": "lighting_reset_adaptive_lighting_wardrobe_main", "automation": "- id: lighting_reset_adaptive_lighting_wardrobe_main\n alias: 'Lighting: Reset Adaptive Lighting on request of Wardrobe Main'\n triggers:\n - trigger: state\n entity_id: input_boolean.lighting_reset_adaptive_lighting_wardrobe_main\n from: 'off'\n to: 'on'\n actions:\n - action: adaptive_lighting.set_manual_control\n data:\n entity_id: switch.adaptive_lighting_ambient\n lights: light.wardrobe_main\n manual_control: false\n - delay: 00:00:10\n - action: input_boolean.turn_off\n entity_id: input_boolean.lighting_reset_adaptive_lighting_wardrobe_main", "config": [ { "name": "adaptive lighting ambient", "room": null, "type": "switch", "id": { "entity_id": "switch.adaptive_lighting_ambient", "device_id": null } }, { "name": "wardrobe main", "room": "wardrobe", "type": "light", "id": { "entity_id": "light.wardrobe_main", "device_id": null } }, { "name": "Reset Adaptive Lighting Wardrobe Main", "room": "Wardrobe", "type": "input_boolean", "id": { "entity_id": "input_boolean.lighting_reset_adaptive_lighting_wardrobe_main", "device_id": null } } ] }, { "id": "lighting_reset_adaptive_lighting_tree_spotlights", "automation": "- id: lighting_reset_adaptive_lighting_tree_spotlights\n alias: 'Lighting: Reset Adaptive Lighting on request of Tree Spotlights'\n triggers:\n - trigger: state\n entity_id: input_boolean.lighting_reset_adaptive_lighting_tree_spotlights\n from: 'off'\n to: 'on'\n actions:\n - action: light.turn_on\n data_template:\n color_temp: 366\n brightness_pct: 100\n entity_id: light.tree_spotlights\n - delay: 00:00:10\n - action: input_boolean.turn_off\n entity_id: input_boolean.lighting_reset_adaptive_lighting_tree_spotlights", "config": [ { "name": "tree spotlights", "room": null, "type": "light", "id": { "entity_id": "light.tree_spotlights", "device_id": null } }, { "name": "Reset Adaptive Lighting Tree Spotlights", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.lighting_reset_adaptive_lighting_tree_spotlights", "device_id": null } } ] }, { "id": "routine_water_booster_on", "automation": "- id: routine_water_booster_on\n alias: 'Water Heating: Turn on water heater booster'\n mode: single\n triggers:\n - trigger: time\n at: 04:30:00\n - trigger: time\n at: 05:30:00\n - trigger: time\n at: '15:30:00'\n condition:\n or:\n - condition: template\n value_template: '{{ now().month == 5 }}'\n - condition: template\n value_template: '{{ now().month == 6 }}'\n - condition: template\n value_template: '{{ now().month == 7 }}'\n - condition: template\n value_template: '{{ now().month == 8 }}'\n actions:\n - action: switch.turn_on\n entity_id: switch.ceiling_water_booster_plug", "config": [ { "name": "ceiling water booster plug", "room": null, "type": "switch", "id": { "entity_id": "switch.ceiling_water_booster_plug", "device_id": null } } ] }, { "id": "routine_water_booster_off", "automation": "- id: routine_water_booster_off\n mode: single\n alias: 'Water Heating: Turn off water heater booster'\n triggers:\n - trigger: state\n entity_id: switch.ceiling_water_booster_plug\n from: 'off'\n to: 'on'\n actions:\n - delay: 00:45:00\n - action: switch.turn_off\n target:\n entity_id: switch.ceiling_water_booster_plug", "config": [ { "name": "ceiling water booster plug", "room": null, "type": "switch", "id": { "entity_id": "switch.ceiling_water_booster_plug", "device_id": null } } ] }, { "id": "routine_water_booster_off_failsafe", "automation": "- id: routine_water_booster_off_failsafe\n alias: 'Water Heating: Turn off water heater booster fail-safe'\n mode: single\n triggers:\n - trigger: time_pattern\n minutes: 15\n condition:\n and:\n - condition: time\n after: '22:00:00'\n before: 04:00:00\n - condition: state\n entity_id: switch.ceiling_water_booster_plug\n state: 'on'\n actions:\n - action: switch.turn_off\n entity_id: switch.ceiling_water_booster_plug", "config": [ { "name": "ceiling water booster plug", "room": null, "type": "switch", "id": { "entity_id": "switch.ceiling_water_booster_plug", "device_id": null } } ] }, { "id": "routine_coffee_machine_off", "automation": "- id: routine_coffee_machine_off\n alias: 'Coffee Machine: Turn off coffee machine'\n mode: single\n triggers:\n - trigger: state\n entity_id: switch.kitchen_coffee_machine_plug\n from: 'off'\n to: 'on'\n actions:\n - delay: 00:15:00\n - action: switch.turn_off\n target:\n entity_id: switch.kitchen_coffee_machine_plug", "config": [ { "name": "kitchen coffee machine plug", "room": "kitchen", "type": "switch", "id": { "entity_id": "switch.kitchen_coffee_machine_plug", "device_id": null } } ] }, { "id": "routine_coffee_machine_off_failsafe", "automation": "- id: routine_coffee_machine_off_failsafe\n alias: 'Coffee Machine: Turn off coffee machine fail-safe'\n mode: single\n triggers:\n - trigger: time_pattern\n minutes: 15\n condition:\n and:\n - condition: time\n after: '13:00:00'\n before: 06:00:00\n - condition: state\n entity_id: switch.kitchen_coffee_machine_plug\n state: 'on'\n actions:\n - action: switch.turn_off\n entity_id: switch.kitchen_coffee_machine_plug", "config": [ { "name": "kitchen coffee machine plug", "room": "kitchen", "type": "switch", "id": { "entity_id": "switch.kitchen_coffee_machine_plug", "device_id": null } } ] }, { "id": "routine_home_sleep_cube", "automation": "- id: routine_home_sleep_cube\n alias: 'Routine: Put home to sleep via cube'\n mode: restart\n triggers:\n - trigger: state\n entity_id: sensor.home_cube_remote_action\n to: flip90\n actions:\n - action: input_boolean.turn_off\n entity_id: input_boolean.home_sleep\n - action: input_boolean.turn_on\n entity_id: input_boolean.home_sleep", "config": [ { "name": "home cube remote action", "room": null, "type": "sensor", "id": { "entity_id": "sensor.home_cube_remote_action", "device_id": null } }, { "name": "home sleep", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.home_sleep", "device_id": null } } ] }, { "id": "routine_home_wakeup_cube", "automation": "- id: routine_home_wakeup_cube\n alias: 'Routine: Wake home up via cube'\n mode: restart\n triggers:\n - trigger: state\n entity_id: sensor.home_cube_remote_action\n to: shake\n actions:\n - action: input_boolean.turn_off\n entity_id: input_boolean.home_sleep", "config": [ { "name": "home cube remote action", "room": null, "type": "sensor", "id": { "entity_id": "sensor.home_cube_remote_action", "device_id": null } }, { "name": "home sleep", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.home_sleep", "device_id": null } } ] }, { "id": "routine_home_fans_off", "automation": "- id: routine_home_fans_off\n alias: 'Routine: Turn fans off'\n mode: single\n triggers:\n - trigger: time\n at: 03:00:00\n action:\n - service: fan.turn_off\n target:\n entity_id:\n - fan.ada_fan\n - fan.edwin_fan\n - fan.parents_fan\n - fan.lounge_fan\n - fan.deck_fan", "config": [ { "name": "ada fan", "room": "ada", "type": "fan", "id": { "entity_id": "fan.ada_fan", "device_id": null } }, { "name": "edwin fan", "room": "edwin", "type": "fan", "id": { "entity_id": "fan.edwin_fan", "device_id": null } }, { "name": "parents fan", "room": "parents", "type": "fan", "id": { "entity_id": "fan.parents_fan", "device_id": null } }, { "name": "lounge fan", "room": "lounge", "type": "fan", "id": { "entity_id": "fan.lounge_fan", "device_id": null } }, { "name": "deck fan", "room": "deck", "type": "fan", "id": { "entity_id": "fan.deck_fan", "device_id": null } } ] }, { "id": "routine_init", "automation": "- id: routine_init\n alias: 'Routine: Run init code after startup'\n mode: single\n triggers:\n - trigger: homeassistant\n event: start\n actions:\n - action: input_boolean.turn_on\n target:\n entity_id: input_boolean.home_started\n - action: system_log.write\n data_template:\n level: info\n message: Home Assistant has started!\n - action: switch.turn_on\n target:\n entity_id:\n - switch.adaptive_lighting_sleep_mode_night", "config": [ { "name": "home started", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.home_started", "device_id": null } }, { "name": "adaptive lighting sleep mode night", "room": null, "type": "switch", "id": { "entity_id": "switch.adaptive_lighting_sleep_mode_night", "device_id": null } } ] }, { "id": "routine_home_sleep", "automation": "- id: routine_home_sleep\n alias: 'Routine: Put home to sleep'\n mode: single\n triggers:\n - trigger: state\n entity_id: input_boolean.home_sleep\n from: 'off'\n to: 'on'\n actions:\n - action: light.turn_off\n target:\n entity_id:\n - light.parents_main\n - action: media_player.unjoin\n target:\n entity_id: media_player.parents_move\n - action: media_player.volume_mute\n data:\n entity_id: media_player.parents_move\n is_volume_muted: false\n - action: media_player.volume_set\n data:\n entity_id: media_player.parents_move\n volume_level: '0.3'\n - action: media_player.turn_off\n target:\n entity_id:\n - media_player.ada_home\n - media_player.edwin_home\n - action: media_player.play_media\n data:\n media_content_type: music\n media_content_id: https://nginx.janeandgraham.com/relaxation-sounds/ocean.mp3\n target:\n entity_id: media_player.parents_move\n - action: media_player.repeat_set\n data:\n repeat: all\n entity_id: media_player.parents_move", "config": [ { "name": "parents main", "room": "parents", "type": "light", "id": { "entity_id": "light.parents_main", "device_id": null } }, { "name": "home sleep", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.home_sleep", "device_id": null } }, { "name": "parents move", "room": "parents", "type": "media_player", "id": { "entity_id": "media_player.parents_move", "device_id": null } }, { "name": "ada home", "room": "ada", "type": "media_player", "id": { "entity_id": "media_player.ada_home", "device_id": null } }, { "name": "edwin home", "room": "edwin", "type": "media_player", "id": { "entity_id": "media_player.edwin_home", "device_id": null } } ] }, { "id": "routine_home_wakeup", "automation": "- id: routine_home_wakeup\n alias: 'Routine: Wake home up'\n mode: single\n triggers:\n - trigger: state\n entity_id: input_boolean.home_sleep\n from: 'on'\n to: 'off'\n actions:\n - action: media_player.media_stop\n target:\n entity_id:\n - media_player.parents_move\n - action: media_player.volume_set\n data:\n entity_id: media_player.parents_move\n volume_level: '0.2'\n - action: automation.trigger\n data:\n entity_id: automation.lighting_reset_adaptive_lighting_for_all_lights", "config": [ { "name": "home sleep", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.home_sleep", "device_id": null } }, { "name": "parents move", "room": "parents", "type": "media_player", "id": { "entity_id": "media_player.parents_move", "device_id": null } }, { "name": "Lighting Reset Adaptive Lighting for All Lights", "room": null, "type": "automation", "id": { "entity_id": "automation.lighting_reset_adaptive_lighting_for_all_lights", "device_id": null } } ] }, { "id": "routine_home_reset", "automation": "- id: routine_home_reset\n alias: 'Routine: Reset home to defaults'\n mode: single\n triggers:\n - trigger: state\n entity_id: input_boolean.home_reset\n from: 'off'\n to: 'on'\n actions:\n - action: automation.trigger\n data:\n entity_id: automation.lighting_reset_adaptive_lighting_for_all_lights\n - delay: 00:00:01\n - action: input_boolean.turn_off\n entity_id: input_boolean.home_reset", "config": [ { "name": "home reset", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.home_reset", "device_id": null } }, { "name": "Lighting Reset Adaptive Lighting for All Lights", "room": null, "type": "automation", "id": { "entity_id": "automation.lighting_reset_adaptive_lighting_for_all_lights", "device_id": null } } ] }, { "id": "routine_home_lights_off", "automation": "- id: routine_home_lights_off\n alias: 'Routine: Turn night lights off'\n mode: single\n triggers:\n - trigger: time\n at: 09:00:00\n actions:\n - action: switch.turn_off\n target:\n entity_id:\n - switch.adaptive_lighting_sleep_mode_night\n - delay: 00:00:05\n - action: light.turn_off\n target:\n entity_id:\n - light.ada_lamp\n - light.edwin_lamp\n - light.edwin_night_light\n - light.hallway_sconces\n - action: number.set_value\n target:\n entity_id:\n - number.ada_fan_light_motion_sense_timeout\n - number.edwin_fan_light_motion_sense_timeout\n data:\n value: 3600\n - action: switch.turn_on\n target:\n entity_id:\n - switch.ada_fan_light_return_to_auto\n - switch.edwin_fan_light_return_to_auto\n - action: light.turn_on\n target:\n entity_id:\n - light.ada_fan\n - light.edwin_fan\n - action: fan.turn_off\n target:\n entity_id:\n - fan.ada_fan\n - fan.edwin_fan\n - fan.parents_fan\n - fan.lounge_fan\n - fan.deck_fan", "config": [ { "name": "ada lamp", "room": "ada", "type": "light", "id": { "entity_id": "light.ada_lamp", "device_id": null } }, { "name": "edwin night light", "room": "edwin", "type": "light", "id": { "entity_id": "light.edwin_night_light", "device_id": null } }, { "name": "hallway sconces", "room": "hallway", "type": "light", "id": { "entity_id": "light.hallway_sconces", "device_id": null } }, { "name": "ada fan", "room": "ada", "type": "fan", "id": { "entity_id": "fan.ada_fan", "device_id": null } }, { "name": "edwin fan", "room": "edwin", "type": "fan", "id": { "entity_id": "fan.edwin_fan", "device_id": null } }, { "name": "parents fan", "room": "parents", "type": "fan", "id": { "entity_id": "fan.parents_fan", "device_id": null } }, { "name": "lounge fan", "room": "lounge", "type": "fan", "id": { "entity_id": "fan.lounge_fan", "device_id": null } }, { "name": "deck fan", "room": "deck", "type": "fan", "id": { "entity_id": "fan.deck_fan", "device_id": null } }, { "name": "adaptive lighting sleep mode night", "room": null, "type": "switch", "id": { "entity_id": "switch.adaptive_lighting_sleep_mode_night", "device_id": null } }, { "name": "edwin lamp", "room": "edwin", "type": "light", "id": { "entity_id": "light.edwin_lamp", "device_id": null } }, { "name": "ada fan light motion sense timeout", "room": "ada", "type": "number", "id": { "entity_id": "number.ada_fan_light_motion_sense_timeout", "device_id": null } }, { "name": "edwin fan light motion sense timeout", "room": "edwin", "type": "number", "id": { "entity_id": "number.edwin_fan_light_motion_sense_timeout", "device_id": null } }, { "name": "ada fan light return to auto", "room": "ada", "type": "switch", "id": { "entity_id": "switch.ada_fan_light_return_to_auto", "device_id": null } }, { "name": "edwin fan light return to auto", "room": "edwin", "type": "switch", "id": { "entity_id": "switch.edwin_fan_light_return_to_auto", "device_id": null } }, { "name": "Ada Fan", "room": "Ada", "type": "light", "id": { "entity_id": "light.ada_fan", "device_id": null } }, { "name": "Edwin Fan", "room": "Edwin", "type": "light", "id": { "entity_id": "light.edwin_fan", "device_id": null } } ] }, { "id": "routine_home_lights_off_weekday", "automation": "- id: routine_home_lights_off_weekday\n alias: 'Routine: Turn night lights off on week days'\n mode: single\n triggers:\n - trigger: time\n at: 09:00:00\n condition:\n condition: state\n entity_id: binary_sensor.workday_sensor\n state: 'on'\n actions:\n - action: media_player.turn_off\n target:\n entity_id:\n - media_player.ada_home\n - media_player.edwin_home\n - media_player.lounge_home", "config": [ { "name": "ada home", "room": "ada", "type": "media_player", "id": { "entity_id": "media_player.ada_home", "device_id": null } }, { "name": "edwin home", "room": "edwin", "type": "media_player", "id": { "entity_id": "media_player.edwin_home", "device_id": null } }, { "name": "workday sensor", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.workday_sensor", "device_id": null } }, { "name": "lounge home", "room": "lounge", "type": "media_player", "id": { "entity_id": "media_player.lounge_home", "device_id": null } } ] }, { "id": "routine_home_lights_off_early", "automation": "- id: routine_home_lights_off_early\n alias: 'Routine: Turn early night lights off'\n mode: single\n triggers:\n - trigger: time\n at: '19:30:00'\n actions:\n - action: light.turn_off\n target:\n entity_id:\n - light.hallway_sconces", "config": [ { "name": "hallway sconces", "room": "hallway", "type": "light", "id": { "entity_id": "light.hallway_sconces", "device_id": null } } ] }, { "id": "routine_home_lights_on", "automation": "- id: routine_home_lights_on\n alias: 'Routine: Turn night lights on'\n mode: single\n triggers:\n - trigger: time\n at: '17:45:00'\n actions:\n - action: switch.turn_on\n target:\n entity_id:\n - switch.adaptive_lighting_sleep_mode_night\n - delay: 00:00:05\n - action: light.turn_on\n target:\n entity_id:\n - light.edwin_night_light\n - light.hallway_sconces\n - action: number.set_value\n target:\n entity_id:\n - number.ada_fan_light_motion_sense_timeout\n - number.edwin_fan_light_motion_sense_timeout\n data:\n value: 10800\n - action: switch.turn_off\n target:\n entity_id:\n - switch.ada_fan_light_return_to_auto\n - switch.edwin_fan_light_return_to_auto\n - action: light.turn_off\n target:\n entity_id:\n - light.ada_fan\n - light.ada_lamp\n - light.edwin_fan\n - light.edwin_lamp\n - action: media_player.volume_set\n data:\n entity_id:\n - media_player.ada_home\n - media_player.edwin_home\n volume_level: '0.2'", "config": [ { "name": "ada lamp", "room": "ada", "type": "light", "id": { "entity_id": "light.ada_lamp", "device_id": null } }, { "name": "edwin night light", "room": "edwin", "type": "light", "id": { "entity_id": "light.edwin_night_light", "device_id": null } }, { "name": "hallway sconces", "room": "hallway", "type": "light", "id": { "entity_id": "light.hallway_sconces", "device_id": null } }, { "name": "adaptive lighting sleep mode night", "room": null, "type": "switch", "id": { "entity_id": "switch.adaptive_lighting_sleep_mode_night", "device_id": null } }, { "name": "ada home", "room": "ada", "type": "media_player", "id": { "entity_id": "media_player.ada_home", "device_id": null } }, { "name": "edwin home", "room": "edwin", "type": "media_player", "id": { "entity_id": "media_player.edwin_home", "device_id": null } }, { "name": "edwin lamp", "room": "edwin", "type": "light", "id": { "entity_id": "light.edwin_lamp", "device_id": null } }, { "name": "ada fan light motion sense timeout", "room": "ada", "type": "number", "id": { "entity_id": "number.ada_fan_light_motion_sense_timeout", "device_id": null } }, { "name": "edwin fan light motion sense timeout", "room": "edwin", "type": "number", "id": { "entity_id": "number.edwin_fan_light_motion_sense_timeout", "device_id": null } }, { "name": "ada fan light return to auto", "room": "ada", "type": "switch", "id": { "entity_id": "switch.ada_fan_light_return_to_auto", "device_id": null } }, { "name": "edwin fan light return to auto", "room": "edwin", "type": "switch", "id": { "entity_id": "switch.edwin_fan_light_return_to_auto", "device_id": null } }, { "name": "Ada Fan", "room": "Ada", "type": "light", "id": { "entity_id": "light.ada_fan", "device_id": null } }, { "name": "Edwin Fan", "room": "Edwin", "type": "light", "id": { "entity_id": "light.edwin_fan", "device_id": null } } ] }, { "id": "routine_home_movie_on", "automation": "- id: routine_home_movie_on\n alias: 'Routine: Put home into Movie mode'\n mode: single\n triggers:\n - trigger: state\n entity_id: input_boolean.home_movie\n from: 'off'\n to: 'on'\n actions: null", "config": [ { "name": "home movie", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.home_movie", "device_id": null } } ] }, { "id": "routine_home_movie_off", "automation": "- id: routine_home_movie_off\n alias: 'Routine: Take home out of Movie mode'\n mode: single\n triggers:\n - trigger: state\n entity_id: input_boolean.home_movie\n from: 'on'\n to: 'off'\n actions: null", "config": [ { "name": "home movie", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.home_movie", "device_id": null } } ] }, { "id": "routine_bathroom_rails_on", "automation": "- id: routine_bathroom_rails_on\n alias: 'Water Heating: Turn on towel rails'\n mode: single\n triggers:\n - trigger: time\n at: 03:00:00\n condition:\n or:\n - condition: template\n value_template: '{{ now().month == 5 }}'\n - condition: template\n value_template: '{{ now().month == 6 }}'\n - condition: template\n value_template: '{{ now().month == 7 }}'\n - condition: template\n value_template: '{{ now().month == 8 }}'\n actions:\n - action: switch.turn_on\n entity_id: switch.bathroom_rails_plug", "config": [ { "name": "bathroom rails plug", "room": "bathroom", "type": "switch", "id": { "entity_id": "switch.bathroom_rails_plug", "device_id": null } } ] }, { "id": "routine_bathroom_rails_off", "automation": "- id: routine_bathroom_rails_off\n alias: 'Water Heating: Turn off towel rails'\n mode: single\n triggers:\n - trigger: state\n entity_id: switch.bathroom_rails_plug\n from: 'off'\n to: 'on'\n actions:\n - delay: 04:00:00\n - action: switch.turn_off\n target:\n entity_id: switch.bathroom_rails_plug", "config": [ { "name": "bathroom rails plug", "room": "bathroom", "type": "switch", "id": { "entity_id": "switch.bathroom_rails_plug", "device_id": null } } ] }, { "id": "routine_bathroom_rails_off_failsafe", "automation": "- id: routine_bathroom_rails_off_failsafe\n alias: 'Water Heating: Turn off towel rails fail-safe'\n mode: single\n triggers:\n - trigger: time_pattern\n minutes: 15\n condition:\n and:\n - condition: time\n after: '22:00:00'\n before: 02:00:00\n - condition: state\n entity_id: switch.bathroom_rails_plug\n state: 'on'\n actions:\n - action: switch.turn_off\n entity_id: switch.bathroom_rails_plug", "config": [ { "name": "bathroom rails plug", "room": "bathroom", "type": "switch", "id": { "entity_id": "switch.bathroom_rails_plug", "device_id": null } } ] }, { "id": "routine_home_security_check_on", "automation": "- id: routine_home_security_check_on\n alias: 'Routine: Attempt to put Home into Secure mode at regular intervals'\n mode: queued\n triggers:\n - trigger: time_pattern\n minutes: 15\n actions:\n - if:\n - condition: template\n value_template: '{{ states(''input_boolean.home_security'') == ''off'' }}'\n then:\n - action: input_boolean.turn_on\n entity_id: input_boolean.home_security", "config": [ { "name": "home security", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.home_security", "device_id": null } } ] }, { "id": "routine_home_security_on", "automation": "- id: routine_home_security_on\n alias: 'Routine: Put Home into Secure mode'\n mode: queued\n triggers:\n - trigger: state\n entity_id: input_boolean.home_security\n to: 'on'\n actions:\n - if:\n - condition: template\n value_template: '{{ states(''lock.back_door_lock'') == ''unlocked'' or states(''lock.front_door_lock'')\n == ''unlocked'' }}'\n then:\n - action: input_boolean.turn_on\n entity_id: input_boolean.home_security_triggered\n - delay: 00:00:01\n - action: input_boolean.turn_off\n entity_id: input_boolean.home_security\n else:\n - action: input_boolean.turn_off\n entity_id: input_boolean.home_security_triggered\n - action: input_boolean.turn_on\n entity_id:\n - input_boolean.back_door_lock_security\n - input_boolean.front_door_lock_security", "config": [ { "name": "home security", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.home_security", "device_id": null } }, { "name": "home security triggered", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.home_security_triggered", "device_id": null } }, { "name": "back door lock", "room": "back", "type": "lock", "id": { "entity_id": "lock.back_door_lock", "device_id": null } }, { "name": "front door lock", "room": "front", "type": "lock", "id": { "entity_id": "lock.front_door_lock", "device_id": null } }, { "name": "back door lock security", "room": "back", "type": "input_boolean", "id": { "entity_id": "input_boolean.back_door_lock_security", "device_id": null } }, { "name": "front door lock security", "room": "front", "type": "input_boolean", "id": { "entity_id": "input_boolean.front_door_lock_security", "device_id": null } } ] }, { "id": "routine_home_security_off", "automation": "- id: routine_home_security_off\n alias: 'Routine: Take Home out of Secure mode'\n mode: queued\n triggers:\n - trigger: state\n entity_id: input_boolean.home_security\n to: 'off'\n actions:\n - if:\n - condition: template\n value_template: '{{ states(''input_boolean.home_security_triggered'') == ''on''\n }}'\n then:\n - action: input_boolean.turn_off\n entity_id: input_boolean.home_security_triggered\n else:\n - action: input_boolean.turn_off\n entity_id:\n - input_boolean.back_door_lock_security\n - input_boolean.front_door_lock_security", "config": [ { "name": "home security", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.home_security", "device_id": null } }, { "name": "home security triggered", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.home_security_triggered", "device_id": null } }, { "name": "back door lock security", "room": "back", "type": "input_boolean", "id": { "entity_id": "input_boolean.back_door_lock_security", "device_id": null } }, { "name": "front door lock security", "room": "front", "type": "input_boolean", "id": { "entity_id": "input_boolean.front_door_lock_security", "device_id": null } } ] }, { "id": "routine_back_door_state_all_on", "automation": "- id: routine_back_door_state_all_on\n alias: 'Routine: Back Door State all on'\n mode: queued\n triggers:\n - trigger: state\n entity_id: binary_sensor.template_back_door_state\n to: 'on'\n actions:\n - if:\n - condition: template\n value_template: '{{ states(''binary_sensor.template_back_door_state'') == ''on''\n and states(''binary_sensor.template_front_door_state'') == ''on'' }}'\n then:\n - action: input_boolean.turn_on\n entity_id: input_boolean.home_security", "config": [ { "name": "home security", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.home_security", "device_id": null } }, { "name": "template back door state", "room": "back", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.template_back_door_state", "device_id": null } }, { "name": "template front door state", "room": "front", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.template_front_door_state", "device_id": null } } ] }, { "id": "routine_back_door_state_all_off", "automation": "- id: routine_back_door_state_all_off\n alias: 'Routine: Back Door State all off'\n mode: queued\n triggers:\n - trigger: state\n entity_id: binary_sensor.template_back_door_state\n to: 'off'\n actions:\n - action: input_boolean.turn_on\n entity_id: input_boolean.home_security_triggered\n - action: input_boolean.turn_off\n entity_id: input_boolean.home_security", "config": [ { "name": "home security", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.home_security", "device_id": null } }, { "name": "home security triggered", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.home_security_triggered", "device_id": null } }, { "name": "template back door state", "room": "back", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.template_back_door_state", "device_id": null } } ] }, { "id": "routine_front_door_state_all_on", "automation": "- id: routine_front_door_state_all_on\n alias: 'Routine: Front Door State all on'\n mode: queued\n triggers:\n - trigger: state\n entity_id: binary_sensor.template_front_door_state\n to: 'on'\n actions:\n - if:\n - condition: template\n value_template: '{{ states(''binary_sensor.template_back_door_state'') == ''on''\n and states(''binary_sensor.template_front_door_state'') == ''on'' }}'\n then:\n - action: input_boolean.turn_on\n entity_id: input_boolean.home_security", "config": [ { "name": "home security", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.home_security", "device_id": null } }, { "name": "template back door state", "room": "back", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.template_back_door_state", "device_id": null } }, { "name": "template front door state", "room": "front", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.template_front_door_state", "device_id": null } } ] }, { "id": "routine_front_door_state_all_off", "automation": "- id: routine_front_door_state_all_off\n alias: 'Routine: Front Door State all off'\n mode: queued\n triggers:\n - trigger: state\n entity_id: binary_sensor.template_front_door_state\n to: 'off'\n actions:\n - action: input_boolean.turn_on\n entity_id: input_boolean.home_security_triggered\n - action: input_boolean.turn_off\n entity_id: input_boolean.home_security", "config": [ { "name": "home security", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.home_security", "device_id": null } }, { "name": "home security triggered", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.home_security_triggered", "device_id": null } }, { "name": "template front door state", "room": "front", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.template_front_door_state", "device_id": null } } ] }, { "id": "routine_back_door_lock_security_on", "automation": "- id: routine_back_door_lock_security_on\n alias: 'Routine: Put Back Door Lock into Secure mode'\n mode: queued\n triggers:\n - trigger: state\n entity_id: input_boolean.back_door_lock_security\n to: 'on'\n actions:\n - if:\n - condition: template\n value_template: '{{ states(''lock.back_door_lock'') == ''unlocked'' }}'\n then:\n - delay: 00:00:01\n - action: input_boolean.turn_off\n entity_id: input_boolean.back_door_lock_security\n - if:\n - condition: template\n value_template: '{{ states(''binary_sensor.template_back_door_sensor_contact_last'')\n == ''off'' and states(''lock.back_door_lock'') == ''unlocked'' }}'\n then:\n - action: lock.lock\n entity_id: lock.back_door_lock", "config": [ { "name": "back door lock", "room": "back", "type": "lock", "id": { "entity_id": "lock.back_door_lock", "device_id": null } }, { "name": "back door lock security", "room": "back", "type": "input_boolean", "id": { "entity_id": "input_boolean.back_door_lock_security", "device_id": null } }, { "name": "template back door sensor contact last", "room": "back", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.template_back_door_sensor_contact_last", "device_id": null } } ] }, { "id": "routine_front_door_lock_security_on", "automation": "- id: routine_front_door_lock_security_on\n alias: 'Routine: Put Front Door Lock into Secure mode'\n mode: queued\n triggers:\n - trigger: state\n entity_id: input_boolean.front_door_lock_security\n to: 'on'\n actions:\n - if:\n - condition: template\n value_template: '{{ states(''lock.front_door_lock'') == ''unlocked'' }}'\n then:\n - delay: 00:00:01\n - action: input_boolean.turn_off\n entity_id: input_boolean.front_door_lock_security\n - if:\n - condition: template\n value_template: '{{ states(''binary_sensor.template_front_door_sensor_contact_last'')\n == ''off'' and states(''lock.front_door_lock'') == ''unlocked'' }}'\n then:\n - action: lock.lock\n entity_id: lock.front_door_lock", "config": [ { "name": "front door lock", "room": "front", "type": "lock", "id": { "entity_id": "lock.front_door_lock", "device_id": null } }, { "name": "front door lock security", "room": "front", "type": "input_boolean", "id": { "entity_id": "input_boolean.front_door_lock_security", "device_id": null } }, { "name": "template front door sensor contact last", "room": "front", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.template_front_door_sensor_contact_last", "device_id": null } } ] }, { "id": "routine_back_door_lock_security_off", "automation": "- id: routine_back_door_lock_security_off\n alias: 'Routine: Take Back Door Lock out of Secure mode'\n mode: queued\n triggers:\n - trigger: state\n entity_id: input_boolean.back_door_lock_security\n to: 'off'\n actions:\n - if:\n - condition: template\n value_template: '{{ states(''lock.back_door_lock'') == ''locked'' }}'\n then:\n - action: lock.unlock\n entity_id: lock.back_door_lock", "config": [ { "name": "back door lock", "room": "back", "type": "lock", "id": { "entity_id": "lock.back_door_lock", "device_id": null } }, { "name": "back door lock security", "room": "back", "type": "input_boolean", "id": { "entity_id": "input_boolean.back_door_lock_security", "device_id": null } } ] }, { "id": "routine_front_door_lock_security_off", "automation": "- id: routine_front_door_lock_security_off\n alias: 'Routine: Take Front Door Lock out of Secure mode'\n mode: queued\n triggers:\n - trigger: state\n entity_id: input_boolean.front_door_lock_security\n to: 'off'\n actions:\n - if:\n - condition: template\n value_template: '{{ states(''lock.front_door_lock'') == ''locked'' }}'\n then:\n - action: lock.unlock\n entity_id: lock.front_door_lock", "config": [ { "name": "front door lock", "room": "front", "type": "lock", "id": { "entity_id": "lock.front_door_lock", "device_id": null } }, { "name": "front door lock security", "room": "front", "type": "input_boolean", "id": { "entity_id": "input_boolean.front_door_lock_security", "device_id": null } } ] }, { "id": "routine_template_back_door_sensor_contact_last_on", "automation": "- id: routine_template_back_door_sensor_contact_last_on\n alias: 'Routine: Template Back Door Sensor Contact Last on'\n mode: queued\n triggers:\n - trigger: state\n entity_id: binary_sensor.template_back_door_sensor_contact_last\n to: 'off'\n actions:\n - delay: 00:00:01\n - if:\n - condition: template\n value_template: '{{ states(''binary_sensor.template_back_door_sensor_contact_last'')\n == ''off'' and states(''lock.back_door_lock'') == ''unlocked'' }}'\n then:\n - action: lock.lock\n entity_id: lock.back_door_lock\n - delay: 00:00:01\n - if:\n - condition: template\n value_template: '{{ states(''binary_sensor.template_back_door_sensor_contact_last'')\n == ''off'' and states(''lock.back_door_lock'') == ''unlocked'' }}'\n then:\n - action: lock.lock\n entity_id: lock.back_door_lock\n - delay: 00:00:01\n - if:\n - condition: template\n value_template: '{{ states(''binary_sensor.template_back_door_sensor_contact_last'')\n == ''off'' and states(''lock.back_door_lock'') == ''unlocked'' }}'\n then:\n - action: lock.lock\n entity_id: lock.back_door_lock", "config": [ { "name": "back door lock", "room": "back", "type": "lock", "id": { "entity_id": "lock.back_door_lock", "device_id": null } }, { "name": "template back door sensor contact last", "room": "back", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.template_back_door_sensor_contact_last", "device_id": null } } ] }, { "id": "routine_template_front_door_sensor_contact_last_on", "automation": "- id: routine_template_front_door_sensor_contact_last_on\n alias: 'Routine: Template Front Door Sensor Contact Last on'\n mode: queued\n triggers:\n - trigger: state\n entity_id: binary_sensor.template_front_door_sensor_contact_last\n to: 'off'\n actions:\n - delay: 00:00:01\n - if:\n - condition: template\n value_template: '{{ states(''binary_sensor.template_front_door_sensor_contact_last'')\n == ''off'' and states(''lock.front_door_lock'') == ''unlocked'' }}'\n then:\n - action: lock.lock\n entity_id: lock.front_door_lock\n - delay: 00:00:01\n - if:\n - condition: template\n value_template: '{{ states(''binary_sensor.template_front_door_sensor_contact_last'')\n == ''off'' and states(''lock.front_door_lock'') == ''unlocked'' }}'\n then:\n - action: lock.lock\n entity_id: lock.front_door_lock\n - delay: 00:00:01\n - if:\n - condition: template\n value_template: '{{ states(''binary_sensor.template_front_door_sensor_contact_last'')\n == ''off'' and states(''lock.front_door_lock'') == ''unlocked'' }}'\n then:\n - action: lock.lock\n entity_id: lock.front_door_lock", "config": [ { "name": "front door lock", "room": "front", "type": "lock", "id": { "entity_id": "lock.front_door_lock", "device_id": null } }, { "name": "template front door sensor contact last", "room": "front", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.template_front_door_sensor_contact_last", "device_id": null } } ] }, { "id": "routine_back_door_state_on", "automation": "- id: routine_back_door_state_on\n alias: 'Routine: Back Door State on'\n mode: queued\n triggers:\n - trigger: state\n entity_id: binary_sensor.template_back_door_state\n to: 'on'\n actions:\n - action: input_boolean.turn_on\n entity_id: input_boolean.back_door_lock_security", "config": [ { "name": "back door lock security", "room": "back", "type": "input_boolean", "id": { "entity_id": "input_boolean.back_door_lock_security", "device_id": null } }, { "name": "template back door state", "room": "back", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.template_back_door_state", "device_id": null } } ] }, { "id": "routine_back_door_state_off", "automation": "- id: routine_back_door_state_off\n alias: 'Routine: Back Door State off'\n mode: queued\n triggers:\n - trigger: state\n entity_id: binary_sensor.template_back_door_state\n to: 'off'\n actions:\n - action: input_boolean.turn_off\n entity_id: input_boolean.back_door_lock_security", "config": [ { "name": "back door lock security", "room": "back", "type": "input_boolean", "id": { "entity_id": "input_boolean.back_door_lock_security", "device_id": null } }, { "name": "template back door state", "room": "back", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.template_back_door_state", "device_id": null } } ] }, { "id": "routine_front_door_state_on", "automation": "- id: routine_front_door_state_on\n alias: 'Routine: Front Door State on'\n mode: queued\n triggers:\n - trigger: state\n entity_id: binary_sensor.template_front_door_state\n to: 'on'\n actions:\n - action: input_boolean.turn_on\n entity_id: input_boolean.front_door_lock_security", "config": [ { "name": "front door lock security", "room": "front", "type": "input_boolean", "id": { "entity_id": "input_boolean.front_door_lock_security", "device_id": null } }, { "name": "template front door state", "room": "front", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.template_front_door_state", "device_id": null } } ] }, { "id": "routine_front_door_state_off", "automation": "- id: routine_front_door_state_off\n alias: 'Routine: Front Door State off'\n mode: queued\n triggers:\n - trigger: state\n entity_id: binary_sensor.template_front_door_state\n to: 'off'\n actions:\n - action: input_boolean.turn_off\n entity_id: input_boolean.front_door_lock_security", "config": [ { "name": "front door lock security", "room": "front", "type": "input_boolean", "id": { "entity_id": "input_boolean.front_door_lock_security", "device_id": null } }, { "name": "template front door state", "room": "front", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.template_front_door_state", "device_id": null } } ] }, { "id": "Update BOM Icons", "automation": "- alias: Update BOM Icons\n trigger:\n - event: start\n platform: homeassistant\n - entity_id: sun.sun\n platform: state\n to: above_horizon\n - entity_id: sun.sun\n platform: state\n to: below_horizon\n action:\n - service: homeassistant.update_entity\n entity_id: sensor.bom_forecast_0, sensor.bom_forecast_1, sensor.bom_forecast_2,\n sensor.bom_forecast_3, sensor.bom_forecast_4, sensor.bom_forecast_5, sensor.bom_forecast_6", "config": [ { "name": "sun sun", "room": null, "type": "sun", "id": { "entity_id": "sun.sun", "device_id": null } }, { "name": "bom forecast 0", "room": null, "type": "sensor", "id": { "entity_id": "sensor.bom_forecast_0", "device_id": null } }, { "name": "bom forecast 1", "room": null, "type": "sensor", "id": { "entity_id": "sensor.bom_forecast_1", "device_id": null } }, { "name": "bom forecast 2", "room": null, "type": "sensor", "id": { "entity_id": "sensor.bom_forecast_2", "device_id": null } }, { "name": "bom forecast 3", "room": null, "type": "sensor", "id": { "entity_id": "sensor.bom_forecast_3", "device_id": null } }, { "name": "bom forecast 4", "room": null, "type": "sensor", "id": { "entity_id": "sensor.bom_forecast_4", "device_id": null } }, { "name": "bom forecast 5", "room": null, "type": "sensor", "id": { "entity_id": "sensor.bom_forecast_5", "device_id": null } }, { "name": "bom forecast 6", "room": null, "type": "sensor", "id": { "entity_id": "sensor.bom_forecast_6", "device_id": null } } ] }, { "id": "weather_ipdate_bom_icons", "automation": "- id: weather_ipdate_bom_icons\n alias: 'Weather: Update BOM Icons'\n triggers:\n - trigger: state\n entity_id: sun.sun\n to: above_horizon\n - trigger: state\n entity_id: sun.sun\n to: below_horizon\n actions:\n - action: homeassistant.update_entity\n entity_id:\n - sensor.bom_forecast_0\n - sensor.bom_forecast_1\n - sensor.bom_forecast_2\n - sensor.bom_forecast_3\n - sensor.bom_forecast_4\n - sensor.bom_forecast_5\n - sensor.bom_forecast_6", "config": [ { "name": "sun sun", "room": null, "type": "sun", "id": { "entity_id": "sun.sun", "device_id": null } }, { "name": "bom forecast 0", "room": null, "type": "sensor", "id": { "entity_id": "sensor.bom_forecast_0", "device_id": null } }, { "name": "bom forecast 1", "room": null, "type": "sensor", "id": { "entity_id": "sensor.bom_forecast_1", "device_id": null } }, { "name": "bom forecast 2", "room": null, "type": "sensor", "id": { "entity_id": "sensor.bom_forecast_2", "device_id": null } }, { "name": "bom forecast 3", "room": null, "type": "sensor", "id": { "entity_id": "sensor.bom_forecast_3", "device_id": null } }, { "name": "bom forecast 4", "room": null, "type": "sensor", "id": { "entity_id": "sensor.bom_forecast_4", "device_id": null } }, { "name": "bom forecast 5", "room": null, "type": "sensor", "id": { "entity_id": "sensor.bom_forecast_5", "device_id": null } }, { "name": "bom forecast 6", "room": null, "type": "sensor", "id": { "entity_id": "sensor.bom_forecast_6", "device_id": null } } ] } ]