[ { "id": "Bathroom floor heater manual off", "automation": "- alias: Bathroom floor heater manual off\n initial_state: true\n triggers:\n trigger: state\n entity_id: input_boolean.bathroom_floor_heater_auto\n to: 'off'\n actions:\n action: script.turn_on\n target:\n entity_id: script.bathroom_floor_heater_turn_off", "config": [ { "name": "bathroom floor heater auto", "room": "bathroom", "type": "input_boolean", "id": { "entity_id": "input_boolean.bathroom_floor_heater_auto", "device_id": null } }, { "name": "bathroom floor heater turn off script", "room": "bathroom", "type": "script", "id": { "entity_id": "script.bathroom_floor_heater_turn_off", "device_id": null } } ] }, { "id": "Bathroom floor heater manual auto", "automation": "- alias: Bathroom floor heater manual auto\n initial_state: true\n triggers:\n trigger: state\n entity_id: input_boolean.bathroom_floor_heater_auto\n to: 'on'\n actions:\n action: script.turn_on\n target:\n entity_id: script.bathroom_floor_heater_auto", "config": [ { "name": "bathroom floor heater auto", "room": "bathroom", "type": "input_boolean", "id": { "entity_id": "input_boolean.bathroom_floor_heater_auto", "device_id": null } }, { "name": "bathroom floor heater auto script", "room": "bathroom", "type": "script", "id": { "entity_id": "script.bathroom_floor_heater_auto", "device_id": null } } ] }, { "id": "Bathroom floor heater away", "automation": "- alias: Bathroom floor heater away\n initial_state: true\n triggers:\n trigger: state\n entity_id: group.device_tracker_family\n to: not_home\n conditions:\n - condition: state\n entity_id: input_boolean.bathroom_floor_heater_auto\n state: 'on'\n - condition: state\n entity_id: input_boolean.enable_bathroom_floor_heater_automations\n state: 'on'\n actions:\n action: script.turn_on\n target:\n entity_id: script.bathroom_floor_heater_turn_off", "config": [ { "name": "bathroom floor heater auto", "room": "bathroom", "type": "input_boolean", "id": { "entity_id": "input_boolean.bathroom_floor_heater_auto", "device_id": null } }, { "name": "bathroom floor heater turn off script", "room": "bathroom", "type": "script", "id": { "entity_id": "script.bathroom_floor_heater_turn_off", "device_id": null } }, { "name": "enable bathroom floor heater automations", "room": "bathroom", "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_bathroom_floor_heater_automations", "device_id": null } }, { "name": "family device tracker group", "room": null, "type": "group", "id": { "entity_id": "group.device_tracker_family", "device_id": null } } ] }, { "id": "Bathroom floor heater home", "automation": "- alias: Bathroom floor heater home\n initial_state: true\n triggers:\n trigger: state\n entity_id: group.device_tracker_family\n to: home\n conditions:\n - condition: state\n entity_id: input_boolean.bathroom_floor_heater_auto\n state: 'on'\n - condition: state\n entity_id: input_boolean.enable_bathroom_floor_heater_automations\n state: 'on'\n actions:\n action: script.turn_on\n target:\n entity_id: script.bathroom_floor_heater_auto", "config": [ { "name": "bathroom floor heater auto", "room": "bathroom", "type": "input_boolean", "id": { "entity_id": "input_boolean.bathroom_floor_heater_auto", "device_id": null } }, { "name": "bathroom floor heater auto script", "room": "bathroom", "type": "script", "id": { "entity_id": "script.bathroom_floor_heater_auto", "device_id": null } }, { "name": "enable bathroom floor heater automations", "room": "bathroom", "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_bathroom_floor_heater_automations", "device_id": null } }, { "name": "family device tracker group", "room": null, "type": "group", "id": { "entity_id": "group.device_tracker_family", "device_id": null } } ] }, { "id": "Leaving home", "automation": "- alias: Leaving home\n initial_state: true\n triggers:\n trigger: state\n entity_id: group.device_tracker_family\n to: not_home\n actions:\n action: script.indoor_lights_off", "config": [ { "name": "family device tracker group", "room": null, "type": "group", "id": { "entity_id": "group.device_tracker_family", "device_id": null } }, { "name": "indoor lights off script", "room": null, "type": "script", "id": { "entity_id": "script.indoor_lights_off", "device_id": null } } ] }, { "id": "Coming home turn on lights bright", "automation": "- alias: Coming home turn on lights bright\n initial_state: true\n triggers:\n - trigger: state\n entity_id: group.device_tracker_family\n to: home\n conditions:\n - condition: state\n entity_id: input_boolean.coming_home_turn_on_lights\n state: 'on'\n - condition: state\n entity_id: binary_sensor.relaxed_mode\n state: 'off'\n - condition: sun\n after: sunset\n after_offset: -01:00:00\n - condition: or\n conditions:\n - condition: state\n entity_id: group.indoor_lights\n state: 'off'\n - condition: state\n entity_id: input_boolean.away_lights_active\n state: 'on'\n actions:\n - action: script.bottom_floor_bright\n - action: input_boolean.turn_off\n data:\n entity_id: input_boolean.away_lights_active\n - condition: state\n entity_id: input_boolean.enable_advent_light_automations\n state: 'on'\n - action: script.turn_on\n target:\n entity_id:\n - script.bedroom_advent_lights\n - script.office_advent_lights\n - script.childroom_advent_lights", "config": [ { "name": "family device tracker group", "room": null, "type": "group", "id": { "entity_id": "group.device_tracker_family", "device_id": null } }, { "name": "coming home turn on lights", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.coming_home_turn_on_lights", "device_id": null } }, { "name": "relaxed mode", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.relaxed_mode", "device_id": null } }, { "name": "indoor lights group", "room": null, "type": "group", "id": { "entity_id": "group.indoor_lights", "device_id": null } }, { "name": "away lights active", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.away_lights_active", "device_id": null } }, { "name": "bottom floor bright script", "room": null, "type": "script", "id": { "entity_id": "script.bottom_floor_bright", "device_id": null } }, { "name": "enable advent light automations", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_advent_light_automations", "device_id": null } }, { "name": "bedroom advent lights script", "room": "bedroom", "type": "script", "id": { "entity_id": "script.bedroom_advent_lights", "device_id": null } }, { "name": "office advent lights script", "room": "office", "type": "script", "id": { "entity_id": "script.office_advent_lights", "device_id": null } }, { "name": "childroom advent lights script", "room": "childroom", "type": "script", "id": { "entity_id": "script.childroom_advent_lights", "device_id": null } } ] }, { "id": "Coming home turn on lights relaxed", "automation": "- alias: Coming home turn on lights relaxed\n initial_state: true\n triggers:\n - trigger: state\n entity_id: group.device_tracker_family\n to: home\n conditions:\n - condition: state\n entity_id: input_boolean.coming_home_turn_on_lights\n state: 'on'\n - condition: state\n entity_id: binary_sensor.relaxed_mode\n state: 'on'\n - condition: sun\n after: sunset\n after_offset: -01:00:00\n - condition: or\n conditions:\n - condition: state\n entity_id: group.indoor_lights\n state: 'off'\n - condition: state\n entity_id: input_boolean.away_lights_active\n state: 'on'\n actions:\n - action: script.indoor_lights_relaxed\n - action: input_boolean.turn_off\n data:\n entity_id: input_boolean.away_lights_active", "config": [ { "name": "family device tracker group", "room": null, "type": "group", "id": { "entity_id": "group.device_tracker_family", "device_id": null } }, { "name": "coming home turn on lights", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.coming_home_turn_on_lights", "device_id": null } }, { "name": "relaxed mode", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.relaxed_mode", "device_id": null } }, { "name": "indoor lights group", "room": null, "type": "group", "id": { "entity_id": "group.indoor_lights", "device_id": null } }, { "name": "away lights active", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.away_lights_active", "device_id": null } }, { "name": "indoor lights relaxed script", "room": null, "type": "script", "id": { "entity_id": "script.indoor_lights_relaxed", "device_id": null } } ] }, { "id": "Coming home turn on hallway lights", "automation": "- alias: Coming home turn on hallway lights\n initial_state: true\n triggers:\n - trigger: state\n entity_id: group.device_tracker_family\n to: home\n - trigger: state\n entity_id: person.nellie\n to: home\n conditions:\n - condition: state\n entity_id: input_boolean.coming_home_turn_on_lights\n state: 'on'\n - condition: state\n entity_id: binary_sensor.relaxed_mode\n state: 'off'\n - condition: sun\n before: sunset\n before_offset: -01:00:00\n - condition: or\n conditions:\n - condition: state\n entity_id: group.indoor_lights\n state: 'off'\n - condition: state\n entity_id: device_tracker.sela_lt6ywwb54\n state: home\n - condition: state\n entity_id: input_boolean.away_lights_active\n state: 'on'\n actions:\n - action: script.hallway_bright\n - action: input_boolean.turn_off\n data:\n entity_id: input_boolean.away_lights_active\n - condition: state\n entity_id: input_boolean.enable_advent_light_automations\n state: 'on'\n - action: script.advent_lights_turn_on", "config": [ { "name": "family device tracker group", "room": null, "type": "group", "id": { "entity_id": "group.device_tracker_family", "device_id": null } }, { "name": "coming home turn on lights", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.coming_home_turn_on_lights", "device_id": null } }, { "name": "relaxed mode", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.relaxed_mode", "device_id": null } }, { "name": "indoor lights group", "room": null, "type": "group", "id": { "entity_id": "group.indoor_lights", "device_id": null } }, { "name": "away lights active", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.away_lights_active", "device_id": null } }, { "name": "enable advent light automations", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_advent_light_automations", "device_id": null } }, { "name": "hallway bright script", "room": "hallway", "type": "script", "id": { "entity_id": "script.hallway_bright", "device_id": null } }, { "name": "advent lights turn on script", "room": null, "type": "script", "id": { "entity_id": "script.advent_lights_turn_on", "device_id": null } }, { "name": "person nellie", "room": null, "type": "person", "id": { "entity_id": "person.nellie", "device_id": null } }, { "name": "sela device tracker", "room": null, "type": "device_tracker", "id": { "entity_id": "device_tracker.sela_lt6ywwb54", "device_id": null } } ] }, { "id": "Coming home group Sonos speakers", "automation": "- alias: Coming home group Sonos speakers\n initial_state: true\n triggers:\n trigger: state\n entity_id: group.device_tracker_family\n to: home\n conditions:\n condition: state\n entity_id: binary_sensor.livingroom_sonos_tv_active\n state: 'off'\n actions:\n - choose:\n - conditions:\n - condition: state\n entity_id: binary_sensor.relaxed_mode\n state: 'on'\n sequence:\n - action: script.sonos_group_livingroom_speaker\n - action: script.sonos_set_group_volume\n data:\n volume: 0.2\n - action: script.sonos_ungroup_childroom_speaker\n - action: media_player.volume_set\n data:\n entity_id: media_player.childroom_sonos\n volume_level: 0.2\n default:\n - action: script.sonos_group_all_speakers\n - action: script.sonos_set_group_volume\n data:\n volume: 0.2", "config": [ { "name": "family device tracker group", "room": null, "type": "group", "id": { "entity_id": "group.device_tracker_family", "device_id": null } }, { "name": "relaxed mode", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.relaxed_mode", "device_id": null } }, { "name": "livingroom sonos tv active", "room": "livingroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.livingroom_sonos_tv_active", "device_id": null } }, { "name": "sonos group livingroom speaker script", "room": "livingroom", "type": "script", "id": { "entity_id": "script.sonos_group_livingroom_speaker", "device_id": null } }, { "name": "sonos set group volume script", "room": null, "type": "script", "id": { "entity_id": "script.sonos_set_group_volume", "device_id": null } }, { "name": "sonos ungroup childroom speaker script", "room": "childroom", "type": "script", "id": { "entity_id": "script.sonos_ungroup_childroom_speaker", "device_id": null } }, { "name": "childroom sonos", "room": "childroom", "type": "media_player", "id": { "entity_id": "media_player.childroom_sonos", "device_id": null } }, { "name": "sonos group all speakers script", "room": null, "type": "script", "id": { "entity_id": "script.sonos_group_all_speakers", "device_id": null } } ] }, { "id": "Start working", "automation": "- alias: Start working\n initial_state: true\n triggers:\n trigger: state\n entity_id: device_tracker.sela_lt6ywwb54\n to: home\n conditions:\n - condition: state\n entity_id: binary_sensor.workday_sensor\n state: 'on'\n - condition: time\n before: '17:00:00'\n actions:\n - action: script.office_work_light\n - action: script.hallway_top_floor_bright\n - action: script.sonos_ungroup_childroom_speaker\n - action: media_player.volume_set\n data:\n entity_id: media_player.childroom_sonos\n volume_level: 0.4\n - condition: state\n entity_id: person.nellie\n state: not_home\n - action: light.turn_off\n target:\n entity_id:\n - light.hallway_ceiling_bottom_floor\n - light.kitchen_table\n - light.livingroom_couch_table\n - light.livingroom_dinner_table\n - light.livingroom_floor\n - light.livingroom_window\n - light.bedroom_bedside\n - light.childroom_ceiling\n - action: script.sonos_ungroup_childroom_speaker", "config": [ { "name": "person nellie", "room": null, "type": "person", "id": { "entity_id": "person.nellie", "device_id": null } }, { "name": "sela device tracker", "room": null, "type": "device_tracker", "id": { "entity_id": "device_tracker.sela_lt6ywwb54", "device_id": null } }, { "name": "sonos ungroup childroom speaker script", "room": "childroom", "type": "script", "id": { "entity_id": "script.sonos_ungroup_childroom_speaker", "device_id": null } }, { "name": "childroom sonos", "room": "childroom", "type": "media_player", "id": { "entity_id": "media_player.childroom_sonos", "device_id": null } }, { "name": "workday sensor", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.workday_sensor", "device_id": null } }, { "name": "office work light script", "room": "office", "type": "script", "id": { "entity_id": "script.office_work_light", "device_id": null } }, { "name": "hallway top floor bright script", "room": "hallway", "type": "script", "id": { "entity_id": "script.hallway_top_floor_bright", "device_id": null } }, { "name": "hallway ceiling bottom floor light", "room": "hallway", "type": "light", "id": { "entity_id": "light.hallway_ceiling_bottom_floor", "device_id": null } }, { "name": "kitchen table light", "room": "kitchen", "type": "light", "id": { "entity_id": "light.kitchen_table", "device_id": null } }, { "name": "livingroom couch table light", "room": "livingroom", "type": "light", "id": { "entity_id": "light.livingroom_couch_table", "device_id": null } }, { "name": "livingroom dinner table light", "room": "livingroom", "type": "light", "id": { "entity_id": "light.livingroom_dinner_table", "device_id": null } }, { "name": "livingroom floor light", "room": "livingroom", "type": "light", "id": { "entity_id": "light.livingroom_floor", "device_id": null } }, { "name": "livingroom window light", "room": "livingroom", "type": "light", "id": { "entity_id": "light.livingroom_window", "device_id": null } }, { "name": "bedroom bedside light", "room": "bedroom", "type": "light", "id": { "entity_id": "light.bedroom_bedside", "device_id": null } }, { "name": "childroom ceiling light", "room": "childroom", "type": "light", "id": { "entity_id": "light.childroom_ceiling", "device_id": null } } ] }, { "id": "Stop working", "automation": "- alias: Stop working\n initial_state: true\n triggers:\n trigger: state\n entity_id: device_tracker.sela_lt6ywwb54\n to: not_home\n actions:\n action: light.turn_off\n target:\n entity_id: light.office_ceiling", "config": [ { "name": "sela device tracker", "room": null, "type": "device_tracker", "id": { "entity_id": "device_tracker.sela_lt6ywwb54", "device_id": null } }, { "name": "office ceiling light", "room": "office", "type": "light", "id": { "entity_id": "light.office_ceiling", "device_id": null } } ] }, { "id": "Leaving home during work hours", "automation": "- alias: Leaving home during work hours\n initial_state: true\n triggers:\n trigger: state\n entity_id: person.david\n to: not_home\n conditions:\n - condition: state\n entity_id: device_tracker.sela_lt6ywwb54\n state: home\n - condition: state\n entity_id: person.nellie\n state: home\n actions:\n action: light.turn_off\n target:\n area_id: arbetsrum", "config": [ { "name": "person nellie", "room": null, "type": "person", "id": { "entity_id": "person.nellie", "device_id": null } }, { "name": "sela device tracker", "room": null, "type": "device_tracker", "id": { "entity_id": "device_tracker.sela_lt6ywwb54", "device_id": null } }, { "name": "person david", "room": null, "type": "person", "id": { "entity_id": "person.david", "device_id": null } } ] }, { "id": "Coming home during work hours", "automation": "- alias: Coming home during work hours\n initial_state: true\n triggers:\n trigger: state\n entity_id: device_tracker.davids_iphone\n to: home\n conditions:\n condition: state\n entity_id: device_tracker.sela_lt6ywwb54\n state: home\n actions:\n action: script.office_work_light", "config": [ { "name": "sela device tracker", "room": null, "type": "device_tracker", "id": { "entity_id": "device_tracker.sela_lt6ywwb54", "device_id": null } }, { "name": "office work light script", "room": "office", "type": "script", "id": { "entity_id": "script.office_work_light", "device_id": null } }, { "name": "davids iphone device tracker", "room": null, "type": "device_tracker", "id": { "entity_id": "device_tracker.davids_iphone", "device_id": null } } ] }, { "id": "Nellie leaving home during work hours", "automation": "- alias: Nellie leaving home during work hours\n initial_state: true\n triggers:\n trigger: state\n entity_id: person.nellie\n to: not_home\n conditions:\n - condition: state\n entity_id: device_tracker.sela_lt6ywwb54\n state: home\n - condition: state\n entity_id: person.david\n state: home\n actions:\n - action: light.turn_off\n target:\n entity_id:\n - light.hallway_ceiling_bottom_floor\n - light.hallway_stair_group\n area_id:\n - kok\n - vardagsrum\n - sovrum\n - barnrum\n - condition: state\n entity_id: media_player.kitchen_sonos\n state: playing\n - action: media_player.media_pause\n target:\n entity_id: media_player.kitchen_sonos", "config": [ { "name": "person nellie", "room": null, "type": "person", "id": { "entity_id": "person.nellie", "device_id": null } }, { "name": "sela device tracker", "room": null, "type": "device_tracker", "id": { "entity_id": "device_tracker.sela_lt6ywwb54", "device_id": null } }, { "name": "hallway ceiling bottom floor light", "room": "hallway", "type": "light", "id": { "entity_id": "light.hallway_ceiling_bottom_floor", "device_id": null } }, { "name": "person david", "room": null, "type": "person", "id": { "entity_id": "person.david", "device_id": null } }, { "name": "hallway stair group light", "room": "hallway", "type": "light", "id": { "entity_id": "light.hallway_stair_group", "device_id": null } }, { "name": "kitchen sonos", "room": "kitchen", "type": "media_player", "id": { "entity_id": "media_player.kitchen_sonos", "device_id": null } } ] }, { "id": "Toggle coffee maker", "automation": "- alias: Toggle coffee maker\n initial_state: true\n triggers:\n - trigger: event\n event_type: ios.action_fired\n event_data:\n actionID: 0AD13D57-0A4F-4973-8908-97A24064DAFE\n actionName: Turn on coffee maker\n sourceDeviceID: davids_iphone\n sourceDeviceName: Davids iPhone\n sourceDevicePermanentID: CFD2DEC1-8CF3-432F-AF78-7419632CC842\n triggerSource: appShortcut\n actions:\n - action: switch.toggle\n target:\n entity_id: switch.kitchen_coffee_maker", "config": [ { "name": "kitchen coffee maker switch", "room": "kitchen", "type": "switch", "id": { "entity_id": "switch.kitchen_coffee_maker", "device_id": null } } ] }, { "id": "Play child room music", "automation": "- alias: Play child room music\n initial_state: true\n triggers:\n - trigger: event\n event_type: ios.action_fired\n event_data:\n actionID: CADF83CD-087C-4737-8E5F-16D3DB61E40E\n actionName: Play child room music\n sourceDeviceID: davids_iphone\n sourceDeviceName: Davids iPhone\n sourceDevicePermanentID: CFD2DEC1-8CF3-432F-AF78-7419632CC842\n triggerSource: appShortcut\n - trigger: event\n event_type: ios.action_fired\n event_data:\n actionID: 405DCC9E-1D43-4105-9757-390F31263579\n actionName: Play child room music\n sourceDeviceID: nellies_iphone\n sourceDeviceName: Nellies iPhone\n sourceDevicePermanentID: 339E737F-6B8D-4568-8F98-3E422F7E98D8\n triggerSource: appShortcut\n actions:\n - action: light.turn_off\n target:\n entity_id:\n - light.childroom_ceiling\n - light.hallway_ceiling_top_floor\n - light.hallway_stair_up\n - action: script.turn_on\n target:\n entity_id: script.play_child_room_night_music", "config": [ { "name": "childroom ceiling light", "room": "childroom", "type": "light", "id": { "entity_id": "light.childroom_ceiling", "device_id": null } }, { "name": "play child room night music script", "room": "childroom", "type": "script", "id": { "entity_id": "script.play_child_room_night_music", "device_id": null } }, { "name": "hallway ceiling top floor light", "room": "hallway", "type": "light", "id": { "entity_id": "light.hallway_ceiling_top_floor", "device_id": null } }, { "name": "hallway stair up light", "room": "hallway", "type": "light", "id": { "entity_id": "light.hallway_stair_up", "device_id": null } } ] }, { "id": "Turn on PC", "automation": "- alias: Turn on PC\n initial_state: true\n triggers:\n - trigger: event\n event_type: ios.action_fired\n event_data:\n actionID: 184A8E4A-CE5B-4B01-B015-7A54F99814F3\n actionName: Turn on PC\n sourceDeviceID: davids_iphone\n sourceDeviceName: Davids iPhone\n sourceDevicePermanentID: CFD2DEC1-8CF3-432F-AF78-7419632CC842\n triggerSource: appShortcut\n actions:\n - action: switch.turn_on\n target:\n entity_id: switch.wol_vidar", "config": [ { "name": "wol vidar switch", "room": "office", "type": "switch", "id": { "entity_id": "switch.wol_vidar", "device_id": null } } ] }, { "id": "Evening bright", "automation": "- alias: Evening bright\n triggers:\n trigger: sun\n event: sunset\n offset: -01:00:00\n conditions:\n - condition: state\n entity_id: group.device_tracker_family\n state: home\n - condition: state\n entity_id: binary_sensor.relaxed_mode\n state: 'off'\n - condition: time\n before: '19:00:00'\n actions:\n action: script.bottom_floor_bright", "config": [ { "name": "family device tracker group", "room": null, "type": "group", "id": { "entity_id": "group.device_tracker_family", "device_id": null } }, { "name": "relaxed mode", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.relaxed_mode", "device_id": null } }, { "name": "bottom floor bright script", "room": null, "type": "script", "id": { "entity_id": "script.bottom_floor_bright", "device_id": null } } ] }, { "id": "Evening relaxed", "automation": "- alias: Evening relaxed\n triggers:\n trigger: state\n entity_id: binary_sensor.relaxed_mode\n to: 'on'\n conditions:\n condition: state\n entity_id: group.device_tracker_family\n state: home\n actions:\n - action: script.indoor_lights_relaxed\n - condition: state\n entity_id: binary_sensor.childroom_sonos_is_grouped\n state: 'on'\n - action: script.sonos_ungroup_childroom_speaker\n - condition: template\n value_template: '{{ state_attr(''media_player.childroom_sonos'',''volume_level'')\n > 0.10 }}\n\n '\n - action: media_player.volume_set\n data:\n entity_id: media_player.childroom_sonos\n volume_level: 0.1", "config": [ { "name": "family device tracker group", "room": null, "type": "group", "id": { "entity_id": "group.device_tracker_family", "device_id": null } }, { "name": "relaxed mode", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.relaxed_mode", "device_id": null } }, { "name": "indoor lights relaxed script", "room": null, "type": "script", "id": { "entity_id": "script.indoor_lights_relaxed", "device_id": null } }, { "name": "sonos ungroup childroom speaker script", "room": "childroom", "type": "script", "id": { "entity_id": "script.sonos_ungroup_childroom_speaker", "device_id": null } }, { "name": "childroom sonos", "room": "childroom", "type": "media_player", "id": { "entity_id": "media_player.childroom_sonos", "device_id": null } }, { "name": "childroom sonos is grouped", "room": "childroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.childroom_sonos_is_grouped", "device_id": null } } ] }, { "id": "Hallway bright", "automation": "- alias: Hallway bright\n triggers:\n trigger: time\n at: 09:00:00\n conditions:\n condition: state\n entity_id: group.device_tracker_family\n state: home\n actions:\n action: script.hallway_bright", "config": [ { "name": "family device tracker group", "room": null, "type": "group", "id": { "entity_id": "group.device_tracker_family", "device_id": null } }, { "name": "hallway bright script", "room": "hallway", "type": "script", "id": { "entity_id": "script.hallway_bright", "device_id": null } } ] }, { "id": "Child room night light", "automation": "- alias: Child room night light\n triggers:\n trigger: time\n at: '21:30:00'\n actions:\n action: script.childroom_night_light", "config": [ { "name": "childroom night light script", "room": "childroom", "type": "script", "id": { "entity_id": "script.childroom_night_light", "device_id": null } } ] }, { "id": "Advent lights workday", "automation": "- alias: Advent lights workday\n initial_state: true\n triggers:\n trigger: time\n at: 06:45:00\n conditions:\n - condition: state\n entity_id: input_boolean.enable_advent_light_automations\n state: 'on'\n - condition: state\n entity_id: binary_sensor.workday_sensor\n state: 'on'\n actions:\n action: script.advent_lights_turn_on", "config": [ { "name": "enable advent light automations", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_advent_light_automations", "device_id": null } }, { "name": "advent lights turn on script", "room": null, "type": "script", "id": { "entity_id": "script.advent_lights_turn_on", "device_id": null } }, { "name": "workday sensor", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.workday_sensor", "device_id": null } } ] }, { "id": "Advent lights weekend", "automation": "- alias: Advent lights weekend\n initial_state: true\n triggers:\n trigger: time\n at: 08:15:00\n conditions:\n - condition: state\n entity_id: input_boolean.enable_advent_light_automations\n state: 'on'\n - condition: state\n entity_id: binary_sensor.workday_sensor\n state: 'off'\n actions:\n action: script.advent_lights_turn_on", "config": [ { "name": "enable advent light automations", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_advent_light_automations", "device_id": null } }, { "name": "advent lights turn on script", "room": null, "type": "script", "id": { "entity_id": "script.advent_lights_turn_on", "device_id": null } }, { "name": "workday sensor", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.workday_sensor", "device_id": null } } ] }, { "id": "Sunset", "automation": "- alias: Sunset\n triggers:\n trigger: sun\n event: sunset\n conditions:\n - condition: state\n entity_id: group.device_tracker_family\n state: home\n - condition: state\n entity_id: group.indoor_lights\n state: 'on'\n - condition: state\n entity_id: binary_sensor.relaxed_mode\n state: 'off'\n actions:\n action: script.turn_on\n target:\n entity_id: script.window_lights", "config": [ { "name": "family device tracker group", "room": null, "type": "group", "id": { "entity_id": "group.device_tracker_family", "device_id": null } }, { "name": "relaxed mode", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.relaxed_mode", "device_id": null } }, { "name": "indoor lights group", "room": null, "type": "group", "id": { "entity_id": "group.indoor_lights", "device_id": null } }, { "name": "window lights script", "room": null, "type": "script", "id": { "entity_id": "script.window_lights", "device_id": null } } ] }, { "id": "Bright after sunset bedroom", "automation": "- alias: Bright after sunset bedroom\n initial_state: false\n triggers:\n trigger: state\n entity_id: script.bedroom_bright\n to: 'on'\n conditions:\n - condition: sun\n after: sunset\n - condition: state\n entity_id: input_boolean.window_lights_after_sunset\n state: 'on'\n actions:\n action: light.turn_on\n data:\n entity_id: light.bedroom_bedside\n brightness_pct: 100", "config": [ { "name": "bedroom bedside light", "room": "bedroom", "type": "light", "id": { "entity_id": "light.bedroom_bedside", "device_id": null } }, { "name": "bedroom bright script", "room": "bedroom", "type": "script", "id": { "entity_id": "script.bedroom_bright", "device_id": null } }, { "name": "window lights after sunset", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.window_lights_after_sunset", "device_id": null } } ] }, { "id": "Bright after sunset livingroom", "automation": "- alias: Bright after sunset livingroom\n initial_state: true\n triggers:\n trigger: state\n entity_id: script.livingroom_bright\n to: 'on'\n conditions:\n - condition: sun\n after: sunset\n - condition: state\n entity_id: input_boolean.window_lights_after_sunset\n state: 'on'\n actions:\n action: light.turn_on\n target:\n entity_id:\n - light.livingroom_window\n - light.office_window", "config": [ { "name": "livingroom window light", "room": "livingroom", "type": "light", "id": { "entity_id": "light.livingroom_window", "device_id": null } }, { "name": "window lights after sunset", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.window_lights_after_sunset", "device_id": null } }, { "name": "livingroom bright script", "room": "livingroom", "type": "script", "id": { "entity_id": "script.livingroom_bright", "device_id": null } }, { "name": "office window light", "room": "office", "type": "light", "id": { "entity_id": "light.office_window", "device_id": null } } ] }, { "id": "Outdoor lights at sunset", "automation": "- alias: Outdoor lights at sunset\n initial_state: true\n triggers:\n trigger: sun\n event: sunset\n offset: 00:05:00\n actions:\n action: script.turn_on_outdoor_lights", "config": [ { "name": "turn on outdoor lights script", "room": "outdoor", "type": "script", "id": { "entity_id": "script.turn_on_outdoor_lights", "device_id": null } } ] }, { "id": "Outdoor lights at sunrise", "automation": "- alias: Outdoor lights at sunrise\n initial_state: true\n triggers:\n trigger: sun\n event: sunrise\n actions:\n action: script.turn_off_outdoor_lights", "config": [ { "name": "turn off outdoor lights script", "room": "outdoor", "type": "script", "id": { "entity_id": "script.turn_off_outdoor_lights", "device_id": null } } ] }, { "id": "Outdoor lights when sun above horizon", "automation": "- alias: Outdoor lights when sun above horizon\n initial_state: true\n triggers:\n trigger: time_pattern\n minutes: /30\n conditions:\n - condition: state\n entity_id: sun.sun\n state: above_horizon\n - condition: state\n entity_id:\n - light.outdoor_main_entrance\n - light.outdoor_porch\n match: any\n state: 'on'\n actions:\n - action: script.turn_off_outdoor_lights", "config": [ { "name": "turn off outdoor lights script", "room": "outdoor", "type": "script", "id": { "entity_id": "script.turn_off_outdoor_lights", "device_id": null } }, { "name": "outdoor main entrance light", "room": "outdoor", "type": "light", "id": { "entity_id": "light.outdoor_main_entrance", "device_id": null } }, { "name": "outdoor porch light", "room": "outdoor", "type": "light", "id": { "entity_id": "light.outdoor_porch", "device_id": null } }, { "name": "sun sun", "room": null, "type": "sun", "id": { "entity_id": "sun.sun", "device_id": null } } ] }, { "id": "Turn off child room night light at sunrise", "automation": "- alias: Turn off child room night light at sunrise\n initial_state: true\n triggers:\n trigger: sun\n event: sunrise\n offset: 02:00:00\n actions:\n action: light.turn_off\n target:\n entity_id: light.childroom_led_strip", "config": [ { "name": "childroom led strip light", "room": "childroom", "type": "light", "id": { "entity_id": "light.childroom_led_strip", "device_id": null } } ] }, { "id": "Wakeup weekdays", "automation": "- alias: Wakeup weekdays\n triggers:\n trigger: template\n value_template: '{{ now() >= today_at(states(''input_datetime.wakeup_weekdays''))\n - timedelta(minutes = 30) }}\n\n '\n conditions:\n condition: or\n conditions:\n - condition: state\n entity_id: input_boolean.wakeup_override\n state: 'on'\n - condition: and\n conditions:\n - condition: state\n entity_id: binary_sensor.workday_sensor\n state: 'on'\n - condition: state\n entity_id: group.device_tracker_family\n state: home\n actions:\n action: script.wakeup_lights", "config": [ { "name": "family device tracker group", "room": null, "type": "group", "id": { "entity_id": "group.device_tracker_family", "device_id": null } }, { "name": "workday sensor", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.workday_sensor", "device_id": null } }, { "name": "wakeup weekdays datetime", "room": null, "type": "input_datetime", "id": { "entity_id": "input_datetime.wakeup_weekdays", "device_id": null } }, { "name": "wakeup override", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.wakeup_override", "device_id": null } }, { "name": "wakeup lights script", "room": null, "type": "script", "id": { "entity_id": "script.wakeup_lights", "device_id": null } } ] }, { "id": "Child room morning wakeup light", "automation": "- alias: Child room morning wakeup light\n triggers:\n trigger: time\n at: 07:00:00\n conditions:\n condition: state\n entity_id: binary_sensor.workday_sensor\n state: 'on'\n actions:\n action: light.turn_on\n data:\n entity_id: light.childroom_led_strip\n brightness_pct: 12\n rgb_color:\n - 0\n - 0\n - 255\n transition: 2\n effect: None", "config": [ { "name": "workday sensor", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.workday_sensor", "device_id": null } }, { "name": "childroom led strip light", "room": "childroom", "type": "light", "id": { "entity_id": "light.childroom_led_strip", "device_id": null } } ] }, { "id": "Wakeup weekend", "automation": "- alias: Wakeup weekend\n triggers:\n trigger: template\n value_template: '{{ now() >= today_at(states(''input_datetime.wakeup_weekend''))\n - timedelta(minutes = 30) }}\n\n '\n conditions:\n - condition: time\n weekday:\n - sat\n - sun\n - condition: state\n entity_id: group.device_tracker_family\n state: home\n actions:\n action: script.wakeup_lights", "config": [ { "name": "family device tracker group", "room": null, "type": "group", "id": { "entity_id": "group.device_tracker_family", "device_id": null } }, { "name": "wakeup lights script", "room": null, "type": "script", "id": { "entity_id": "script.wakeup_lights", "device_id": null } }, { "name": "wakeup weekend datetime", "room": null, "type": "input_datetime", "id": { "entity_id": "input_datetime.wakeup_weekend", "device_id": null } } ] }, { "id": "Go to bed weekdays", "automation": "- alias: Go to bed weekdays\n triggers:\n trigger: time\n at: '23:00:00'\n conditions:\n condition: state\n entity_id: binary_sensor.workday_sensor_offset\n state: 'on'\n actions:\n action: script.go_to_bed_lights", "config": [ { "name": "workday sensor", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.workday_sensor", "device_id": null } }, { "name": "workday sensor offset", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.workday_sensor_offset", "device_id": null } }, { "name": "go to bed lights script", "room": null, "type": "script", "id": { "entity_id": "script.go_to_bed_lights", "device_id": null } } ] }, { "id": "Go to bed weekend", "automation": "- alias: Go to bed weekend\n triggers:\n trigger: time\n at: '23:59:00'\n conditions:\n condition: time\n weekday:\n - fri\n - sat\n actions:\n action: script.go_to_bed_lights", "config": [ { "name": "go to bed lights script", "room": null, "type": "script", "id": { "entity_id": "script.go_to_bed_lights", "device_id": null } } ] }, { "id": "Wakeup nursery", "automation": "- alias: Wakeup nursery\n triggers:\n trigger: time\n at: input_datetime.wakeup_nursery\n actions:\n action: light.turn_on\n data:\n entity_id: light.bedroom_bedside_2\n brightness_pct: 100\n transition: 2", "config": [ { "name": "bedroom bedside light", "room": "bedroom", "type": "light", "id": { "entity_id": "light.bedroom_bedside", "device_id": null } }, { "name": "wakeup nursery datetime", "room": "nursery", "type": "input_datetime", "id": { "entity_id": "input_datetime.wakeup_nursery", "device_id": null } }, { "name": "bedroom bedside 2 light", "room": "bedroom", "type": "light", "id": { "entity_id": "light.bedroom_bedside_2", "device_id": null } } ] }, { "id": "Away turn on lights", "automation": "- alias: Away turn on lights\n initial_state: true\n triggers:\n trigger: sun\n event: sunset\n conditions:\n - condition: state\n entity_id: input_boolean.enable_away_lights\n state: 'on'\n - condition: state\n entity_id: group.device_tracker_family\n state: not_home\n actions:\n - action: script.enable_away_lights\n - action: input_boolean.turn_on\n data:\n entity_id: input_boolean.away_lights_active", "config": [ { "name": "family device tracker group", "room": null, "type": "group", "id": { "entity_id": "group.device_tracker_family", "device_id": null } }, { "name": "away lights active", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.away_lights_active", "device_id": null } }, { "name": "enable away lights", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_away_lights", "device_id": null } }, { "name": "enable away lights script", "room": null, "type": "script", "id": { "entity_id": "script.enable_away_lights", "device_id": null } } ] }, { "id": "Leaving home turn on lights", "automation": "- alias: Leaving home turn on lights\n initial_state: true\n triggers:\n trigger: state\n entity_id: group.device_tracker_family\n to: not_home\n conditions:\n - condition: state\n entity_id: input_boolean.enable_away_lights\n state: 'on'\n - condition: sun\n after: sunset\n actions:\n - action: script.enable_away_lights\n - action: input_boolean.turn_on\n data:\n entity_id: input_boolean.away_lights_active", "config": [ { "name": "family device tracker group", "room": null, "type": "group", "id": { "entity_id": "group.device_tracker_family", "device_id": null } }, { "name": "away lights active", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.away_lights_active", "device_id": null } }, { "name": "enable away lights", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_away_lights", "device_id": null } }, { "name": "enable away lights script", "room": null, "type": "script", "id": { "entity_id": "script.enable_away_lights", "device_id": null } } ] }, { "id": "Away turn off lights", "automation": "- alias: Away turn off lights\n initial_state: true\n triggers:\n trigger: time\n at: '23:30:00'\n conditions:\n - condition: state\n entity_id: group.device_tracker_family\n state: not_home\n - condition: state\n entity_id: group.indoor_lights\n state: 'on'\n actions:\n - action: script.indoor_lights_off\n - action: input_boolean.turn_off\n target:\n entity_id: input_boolean.away_lights_active", "config": [ { "name": "family device tracker group", "room": null, "type": "group", "id": { "entity_id": "group.device_tracker_family", "device_id": null } }, { "name": "indoor lights off script", "room": null, "type": "script", "id": { "entity_id": "script.indoor_lights_off", "device_id": null } }, { "name": "indoor lights group", "room": null, "type": "group", "id": { "entity_id": "group.indoor_lights", "device_id": null } }, { "name": "away lights active", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.away_lights_active", "device_id": null } } ] }, { "id": "Increase bathroom ceiling light brightness", "automation": "- alias: Increase bathroom ceiling light brightness\n initial_state: true\n triggers:\n trigger: state\n entity_id: light.bathroom_ceiling\n to: 'on'\n conditions:\n - condition: template\n value_template: '{{ state_attr(''light.bathroom_ceiling'',''brightness'') < 255\n }}\n\n '\n - condition: time\n after: 07:00:00\n before: '18:00:00'\n actions:\n action: light.turn_on\n data:\n entity_id: light.bathroom_ceiling\n brightness_pct: 100", "config": [ { "name": "bathroom ceiling light", "room": "bathroom", "type": "light", "id": { "entity_id": "light.bathroom_ceiling", "device_id": null } } ] }, { "id": "Hallway top floor motion hallway bright", "automation": "- alias: Hallway top floor motion hallway bright\n initial_state: true\n triggers:\n trigger: state\n entity_id: binary_sensor.hallway_top_floor_motion\n to: 'on'\n conditions:\n - condition: state\n entity_id: input_boolean.enable_hue_motion_sensor_hallway\n state: 'on'\n - condition: state\n entity_id: light.hallway_ceiling_top_floor\n state: 'off'\n - condition: or\n conditions:\n - condition: and\n conditions:\n - condition: state\n entity_id: binary_sensor.workday_sensor\n state: 'off'\n - condition: time\n before: '18:00:00'\n after: 09:30:00\n - condition: and\n conditions:\n - condition: state\n entity_id: binary_sensor.workday_sensor\n state: 'on'\n - condition: time\n before: '18:00:00'\n after: 07:00:00\n - condition: template\n value_template: '{{ is_state_attr(''light.hallway_ceiling_bottom_floor'',''brightness'',255)\n }}\n\n '\n - condition: template\n value_template: '{{ not (is_state(''binary_sensor.childroom_sonos_is_grouped'',''off'')\n and is_state(''media_player.childroom_sonos'',''playing'')) }}\n\n '\n actions:\n action: script.hallway_top_floor_bright", "config": [ { "name": "childroom sonos", "room": "childroom", "type": "media_player", "id": { "entity_id": "media_player.childroom_sonos", "device_id": null } }, { "name": "workday sensor", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.workday_sensor", "device_id": null } }, { "name": "hallway top floor bright script", "room": "hallway", "type": "script", "id": { "entity_id": "script.hallway_top_floor_bright", "device_id": null } }, { "name": "hallway ceiling bottom floor light", "room": "hallway", "type": "light", "id": { "entity_id": "light.hallway_ceiling_bottom_floor", "device_id": null } }, { "name": "hallway ceiling top floor light", "room": "hallway", "type": "light", "id": { "entity_id": "light.hallway_ceiling_top_floor", "device_id": null } }, { "name": "hallway top floor motion sensor", "room": "hallway", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.hallway_top_floor_motion", "device_id": null } }, { "name": "enable hue motion sensor hallway", "room": "hallway", "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_hue_motion_sensor_hallway", "device_id": null } }, { "name": "childroom sonos is grouped", "room": "childroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.childroom_sonos_is_grouped", "device_id": null } } ] }, { "id": "Hallway top floor motion rooms bright", "automation": "- alias: Hallway top floor motion rooms bright\n initial_state: true\n triggers:\n trigger: state\n entity_id: binary_sensor.hallway_top_floor_motion\n to: 'on'\n conditions:\n - condition: state\n entity_id: input_boolean.enable_hue_motion_sensor_hallway\n state: 'on'\n - condition: state\n entity_id: light.office_ceiling\n state: 'off'\n - condition: state\n entity_id: binary_sensor.relaxed_mode\n state: 'off'\n - condition: or\n conditions:\n - condition: and\n conditions:\n - condition: state\n entity_id: binary_sensor.workday_sensor\n state: 'off'\n - condition: time\n before: '18:00:00'\n after: 09:30:00\n - condition: and\n conditions:\n - condition: state\n entity_id: binary_sensor.workday_sensor\n state: 'on'\n - condition: time\n before: '18:00:00'\n after: 07:00:00\n - condition: template\n value_template: '{{ is_state_attr(''light.livingroom_couch_table'',''brightness'',255)\n }}\n\n '\n actions:\n - action: script.turn_on\n target:\n entity_id: script.office_bright", "config": [ { "name": "relaxed mode", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.relaxed_mode", "device_id": null } }, { "name": "workday sensor", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.workday_sensor", "device_id": null } }, { "name": "livingroom couch table light", "room": "livingroom", "type": "light", "id": { "entity_id": "light.livingroom_couch_table", "device_id": null } }, { "name": "office ceiling light", "room": "office", "type": "light", "id": { "entity_id": "light.office_ceiling", "device_id": null } }, { "name": "hallway top floor motion sensor", "room": "hallway", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.hallway_top_floor_motion", "device_id": null } }, { "name": "enable hue motion sensor hallway", "room": "hallway", "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_hue_motion_sensor_hallway", "device_id": null } }, { "name": "office bright script", "room": "office", "type": "script", "id": { "entity_id": "script.office_bright", "device_id": null } } ] }, { "id": "Turn off top floor lights not in use", "automation": "- alias: Turn off top floor lights not in use\n initial_state: true\n triggers:\n trigger: time_pattern\n minutes: /30\n conditions:\n - condition: time\n after: 08:00:00\n before: '18:00:00'\n - or:\n - condition: state\n entity_id: light.hallway_ceiling_top_floor\n state: 'on'\n - condition: state\n entity_id: media_player.childroom_sonos\n state: playing\n - condition: state\n entity_id:\n - binary_sensor.hallway_top_floor_motion\n - switch.wol_vidar\n state: 'off'\n for: 00:30:00\n - condition: state\n entity_id: device_tracker.sela_lt6ywwb54\n state: not_home\n for: 00:30:00\n actions:\n - action: script.turn_on\n target:\n entity_id: script.hallway_bottom_floor_bright\n - action: light.turn_off\n target:\n entity_id:\n - light.office_ceiling\n - light.childroom_ceiling", "config": [ { "name": "sela device tracker", "room": null, "type": "device_tracker", "id": { "entity_id": "device_tracker.sela_lt6ywwb54", "device_id": null } }, { "name": "childroom sonos", "room": "childroom", "type": "media_player", "id": { "entity_id": "media_player.childroom_sonos", "device_id": null } }, { "name": "childroom ceiling light", "room": "childroom", "type": "light", "id": { "entity_id": "light.childroom_ceiling", "device_id": null } }, { "name": "office ceiling light", "room": "office", "type": "light", "id": { "entity_id": "light.office_ceiling", "device_id": null } }, { "name": "hallway ceiling top floor light", "room": "hallway", "type": "light", "id": { "entity_id": "light.hallway_ceiling_top_floor", "device_id": null } }, { "name": "wol vidar switch", "room": "office", "type": "switch", "id": { "entity_id": "switch.wol_vidar", "device_id": null } }, { "name": "hallway top floor motion sensor", "room": "hallway", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.hallway_top_floor_motion", "device_id": null } }, { "name": "hallway bottom floor bright script", "room": "hallway", "type": "script", "id": { "entity_id": "script.hallway_bottom_floor_bright", "device_id": null } } ] }, { "id": "Gaming PC turning off", "automation": "- alias: Gaming PC turning off\n initial_state: true\n triggers:\n trigger: state\n entity_id: switch.wol_vidar\n to: 'off'\n conditions:\n - condition: state\n entity_id: light.office_desk\n state: 'on'\n - condition: state\n entity_id: binary_sensor.relaxed_mode\n state: 'on'\n actions:\n action: script.office_low_brightness", "config": [ { "name": "relaxed mode", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.relaxed_mode", "device_id": null } }, { "name": "wol vidar switch", "room": "office", "type": "switch", "id": { "entity_id": "switch.wol_vidar", "device_id": null } }, { "name": "office desk light", "room": "office", "type": "light", "id": { "entity_id": "light.office_desk", "device_id": null } }, { "name": "office low brightness script", "room": "office", "type": "script", "id": { "entity_id": "script.office_low_brightness", "device_id": null } } ] }, { "id": "Gaming PC turning on", "automation": "- alias: Gaming PC turning on\n initial_state: true\n triggers:\n trigger: state\n entity_id: switch.wol_vidar\n to: 'on'\n conditions:\n - condition: state\n entity_id: light.office_desk\n state: 'on'\n - condition: state\n entity_id: binary_sensor.relaxed_mode\n state: 'on'\n actions:\n action: script.office_relaxed", "config": [ { "name": "relaxed mode", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.relaxed_mode", "device_id": null } }, { "name": "wol vidar switch", "room": "office", "type": "switch", "id": { "entity_id": "switch.wol_vidar", "device_id": null } }, { "name": "office desk light", "room": "office", "type": "light", "id": { "entity_id": "light.office_desk", "device_id": null } }, { "name": "office relaxed script", "room": "office", "type": "script", "id": { "entity_id": "script.office_relaxed", "device_id": null } } ] }, { "id": "Davids iPhone charging", "automation": "- alias: Davids iPhone charging\n initial_state: true\n triggers:\n trigger: state\n entity_id: sensor.davids_iphone_battery_state\n to: Charging\n for: 00:01:00\n conditions:\n - condition: time\n after: '22:00:00'\n before: 06:00:00\n - condition: state\n entity_id: switch.wol_vidar\n state: 'off'\n - condition: state\n entity_id: light.office_desk\n state: 'on'\n actions:\n action: script.office_low_brightness", "config": [ { "name": "wol vidar switch", "room": "office", "type": "switch", "id": { "entity_id": "switch.wol_vidar", "device_id": null } }, { "name": "office desk light", "room": "office", "type": "light", "id": { "entity_id": "light.office_desk", "device_id": null } }, { "name": "office low brightness script", "room": "office", "type": "script", "id": { "entity_id": "script.office_low_brightness", "device_id": null } }, { "name": "davids iphone battery state sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.davids_iphone_battery_state", "device_id": null } } ] }, { "id": "Create light groups", "automation": "- alias: Create light groups\n initial_state: true\n triggers:\n trigger: homeassistant\n event: start\n actions:\n - action: script.create_indoor_lights_group\n data:\n exclude_area_id:\n - utomhus\n exclude_entity_id:\n - light.childroom_led_strip\n - action: script.create_all_lights_group", "config": [ { "name": "childroom led strip light", "room": "childroom", "type": "light", "id": { "entity_id": "light.childroom_led_strip", "device_id": null } }, { "name": "create indoor lights group script", "room": null, "type": "script", "id": { "entity_id": "script.create_indoor_lights_group", "device_id": null } }, { "name": "create all lights group script", "room": null, "type": "script", "id": { "entity_id": "script.create_all_lights_group", "device_id": null } } ] }, { "id": "Watching TV", "automation": "- alias: Watching TV\n triggers:\n trigger: state\n entity_id: media_player.plex_vardagsrum\n to: playing\n conditions:\n condition: and\n conditions:\n - condition: or\n conditions:\n - condition: time\n after: '20:30:00'\n - condition: time\n before: '10:00:00'\n - condition: or\n conditions:\n - condition: sun\n after: sunset\n after_offset: -01:00:00\n - condition: sun\n before: sunrise\n before_offset: '1:00:00'\n actions:\n action: script.watching_tv_lights", "config": [ { "name": "plex vardagsrum media player", "room": "livingroom", "type": "media_player", "id": { "entity_id": "media_player.plex_vardagsrum", "device_id": null } }, { "name": "watching tv lights script", "room": "livingroom", "type": "script", "id": { "entity_id": "script.watching_tv_lights", "device_id": null } } ] }, { "id": "Decrease child room music volume when turning indoor lights off", "automation": "- alias: Decrease child room music volume when turning indoor lights off\n initial_state: true\n triggers:\n trigger: state\n entity_id: script.indoor_lights_off\n to: 'on'\n conditions:\n - condition: state\n entity_id: binary_sensor.relaxed_mode\n state: 'on'\n - condition: state\n entity_id: media_player.childroom_sonos\n state: playing\n - condition: state\n entity_id: binary_sensor.childroom_sonos_is_grouped\n state: 'off'\n - condition: template\n value_template: '{{ state_attr(''media_player.childroom_sonos'',''volume_level'')\n > 0.03 }}\n\n '\n actions:\n action: python_script.media_player_volume_set\n data:\n entity_id: media_player.childroom_sonos\n volume_level: 0.03", "config": [ { "name": "indoor lights off script", "room": null, "type": "script", "id": { "entity_id": "script.indoor_lights_off", "device_id": null } }, { "name": "relaxed mode", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.relaxed_mode", "device_id": null } }, { "name": "childroom sonos", "room": "childroom", "type": "media_player", "id": { "entity_id": "media_player.childroom_sonos", "device_id": null } }, { "name": "childroom sonos is grouped", "room": "childroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.childroom_sonos_is_grouped", "device_id": null } } ] }, { "id": "Car heater started", "automation": "- alias: Car heater started\n initial_state: true\n triggers:\n trigger: state\n entity_id: switch.sbw57s_heater\n to: 'on'\n conditions:\n - condition: state\n entity_id: device_tracker.sbw57s\n state: not_home\n - condition: state\n entity_id: person.david\n state: not_home\n actions:\n action: notify.mobile_app_davids_iphone\n data:\n title: Volvo V60\n message: Klimatanläggning startad", "config": [ { "name": "person david", "room": null, "type": "person", "id": { "entity_id": "person.david", "device_id": null } }, { "name": "sbw57s heater switch", "room": "car", "type": "switch", "id": { "entity_id": "switch.sbw57s_heater", "device_id": null } }, { "name": "sbw57s device tracker", "room": "car", "type": "device_tracker", "id": { "entity_id": "device_tracker.sbw57s", "device_id": null } } ] }, { "id": "Car heater audio notification", "automation": "- alias: Car heater audio notification\n initial_state: true\n triggers:\n trigger: state\n entity_id: switch.sbw57s_heater\n to: 'on'\n conditions:\n - condition: state\n entity_id: device_tracker.sbw57s\n state: home\n - condition: state\n entity_id: person.david\n state: home\n actions:\n action: script.sonos_tts\n data:\n entity_id: media_player.kitchen_sonos\n volume: 0.1\n message: Klimatanläggning startad", "config": [ { "name": "person david", "room": null, "type": "person", "id": { "entity_id": "person.david", "device_id": null } }, { "name": "kitchen sonos", "room": "kitchen", "type": "media_player", "id": { "entity_id": "media_player.kitchen_sonos", "device_id": null } }, { "name": "sbw57s heater switch", "room": "car", "type": "switch", "id": { "entity_id": "switch.sbw57s_heater", "device_id": null } }, { "name": "sbw57s device tracker", "room": "car", "type": "device_tracker", "id": { "entity_id": "device_tracker.sbw57s", "device_id": null } }, { "name": "sonos tts script", "room": null, "type": "script", "id": { "entity_id": "script.sonos_tts", "device_id": null } } ] }, { "id": "Low washer fluid", "automation": "- alias: Low washer fluid\n initial_state: true\n triggers:\n trigger: time\n at: 07:00:00\n conditions:\n condition: state\n entity_id: binary_sensor.volvo_sbw57s_washer_fluid_level_warning\n state: 'on'\n actions:\n action: notify.mobile_app_davids_iphone\n data:\n title: Volvo V60\n message: Fyll på spolarvätska", "config": [ { "name": "volvo sbw57s washer fluid level warning", "room": "car", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.volvo_sbw57s_washer_fluid_level_warning", "device_id": null } } ] }, { "id": "Alarm not active", "automation": "- alias: Alarm not active\n initial_state: true\n triggers:\n trigger: state\n entity_id: group.device_tracker_family\n to: not_home\n for: 00:30:00\n conditions:\n condition: template\n value_template: '{{ not is_state(''alarm_control_panel.ajax_alarm_status'',''armed_away'')\n }}\n\n '\n actions:\n choose:\n - conditions: '{{ states.person.david.last_changed > states.person.nellie.last_changed\n }}\n\n '\n sequence:\n - action: notify.mobile_app_davids_iphone\n data:\n message: Larmet är ej aktiverat\n title: Larmstatus\n data:\n sound:\n name: default\n critical: 1\n volume: 0.5\n - conditions: '{{ states.person.david.last_changed < states.person.nellie.last_changed\n }}\n\n '\n sequence:\n - action: notify.mobile_app_nellies_iphone\n data:\n message: Larmet är ej aktiverat\n title: Larmstatus\n data:\n sound:\n name: default\n critical: 1\n volume: 0.5", "config": [ { "name": "family device tracker group", "room": null, "type": "group", "id": { "entity_id": "group.device_tracker_family", "device_id": null } }, { "name": "person nellie", "room": null, "type": "person", "id": { "entity_id": "person.nellie", "device_id": null } }, { "name": "person david", "room": null, "type": "person", "id": { "entity_id": "person.david", "device_id": null } }, { "name": "ajax alarm status", "room": null, "type": "alarm_control_panel", "id": { "entity_id": "alarm_control_panel.ajax_alarm_status", "device_id": null } } ] }, { "id": "Night mode not active", "automation": "- alias: Night mode not active\n initial_state: true\n triggers:\n trigger: state\n entity_id: script.indoor_lights_off\n to: 'on'\n conditions:\n - condition: state\n entity_id: group.device_tracker_family\n state: home\n for: 00:00:05\n - condition: state\n entity_id: binary_sensor.relaxed_mode\n state: 'on'\n - condition: template\n value_template: '{{ not is_state(''alarm_control_panel.ajax_alarm_status'',''armed_night'')\n }}\n\n '\n actions:\n action: notify.mobile_app_davids_iphone\n data:\n title: Larmstatus\n message: Nattläge är ej aktiverat\n data:\n sound:\n name: default\n critical: 1\n volume: 0.1", "config": [ { "name": "family device tracker group", "room": null, "type": "group", "id": { "entity_id": "group.device_tracker_family", "device_id": null } }, { "name": "indoor lights off script", "room": null, "type": "script", "id": { "entity_id": "script.indoor_lights_off", "device_id": null } }, { "name": "relaxed mode", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.relaxed_mode", "device_id": null } }, { "name": "ajax alarm status", "room": null, "type": "alarm_control_panel", "id": { "entity_id": "alarm_control_panel.ajax_alarm_status", "device_id": null } } ] }, { "id": "Shed door opened not home", "automation": "- alias: Shed door opened not home\n initial_state: true\n triggers:\n trigger: state\n entity_id: binary_sensor.outdoor_shed_door\n to: 'on'\n conditions:\n - condition: state\n entity_id: alarm_control_panel.ajax_alarm_status\n state: armed_away\n - condition: state\n entity_id: group.device_tracker_family\n state: not_home\n actions:\n action: notify.mobile_app_davids_iphone\n data:\n title: Larmstatus\n message: Förrådsdörr öppen\n data:\n sound:\n name: default\n critical: 1\n volume: 0.5", "config": [ { "name": "family device tracker group", "room": null, "type": "group", "id": { "entity_id": "group.device_tracker_family", "device_id": null } }, { "name": "ajax alarm status", "room": null, "type": "alarm_control_panel", "id": { "entity_id": "alarm_control_panel.ajax_alarm_status", "device_id": null } }, { "name": "outdoor shed door sensor", "room": "outdoor", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.outdoor_shed_door", "device_id": null } } ] }, { "id": "Shed door opened alarm armed night", "automation": "- alias: Shed door opened alarm armed night\n initial_state: true\n triggers:\n trigger: state\n entity_id: binary_sensor.outdoor_shed_door\n to: 'on'\n conditions:\n condition: state\n entity_id: alarm_control_panel.ajax_alarm_status\n state: armed_night\n actions:\n action: notify.mobile_app_davids_iphone\n data:\n title: Larmstatus\n message: Förrådsdörr öppen\n data:\n sound:\n name: default\n critical: 1\n volume: 0.5", "config": [ { "name": "ajax alarm status", "room": null, "type": "alarm_control_panel", "id": { "entity_id": "alarm_control_panel.ajax_alarm_status", "device_id": null } }, { "name": "outdoor shed door sensor", "room": "outdoor", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.outdoor_shed_door", "device_id": null } } ] }, { "id": "Shed door open alarm armed night activated", "automation": "- alias: Shed door open alarm armed night activated\n initial_state: true\n triggers:\n trigger: state\n entity_id: alarm_control_panel.ajax_alarm_status\n to: armed_night\n conditions:\n condition: state\n entity_id: binary_sensor.outdoor_shed_door\n state: 'on'\n actions:\n action: notify.mobile_app_davids_iphone\n data:\n title: Larmstatus\n message: Förrådsdörr öppen\n data:\n sound:\n name: default\n critical: 1\n volume: 0.1", "config": [ { "name": "ajax alarm status", "room": null, "type": "alarm_control_panel", "id": { "entity_id": "alarm_control_panel.ajax_alarm_status", "device_id": null } }, { "name": "outdoor shed door sensor", "room": "outdoor", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.outdoor_shed_door", "device_id": null } } ] }, { "id": "Person detected notify Davids iPhone", "automation": "- alias: Person detected notify Davids iPhone\n triggers:\n trigger: state\n entity_id: sensor.asgari_1_person_count\n conditions:\n condition: template\n value_template: '{{ trigger.to_state.state | int > trigger.from_state.state |\n int }}'\n actions:\n action: notify.mobile_app_davids_iphone\n data:\n title: Övervakningskamera\n message: Person detekterad\n data:\n url: /lovelace/2\n push:\n sound:\n name: US-EN-Morgan-Freeman-Motion-Detected.wav\n critical: 1\n volume: 0.8", "config": [ { "name": "asgari 1 person count sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.asgari_1_person_count", "device_id": null } } ] }, { "id": "Person detected notify Nellies iPhone", "automation": "- alias: Person detected notify Nellies iPhone\n triggers:\n trigger: state\n entity_id: sensor.asgari_1_person_count\n conditions:\n condition: template\n value_template: '{{ trigger.to_state.state | int > trigger.from_state.state |\n int }}'\n actions:\n action: notify.mobile_app_nellies_iphone\n data:\n title: Övervakningskamera\n message: Person detekterad\n data:\n url: /lovelace/2\n push:\n sound:\n name: US-EN-Morgan-Freeman-Motion-Detected.wav\n critical: 1\n volume: 0.8", "config": [ { "name": "asgari 1 person count sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.asgari_1_person_count", "device_id": null } } ] }, { "id": "Person detected notify Sonos", "automation": "- alias: Person detected notify Sonos\n triggers:\n trigger: state\n entity_id: sensor.asgari_1_person_count\n conditions:\n condition: template\n value_template: '{{ trigger.to_state.state | int > trigger.from_state.state |\n int }}'\n actions:\n action: script.sonos_play_local_media\n data:\n entity_id: media_player.livingroom_sonos\n media_filename: US-EN-Morgan-Freeman-Motion-Detected.mp3\n volume: 0.3", "config": [ { "name": "asgari 1 person count sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.asgari_1_person_count", "device_id": null } }, { "name": "sonos play local media script", "room": null, "type": "script", "id": { "entity_id": "script.sonos_play_local_media", "device_id": null } }, { "name": "livingroom sonos media player", "room": "livingroom", "type": "media_player", "id": { "entity_id": "media_player.livingroom_sonos", "device_id": null } } ] }, { "id": "Sound detected notify Davids iPhone", "automation": "- alias: Sound detected notify Davids iPhone\n triggers:\n - trigger: state\n entity_id: binary_sensor.deltaco_1_child_singing_sound\n to: 'on'\n - trigger: state\n entity_id: binary_sensor.deltaco_1_crying_sound\n to: 'on'\n - trigger: state\n entity_id: binary_sensor.deltaco_1_humming_sound\n to: 'on'\n - trigger: state\n entity_id: binary_sensor.deltaco_1_scream_sound\n to: 'on'\n - trigger: state\n entity_id: binary_sensor.deltaco_1_humming_sound\n to: 'on'\n - trigger: state\n entity_id: binary_sensor.deltaco_1_singing_sound\n to: 'on'\n - trigger: state\n entity_id: binary_sensor.deltaco_1_whispering_sound\n to: 'on'\n - trigger: state\n entity_id: binary_sensor.deltaco_1_yell_sound\n to: 'on'\n actions:\n action: notify.mobile_app_davids_iphone\n data:\n title: Barnrum\n message: Ljud detekterat\n data:\n url: /lovelace/2\n push:\n sound:\n name: WebcamStart.caf\n critical: 1\n volume: 0.8", "config": [ { "name": "deltaco 1 child singing sound sensor", "room": "childroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.deltaco_1_child_singing_sound", "device_id": null } }, { "name": "deltaco 1 crying sound sensor", "room": "childroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.deltaco_1_crying_sound", "device_id": null } }, { "name": "deltaco 1 humming sound sensor", "room": "childroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.deltaco_1_humming_sound", "device_id": null } }, { "name": "deltaco 1 scream sound sensor", "room": "childroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.deltaco_1_scream_sound", "device_id": null } }, { "name": "deltaco 1 singing sound sensor", "room": "childroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.deltaco_1_singing_sound", "device_id": null } }, { "name": "deltaco 1 whispering sound sensor", "room": "childroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.deltaco_1_whispering_sound", "device_id": null } }, { "name": "deltaco 1 yell sound sensor", "room": "childroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.deltaco_1_yell_sound", "device_id": null } } ] }, { "id": "Sound detected notify Nellies iPhone", "automation": "- alias: Sound detected notify Nellies iPhone\n triggers:\n - trigger: state\n entity_id: binary_sensor.deltaco_1_child_singing_sound\n to: 'on'\n - trigger: state\n entity_id: binary_sensor.deltaco_1_crying_sound\n to: 'on'\n - trigger: state\n entity_id: binary_sensor.deltaco_1_humming_sound\n to: 'on'\n - trigger: state\n entity_id: binary_sensor.deltaco_1_scream_sound\n to: 'on'\n - trigger: state\n entity_id: binary_sensor.deltaco_1_humming_sound\n to: 'on'\n - trigger: state\n entity_id: binary_sensor.deltaco_1_singing_sound\n to: 'on'\n - trigger: state\n entity_id: binary_sensor.deltaco_1_whispering_sound\n to: 'on'\n - trigger: state\n entity_id: binary_sensor.deltaco_1_yell_sound\n to: 'on'\n actions:\n action: notify.mobile_app_nellies_iphone\n data:\n title: Barnrum\n message: Ljud detekterat\n data:\n url: /lovelace/2\n push:\n sound:\n name: WebcamStart.caf\n critical: 1\n volume: 0.8", "config": [ { "name": "deltaco 1 child singing sound sensor", "room": "childroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.deltaco_1_child_singing_sound", "device_id": null } }, { "name": "deltaco 1 crying sound sensor", "room": "childroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.deltaco_1_crying_sound", "device_id": null } }, { "name": "deltaco 1 humming sound sensor", "room": "childroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.deltaco_1_humming_sound", "device_id": null } }, { "name": "deltaco 1 scream sound sensor", "room": "childroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.deltaco_1_scream_sound", "device_id": null } }, { "name": "deltaco 1 singing sound sensor", "room": "childroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.deltaco_1_singing_sound", "device_id": null } }, { "name": "deltaco 1 whispering sound sensor", "room": "childroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.deltaco_1_whispering_sound", "device_id": null } }, { "name": "deltaco 1 yell sound sensor", "room": "childroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.deltaco_1_yell_sound", "device_id": null } } ] }, { "id": "Web service down", "automation": "- alias: Web service down\n initial_state: true\n triggers:\n trigger: time_pattern\n minutes: /10\n conditions:\n not:\n - condition: state\n entity_id:\n - sensor.docker_traefik_state\n - sensor.docker_authelia_state\n - sensor.docker_mariadb_state\n - sensor.docker_wordpress_state\n state: running\n - condition: time\n after: 04:00:00\n before: 05:00:00\n weekday: sun\n actions:\n action: notify.mobile_app_davids_iphone\n data:\n title: Web service status\n message: A web service is down\n data:\n url: /lovelace/6", "config": [ { "name": "docker traefik state sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.docker_traefik_state", "device_id": null } }, { "name": "docker authelia state sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.docker_authelia_state", "device_id": null } }, { "name": "docker mariadb state sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.docker_mariadb_state", "device_id": null } }, { "name": "docker wordpress state sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.docker_wordpress_state", "device_id": null } } ] }, { "id": "Hue switch bright", "automation": "- alias: Hue switch bright\n initial_state: true\n triggers:\n trigger: event\n event_type: hue_event\n event_data:\n id: hallway_switch_button\n type: short_release\n subtype: 1\n conditions:\n condition: state\n entity_id: input_boolean.enable_hue_switch_hallway\n state: 'on'\n actions:\n action: script.bottom_floor_bright", "config": [ { "name": "bottom floor bright script", "room": null, "type": "script", "id": { "entity_id": "script.bottom_floor_bright", "device_id": null } }, { "name": "enable hue switch hallway", "room": "hallway", "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_hue_switch_hallway", "device_id": null } } ] }, { "id": "Hue switch relaxed", "automation": "- alias: Hue switch relaxed\n initial_state: true\n triggers:\n trigger: event\n event_type: hue_event\n event_data:\n id: hallway_switch_button\n type: long_release\n subtype: 1\n conditions:\n condition: state\n entity_id: input_boolean.enable_hue_switch_hallway\n state: 'on'\n actions:\n - action: script.indoor_lights_relaxed\n - condition: state\n entity_id: binary_sensor.childroom_sonos_is_grouped\n state: 'on'\n - action: script.sonos_ungroup_childroom_speaker\n - action: media_player.volume_set\n data:\n entity_id: media_player.childroom_sonos\n volume_level: 0.2", "config": [ { "name": "indoor lights relaxed script", "room": null, "type": "script", "id": { "entity_id": "script.indoor_lights_relaxed", "device_id": null } }, { "name": "sonos ungroup childroom speaker script", "room": "childroom", "type": "script", "id": { "entity_id": "script.sonos_ungroup_childroom_speaker", "device_id": null } }, { "name": "childroom sonos", "room": "childroom", "type": "media_player", "id": { "entity_id": "media_player.childroom_sonos", "device_id": null } }, { "name": "childroom sonos is grouped", "room": "childroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.childroom_sonos_is_grouped", "device_id": null } }, { "name": "enable hue switch hallway", "room": "hallway", "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_hue_switch_hallway", "device_id": null } } ] }, { "id": "Hue switch turn off lighs", "automation": "- alias: Hue switch turn off lighs\n initial_state: true\n triggers:\n trigger: event\n event_type: hue_event\n event_data:\n id: hallway_switch_button\n type: short_release\n subtype: 4\n conditions:\n condition: state\n entity_id: input_boolean.enable_hue_switch_hallway\n state: 'on'\n actions:\n action: script.indoor_lights_off", "config": [ { "name": "indoor lights off script", "room": null, "type": "script", "id": { "entity_id": "script.indoor_lights_off", "device_id": null } }, { "name": "enable hue switch hallway", "room": "hallway", "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_hue_switch_hallway", "device_id": null } } ] }, { "id": "Hue switch low brightness", "automation": "- alias: Hue switch low brightness\n initial_state: true\n triggers:\n trigger: event\n event_type: hue_event\n event_data:\n id: hallway_switch_button\n type: long_release\n subtype: 4\n conditions:\n condition: state\n entity_id: input_boolean.enable_hue_switch_hallway\n state: 'on'\n actions:\n action: script.indoor_lights_low_brightness", "config": [ { "name": "enable hue switch hallway", "room": "hallway", "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_hue_switch_hallway", "device_id": null } }, { "name": "indoor lights low brightness script", "room": null, "type": "script", "id": { "entity_id": "script.indoor_lights_low_brightness", "device_id": null } } ] }, { "id": "Hue switch group livingroom speaker", "automation": "- alias: Hue switch group livingroom speaker\n initial_state: true\n triggers:\n trigger: event\n event_type: hue_event\n event_data:\n id: hallway_switch_button\n type: long_release\n subtype: 2\n conditions:\n condition: state\n entity_id: input_boolean.enable_hue_switch_hallway\n state: 'on'\n actions:\n choose:\n - conditions: '{{ is_state(''binary_sensor.livingroom_sonos_is_grouped'',''off'')\n }}\n\n '\n sequence:\n action: script.sonos_group_livingroom_speaker\n - conditions: '{{ is_state(''binary_sensor.livingroom_sonos_is_grouped'',''on'')\n }}\n\n '\n sequence:\n action: script.sonos_ungroup_livingroom_speaker", "config": [ { "name": "sonos group livingroom speaker script", "room": "livingroom", "type": "script", "id": { "entity_id": "script.sonos_group_livingroom_speaker", "device_id": null } }, { "name": "enable hue switch hallway", "room": "hallway", "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_hue_switch_hallway", "device_id": null } }, { "name": "sonos ungroup livingroom speaker script", "room": "livingroom", "type": "script", "id": { "entity_id": "script.sonos_ungroup_livingroom_speaker", "device_id": null } }, { "name": "livingroom sonos is grouped", "room": "livingroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.livingroom_sonos_is_grouped", "device_id": null } } ] }, { "id": "Hue switch group childroom speaker", "automation": "- alias: Hue switch group childroom speaker\n initial_state: true\n triggers:\n trigger: event\n event_type: hue_event\n event_data:\n id: hallway_switch_button\n type: long_release\n subtype: 3\n conditions:\n condition: state\n entity_id: input_boolean.enable_hue_switch_hallway\n state: 'on'\n actions:\n choose:\n - conditions: '{{ is_state(''binary_sensor.childroom_sonos_is_grouped'',''off'')\n }}\n\n '\n sequence:\n action: script.sonos_group_childroom_speaker\n - conditions: '{{ is_state(''binary_sensor.childroom_sonos_is_grouped'',''on'')\n }}\n\n '\n sequence:\n action: script.sonos_ungroup_childroom_speaker", "config": [ { "name": "sonos ungroup childroom speaker script", "room": "childroom", "type": "script", "id": { "entity_id": "script.sonos_ungroup_childroom_speaker", "device_id": null } }, { "name": "childroom sonos is grouped", "room": "childroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.childroom_sonos_is_grouped", "device_id": null } }, { "name": "enable hue switch hallway", "room": "hallway", "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_hue_switch_hallway", "device_id": null } }, { "name": "sonos group childroom speaker script", "room": "childroom", "type": "script", "id": { "entity_id": "script.sonos_group_childroom_speaker", "device_id": null } } ] }, { "id": "Hue switch increase Sonos volume", "automation": "- alias: Hue switch increase Sonos volume\n initial_state: true\n triggers:\n trigger: event\n event_type: hue_event\n event_data:\n id: hallway_switch_button\n type: short_release\n subtype: 2\n conditions:\n - condition: state\n entity_id: input_boolean.enable_hue_switch_hallway\n state: 'on'\n actions:\n - choose:\n - conditions:\n - condition: state\n entity_id: media_player.kitchen_sonos\n state:\n - paused\n - idle\n - condition: state\n entity_id: media_player.livingroom_apple_tv\n state: playing\n - condition: state\n entity_id: binary_sensor.livingroom_sonos_tv_active\n state: 'on'\n sequence:\n - action: python_script.media_player_volume_set\n data:\n entity_id: media_player.livingroom_sonos\n volume_level: '{{ [((state_attr(''media_player.livingroom_sonos'',''volume_level'')\n | float * 1.15 + 0.03) | round(2)), 1] | min }}\n\n '\n - conditions:\n - condition: state\n entity_id: media_player.kitchen_sonos\n state:\n - paused\n - idle\n - condition: state\n entity_id: media_player.childroom_sonos\n state: playing\n - condition: state\n entity_id: binary_sensor.childroom_sonos_is_grouped\n state: 'off'\n sequence:\n - action: python_script.media_player_volume_set\n data:\n entity_id: media_player.childroom_sonos\n volume_level: '{{ [((state_attr(''media_player.childroom_sonos'',''volume_level'')\n | float * 1.15 + 0.03) | round(2)), 1] | min }}\n\n '\n default:\n - action: script.sonos_increase_volume", "config": [ { "name": "livingroom sonos tv active", "room": "livingroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.livingroom_sonos_tv_active", "device_id": null } }, { "name": "childroom sonos", "room": "childroom", "type": "media_player", "id": { "entity_id": "media_player.childroom_sonos", "device_id": null } }, { "name": "kitchen sonos", "room": "kitchen", "type": "media_player", "id": { "entity_id": "media_player.kitchen_sonos", "device_id": null } }, { "name": "childroom sonos is grouped", "room": "childroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.childroom_sonos_is_grouped", "device_id": null } }, { "name": "enable hue switch hallway", "room": "hallway", "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_hue_switch_hallway", "device_id": null } }, { "name": "livingroom apple tv media player", "room": "livingroom", "type": "media_player", "id": { "entity_id": "media_player.livingroom_apple_tv", "device_id": null } }, { "name": "sonos increase volume script", "room": null, "type": "script", "id": { "entity_id": "script.sonos_increase_volume", "device_id": null } }, { "name": "livingroom sonos media player", "room": "livingroom", "type": "media_player", "id": { "entity_id": "media_player.livingroom_sonos", "device_id": null } } ] }, { "id": "Hue switch decrease Sonos volume", "automation": "- alias: Hue switch decrease Sonos volume\n initial_state: true\n triggers:\n trigger: event\n event_type: hue_event\n event_data:\n id: hallway_switch_button\n type: short_release\n subtype: 3\n conditions:\n - condition: state\n entity_id: input_boolean.enable_hue_switch_hallway\n state: 'on'\n actions:\n - choose:\n - conditions:\n - condition: state\n entity_id: media_player.kitchen_sonos\n state:\n - paused\n - idle\n - condition: state\n entity_id: media_player.livingroom_apple_tv\n state: playing\n - condition: state\n entity_id: binary_sensor.livingroom_sonos_tv_active\n state: 'on'\n sequence:\n - action: python_script.media_player_volume_set\n data:\n entity_id: media_player.livingroom_sonos\n volume_level: '{{ [((state_attr(''media_player.livingroom_sonos'',''volume_level'')\n | float * 0.85 - 0.03) | round(2)), 0.05] | max }}\n\n '\n - conditions:\n - condition: state\n entity_id: media_player.kitchen_sonos\n state:\n - paused\n - idle\n - condition: state\n entity_id: media_player.childroom_sonos\n state: playing\n - condition: state\n entity_id: binary_sensor.childroom_sonos_is_grouped\n state: 'off'\n sequence:\n - action: python_script.media_player_volume_set\n data:\n entity_id: media_player.childroom_sonos\n volume_level: '{{ [((state_attr(''media_player.childroom_sonos'',''volume_level'')\n | float * 0.85 - 0.03) | round(2)), 0.05] | max }}\n\n '\n default:\n - action: script.sonos_decrease_volume", "config": [ { "name": "livingroom sonos tv active", "room": "livingroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.livingroom_sonos_tv_active", "device_id": null } }, { "name": "childroom sonos", "room": "childroom", "type": "media_player", "id": { "entity_id": "media_player.childroom_sonos", "device_id": null } }, { "name": "kitchen sonos", "room": "kitchen", "type": "media_player", "id": { "entity_id": "media_player.kitchen_sonos", "device_id": null } }, { "name": "childroom sonos is grouped", "room": "childroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.childroom_sonos_is_grouped", "device_id": null } }, { "name": "enable hue switch hallway", "room": "hallway", "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_hue_switch_hallway", "device_id": null } }, { "name": "livingroom apple tv media player", "room": "livingroom", "type": "media_player", "id": { "entity_id": "media_player.livingroom_apple_tv", "device_id": null } }, { "name": "sonos decrease volume script", "room": null, "type": "script", "id": { "entity_id": "script.sonos_decrease_volume", "device_id": null } }, { "name": "livingroom sonos media player", "room": "livingroom", "type": "media_player", "id": { "entity_id": "media_player.livingroom_sonos", "device_id": null } } ] }, { "id": "Ikea button bedroom on", "automation": "- alias: Ikea button bedroom on\n initial_state: true\n triggers:\n trigger: event\n event_type: zha_event\n event_data:\n device_id: 3b531df34853b38343b729aacef15e48\n command: 'on'\n actions:\n action: script.bedroom_relaxed", "config": [ { "name": "bedroom relaxed script", "room": "bedroom", "type": "script", "id": { "entity_id": "script.bedroom_relaxed", "device_id": null } }, { "name": "Ikea button bedroom", "room": "Bedroom", "type": "device", "id": { "entity_id": null, "device_id": "3b531df34853b38343b729aacef15e48" } } ] }, { "id": "Ikea button bedroom on long press", "automation": "- alias: Ikea button bedroom on long press\n initial_state: true\n triggers:\n trigger: event\n event_type: zha_event\n event_data:\n device_id: 3b531df34853b38343b729aacef15e48\n command: move_with_on_off\n actions:\n action: script.bedroom_low_brightness", "config": [ { "name": "bedroom low brightness script", "room": "bedroom", "type": "script", "id": { "entity_id": "script.bedroom_low_brightness", "device_id": null } }, { "name": "Ikea button bedroom", "room": "Bedroom", "type": "device", "id": { "entity_id": null, "device_id": "3b531df34853b38343b729aacef15e48" } } ] }, { "id": "Ikea button bedroom off", "automation": "- alias: Ikea button bedroom off\n initial_state: true\n triggers:\n trigger: event\n event_type: zha_event\n event_data:\n device_id: 3b531df34853b38343b729aacef15e48\n command: 'off'\n actions:\n - action: light.turn_off\n target:\n area_id: sovrum", "config": [ { "name": "Ikea button bedroom", "room": "Bedroom", "type": "device", "id": { "entity_id": null, "device_id": "3b531df34853b38343b729aacef15e48" } } ] }, { "id": "Ikea button bedroom off long press", "automation": "- alias: Ikea button bedroom off long press\n triggers:\n trigger: event\n event_type: zha_event\n event_data:\n device_id: 3b531df34853b38343b729aacef15e48\n command: move\n actions:\n action: script.indoor_lights_off", "config": [ { "name": "indoor lights off script", "room": null, "type": "script", "id": { "entity_id": "script.indoor_lights_off", "device_id": null } }, { "name": "Ikea button bedroom", "room": "Bedroom", "type": "device", "id": { "entity_id": null, "device_id": "3b531df34853b38343b729aacef15e48" } } ] }, { "id": "Ikea styrbar bedroom on", "automation": "- alias: Ikea styrbar bedroom on\n initial_state: true\n triggers:\n trigger: event\n event_type: zha_event\n event_data:\n device_id: f423762e1c28755b0123cc7fd21c5fa7\n command: 'on'\n actions:\n action: script.bedroom_relaxed", "config": [ { "name": "bedroom relaxed script", "room": "bedroom", "type": "script", "id": { "entity_id": "script.bedroom_relaxed", "device_id": null } }, { "name": "Ikea styrbar bedroom", "room": "Bedroom", "type": "device", "id": { "entity_id": null, "device_id": "f423762e1c28755b0123cc7fd21c5fa7" } } ] }, { "id": "Ikea styrbar bedroom on long press", "automation": "- alias: Ikea styrbar bedroom on long press\n initial_state: true\n triggers:\n trigger: event\n event_type: zha_event\n event_data:\n device_id: f423762e1c28755b0123cc7fd21c5fa7\n command: move_with_on_off\n actions:\n action: script.bedroom_low_brightness", "config": [ { "name": "bedroom low brightness script", "room": "bedroom", "type": "script", "id": { "entity_id": "script.bedroom_low_brightness", "device_id": null } }, { "name": "Ikea styrbar bedroom", "room": "Bedroom", "type": "device", "id": { "entity_id": null, "device_id": "f423762e1c28755b0123cc7fd21c5fa7" } } ] }, { "id": "Ikea styrbar bedroom off", "automation": "- alias: Ikea styrbar bedroom off\n initial_state: true\n triggers:\n trigger: event\n event_type: zha_event\n event_data:\n device_id: f423762e1c28755b0123cc7fd21c5fa7\n command: 'off'\n actions:\n - action: light.turn_off\n target:\n area_id: sovrum", "config": [ { "name": "Ikea styrbar bedroom", "room": "Bedroom", "type": "device", "id": { "entity_id": null, "device_id": "f423762e1c28755b0123cc7fd21c5fa7" } } ] }, { "id": "Ikea styrbar bedroom off long press", "automation": "- alias: Ikea styrbar bedroom off long press\n triggers:\n trigger: event\n event_type: zha_event\n event_data:\n device_id: f423762e1c28755b0123cc7fd21c5fa7\n command: move\n actions:\n action: script.indoor_lights_off", "config": [ { "name": "indoor lights off script", "room": null, "type": "script", "id": { "entity_id": "script.indoor_lights_off", "device_id": null } }, { "name": "Ikea styrbar bedroom", "room": "Bedroom", "type": "device", "id": { "entity_id": null, "device_id": "f423762e1c28755b0123cc7fd21c5fa7" } } ] }, { "id": "Ikea styrbar bedroom increase press", "automation": "- alias: Ikea styrbar bedroom increase press\n initial_state: true\n triggers:\n trigger: event\n event_type: zha_event\n event_data:\n device_id: f423762e1c28755b0123cc7fd21c5fa7\n command: press\n args:\n - 256\n - 13\n - 0\n actions:\n choose:\n conditions:\n condition: state\n entity_id: light.bedroom_ceiling\n state: 'on'\n sequence:\n action: light.turn_on\n data:\n entity_id: light.bedroom_ceiling\n brightness: '{{ [state_attr(''light.bedroom_ceiling'',''brightness'') |\n int + 25, 255] | min }}\n\n '\n default:\n action: script.bedroom_nursery_light_high", "config": [ { "name": "bedroom nursery light high script", "room": "bedroom", "type": "script", "id": { "entity_id": "script.bedroom_nursery_light_high", "device_id": null } }, { "name": "bedroom nursery light script", "room": "bedroom", "type": "script", "id": { "entity_id": "script.bedroom_nursery_light", "device_id": null } }, { "name": "bedroom ceiling light", "room": "bedroom", "type": "light", "id": { "entity_id": "light.bedroom_ceiling", "device_id": null } }, { "name": "Ikea styrbar bedroom", "room": "Bedroom", "type": "device", "id": { "entity_id": null, "device_id": "f423762e1c28755b0123cc7fd21c5fa7" } } ] }, { "id": "Ikea styrbar bedroom decrease press", "automation": "- alias: Ikea styrbar bedroom decrease press\n initial_state: true\n triggers:\n trigger: event\n event_type: zha_event\n event_data:\n device_id: f423762e1c28755b0123cc7fd21c5fa7\n command: press\n args:\n - 257\n - 13\n - 0\n actions:\n choose:\n conditions:\n condition: state\n entity_id: light.bedroom_ceiling\n state: 'on'\n sequence:\n action: light.turn_on\n data:\n entity_id: light.bedroom_ceiling\n brightness: '{{ [state_attr(''light.bedroom_ceiling'',''brightness'') |\n int - 25, 1] | max }}\n\n '\n default:\n action: script.bedroom_nursery_light", "config": [ { "name": "bedroom nursery light script", "room": "bedroom", "type": "script", "id": { "entity_id": "script.bedroom_nursery_light", "device_id": null } }, { "name": "bedroom ceiling light", "room": "bedroom", "type": "light", "id": { "entity_id": "light.bedroom_ceiling", "device_id": null } }, { "name": "Ikea styrbar bedroom", "room": "Bedroom", "type": "device", "id": { "entity_id": null, "device_id": "f423762e1c28755b0123cc7fd21c5fa7" } } ] }, { "id": "Ikea button childroom toggle", "automation": "- alias: Ikea button childroom toggle\n initial_state: true\n triggers:\n trigger: event\n event_type: zha_event\n event_data:\n device_id: 44bc2855a0757d86e2bf3ca19df7db77\n command: toggle\n actions:\n action: light.toggle\n data:\n entity_id: light.childroom_ceiling", "config": [ { "name": "childroom ceiling light", "room": "childroom", "type": "light", "id": { "entity_id": "light.childroom_ceiling", "device_id": null } }, { "name": "Ikea button childroom", "room": "Childroom", "type": "device", "id": { "entity_id": null, "device_id": "44bc2855a0757d86e2bf3ca19df7db77" } } ] }, { "id": "Ikea button childroom bright", "automation": "- alias: Ikea button childroom bright\n initial_state: true\n triggers:\n trigger: event\n event_type: zha_event\n event_data:\n device_id: 44bc2855a0757d86e2bf3ca19df7db77\n command: step_with_on_off\n actions:\n action: script.childroom_bright", "config": [ { "name": "childroom bright script", "room": "childroom", "type": "script", "id": { "entity_id": "script.childroom_bright", "device_id": null } }, { "name": "Ikea button childroom", "room": "Childroom", "type": "device", "id": { "entity_id": null, "device_id": "44bc2855a0757d86e2bf3ca19df7db77" } } ] }, { "id": "Ikea button childroom relaxed", "automation": "- alias: Ikea button childroom relaxed\n initial_state: true\n triggers:\n trigger: event\n event_type: zha_event\n event_data:\n device_id: 44bc2855a0757d86e2bf3ca19df7db77\n command: step\n actions:\n action: script.childroom_relaxed", "config": [ { "name": "childroom relaxed script", "room": "childroom", "type": "script", "id": { "entity_id": "script.childroom_relaxed", "device_id": null } }, { "name": "Ikea button childroom", "room": "Childroom", "type": "device", "id": { "entity_id": null, "device_id": "44bc2855a0757d86e2bf3ca19df7db77" } } ] }, { "id": "Ikea button childroom window light toggle", "automation": "- alias: Ikea button childroom window light toggle\n initial_state: true\n triggers:\n trigger: event\n event_type: zha_event\n event_data:\n device_id: 44bc2855a0757d86e2bf3ca19df7db77\n command: move_with_on_off\n conditions:\n condition: state\n entity_id: input_boolean.enable_advent_light_automations\n state: 'on'\n actions:\n action: light.toggle\n data:\n entity_id: light.childroom_window", "config": [ { "name": "enable advent light automations", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_advent_light_automations", "device_id": null } }, { "name": "childroom window light", "room": "childroom", "type": "light", "id": { "entity_id": "light.childroom_window", "device_id": null } }, { "name": "Ikea button childroom", "room": "Childroom", "type": "device", "id": { "entity_id": null, "device_id": "44bc2855a0757d86e2bf3ca19df7db77" } } ] }, { "id": "Ikea button childroom led strip disco", "automation": "- alias: Ikea button childroom led strip disco\n initial_state: true\n triggers:\n trigger: event\n event_type: zha_event\n event_data:\n device_id: 44bc2855a0757d86e2bf3ca19df7db77\n command: move_with_on_off\n conditions:\n condition: state\n entity_id: input_boolean.enable_advent_light_automations\n state: 'off'\n actions:\n - choose:\n - conditions:\n condition: state\n entity_id: light.childroom_led_strip\n state: 'off'\n sequence:\n - action: script.turn_on\n target:\n entity_id: script.childroom_disco\n - conditions:\n condition: state\n entity_id: light.childroom_led_strip\n state: 'on'\n sequence:\n - action: light.turn_off\n target:\n entity_id: light.childroom_led_strip", "config": [ { "name": "enable advent light automations", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.enable_advent_light_automations", "device_id": null } }, { "name": "childroom led strip light", "room": "childroom", "type": "light", "id": { "entity_id": "light.childroom_led_strip", "device_id": null } }, { "name": "childroom disco script", "room": "childroom", "type": "script", "id": { "entity_id": "script.childroom_disco", "device_id": null } }, { "name": "Ikea button childroom", "room": "Childroom", "type": "device", "id": { "entity_id": null, "device_id": "44bc2855a0757d86e2bf3ca19df7db77" } } ] }, { "id": "Ikea button childroom light turn off", "automation": "- alias: Ikea button childroom light turn off\n initial_state: true\n triggers:\n trigger: event\n event_type: zha_event\n event_data:\n device_id: 44bc2855a0757d86e2bf3ca19df7db77\n command: move\n actions:\n action: script.childroom_light_dim", "config": [ { "name": "childroom light dim script", "room": "childroom", "type": "script", "id": { "entity_id": "script.childroom_light_dim", "device_id": null } }, { "name": "Ikea button childroom", "room": "Childroom", "type": "device", "id": { "entity_id": null, "device_id": "44bc2855a0757d86e2bf3ca19df7db77" } } ] }, { "id": "Ikea button childroom increase volume", "automation": "- alias: Ikea button childroom increase volume\n initial_state: true\n triggers:\n trigger: event\n event_type: zha_event\n event_data:\n device_id: 44bc2855a0757d86e2bf3ca19df7db77\n command: press\n args:\n - 256\n - 13\n - 0\n actions:\n action: python_script.media_player_volume_set\n data:\n entity_id: media_player.childroom_sonos\n volume_level: '{{ [((state_attr(''media_player.childroom_sonos'',''volume_level'')\n | float * 1.15 + 0.03) | round(2)), 1] | min }}\n\n '", "config": [ { "name": "childroom sonos", "room": "childroom", "type": "media_player", "id": { "entity_id": "media_player.childroom_sonos", "device_id": null } }, { "name": "Ikea button childroom", "room": "Childroom", "type": "device", "id": { "entity_id": null, "device_id": "44bc2855a0757d86e2bf3ca19df7db77" } } ] }, { "id": "Ikea button childroom decrease volume", "automation": "- alias: Ikea button childroom decrease volume\n initial_state: true\n triggers:\n trigger: event\n event_type: zha_event\n event_data:\n device_id: 44bc2855a0757d86e2bf3ca19df7db77\n command: press\n args:\n - 257\n - 13\n - 0\n actions:\n action: python_script.media_player_volume_set\n data:\n entity_id: media_player.childroom_sonos\n volume_level: '{{ [((state_attr(''media_player.childroom_sonos'',''volume_level'')\n | float * 0.85 - 0.03) | round(2)), 0.05] | max }}\n\n '", "config": [ { "name": "childroom sonos", "room": "childroom", "type": "media_player", "id": { "entity_id": "media_player.childroom_sonos", "device_id": null } }, { "name": "Ikea button childroom", "room": "Childroom", "type": "device", "id": { "entity_id": null, "device_id": "44bc2855a0757d86e2bf3ca19df7db77" } } ] }, { "id": "Ikea button childroom ungroup speaker", "automation": "- alias: Ikea button childroom ungroup speaker\n initial_state: true\n triggers:\n trigger: event\n event_type: zha_event\n event_data:\n device_id: 44bc2855a0757d86e2bf3ca19df7db77\n command: hold\n args:\n - 3329\n - 0\n actions:\n action: script.sonos_ungroup_childroom_speaker", "config": [ { "name": "sonos ungroup childroom speaker script", "room": "childroom", "type": "script", "id": { "entity_id": "script.sonos_ungroup_childroom_speaker", "device_id": null } }, { "name": "Ikea button childroom", "room": "Childroom", "type": "device", "id": { "entity_id": null, "device_id": "44bc2855a0757d86e2bf3ca19df7db77" } } ] }, { "id": "Ikea button childroom group speaker", "automation": "- alias: Ikea button childroom group speaker\n initial_state: true\n triggers:\n trigger: event\n event_type: zha_event\n event_data:\n device_id: 44bc2855a0757d86e2bf3ca19df7db77\n command: hold\n args:\n - 3328\n - 0\n actions:\n action: script.sonos_group_childroom_speaker", "config": [ { "name": "sonos group childroom speaker script", "room": "childroom", "type": "script", "id": { "entity_id": "script.sonos_group_childroom_speaker", "device_id": null } }, { "name": "Ikea button childroom", "room": "Childroom", "type": "device", "id": { "entity_id": null, "device_id": "44bc2855a0757d86e2bf3ca19df7db77" } } ] }, { "id": "Office switch turn on", "automation": "- alias: Office switch turn on\n initial_state: true\n triggers:\n trigger: event\n event_type: zha_event\n event_data:\n device_id: 0e0ddda228abe1831c9056b2834b6454\n command: 'on'\n actions:\n if:\n condition: state\n entity_id: binary_sensor.relaxed_mode\n state: 'off'\n then:\n action: script.turn_on\n target:\n entity_id: script.office_bright\n else:\n action: script.turn_on\n target:\n entity_id: script.office_relaxed", "config": [ { "name": "relaxed mode", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.relaxed_mode", "device_id": null } }, { "name": "office bright script", "room": "office", "type": "script", "id": { "entity_id": "script.office_bright", "device_id": null } }, { "name": "office relaxed script", "room": "office", "type": "script", "id": { "entity_id": "script.office_relaxed", "device_id": null } }, { "name": "Office switch", "room": "Office", "type": "device", "id": { "entity_id": null, "device_id": "0e0ddda228abe1831c9056b2834b6454" } } ] }, { "id": "Office switch turn off", "automation": "- alias: Office switch turn off\n initial_state: true\n triggers:\n trigger: event\n event_type: zha_event\n event_data:\n device_id: 0e0ddda228abe1831c9056b2834b6454\n command: 'off'\n actions:\n action: light.turn_off\n target:\n area_id: arbetsrum", "config": [ { "name": "Office switch", "room": "Office", "type": "device", "id": { "entity_id": null, "device_id": "0e0ddda228abe1831c9056b2834b6454" } } ] }, { "id": "Office switch turn on hold", "automation": "- alias: Office switch turn on hold\n initial_state: true\n triggers:\n trigger: event\n event_type: zha_event\n event_data:\n device_id: 0e0ddda228abe1831c9056b2834b6454\n command: move_with_on_off\n conditions:\n condition: state\n entity_id: binary_sensor.relaxed_mode\n state: 'off'\n actions:\n action: script.turn_on\n target:\n entity_id: script.hallway_top_floor_bright", "config": [ { "name": "relaxed mode", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.relaxed_mode", "device_id": null } }, { "name": "hallway top floor bright script", "room": "hallway", "type": "script", "id": { "entity_id": "script.hallway_top_floor_bright", "device_id": null } }, { "name": "Office switch", "room": "Office", "type": "device", "id": { "entity_id": null, "device_id": "0e0ddda228abe1831c9056b2834b6454" } } ] }, { "id": "Office switch turn off hold", "automation": "- alias: Office switch turn off hold\n initial_state: true\n triggers:\n trigger: event\n event_type: zha_event\n event_data:\n device_id: 0e0ddda228abe1831c9056b2834b6454\n command: move\n actions:\n action: script.turn_on\n target:\n entity_id: script.indoor_lights_low_brightness", "config": [ { "name": "indoor lights low brightness script", "room": null, "type": "script", "id": { "entity_id": "script.indoor_lights_low_brightness", "device_id": null } }, { "name": "Office switch", "room": "Office", "type": "device", "id": { "entity_id": null, "device_id": "0e0ddda228abe1831c9056b2834b6454" } } ] }, { "id": "Ikea switch turn on coffee maker", "automation": "- alias: Ikea switch turn on coffee maker\n initial_state: true\n triggers:\n trigger: event\n event_type: zha_event\n event_data:\n device_id: ba91148bbaa6400dc4a15b0b42004ddb\n command: 'on'\n actions:\n - action: switch.turn_on\n target:\n entity_id: switch.kitchen_coffee_maker", "config": [ { "name": "kitchen coffee maker switch", "room": "kitchen", "type": "switch", "id": { "entity_id": "switch.kitchen_coffee_maker", "device_id": null } }, { "name": "Ikea kitchen coffee switch", "room": "Kitchen", "type": "device", "id": { "entity_id": null, "device_id": "ba91148bbaa6400dc4a15b0b42004ddb" } } ] }, { "id": "Ikea switch turn off coffee maker", "automation": "- alias: Ikea switch turn off coffee maker\n initial_state: true\n triggers:\n trigger: event\n event_type: zha_event\n event_data:\n device_id: ba91148bbaa6400dc4a15b0b42004ddb\n command: 'off'\n actions:\n action: switch.turn_off\n target:\n entity_id: switch.kitchen_coffee_maker", "config": [ { "name": "kitchen coffee maker switch", "room": "kitchen", "type": "switch", "id": { "entity_id": "switch.kitchen_coffee_maker", "device_id": null } }, { "name": "Ikea kitchen coffee switch", "room": "Kitchen", "type": "device", "id": { "entity_id": null, "device_id": "ba91148bbaa6400dc4a15b0b42004ddb" } } ] }, { "id": "Ikea switch turn on kitchen bright", "automation": "- alias: Ikea switch turn on kitchen bright\n initial_state: true\n triggers:\n trigger: event\n event_type: zha_event\n event_data:\n device_id: ba91148bbaa6400dc4a15b0b42004ddb\n command: move_with_on_off\n actions:\n action: script.kitchen_bright", "config": [ { "name": "kitchen bright script", "room": "kitchen", "type": "script", "id": { "entity_id": "script.kitchen_bright", "device_id": null } }, { "name": "Ikea kitchen coffee switch", "room": "Kitchen", "type": "device", "id": { "entity_id": null, "device_id": "ba91148bbaa6400dc4a15b0b42004ddb" } } ] }, { "id": "Ikea switch turn off kitchen lights", "automation": "- alias: Ikea switch turn off kitchen lights\n initial_state: true\n triggers:\n trigger: event\n event_type: zha_event\n event_data:\n device_id: ba91148bbaa6400dc4a15b0b42004ddb\n command: move\n actions:\n action: light.turn_off\n target:\n area_id: kok", "config": [ { "name": "Ikea kitchen coffee switch", "room": "Kitchen", "type": "device", "id": { "entity_id": null, "device_id": "ba91148bbaa6400dc4a15b0b42004ddb" } } ] }, { "id": "Shelly livingroom relaxed", "automation": "- alias: Shelly livingroom relaxed\n initial_state: true\n triggers:\n trigger: event\n event_type: shelly.click\n event_data:\n device_id: aad1e36ae5e1a5709dd95de24f0c5fea\n device: shellyswitch25-E098068CEEBD\n channel: 2\n click_type: single\n conditions:\n condition: template\n value_template: '{{ is_state(''light.livingroom_couch_table'',''on'') and not\n is_state_attr(''light.livingroom_couch_table'',''brightness'',76) }}\n\n '\n actions:\n action: script.livingroom_relaxed", "config": [ { "name": "livingroom couch table light", "room": "livingroom", "type": "light", "id": { "entity_id": "light.livingroom_couch_table", "device_id": null } }, { "name": "livingroom relaxed script", "room": "livingroom", "type": "script", "id": { "entity_id": "script.livingroom_relaxed", "device_id": null } }, { "name": "Shelly livingroom switch", "room": "Livingroom", "type": "device", "id": { "entity_id": null, "device_id": "aad1e36ae5e1a5709dd95de24f0c5fea" } } ] }, { "id": "Shelly livingroom bright", "automation": "- alias: Shelly livingroom bright\n initial_state: true\n triggers:\n trigger: event\n event_type: shelly.click\n event_data:\n device_id: aad1e36ae5e1a5709dd95de24f0c5fea\n device: shellyswitch25-E098068CEEBD\n channel: 2\n click_type: single\n conditions:\n condition: template\n value_template: '{{ is_state(''light.livingroom_couch_table'',''off'') or is_state_attr(''light.livingroom_couch_table'',''brightness'',76)\n }}\n\n '\n actions:\n action: script.livingroom_bright", "config": [ { "name": "livingroom couch table light", "room": "livingroom", "type": "light", "id": { "entity_id": "light.livingroom_couch_table", "device_id": null } }, { "name": "livingroom bright script", "room": "livingroom", "type": "script", "id": { "entity_id": "script.livingroom_bright", "device_id": null } }, { "name": "Shelly livingroom switch", "room": "Livingroom", "type": "device", "id": { "entity_id": null, "device_id": "aad1e36ae5e1a5709dd95de24f0c5fea" } } ] }, { "id": "Shelly livingroom relaxed long press", "automation": "- alias: Shelly livingroom relaxed long press\n initial_state: true\n triggers:\n trigger: event\n event_type: shelly.click\n event_data:\n device_id: aad1e36ae5e1a5709dd95de24f0c5fea\n device: shellyswitch25-E098068CEEBD\n channel: 2\n click_type: long\n conditions:\n condition: state\n entity_id: light.livingroom_couch_table\n state: 'off'\n actions:\n action: script.livingroom_relaxed", "config": [ { "name": "livingroom couch table light", "room": "livingroom", "type": "light", "id": { "entity_id": "light.livingroom_couch_table", "device_id": null } }, { "name": "livingroom relaxed script", "room": "livingroom", "type": "script", "id": { "entity_id": "script.livingroom_relaxed", "device_id": null } }, { "name": "Shelly livingroom switch", "room": "Livingroom", "type": "device", "id": { "entity_id": null, "device_id": "aad1e36ae5e1a5709dd95de24f0c5fea" } } ] }, { "id": "Shelly livingroom turn off lights", "automation": "- alias: Shelly livingroom turn off lights\n initial_state: true\n triggers:\n trigger: event\n event_type: shelly.click\n event_data:\n device_id: aad1e36ae5e1a5709dd95de24f0c5fea\n device: shellyswitch25-E098068CEEBD\n channel: 2\n click_type: long\n conditions:\n condition: state\n entity_id: light.livingroom_couch_table\n state: 'on'\n actions:\n - action: light.turn_off\n target:\n area_id: vardagsrum", "config": [ { "name": "livingroom couch table light", "room": "livingroom", "type": "light", "id": { "entity_id": "light.livingroom_couch_table", "device_id": null } }, { "name": "Shelly livingroom switch", "room": "Livingroom", "type": "device", "id": { "entity_id": null, "device_id": "aad1e36ae5e1a5709dd95de24f0c5fea" } } ] }, { "id": "Enable Sonos alarm", "automation": "- alias: Enable Sonos alarm\n triggers:\n trigger: time\n at: 03:00:00\n conditions:\n - condition: state\n entity_id: binary_sensor.workday_sensor\n state: 'on'\n - condition: state\n entity_id: automation.wakeup_weekdays\n state: 'on'\n actions:\n action: script.sonos_set_alarm", "config": [ { "name": "workday sensor", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.workday_sensor", "device_id": null } }, { "name": "sonos set alarm script", "room": null, "type": "script", "id": { "entity_id": "script.sonos_set_alarm", "device_id": null } }, { "name": "Wakeup weekdays automation", "room": null, "type": "automation", "id": { "entity_id": "automation.wakeup_weekdays", "device_id": null } } ] }, { "id": "Skip song tracks", "automation": "- alias: Skip song tracks\n initial_state: true\n triggers:\n trigger: template\n value_template: '{{ state_attr(''media_player.childroom_sonos'',''media_title'')|regex_search(''Perfect'',\n ignorecase=False) }}\n\n '\n actions:\n action: media_player.media_next_track\n data:\n entity_id: media_player.childroom_sonos", "config": [ { "name": "childroom sonos", "room": "childroom", "type": "media_player", "id": { "entity_id": "media_player.childroom_sonos", "device_id": null } } ] }, { "id": "Activate repeat on Sonos bedroom", "automation": "- alias: Activate repeat on Sonos bedroom\n initial_state: true\n triggers:\n trigger: state\n entity_id: media_player.childroom_sonos\n to: playing\n for: 00:00:05\n conditions:\n - condition: state\n entity_id: binary_sensor.childroom_sonos_is_grouped\n state: 'off'\n - condition: template\n value_template: '{{ is_state_attr(''media_player.childroom_sonos'',''repeat'',''off'')\n and is_state_attr(''media_player.childroom_sonos'',''media_content_type'',''music'')\n }}\n\n '\n actions:\n action: media_player.repeat_set\n data:\n entity_id: media_player.childroom_sonos\n repeat: all", "config": [ { "name": "childroom sonos", "room": "childroom", "type": "media_player", "id": { "entity_id": "media_player.childroom_sonos", "device_id": null } }, { "name": "childroom sonos is grouped", "room": "childroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.childroom_sonos_is_grouped", "device_id": null } } ] }, { "id": "TV off group speakers", "automation": "- alias: TV off group speakers\n initial_state: true\n triggers:\n trigger: state\n entity_id: binary_sensor.livingroom_sonos_tv_active\n to: 'off'\n conditions:\n condition: not\n conditions:\n - condition: state\n entity_id: binary_sensor.livingroom_sonos_is_grouped\n state: 'on'\n - condition: state\n entity_id: media_player.livingroom_sonos\n state: playing\n actions:\n action: script.sonos_group_livingroom_speaker", "config": [ { "name": "livingroom sonos tv active", "room": "livingroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.livingroom_sonos_tv_active", "device_id": null } }, { "name": "sonos group livingroom speaker script", "room": "livingroom", "type": "script", "id": { "entity_id": "script.sonos_group_livingroom_speaker", "device_id": null } }, { "name": "livingroom sonos is grouped", "room": "livingroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.livingroom_sonos_is_grouped", "device_id": null } }, { "name": "livingroom sonos media player", "room": "livingroom", "type": "media_player", "id": { "entity_id": "media_player.livingroom_sonos", "device_id": null } } ] }, { "id": "TV off disable night mode", "automation": "- alias: TV off disable night mode\n initial_state: true\n triggers:\n trigger: state\n entity_id: binary_sensor.livingroom_sonos_tv_active\n to: 'off'\n conditions:\n condition: or\n conditions:\n - condition: state\n entity_id: switch.sonos_livingroom_night_sound\n state: 'on'\n - condition: state\n entity_id: switch.sonos_livingroom_speech_enhancement\n state: 'on'\n actions:\n action: switch.turn_off\n target:\n entity_id:\n - switch.sonos_livingroom_night_sound\n - switch.sonos_livingroom_speech_enhancement", "config": [ { "name": "livingroom sonos tv active", "room": "livingroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.livingroom_sonos_tv_active", "device_id": null } }, { "name": "sonos livingroom night sound switch", "room": "livingroom", "type": "switch", "id": { "entity_id": "switch.sonos_livingroom_night_sound", "device_id": null } }, { "name": "sonos livingroom speech enhancement switch", "room": "livingroom", "type": "switch", "id": { "entity_id": "switch.sonos_livingroom_speech_enhancement", "device_id": null } } ] }, { "id": "Leaving home pause Sonos kitchen", "automation": "- alias: Leaving home pause Sonos kitchen\n initial_state: true\n triggers:\n - trigger: state\n entity_id: group.device_tracker_family\n to: not_home\n - trigger: state\n entity_id: alarm_control_panel.ajax_alarm_status\n to: armed_away\n conditions:\n condition: state\n entity_id: media_player.kitchen_sonos\n state: playing\n actions:\n - action: python_script.media_player_volume_set\n data:\n entity_id: media_player.kitchen_sonos\n set_group_volume: true\n volume_level: 0.01\n - action: media_player.media_pause\n entity_id: media_player.kitchen_sonos\n - action: script.sonos_set_group_volume\n data:\n volume: 0.2", "config": [ { "name": "family device tracker group", "room": null, "type": "group", "id": { "entity_id": "group.device_tracker_family", "device_id": null } }, { "name": "sonos set group volume script", "room": null, "type": "script", "id": { "entity_id": "script.sonos_set_group_volume", "device_id": null } }, { "name": "kitchen sonos", "room": "kitchen", "type": "media_player", "id": { "entity_id": "media_player.kitchen_sonos", "device_id": null } }, { "name": "ajax alarm status", "room": null, "type": "alarm_control_panel", "id": { "entity_id": "alarm_control_panel.ajax_alarm_status", "device_id": null } } ] }, { "id": "Leaving home pause Sonos childroom", "automation": "- alias: Leaving home pause Sonos childroom\n initial_state: true\n triggers:\n - trigger: state\n entity_id: group.device_tracker_family\n to: not_home\n - trigger: state\n entity_id: alarm_control_panel.ajax_alarm_status\n to: armed_away\n conditions:\n - condition: state\n entity_id: media_player.childroom_sonos\n state: playing\n - condition: state\n entity_id: binary_sensor.childroom_sonos_is_grouped\n state: 'off'\n actions:\n action: media_player.media_pause\n entity_id: media_player.childroom_sonos", "config": [ { "name": "family device tracker group", "room": null, "type": "group", "id": { "entity_id": "group.device_tracker_family", "device_id": null } }, { "name": "childroom sonos", "room": "childroom", "type": "media_player", "id": { "entity_id": "media_player.childroom_sonos", "device_id": null } }, { "name": "childroom sonos is grouped", "room": "childroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.childroom_sonos_is_grouped", "device_id": null } }, { "name": "ajax alarm status", "room": null, "type": "alarm_control_panel", "id": { "entity_id": "alarm_control_panel.ajax_alarm_status", "device_id": null } } ] }, { "id": "Pause bedroom music", "automation": "- alias: Pause bedroom music\n initial_state: true\n triggers:\n trigger: event\n event_type: timer.finished\n event_data:\n entity_id: timer.childroom_music\n conditions:\n - condition: state\n entity_id: media_player.childroom_sonos\n state: playing\n - condition: state\n entity_id: binary_sensor.childroom_sonos_is_grouped\n state: 'off'\n actions:\n - action: python_script.media_player_volume_set\n data:\n entity_id: media_player.childroom_sonos\n volume_level: 0.01\n - action: media_player.media_pause\n entity_id: media_player.childroom_sonos\n - action: media_player.volume_set\n data:\n entity_id: media_player.childroom_sonos\n volume_level: 0.1", "config": [ { "name": "childroom sonos", "room": "childroom", "type": "media_player", "id": { "entity_id": "media_player.childroom_sonos", "device_id": null } }, { "name": "childroom sonos is grouped", "room": "childroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.childroom_sonos_is_grouped", "device_id": null } }, { "name": "childroom music timer", "room": "childroom", "type": "timer", "id": { "entity_id": "timer.childroom_music", "device_id": null } } ] }, { "id": "Start bedroom music timer", "automation": "- alias: Start bedroom music timer\n initial_state: true\n triggers:\n trigger: state\n entity_id: script.indoor_lights_off\n to: 'on'\n conditions:\n - condition: state\n entity_id: media_player.childroom_sonos\n state: playing\n - condition: state\n entity_id: timer.childroom_music\n state: idle\n - condition: state\n entity_id: binary_sensor.childroom_sonos_is_grouped\n state: 'off'\n - condition: state\n entity_id: binary_sensor.relaxed_mode\n state: 'on'\n actions:\n action: script.bedroom_music_timer_start", "config": [ { "name": "indoor lights off script", "room": null, "type": "script", "id": { "entity_id": "script.indoor_lights_off", "device_id": null } }, { "name": "relaxed mode", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.relaxed_mode", "device_id": null } }, { "name": "childroom sonos", "room": "childroom", "type": "media_player", "id": { "entity_id": "media_player.childroom_sonos", "device_id": null } }, { "name": "childroom sonos is grouped", "room": "childroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.childroom_sonos_is_grouped", "device_id": null } }, { "name": "childroom music timer", "room": "childroom", "type": "timer", "id": { "entity_id": "timer.childroom_music", "device_id": null } }, { "name": "bedroom music timer start script", "room": "bedroom", "type": "script", "id": { "entity_id": "script.bedroom_music_timer_start", "device_id": null } } ] }, { "id": "Kitchen coffee maker timer start", "automation": "- alias: Kitchen coffee maker timer start\n triggers:\n - trigger: state\n entity_id: switch.kitchen_coffee_maker\n to: 'on'\n id: state\n - trigger: event\n event_type: zha_event\n event_data:\n device_id: ba91148bbaa6400dc4a15b0b42004ddb\n command: 'on'\n id: remote\n actions:\n choose:\n - conditions:\n - condition: trigger\n id: state\n sequence:\n action: script.kitchen_coffee_maker_timer_start\n - conditions:\n - condition: trigger\n id: remote\n - condition: state\n entity_id: switch.kitchen_coffee_maker\n state: 'on'\n sequence:\n action: script.kitchen_coffee_maker_timer_start", "config": [ { "name": "kitchen coffee maker switch", "room": "kitchen", "type": "switch", "id": { "entity_id": "switch.kitchen_coffee_maker", "device_id": null } }, { "name": "kitchen coffee maker timer start script", "room": "kitchen", "type": "script", "id": { "entity_id": "script.kitchen_coffee_maker_timer_start", "device_id": null } }, { "name": "Ikea kitchen coffee switch", "room": "Kitchen", "type": "device", "id": { "entity_id": null, "device_id": "ba91148bbaa6400dc4a15b0b42004ddb" } } ] }, { "id": "Kitchen coffee maker timer cancel", "automation": "- alias: Kitchen coffee maker timer cancel\n initial_state: true\n triggers:\n trigger: state\n entity_id: switch.kitchen_coffee_maker\n to: 'off'\n conditions:\n condition: state\n entity_id: timer.kitchen_coffee_maker\n state: active\n actions:\n action: script.kitchen_coffee_maker_timer_cancel", "config": [ { "name": "kitchen coffee maker switch", "room": "kitchen", "type": "switch", "id": { "entity_id": "switch.kitchen_coffee_maker", "device_id": null } }, { "name": "kitchen coffee maker timer", "room": "kitchen", "type": "timer", "id": { "entity_id": "timer.kitchen_coffee_maker", "device_id": null } }, { "name": "kitchen coffee maker timer cancel script", "room": "kitchen", "type": "script", "id": { "entity_id": "script.kitchen_coffee_maker_timer_cancel", "device_id": null } } ] }, { "id": "Timer turn off kitchen coffee maker", "automation": "- alias: Timer turn off kitchen coffee maker\n initial_state: true\n triggers:\n trigger: event\n event_type: timer.finished\n event_data:\n entity_id: timer.kitchen_coffee_maker\n conditions:\n condition: state\n entity_id: switch.kitchen_coffee_maker\n state: 'on'\n actions:\n action: switch.turn_off\n target:\n entity_id: switch.kitchen_coffee_maker", "config": [ { "name": "kitchen coffee maker switch", "room": "kitchen", "type": "switch", "id": { "entity_id": "switch.kitchen_coffee_maker", "device_id": null } }, { "name": "kitchen coffee maker timer", "room": "kitchen", "type": "timer", "id": { "entity_id": "timer.kitchen_coffee_maker", "device_id": null } } ] }, { "id": "Battery charging station timer start", "automation": "- alias: Battery charging station timer start\n initial_state: true\n triggers:\n trigger: state\n entity_id: switch.battery_charging_station\n to: 'on'\n actions:\n action: timer.start\n data:\n entity_id: timer.battery_charging_station\n duration: '10:00:00'", "config": [ { "name": "battery charging station switch", "room": null, "type": "switch", "id": { "entity_id": "switch.battery_charging_station", "device_id": null } }, { "name": "battery charging station timer", "room": null, "type": "timer", "id": { "entity_id": "timer.battery_charging_station", "device_id": null } } ] }, { "id": "Battery charging station timer cancel", "automation": "- alias: Battery charging station timer cancel\n initial_state: true\n triggers:\n trigger: state\n entity_id: switch.battery_charging_station\n from: 'on'\n actions:\n action: timer.cancel\n target:\n entity_id: timer.battery_charging_station", "config": [ { "name": "battery charging station switch", "room": null, "type": "switch", "id": { "entity_id": "switch.battery_charging_station", "device_id": null } }, { "name": "battery charging station timer", "room": null, "type": "timer", "id": { "entity_id": "timer.battery_charging_station", "device_id": null } } ] }, { "id": "Battery charging station turn off", "automation": "- alias: Battery charging station turn off\n initial_state: true\n triggers:\n trigger: event\n event_type: timer.finished\n event_data:\n entity_id: timer.battery_charging_station\n actions:\n action: switch.turn_off\n target:\n entity_id: switch.battery_charging_station", "config": [ { "name": "battery charging station switch", "room": null, "type": "switch", "id": { "entity_id": "switch.battery_charging_station", "device_id": null } }, { "name": "battery charging station timer", "room": null, "type": "timer", "id": { "entity_id": "timer.battery_charging_station", "device_id": null } } ] } ]