3738 lines
142 KiB
JSON
3738 lines
142 KiB
JSON
[
|
|
{
|
|
"id": "'Sleeping: Asleep Automations State'",
|
|
"automation": "- alias: 'Sleeping: Asleep Automations State'\n description: When asleep, set automations state\n trigger:\n platform: state\n entity_id: input_boolean.sleeping\n from: 'off'\n to: 'on'\n action:\n - service: automation.turn_on\n data:\n entity_id:\n - automation.alarm_pre_morning_heating_bedroom\n - automation.alarm_pre_morning_heating_living_room\n - automation.alarm_pre_morning_blanket\n - automation.alarm_pre_morning_lights",
|
|
"config": [
|
|
{
|
|
"name": "sleeping state",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.sleeping",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "alarm pre morning heating bedroom",
|
|
"room": "bedroom",
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.alarm_pre_morning_heating_bedroom",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "alarm pre morning heating living room",
|
|
"room": "living_room",
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.alarm_pre_morning_heating_living_room",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "alarm pre morning blanket",
|
|
"room": "bedroom",
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.alarm_pre_morning_blanket",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "alarm pre morning lights",
|
|
"room": "bedroom",
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.alarm_pre_morning_lights",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Sleeping: Asleep Blanket'",
|
|
"automation": "- alias: 'Sleeping: Asleep Blanket'\n description: When asleep, turn the blanket off\n trigger:\n platform: state\n entity_id: input_boolean.sleeping\n from: 'off'\n to: 'on'\n condition:\n - condition: state\n entity_id: switch.plug5_power\n state: 'on'\n action:\n - service: switch.turn_off\n data:\n entity_id: switch.plug5_power",
|
|
"config": [
|
|
{
|
|
"name": "sleeping state",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.sleeping",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "plug5 power",
|
|
"room": "bedroom",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.plug5_power",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Sleeping: Asleep Heating'",
|
|
"automation": "- alias: 'Sleeping: Asleep Heating'\n description: When asleep, turn the heating off\n trigger:\n platform: state\n entity_id: input_boolean.sleeping\n from: 'off'\n to: 'on'\n action:\n - service: climate.turn_off\n data:\n entity_id: all",
|
|
"config": [
|
|
{
|
|
"name": "sleeping state",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.sleeping",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "All climate entities",
|
|
"room": null,
|
|
"type": "climate",
|
|
"id": {
|
|
"entity_id": "all",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Sleeping: Asleep Media Volumes'",
|
|
"automation": "- alias: 'Sleeping: Asleep Media Volumes'\n description: When sleeping, set low volumes for media players\n trigger:\n platform: state\n entity_id: input_boolean.sleeping\n from: 'off'\n to: 'on'\n action:\n - service: media_player.volume_set\n data:\n entity_id:\n - media_player.bathroom_mini\n - media_player.guest_room_mini\n - media_player.speaker\n - media_player.living_room_display\n volume_level: 0.15",
|
|
"config": [
|
|
{
|
|
"name": "sleeping state",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.sleeping",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "bathroom mini",
|
|
"room": "bathroom",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.bathroom_mini",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "guest room mini",
|
|
"room": "guest_room",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.guest_room_mini",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "speaker",
|
|
"room": "living_room",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.speaker",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "living room display",
|
|
"room": "living_room",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.living_room_display",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Sleeping: Asleep Rain Warning'",
|
|
"automation": "- alias: 'Sleeping: Asleep Rain Warning'\n description: When asleep, if the window is open and rainy, warn\n trigger:\n platform: state\n entity_id: input_boolean.sleeping\n from: 'off'\n to: 'on'\n condition:\n - condition: state\n entity_id: binary_sensor.living_room_window_sensor_contact\n state: 'on'\n - condition: state\n entity_id: weather.pirateweather\n state: rainy\n action:\n - service: notify.mobile_app_rafs_phone\n data:\n title: Rain warning\n message: May rain overnight, window is open",
|
|
"config": [
|
|
{
|
|
"name": "sleeping state",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.sleeping",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "living room window sensor contact",
|
|
"room": "living_room",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.living_room_window_sensor_contact",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "weather pirateweather",
|
|
"room": null,
|
|
"type": "weather",
|
|
"id": {
|
|
"entity_id": "weather.pirateweather",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Light: Guest Room Motion Off'",
|
|
"automation": "- alias: 'Light: Guest Room Motion Off'\n description: When guest room has no motion, if lights are on, turn off\n trigger:\n platform: state\n entity_id: binary_sensor.guest_room_motion_sensor_occupancy\n from: 'on'\n to: 'off'\n for:\n minutes: 10\n condition:\n - condition: state\n entity_id: light.guest_room\n state: 'on'\n action:\n - service: light.turn_off\n data:\n entity_id: light.guest_room",
|
|
"config": [
|
|
{
|
|
"name": "guest room motion sensor occupancy",
|
|
"room": "guest_room",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.guest_room_motion_sensor_occupancy",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "guest room light",
|
|
"room": "guest_room",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.guest_room",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Light: Guest Room No Motion'",
|
|
"automation": "- alias: 'Light: Guest Room No Motion'\n description: When guest room lights turn on, if there is no motion, turn off\n trigger:\n platform: state\n entity_id: light.guest_room\n from: 'off'\n to: 'on'\n for:\n minutes: 10\n condition:\n - condition: state\n entity_id: binary_sensor.guest_room_motion_sensor_occupancy\n state: 'off'\n for:\n minutes: 5\n action:\n - service: light.turn_off\n data:\n entity_id: light.guest_room",
|
|
"config": [
|
|
{
|
|
"name": "guest room motion sensor occupancy",
|
|
"room": "guest_room",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.guest_room_motion_sensor_occupancy",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "guest room light",
|
|
"room": "guest_room",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.guest_room",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Light: Hallway Motion On'",
|
|
"automation": "- alias: 'Light: Hallway Motion On'\n description: When someone is in the hallway, and it is dark, turn on the lights\n mode: restart\n trigger:\n - platform: state\n entity_id: binary_sensor.bathroom_door_sensor_contact\n from:\n - 'on'\n - 'off'\n to:\n - 'on'\n - 'off'\n - platform: state\n entity_id: binary_sensor.bedroom_door_sensor_contact\n from:\n - 'on'\n - 'off'\n to:\n - 'on'\n - 'off'\n - platform: state\n entity_id: binary_sensor.front_door_sensor_contact\n from:\n - 'on'\n - 'off'\n to:\n - 'on'\n - 'off'\n - platform: state\n entity_id: binary_sensor.guest_room_door_sensor_contact\n from:\n - 'on'\n - 'off'\n to:\n - 'on'\n - 'off'\n - platform: state\n entity_id: binary_sensor.living_room_door_sensor_contact\n from:\n - 'on'\n - 'off'\n to:\n - 'on'\n - 'off'\n - platform: state\n entity_id: light.bathroom\n from:\n - 'on'\n - 'off'\n to:\n - 'on'\n - 'off'\n - platform: state\n entity_id: light.guest_room\n from:\n - 'on'\n - 'off'\n to:\n - 'on'\n - 'off'\n condition:\n - '{{ state_attr(''sun.sun'', ''elevation'') <= states(''input_number.sunset_elevation'')|float\n }}'\n - '{{ (state_attr(''light.hallway_2'', ''brightness'') | int(0)) <= 3 }}'\n action:\n - service: light.turn_on\n data:\n entity_id: light.hallway_2\n brightness: 3\n - delay:\n seconds: 15\n - condition: '{{ (state_attr(''light.hallway_2'', ''brightness'') | int(0)) <= 3\n }}'\n - service: light.turn_off\n data:\n entity_id: light.hallway_2",
|
|
"config": [
|
|
{
|
|
"name": "guest room light",
|
|
"room": "guest_room",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.guest_room",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "bathroom door sensor contact",
|
|
"room": "bathroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.bathroom_door_sensor_contact",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "bedroom door sensor contact",
|
|
"room": "bedroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.bedroom_door_sensor_contact",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "front door sensor contact",
|
|
"room": "hallway",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.front_door_sensor_contact",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "guest room door sensor contact",
|
|
"room": "guest_room",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.guest_room_door_sensor_contact",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "living room door sensor contact",
|
|
"room": "living_room",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.living_room_door_sensor_contact",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "bathroom light",
|
|
"room": "bathroom",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.bathroom",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "hallway 2 light",
|
|
"room": "hallway",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.hallway_2",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "sun sun",
|
|
"room": null,
|
|
"type": "sun",
|
|
"id": {
|
|
"entity_id": "sun.sun",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "sunset elevation",
|
|
"room": null,
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.sunset_elevation",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "hallway light",
|
|
"room": "hallway",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.hallway",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "All climate entities",
|
|
"room": null,
|
|
"type": "climate",
|
|
"id": {
|
|
"entity_id": "all",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Light: Living Room Sunset'",
|
|
"automation": "- alias: 'Light: Living Room Sunset'\n description: At sunset, turn on living room evening scene\n trigger:\n - platform: template\n value_template: '{{ state_attr(''sun.sun'', ''elevation'') <= states(''input_number.sunset_elevation'')|float\n }}'\n - platform: numeric_state\n entity_id: sensor.hue_motion_sensor_1_illuminance\n below: 400\n for:\n minutes: 10\n condition:\n - condition: time\n after: '14:30:00'\n - condition: state\n entity_id: input_boolean.at_home\n state: 'on'\n - condition: state\n entity_id: light.living_room\n state: 'off'\n - condition: not\n conditions:\n - condition: state\n entity_id: media_player.lg_tv\n attribute: source\n state:\n - Apple TV\n - Prime Video\n - BBC iPlayer\n - Netflix\n - Disney+\n - Plex\n - ITVX\n action:\n - service: scene.turn_on\n data:\n transition: 300\n entity_id: '{% if is_state(''media_player.lg_tv'', ''off'') %}scene.living_room_evening\n {% else %}scene.living_room_evening_tv{% endif %}'",
|
|
"config": [
|
|
{
|
|
"name": "sun sun",
|
|
"room": null,
|
|
"type": "sun",
|
|
"id": {
|
|
"entity_id": "sun.sun",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "sunset elevation",
|
|
"room": null,
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.sunset_elevation",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "hue motion sensor 1 illuminance",
|
|
"room": "living_room",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.hue_motion_sensor_1_illuminance",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "at home state",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.at_home",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "living room light",
|
|
"room": "living_room",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.living_room",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "lg tv",
|
|
"room": "living_room",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.lg_tv",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "living room evening scene",
|
|
"room": "living_room",
|
|
"type": "scene",
|
|
"id": {
|
|
"entity_id": "scene.living_room_evening",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "living room evening tv scene",
|
|
"room": "living_room",
|
|
"type": "scene",
|
|
"id": {
|
|
"entity_id": "scene.living_room_evening_tv",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Sleeping: Awake Automations State'",
|
|
"automation": "- alias: 'Sleeping: Awake Automations State'\n description: When awake, set automations state\n trigger:\n platform: state\n entity_id: input_boolean.sleeping\n from: 'on'\n to: 'off'\n action:\n - service: automation.turn_off\n data:\n entity_id:\n - automation.alarm_pre_morning_heating_bedroom\n - automation.alarm_pre_morning_heating_living_room\n - automation.alarm_pre_morning_blanket\n - automation.alarm_pre_morning_lights",
|
|
"config": [
|
|
{
|
|
"name": "sleeping state",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.sleeping",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "alarm pre morning heating bedroom",
|
|
"room": "bedroom",
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.alarm_pre_morning_heating_bedroom",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "alarm pre morning heating living room",
|
|
"room": "living_room",
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.alarm_pre_morning_heating_living_room",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "alarm pre morning blanket",
|
|
"room": "bedroom",
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.alarm_pre_morning_blanket",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "alarm pre morning lights",
|
|
"room": "bedroom",
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.alarm_pre_morning_lights",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Sleeping: Awake Heating'",
|
|
"automation": "- alias: 'Sleeping: Awake Heating'\n description: When awake, turn the heating off\n trigger:\n platform: state\n entity_id: input_boolean.sleeping\n from: 'on'\n to: 'off'\n condition:\n - or:\n - condition: state\n entity_id: switch.plug5_power\n state: 'on'\n - condition: state\n entity_id: input_boolean.electric_blanket_morning\n state: 'on'\n action:\n - service: switch.turn_off\n data:\n entity_id: switch.plug5_power\n - service: input_boolean.turn_off\n data:\n entity_id: input_boolean.electric_blanket_morning",
|
|
"config": [
|
|
{
|
|
"name": "sleeping state",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.sleeping",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "plug5 power",
|
|
"room": "bedroom",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.plug5_power",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "electric blanket morning",
|
|
"room": "bedroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.electric_blanket_morning",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Sleeping: Awake Heating'",
|
|
"automation": "- alias: 'Sleeping: Awake Heating'\n description: When awake, turn the heating off\n trigger:\n platform: state\n entity_id: input_boolean.sleeping\n from: 'on'\n to: 'off'\n condition:\n - condition: state\n entity_id: climate.bedroom_heater\n state: heat\n action:\n - service: climate.turn_off\n data:\n entity_id: climate.bedroom_heater",
|
|
"config": [
|
|
{
|
|
"name": "sleeping state",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.sleeping",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "bedroom heater",
|
|
"room": "bedroom",
|
|
"type": "climate",
|
|
"id": {
|
|
"entity_id": "climate.bedroom_heater",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Sleeping: Awake Lights'",
|
|
"automation": "- alias: 'Sleeping: Awake Lights'\n description: When awake, set the lights to the correct state\n trigger:\n platform: state\n entity_id: input_boolean.sleeping\n from: 'on'\n to: 'off'\n action:\n - service: switch.turn_off\n data:\n entity_id: switch.adaptive_lighting_sleep_mode_bathroom\n - service: light.turn_on\n data:\n entity_id: light.bedside_lamp\n brightness_pct: 100\n transition: 60\n - delay:\n hours: 1\n - service: light.turn_off\n data:\n entity_id: light.bedroom",
|
|
"config": [
|
|
{
|
|
"name": "sleeping state",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.sleeping",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "adaptive lighting sleep mode bathroom",
|
|
"room": "bathroom",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.adaptive_lighting_sleep_mode_bathroom",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "bedside lamp",
|
|
"room": "bedroom",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.bedside_lamp",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "bedroom light",
|
|
"room": "bedroom",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.bedroom",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Sleeping: Awake Media Volumes'",
|
|
"automation": "- alias: 'Sleeping: Awake Media Volumes'\n description: When awake, set normal volumes for media players\n trigger:\n platform: state\n entity_id: input_boolean.sleeping\n from: 'on'\n to: 'off'\n action:\n - service: media_player.volume_set\n data:\n entity_id:\n - media_player.bathroom_mini\n - media_player.guest_room_mini\n volume_level: 0.3\n - service: media_player.volume_set\n data:\n entity_id:\n - media_player.speaker\n volume_level: 0.45\n - service: media_player.volume_set\n data:\n entity_id:\n - media_player.living_room_display\n volume_level: 0.35",
|
|
"config": [
|
|
{
|
|
"name": "sleeping state",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.sleeping",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "bathroom mini",
|
|
"room": "bathroom",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.bathroom_mini",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "guest room mini",
|
|
"room": "guest_room",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.guest_room_mini",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "speaker",
|
|
"room": "living_room",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.speaker",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "living room display",
|
|
"room": "living_room",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.living_room_display",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Presence: Away Heating'",
|
|
"automation": "- alias: 'Presence: Away Heating'\n description: When away, turn heating off\n trigger:\n platform: state\n entity_id: input_boolean.at_home\n from: 'on'\n to: 'off'\n action:\n - service: climate.turn_off\n data:\n entity_id: all",
|
|
"config": [
|
|
{
|
|
"name": "at home state",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.at_home",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "All climate entities",
|
|
"room": null,
|
|
"type": "climate",
|
|
"id": {
|
|
"entity_id": "all",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Presence: Away Lights'",
|
|
"automation": "- alias: 'Presence: Away Lights'\n description: When away, turn lights off\n trigger:\n platform: state\n entity_id: input_boolean.at_home\n from: 'on'\n to: 'off'\n action:\n - service: light.turn_off\n data:\n entity_id: all",
|
|
"config": [
|
|
{
|
|
"name": "at home state",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.at_home",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "All climate entities",
|
|
"room": null,
|
|
"type": "climate",
|
|
"id": {
|
|
"entity_id": "all",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Vacuum: Away Schedule'",
|
|
"automation": "- alias: 'Vacuum: Away Schedule'\n description: At scheduled times, if not home and not run today, start cleaning\n trigger:\n platform: time\n at: '15:00:00'\n condition:\n - condition: time\n weekday:\n - mon\n - wed\n - fri\n - condition: state\n entity_id: input_boolean.at_home\n state: 'off'\n - condition: numeric_state\n entity_id: sensor.robovac_last_run\n above: 0\n action:\n - service: vacuum.start\n data:\n entity_id: vacuum.robovac",
|
|
"config": [
|
|
{
|
|
"name": "at home state",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.at_home",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "robovac last run",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.robovac_last_run",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "robovac vacuum",
|
|
"room": "living_room",
|
|
"type": "vacuum",
|
|
"id": {
|
|
"entity_id": "vacuum.robovac",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Presence: Away Set Away'",
|
|
"automation": "- alias: 'Presence: Away Set Away'\n description: When away for 5 minutes, set away\n trigger:\n platform: state\n entity_id: group.all_people\n from: home\n for:\n minutes: 5\n action:\n - service: input_boolean.turn_off\n data:\n entity_id: input_boolean.at_home",
|
|
"config": [
|
|
{
|
|
"name": "at home state",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.at_home",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "all people group",
|
|
"room": null,
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "group.all_people",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "All climate entities",
|
|
"room": null,
|
|
"type": "climate",
|
|
"id": {
|
|
"entity_id": "all",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Presence: Away Update GPS Lynn'",
|
|
"automation": "- alias: 'Presence: Away Update GPS Lynn'\n description: When disconnected from WiFi, request GPS update\n trigger:\n platform: state\n entity_id: device_tracker.lynns_phone_wifi\n from: home\n for:\n minutes: 10\n action:\n - service: script.update_location_lynn",
|
|
"config": [
|
|
{
|
|
"name": "lynns phone wifi tracker",
|
|
"room": null,
|
|
"type": "device_tracker",
|
|
"id": {
|
|
"entity_id": "device_tracker.lynns_phone_wifi",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Update Location Lynn Script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.update_location_lynn",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Presence: Away Update GPS Raf'",
|
|
"automation": "- alias: 'Presence: Away Update GPS Raf'\n description: When disconnected from WiFi, request GPS update\n trigger:\n platform: state\n entity_id: device_tracker.rafs_phone_wifi\n from: home\n for:\n minutes: 10\n action:\n - service: script.update_location_raf",
|
|
"config": [
|
|
{
|
|
"name": "rafs phone wifi tracker",
|
|
"room": null,
|
|
"type": "device_tracker",
|
|
"id": {
|
|
"entity_id": "device_tracker.rafs_phone_wifi",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Update Location Raf Script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.update_location_raf",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Presence: Away Vacuum'",
|
|
"automation": "- alias: 'Presence: Away Vacuum'\n description: When away, if RoboVac scheduled, start cleaning\n trigger:\n platform: state\n entity_id: input_boolean.at_home\n from: 'on'\n to: 'off'\n condition:\n - condition: state\n entity_id: input_boolean.vacuum_clean\n state: 'on'\n - condition: numeric_state\n entity_id: sensor.robovac_last_run\n above: 0\n action:\n - service: vacuum.start\n data:\n entity_id: vacuum.robovac\n - service: input_boolean.turn_off\n data:\n entity_id: input_boolean.vacuum_clean",
|
|
"config": [
|
|
{
|
|
"name": "at home state",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.at_home",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "vacuum clean state",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.vacuum_clean",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "robovac last run",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.robovac_last_run",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "robovac vacuum",
|
|
"room": "living_room",
|
|
"type": "vacuum",
|
|
"id": {
|
|
"entity_id": "vacuum.robovac",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Presence: Away Vacuum Notification'",
|
|
"automation": "- alias: 'Presence: Away Vacuum Notification'\n description: When away, if vacuum has not run recently, send a notification\n trigger:\n platform: state\n entity_id: input_boolean.at_home\n from: 'on'\n to: 'off'\n condition:\n - condition: numeric_state\n entity_id: automation.presence_away_vacuum_notification\n above: 0\n value_template: '{{ (now().date() - state.attributes.last_triggered.date()).days\n }}'\n - condition: state\n entity_id: input_boolean.vacuum_clean\n state: 'off'\n - condition: numeric_state\n entity_id: sensor.robovac_last_run\n above: 0\n - condition: time\n weekday:\n - sat\n - sun\n action:\n - variables:\n action_run: '{{ ''VACUUM_RUN_'' ~ context.id }}'\n action_run_short: '{{ ''VACUUM_RUN_SHORT_'' ~ context.id }}'\n - service: notify.mobile_app_rafs_phone\n data:\n title: Start RoboVac Cleaning Session?\n message: Last run {{ states('sensor.robovac_last_run') }} day(s) ago\n data:\n actions:\n - action: '{{ action_run_short }}'\n title: Quick\n - action: '{{ action_run }}'\n title: Full\n - wait_for_trigger:\n - platform: event\n event_type: mobile_app_notification_action\n event_data:\n action: '{{ action_run }}'\n - platform: event\n event_type: mobile_app_notification_action\n event_data:\n action: '{{ action_run_short }}'\n timeout:\n minutes: 30\n continue_on_timeout: false\n - service: vacuum.start\n data:\n entity_id: vacuum.robovac\n - choose:\n - conditions: '{{ wait.trigger.event.data.action == action_run_short }}'\n sequence:\n - delay:\n minutes: 30\n - service: vacuum.return_to_base\n entity_id: vacuum.robovac",
|
|
"config": [
|
|
{
|
|
"name": "at home state",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.at_home",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "vacuum clean state",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.vacuum_clean",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "robovac last run",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.robovac_last_run",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "robovac vacuum",
|
|
"room": "living_room",
|
|
"type": "vacuum",
|
|
"id": {
|
|
"entity_id": "vacuum.robovac",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "presence away vacuum notification automation",
|
|
"room": null,
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.presence_away_vacuum_notification",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Travel: Back Automations State'",
|
|
"automation": "- alias: 'Travel: Back Automations State'\n description: When back home, set automations state\n trigger:\n platform: state\n entity_id: input_boolean.away\n from: 'on'\n to: 'off'\n action:\n - service: automation.turn_on\n data:\n entity_id:\n - automation.vacuum_home_schedule\n - automation.vacuum_away_schedule\n - automation.presence_home_set_at_home",
|
|
"config": [
|
|
{
|
|
"name": "away state",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.away",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "vacuum home schedule automation",
|
|
"room": "living_room",
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.vacuum_home_schedule",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "vacuum away schedule automation",
|
|
"room": "living_room",
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.vacuum_away_schedule",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "presence home set at home automation",
|
|
"room": null,
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.presence_home_set_at_home",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Safety: Bathroom Humidity'",
|
|
"automation": "- alias: 'Safety: Bathroom Humidity'\n description: When humidity is too high, send a notification\n trigger:\n platform: numeric_state\n entity_id:\n - sensor.bathroom_sensor_humidity\n above: 80\n for:\n minutes: 15\n action:\n - service: notify.telegram_raf\n data:\n message: 'High Humidity: {{ trigger.to_state.name }}'",
|
|
"config": [
|
|
{
|
|
"name": "bathroom sensor humidity",
|
|
"room": "bathroom",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.bathroom_sensor_humidity",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Media: Bathroom Off'",
|
|
"automation": "- alias: 'Media: Bathroom Off'\n description: When bathroom lights turn off, if speaker is playing, pause\n trigger:\n platform: state\n entity_id: light.bathroom\n from: 'on'\n to: 'off'\n condition:\n - condition: state\n entity_id: media_player.bathroom_mini\n state: playing\n action:\n - service: media_player.media_pause\n data:\n entity_id: media_player.bathroom_mini",
|
|
"config": [
|
|
{
|
|
"name": "bathroom mini",
|
|
"room": "bathroom",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.bathroom_mini",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "bathroom light",
|
|
"room": "bathroom",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.bathroom",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Climate: Bedroom Door Open'",
|
|
"automation": "- alias: 'Climate: Bedroom Door Open'\n description: When heater turns on, if door open, send a notification\n trigger:\n platform: state\n entity_id: climate.bedroom_heater\n to: heat\n for:\n minutes: 5\n condition:\n - condition: state\n entity_id: binary_sensor.bedroom_door_sensor_contact\n state: 'on'\n action:\n - service: notify.telegram_raf\n data:\n message: Bedroom Heater is on with the door open",
|
|
"config": [
|
|
{
|
|
"name": "bedroom door sensor contact",
|
|
"room": "bedroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.bedroom_door_sensor_contact",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "bedroom heater",
|
|
"room": "bedroom",
|
|
"type": "climate",
|
|
"id": {
|
|
"entity_id": "climate.bedroom_heater",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Climate: Bedroom Heater Morning'",
|
|
"automation": "- alias: 'Climate: Bedroom Heater Morning'\n description: At 7:30 AM, if sleeping and cold, turn on the bedroom heater\n trigger:\n platform: time\n at: 07:30:00\n condition:\n - condition: state\n entity_id: input_boolean.sleeping\n state: 'on'\n - '{{ (state_attr(''climate.bedroom_heater'', ''current_temperature'')) < (state_attr(''climate.bedroom_heater'',\n ''temperature'')) }}'\n action:\n - service: climate.turn_on\n data:\n entity_id: climate.bedroom_heater",
|
|
"config": [
|
|
{
|
|
"name": "sleeping state",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.sleeping",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "bedroom heater",
|
|
"room": "bedroom",
|
|
"type": "climate",
|
|
"id": {
|
|
"entity_id": "climate.bedroom_heater",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Switch: Bedroom'",
|
|
"automation": "- alias: 'Switch: Bedroom'\n description: When bedroom switch pressed, toggle lights\n trigger:\n - platform: state\n entity_id: sensor.bedroom_switch_action\n to: 'on'\n - platform: state\n entity_id: sensor.bedroom_switch_action\n to: 'off'\n action:\n - service_template: light.turn_{{trigger.to_state.state}}\n entity_id: light.ceiling_3",
|
|
"config": [
|
|
{
|
|
"name": "bedroom switch action",
|
|
"room": "bedroom",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.bedroom_switch_action",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "ceiling 3 light",
|
|
"room": "bedroom",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.ceiling_3",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Security: Blink Disarmed'",
|
|
"automation": "- alias: 'Security: Blink Disarmed'\n description: When Blink is disarmed for too long, send a notification\n mode: restart\n trigger:\n - platform: state\n entity_id: alarm_control_panel.blink_rafs_flat\n to: disarmed\n for:\n minutes: 20\n - platform: state\n entity_id: alarm_control_panel.blink_rafs_flat\n to: disarmed\n for:\n minutes: 40\n - platform: state\n entity_id: alarm_control_panel.blink_rafs_flat\n to: disarmed\n for:\n minutes: 60\n action:\n - variables:\n action_arm: '{{ ''BLINK_ARM_'' ~ context.id }}'\n - service: notify.mobile_app_rafs_phone\n data:\n title: Arm Blink?\n message: System has been disarmed for {{ (trigger.for.seconds / 60) | int }}\n minutes\n data:\n actions:\n - action: '{{ action_arm }}'\n title: Arm\n - wait_for_trigger:\n - platform: event\n event_type: mobile_app_notification_action\n event_data:\n action: '{{ action_arm }}'\n timeout:\n minutes: 30\n continue_on_timeout: false\n - service: alarm_control_panel.alarm_arm_away\n data:\n entity_id: alarm_control_panel.blink_rafs_flat",
|
|
"config": [
|
|
{
|
|
"name": "blink rafs flat alarm",
|
|
"room": null,
|
|
"type": "alarm_control_panel",
|
|
"id": {
|
|
"entity_id": "alarm_control_panel.blink_rafs_flat",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Light: Living Room Bright Sun'",
|
|
"automation": "- alias: 'Light: Living Room Bright Sun'\n description: If it's bright enough outside, turn off the living room lights\n trigger:\n - platform: numeric_state\n entity_id: sensor.hue_motion_sensor_1_illuminance\n above: 600\n for:\n minutes: 10\n condition:\n - condition: time\n after: 05:00:00\n before: '14:30:00'\n - condition: state\n entity_id: input_boolean.at_home\n state: 'on'\n - condition: numeric_state\n entity_id: automation.light_living_room_bright_sun\n above: 0\n value_template: '{{ (now().date() - state.attributes.last_triggered.date()).days\n }}'\n - condition: state\n entity_id: light.desk_area\n state: 'on'\n action:\n - service: light.turn_off\n data:\n entity_id: light.desk_area",
|
|
"config": [
|
|
{
|
|
"name": "hue motion sensor 1 illuminance",
|
|
"room": "living_room",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.hue_motion_sensor_1_illuminance",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "at home state",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.at_home",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "desk area light",
|
|
"room": "living_room",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.desk_area",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "light living room bright sun automation",
|
|
"room": "living_room",
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.light_living_room_bright_sun",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'System: Certificate Expiry'",
|
|
"automation": "- alias: 'System: Certificate Expiry'\n description: When certificate is close to expiring, send a notification\n trigger:\n - platform: time\n at: 09:00:00\n condition: '{{ ((strptime(states(''sensor.cert_expiry_home_assistant'') | truncate(10,\n True, ''''), ''%Y-%m-%d'').date() - strptime(states(''sensor.date''), ''%Y-%m-%d'').date()).days)\n < 7 }}'\n action:\n - service: notify.telegram_raf\n data:\n message: 'Home Assistant Certificate Expiring On: {{ trigger.to_state.state\n }}'",
|
|
"config": [
|
|
{
|
|
"name": "cert expiry home assistant",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.cert_expiry_home_assistant",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "date sensor",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.date",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'System: Certificate Renew'",
|
|
"automation": "- alias: 'System: Certificate Renew'\n description: When certificate is close to expiring, renew\n trigger:\n - platform: time\n at: 03:00:00\n condition: '{{ ((strptime(states(''sensor.cert_expiry_home_assistant'') | truncate(10,\n True, ''''), ''%Y-%m-%d'').date() - strptime(states(''sensor.date''), ''%Y-%m-%d'').date()).days)\n < 30 }}'\n action:\n - service: hassio.addon_start\n data:\n addon: core_letsencrypt",
|
|
"config": [
|
|
{
|
|
"name": "cert expiry home assistant",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.cert_expiry_home_assistant",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "date sensor",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.date",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Keyboard Remote: Chromecast Forward'",
|
|
"automation": "- alias: 'Keyboard Remote: Chromecast Forward'\n description: When forward button pressed, if on Chromecast, forward\n trigger:\n platform: event\n event_type: keyboard_remote_command_received\n event_data:\n device_name: flirc.tv flirc Keyboard\n key_code: 208\n condition:\n - condition: state\n entity_id: media_player.lg_tv\n attribute: source\n state: Chromecast\n - condition: not\n conditions:\n - condition: state\n entity_id: media_player.living_room_tv\n state: 'off'\n action:\n - service: script.media_seek\n data:\n seek_amount: 15\n media_player: media_player.living_room_tv",
|
|
"config": [
|
|
{
|
|
"name": "lg tv",
|
|
"room": "living_room",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.lg_tv",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "living room tv",
|
|
"room": "living_room",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.living_room_tv",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Media Seek Script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.media_seek",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Keyboard Remote: Chromecast Rewind'",
|
|
"automation": "- alias: 'Keyboard Remote: Chromecast Rewind'\n description: When rewind button pressed, if on Chromecast, rewind\n trigger:\n platform: event\n event_type: keyboard_remote_command_received\n event_data:\n device_name: flirc.tv flirc Keyboard\n key_code: 168\n condition:\n - condition: state\n entity_id: media_player.lg_tv\n attribute: source\n state: Chromecast\n - condition: not\n conditions:\n - condition: state\n entity_id: media_player.living_room_tv\n state: 'off'\n action:\n - service: script.media_seek\n data:\n seek_amount: -15\n media_player: media_player.living_room_tv",
|
|
"config": [
|
|
{
|
|
"name": "lg tv",
|
|
"room": "living_room",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.lg_tv",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "living room tv",
|
|
"room": "living_room",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.living_room_tv",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Media Seek Script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.media_seek",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Media: Notification Clear'",
|
|
"automation": "- alias: 'Media: Notification Clear'\n description: When media stops, send clear command\n triggers:\n - trigger: state\n to: 'off'\n entity_id:\n - media_player.speaker\n - media_player.bedroom_tv\n - media_player.bedroom_display\n - media_player.bathroom_mini\n - media_player.home_group\n - media_player.living_room_display\n - trigger: state\n to: idle\n entity_id:\n - media_player.spotify_raf\n condition:\n - condition: state\n entity_id: person.raf\n state: home\n action:\n - service: joaoapps_join.rafs_phone_send_tasker\n data:\n command: '{{ ''homemedia=:=clear=:='' ~ trigger.to_state.object_id }}'",
|
|
"config": [
|
|
{
|
|
"name": "bathroom mini",
|
|
"room": "bathroom",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.bathroom_mini",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "speaker",
|
|
"room": "living_room",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.speaker",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "living room display",
|
|
"room": "living_room",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.living_room_display",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "person raf",
|
|
"room": null,
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.raf",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "bedroom display",
|
|
"room": "bedroom",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.bedroom_display",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "home group",
|
|
"room": null,
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.home_group",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "spotify raf",
|
|
"room": null,
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.spotify_raf",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "bedroom tv",
|
|
"room": "bedroom",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.bedroom_tv",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Calendar: Contacts Event'",
|
|
"automation": "- alias: 'Calendar: Contacts Event'\n description: When there is an event related to a contact, send a notification\n trigger:\n platform: calendar\n entity_id: calendar.birthdays\n event: start\n action:\n - service: calendar.get_events\n target:\n entity_id:\n - calendar.birthdays\n data:\n duration:\n hours: 24\n response_variable: agenda\n - service: notify.mobile_app_rafs_phone\n data:\n title: Someone's birthday!\n message: '{% for event in agenda[\"calendar.birthdays\"][\"events\"] %} {{ event.summary}}:\n {{ event.description }}<br> {% endfor %}'",
|
|
"config": [
|
|
{
|
|
"name": "Birthdays Calendar",
|
|
"room": null,
|
|
"type": "calendar",
|
|
"id": {
|
|
"entity_id": "calendar.birthdays",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Security: Door Open'",
|
|
"automation": "- alias: 'Security: Door Open'\n description: When front door opens, if away, send notification\n trigger:\n platform: state\n entity_id: binary_sensor.front_door_sensor_contact\n from: 'off'\n to: 'on'\n condition:\n - condition: state\n entity_id: input_boolean.at_home\n state: 'off'\n action:\n - service: notify.telegram_raf\n data:\n message: 'Alert: Front door has been opened'",
|
|
"config": [
|
|
{
|
|
"name": "front door sensor contact",
|
|
"room": "hallway",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.front_door_sensor_contact",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "at home state",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.at_home",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Security: Door Open Long'",
|
|
"automation": "- alias: 'Security: Door Open Long'\n description: When Front Door is open for too long, send a notification\n trigger:\n platform: state\n entity_id: binary_sensor.front_door_sensor_contact\n from: 'off'\n to: 'on'\n for:\n minutes: 15\n action:\n - service: notify.telegram_raf\n data:\n message: Front Door has been open for 15+ minutes",
|
|
"config": [
|
|
{
|
|
"name": "front door sensor contact",
|
|
"room": "hallway",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.front_door_sensor_contact",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Climate: Electric Blanket on Morning'",
|
|
"automation": "- alias: 'Climate: Electric Blanket on Morning'\n description: When blanket is on, toggle the morning entity\n trigger:\n platform: state\n entity_id: switch.plug5_power\n from: 'off'\n to: 'on'\n for:\n minutes: 10\n condition:\n - condition: time\n after: '21:00:00'\n before: 03:00:00\n action:\n - service: input_boolean.turn_on\n data:\n entity_id: input_boolean.electric_blanket_morning",
|
|
"config": [
|
|
{
|
|
"name": "plug5 power",
|
|
"room": "bedroom",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.plug5_power",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "electric blanket morning",
|
|
"room": "bedroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.electric_blanket_morning",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Climate: Electric Blanket on Time'",
|
|
"automation": "- alias: 'Climate: Electric Blanket on Time'\n description: When blanket is on for too long, turn it off\n trigger:\n platform: state\n entity_id: switch.plug5_power\n from: 'off'\n to: 'on'\n for:\n minutes: 20\n action:\n - service: switch.turn_off\n data:\n entity_id: switch.plug5_power",
|
|
"config": [
|
|
{
|
|
"name": "plug5 power",
|
|
"room": "bedroom",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.plug5_power",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "vacuum_error",
|
|
"automation": "- id: vacuum_error\n alias: 'Vacuum: Error'\n description: When Vacuum has an error state, send a notification\n trigger:\n platform: state\n entity_id: vacuum.robovac\n to: error\n for:\n minutes: 5\n action:\n - service: notify.telegram_raf\n data:\n message: Vacuum has an error",
|
|
"config": [
|
|
{
|
|
"name": "robovac vacuum",
|
|
"room": "living_room",
|
|
"type": "vacuum",
|
|
"id": {
|
|
"entity_id": "vacuum.robovac",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Climate: Evening Heating Bedroom'",
|
|
"automation": "- alias: 'Climate: Evening Heating Bedroom'\n description: At 11:30 PM, if home and cold, turn on the bedroom heater\n trigger:\n platform: time\n at: '23:30:00'\n condition:\n - condition: state\n entity_id: input_boolean.at_home\n state: 'on'\n - '{{ (state_attr(''climate.bedroom_heater'', ''current_temperature'')) < (state_attr(''climate.bedroom_heater'',\n ''temperature'')) }}'\n action:\n - service: climate.turn_on\n data:\n entity_id: climate.bedroom_heater",
|
|
"config": [
|
|
{
|
|
"name": "at home state",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.at_home",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "bedroom heater",
|
|
"room": "bedroom",
|
|
"type": "climate",
|
|
"id": {
|
|
"entity_id": "climate.bedroom_heater",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Climate: Evening Heating Living Room'",
|
|
"automation": "- alias: 'Climate: Evening Heating Living Room'\n description: At 9:30 PM, if home and cold, turn off living room heater\n trigger:\n platform: time\n at: '21:30:00'\n condition:\n - condition: state\n entity_id: input_boolean.at_home\n state: 'on'\n - condition: state\n entity_id: climate.living_room_heater\n state: heat\n action:\n - service: climate.turn_off\n data:\n entity_id: climate.living_room_heater",
|
|
"config": [
|
|
{
|
|
"name": "at home state",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.at_home",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "living room heater",
|
|
"room": "living_room",
|
|
"type": "climate",
|
|
"id": {
|
|
"entity_id": "climate.living_room_heater",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "vacuum_finish_cleaning",
|
|
"automation": "- id: vacuum_finish_cleaning\n alias: 'Vacuum: Finish Cleaning'\n description: When Vacuum has been cleaning for long enough, dock or stop it\n trigger:\n platform: numeric_state\n entity_id: sensor.robovac_runtime_today\n above: 0.75\n condition:\n - '{{ trigger.from_state.state not in [''unknown'', ''unavailable'', ''none''] }}'\n - '{{ trigger.to_state.state not in [''unknown'', ''unavailable'', ''none''] }}'\n - '{{ trigger.from_state.state != trigger.to_state.state }}'\n action:\n - service: vacuum.return_to_base\n entity_id: vacuum.robovac",
|
|
"config": [
|
|
{
|
|
"name": "robovac vacuum",
|
|
"room": "living_room",
|
|
"type": "vacuum",
|
|
"id": {
|
|
"entity_id": "vacuum.robovac",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "robovac runtime today",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.robovac_runtime_today",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Presence: Guest Mode Automations State'",
|
|
"automation": "- alias: 'Presence: Guest Mode Automations State'\n description: When guest mode is toggled, toggle specified automations\n trigger:\n platform: state\n entity_id: input_boolean.guest_mode\n to:\n - 'on'\n - 'off'\n from:\n - 'on'\n - 'off'\n action:\n - service: automation.turn_{{ trigger.from_state.state }}\n data:\n entity_id:\n - automation.light_guest_room_motion_off\n - automation.light_guest_room_no_motion",
|
|
"config": [
|
|
{
|
|
"name": "guest mode state",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.guest_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "light guest room motion off automation",
|
|
"room": "guest_room",
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.light_guest_room_motion_off",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "light guest room no motion automation",
|
|
"room": "guest_room",
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.light_guest_room_no_motion",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Switch: Guest Room'",
|
|
"automation": "- alias: 'Switch: Guest Room'\n description: When guest room switch pressed, toggle lights\n trigger:\n - platform: state\n entity_id: sensor.guest_room_switch_action\n to: 'on'\n - platform: state\n entity_id: sensor.guest_room_switch_action\n to: 'off'\n action:\n - service_template: light.turn_{{trigger.to_state.state}}\n entity_id: light.ceiling_4",
|
|
"config": [
|
|
{
|
|
"name": "guest room switch action",
|
|
"room": "guest_room",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.guest_room_switch_action",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "ceiling 4 light",
|
|
"room": "guest_room",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.ceiling_4",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Switch: Hallway'",
|
|
"automation": "- alias: 'Switch: Hallway'\n description: When button pressed once, toggle lights\n trigger:\n - platform: state\n entity_id: sensor.hallway_switch_action\n to: single_left\n - platform: state\n entity_id: sensor.hallway_switch_action\n to: single_right\n action:\n - service: light.toggle\n data:\n entity_id: light.hallway\n brightness_pct: 100",
|
|
"config": [
|
|
{
|
|
"name": "hallway switch action",
|
|
"room": "hallway",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.hallway_switch_action",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "hallway light",
|
|
"room": "hallway",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.hallway",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "All climate entities",
|
|
"room": null,
|
|
"type": "climate",
|
|
"id": {
|
|
"entity_id": "all",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Presence: Home Bathroom Lights'",
|
|
"automation": "- alias: 'Presence: Home Bathroom Lights'\n description: When home, turn bathroom lights on\n trigger:\n platform: state\n entity_id: input_boolean.at_home\n from: 'off'\n to: 'on'\n action:\n - service: scene.turn_on\n data:\n entity_id: scene.bathroom_normal",
|
|
"config": [
|
|
{
|
|
"name": "at home state",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.at_home",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "bathroom normal scene",
|
|
"room": "bathroom",
|
|
"type": "scene",
|
|
"id": {
|
|
"entity_id": "scene.bathroom_normal",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Presence: Home Bedroom Heater'",
|
|
"automation": "- alias: 'Presence: Home Bedroom Heater'\n description: When home in the evening, if cold, turn heater on\n trigger:\n platform: state\n entity_id: input_boolean.at_home\n from: 'off'\n to: 'on'\n condition:\n - condition: time\n after: '21:30:00'\n before: 05:30:00\n - '{{ (state_attr(''climate.bedroom_heater'', ''current_temperature'')) < (state_attr(''climate.bedroom_heater'',\n ''temperature'')) }}'\n action:\n - service: climate.turn_on\n data:\n entity_id: climate.bedroom_heater",
|
|
"config": [
|
|
{
|
|
"name": "at home state",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.at_home",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "bedroom heater",
|
|
"room": "bedroom",
|
|
"type": "climate",
|
|
"id": {
|
|
"entity_id": "climate.bedroom_heater",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Presence: Home Bedroom Lights'",
|
|
"automation": "- alias: 'Presence: Home Bedroom Lights'\n description: When home in the evening, turn bedroom lights on\n trigger:\n platform: state\n entity_id: input_boolean.at_home\n from: 'off'\n to: 'on'\n condition:\n - '{{ state_attr(''sun.sun'', ''elevation'') <= states(''input_number.sunset_elevation'')|float\n }}'\n action:\n - service: scene.turn_on\n data:\n entity_id: scene.bedroom_evening",
|
|
"config": [
|
|
{
|
|
"name": "sun sun",
|
|
"room": null,
|
|
"type": "sun",
|
|
"id": {
|
|
"entity_id": "sun.sun",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "sunset elevation",
|
|
"room": null,
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.sunset_elevation",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "at home state",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.at_home",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "bedroom evening scene",
|
|
"room": "bedroom",
|
|
"type": "scene",
|
|
"id": {
|
|
"entity_id": "scene.bedroom_evening",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Presence: Home Check At Home'",
|
|
"automation": "- alias: 'Presence: Home Check At Home'\n description: When detected at home but not set, check if at home\n trigger:\n - platform: state\n entity_id: person.raf\n to: home\n for:\n minutes: 5\n - platform: state\n entity_id: person.lynn\n to: home\n for:\n minutes: 10\n condition:\n - condition: state\n entity_id: input_boolean.at_home\n state: 'off'\n action:\n - variables:\n action_turn_on: '{{ ''AT_HOME_TURN_ON_'' ~ context.id }}'\n - service: notify.mobile_app_rafs_phone\n data:\n title: Detected 'at_home' is off\n message: \"Raf: {{ states('person.raf') }} \\nLynn: {{ states('person.lynn') }}\"\n data:\n actions:\n - action: '{{ action_turn_on }}'\n title: Turn On\n - wait_for_trigger:\n - platform: event\n event_type: mobile_app_notification_action\n event_data:\n action: '{{ action_turn_on }}'\n timeout:\n minutes: 30\n continue_on_timeout: false\n - service: input_boolean.turn_on\n data:\n entity_id: input_boolean.at_home",
|
|
"config": [
|
|
{
|
|
"name": "at home state",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.at_home",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "person raf",
|
|
"room": null,
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.raf",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "person lynn",
|
|
"room": null,
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.lynn",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Security: Home Disarm Blink'",
|
|
"automation": "- alias: 'Security: Home Disarm Blink'\n description: When door opens while home, disarm Blink for some time, and re-arm\n mode: restart\n trigger:\n platform: state\n entity_id: binary_sensor.front_door_sensor_contact\n from: 'off'\n to: 'on'\n condition:\n - condition: state\n entity_id: person.raf\n state: home\n action:\n - service: alarm_control_panel.alarm_disarm\n data:\n entity_id: alarm_control_panel.blink_rafs_flat\n - wait_for_trigger:\n - platform: state\n entity_id: binary_sensor.front_door_sensor_contact\n to: 'off'\n for:\n minutes: 5\n timeout:\n minutes: 15\n continue_on_timeout: true\n - repeat:\n while:\n - condition: state\n entity_id: alarm_control_panel.blink_rafs_flat\n state: disarmed\n - condition: template\n value_template: '{{ repeat.index <= 11 }}'\n sequence:\n - service: alarm_control_panel.alarm_arm_away\n data:\n entity_id: alarm_control_panel.blink_rafs_flat\n - delay:\n minutes: 2",
|
|
"config": [
|
|
{
|
|
"name": "front door sensor contact",
|
|
"room": "hallway",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.front_door_sensor_contact",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "person raf",
|
|
"room": null,
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.raf",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "blink rafs flat alarm",
|
|
"room": null,
|
|
"type": "alarm_control_panel",
|
|
"id": {
|
|
"entity_id": "alarm_control_panel.blink_rafs_flat",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Presence: Home Living Room Heater'",
|
|
"automation": "- alias: 'Presence: Home Living Room Heater'\n description: When home during the day, if cold, turn heater on\n trigger:\n platform: state\n entity_id: input_boolean.at_home\n from: 'off'\n to: 'on'\n condition:\n - condition: time\n after: 05:30:00\n before: '21:30:00'\n - '{{ (state_attr(''climate.living_room_heater'', ''current_temperature'')) < (state_attr(''climate.living_room_heater'',\n ''temperature'')) }}'\n action:\n - service: climate.turn_on\n data:\n entity_id: climate.living_room_heater",
|
|
"config": [
|
|
{
|
|
"name": "at home state",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.at_home",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "living room heater",
|
|
"room": "living_room",
|
|
"type": "climate",
|
|
"id": {
|
|
"entity_id": "climate.living_room_heater",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Presence: Home Living Room Lights'",
|
|
"automation": "- alias: 'Presence: Home Living Room Lights'\n description: When home in the evening, turn living room lights on\n trigger:\n platform: state\n entity_id: input_boolean.at_home\n from: 'off'\n to: 'on'\n condition:\n - '{{ state_attr(''sun.sun'', ''elevation'') <= states(''input_number.sunset_elevation'')|float\n }}'\n action:\n - service: scene.turn_on\n data:\n entity_id: scene.living_room_evening",
|
|
"config": [
|
|
{
|
|
"name": "sun sun",
|
|
"room": null,
|
|
"type": "sun",
|
|
"id": {
|
|
"entity_id": "sun.sun",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "sunset elevation",
|
|
"room": null,
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.sunset_elevation",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "at home state",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.at_home",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "living room evening scene",
|
|
"room": "living_room",
|
|
"type": "scene",
|
|
"id": {
|
|
"entity_id": "scene.living_room_evening",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Vacuum: Home Schedule'",
|
|
"automation": "- alias: 'Vacuum: Home Schedule'\n description: At scheduled times, if not run today, start cleaning\n trigger:\n platform: time\n at: '18:15:00'\n condition:\n - condition: time\n weekday:\n - mon\n - wed\n - fri\n - condition: numeric_state\n entity_id: sensor.robovac_last_run\n above: 0\n action:\n - service: vacuum.start\n data:\n entity_id: vacuum.robovac",
|
|
"config": [
|
|
{
|
|
"name": "robovac last run",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.robovac_last_run",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "robovac vacuum",
|
|
"room": "living_room",
|
|
"type": "vacuum",
|
|
"id": {
|
|
"entity_id": "vacuum.robovac",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Presence: Home Set At Home'",
|
|
"automation": "- alias: 'Presence: Home Set At Home'\n description: When door opens after being away, set at home\n trigger:\n - platform: state\n entity_id: binary_sensor.front_door_sensor_contact\n from: 'off'\n to: 'on'\n - platform: state\n entity_id: group.all_people\n to: home\n condition:\n - condition: state\n entity_id: input_boolean.at_home\n state: 'off'\n action:\n - service: input_boolean.turn_on\n data:\n entity_id: input_boolean.at_home",
|
|
"config": [
|
|
{
|
|
"name": "front door sensor contact",
|
|
"room": "hallway",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.front_door_sensor_contact",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "at home state",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.at_home",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "all people group",
|
|
"room": null,
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "group.all_people",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "All climate entities",
|
|
"room": null,
|
|
"type": "climate",
|
|
"id": {
|
|
"entity_id": "all",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Presence: Home Update GPS Lynn'",
|
|
"automation": "- alias: 'Presence: Home Update GPS Lynn'\n description: When potentially home, update GPS\n trigger:\n - platform: state\n entity_id: input_boolean.at_home\n from: 'off'\n to: 'on'\n - platform: state\n entity_id: binary_sensor.front_door_motion_sensor_occupancy\n from: 'off'\n to: 'on'\n condition:\n - condition: numeric_state\n entity_id: automation.test_automation\n above: 15\n value_template: '{{ (now() - state.attributes.last_triggered) / timedelta(minutes=1)\n }}'\n - condition: numeric_state\n entity_id: sensor.rafs_flat_lynn_distance\n below: 10.0\n - not:\n - condition: state\n entity_id: person.lynn\n state: home\n action:\n - service: script.update_location_lynn",
|
|
"config": [
|
|
{
|
|
"name": "at home state",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.at_home",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "person lynn",
|
|
"room": null,
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.lynn",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "front door motion sensor occupancy",
|
|
"room": "hallway",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.front_door_motion_sensor_occupancy",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "test automation",
|
|
"room": null,
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.test_automation",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "rafs flat lynn distance",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.rafs_flat_lynn_distance",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "All climate entities",
|
|
"room": null,
|
|
"type": "climate",
|
|
"id": {
|
|
"entity_id": "all",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Update Location Lynn Script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.update_location_lynn",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Presence: Home Update GPS Raf'",
|
|
"automation": "- alias: 'Presence: Home Update GPS Raf'\n description: When potentially home, update GPS\n trigger:\n - platform: state\n entity_id: input_boolean.at_home\n from: 'off'\n to: 'on'\n - platform: state\n entity_id: binary_sensor.front_door_motion_sensor_occupancy\n from: 'off'\n to: 'on'\n condition:\n - condition: numeric_state\n entity_id: automation.test_automation\n above: 15\n value_template: '{{ (now() - state.attributes.last_triggered) / timedelta(minutes=1)\n }}'\n - condition: numeric_state\n entity_id: sensor.rafs_flat_raf_distance\n below: 10.0\n - not:\n - condition: state\n entity_id: person.raf\n state: home\n action:\n - service: script.update_location_raf",
|
|
"config": [
|
|
{
|
|
"name": "at home state",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.at_home",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "person raf",
|
|
"room": null,
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.raf",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "front door motion sensor occupancy",
|
|
"room": "hallway",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.front_door_motion_sensor_occupancy",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "test automation",
|
|
"room": null,
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.test_automation",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "rafs flat raf distance",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.rafs_flat_raf_distance",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "All climate entities",
|
|
"room": null,
|
|
"type": "climate",
|
|
"id": {
|
|
"entity_id": "all",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Update Location Raf Script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.update_location_raf",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Presence: Home WiFi Raf'",
|
|
"automation": "- alias: 'Presence: Home WiFi Raf'\n description: When home, turn on WiFi\n trigger:\n - platform: state\n entity_id: person.raf\n to: home\n - platform: state\n entity_id: input_boolean.at_home\n from: 'off'\n to: 'on'\n condition:\n - condition: state\n entity_id: device_tracker.rafs_phone_wifi\n state: not_home\n action:\n - service: joaoapps_join.rafs_phone_send_tasker\n data:\n command: wifi-on",
|
|
"config": [
|
|
{
|
|
"name": "at home state",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.at_home",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "rafs phone wifi tracker",
|
|
"room": null,
|
|
"type": "device_tracker",
|
|
"id": {
|
|
"entity_id": "device_tracker.rafs_phone_wifi",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "person raf",
|
|
"room": null,
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.raf",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Switch: Kitchen'",
|
|
"automation": "- alias: 'Switch: Kitchen'\n description: When button pressed once, toggle lights\n trigger:\n - platform: state\n entity_id: sensor.kitchen_switch_action\n to: single_left\n - platform: state\n entity_id: sensor.kitchen_switch_action\n to: singe_right\n action:\n - service: light.toggle\n entity_id: light.kitchen",
|
|
"config": [
|
|
{
|
|
"name": "kitchen switch action",
|
|
"room": "kitchen",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.kitchen_switch_action",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "kitchen light",
|
|
"room": "kitchen",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.kitchen",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Vacuum: Last Run'",
|
|
"automation": "- alias: 'Vacuum: Last Run'\n description: When Vacuum has been cleaning, set the last run date\n trigger:\n platform: numeric_state\n entity_id: sensor.robovac_runtime_today\n above: 0.4\n condition:\n - '{{ trigger.from_state.state not in [''unknown'', ''unavailable'', ''none''] }}'\n - '{{ trigger.to_state.state not in [''unknown'', ''unavailable'', ''none''] }}'\n - '{{ trigger.from_state.state != trigger.to_state.state }}'\n action:\n - service: input_datetime.set_datetime\n entity_id: input_datetime.robovac_last_run\n data_template:\n date: '{{ states(''sensor.date'') }}'",
|
|
"config": [
|
|
{
|
|
"name": "robovac runtime today",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.robovac_runtime_today",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "date sensor",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.date",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "robovac last run datetime",
|
|
"room": null,
|
|
"type": "input_datetime",
|
|
"id": {
|
|
"entity_id": "input_datetime.robovac_last_run",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Keyboard Remote: LG TV Netflix Login'",
|
|
"automation": "- alias: 'Keyboard Remote: LG TV Netflix Login'\n description: When stop button is pressed, if on Netflix, login\n trigger:\n platform: event\n event_type: keyboard_remote_command_received\n event_data:\n device_name: flirc.tv flirc Keyboard\n key_code: 83\n condition:\n - condition: state\n entity_id: media_player.lg_tv\n attribute: source\n state: Netflix\n action:\n - delay:\n milliseconds: 100\n - service: webostv.button\n entity_id: media_player.lg_tv\n data:\n button: secret lg_tv_netflix_login_1\n - delay:\n milliseconds: 100\n - service: webostv.button\n entity_id: media_player.lg_tv\n data:\n button: secret lg_tv_netflix_login_2\n - delay:\n milliseconds: 100\n - service: webostv.button\n entity_id: media_player.lg_tv\n data:\n button: secret lg_tv_netflix_login_3\n - delay:\n milliseconds: 100\n - service: webostv.button\n entity_id: media_player.lg_tv\n data:\n button: secret lg_tv_netflix_login_4",
|
|
"config": [
|
|
{
|
|
"name": "lg tv",
|
|
"room": "living_room",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.lg_tv",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'TV: LG TV On'",
|
|
"automation": "- alias: 'TV: LG TV On'\n description: When TV on command received, send WOL packet\n trigger:\n platform: webostv.turn_on\n entity_id: media_player.lg_tv\n action:\n - service: wake_on_lan.send_magic_packet\n data:\n mac: secret mac_lg_tv",
|
|
"config": [
|
|
{
|
|
"name": "lg tv",
|
|
"room": "living_room",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.lg_tv",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Keyboard Remote: LG TV Play Pause'",
|
|
"automation": "- alias: 'Keyboard Remote: LG TV Play Pause'\n description: When play pause button pressed, toggle play pause on unsupported sources\n trigger:\n platform: event\n event_type: keyboard_remote_command_received\n event_data:\n device_name: flirc.tv flirc Keyboard\n key_code: 164\n condition:\n - condition: state\n entity_id: media_player.lg_tv\n attribute: source\n state:\n - Chromecast\n - Prime Video\n - Plex\n action:\n - delay:\n seconds: 1\n - service: media_player.media_play_pause\n target:\n entity_id: media_player.lg_tv",
|
|
"config": [
|
|
{
|
|
"name": "lg tv",
|
|
"room": "living_room",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.lg_tv",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Climate: Living Room Open Window'",
|
|
"automation": "- alias: 'Climate: Living Room Open Window'\n description: When window is open, turn heater off\n trigger:\n platform: state\n entity_id: binary_sensor.living_room_window_sensor_contact\n from: 'off'\n to: 'on'\n for:\n minutes: 1\n condition:\n - condition: state\n entity_id: climate.living_room_heater\n state: heat\n action:\n - service: climate.turn_off\n data:\n entity_id: climate.living_room_heater",
|
|
"config": [
|
|
{
|
|
"name": "living room window sensor contact",
|
|
"room": "living_room",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.living_room_window_sensor_contact",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "living room heater",
|
|
"room": "living_room",
|
|
"type": "climate",
|
|
"id": {
|
|
"entity_id": "climate.living_room_heater",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Climate: Living Room Window Open'",
|
|
"automation": "- alias: 'Climate: Living Room Window Open'\n description: When heater turns on, if window open, turn heater off\n trigger:\n platform: state\n entity_id: climate.living_room_heater\n to: heat\n for:\n minutes: 1\n condition:\n - condition: state\n entity_id: binary_sensor.living_room_window_sensor_contact\n state: 'on'\n action:\n - service: climate.turn_off\n data:\n entity_id: climate.living_room_heater",
|
|
"config": [
|
|
{
|
|
"name": "living room window sensor contact",
|
|
"room": "living_room",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.living_room_window_sensor_contact",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "living room heater",
|
|
"room": "living_room",
|
|
"type": "climate",
|
|
"id": {
|
|
"entity_id": "climate.living_room_heater",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Zone: Lynn Home'",
|
|
"automation": "- alias: 'Zone: Lynn Home'\n description: Send a notification when at home\n trigger:\n platform: state\n entity_id: person.lynn\n to: home\n for:\n seconds: 10\n condition:\n - not:\n - condition: state\n entity_id: person.raf\n state: home\n - condition: numeric_state\n entity_id: sensor.raf_lynn_distance\n above: 1\n action:\n - service: notify.mobile_app_rafs_phone\n data:\n title: Location Update\n message: Lynn has arrived at home",
|
|
"config": [
|
|
{
|
|
"name": "person raf",
|
|
"room": null,
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.raf",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "person lynn",
|
|
"room": null,
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.lynn",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "raf lynn distance",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.raf_lynn_distance",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Button: Lynns PC Button'",
|
|
"automation": "- alias: 'Button: Lynns PC Button'\n description: When Lynns PC Button is pressed, turn on the PC\n trigger:\n - platform: state\n entity_id: sensor.lynns_pc_button_action\n to: single\n action:\n - service: switch.turn_on\n entity_id: switch.lynns_pc_power",
|
|
"config": [
|
|
{
|
|
"name": "lynns pc button action",
|
|
"room": "bedroom",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.lynns_pc_button_action",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "lynns pc power",
|
|
"room": "bedroom",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.lynns_pc_power",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Zone: Lynn Work'",
|
|
"automation": "- alias: 'Zone: Lynn Work'\n description: Send a notification when at work\n trigger:\n - platform: state\n entity_id: person.lynn\n to: Lynn's Work\n for:\n seconds: 10\n variables:\n message_verb: arrived at\n - platform: state\n entity_id: person.lynn\n from: Lynn's Work\n for:\n seconds: 10\n variables:\n message_verb: left\n condition:\n - condition: state\n entity_id: binary_sensor.workday_sensor\n state: 'on'\n - not:\n - condition: time\n after: '11:00:00'\n before: '15:00:00'\n action:\n - service: notify.mobile_app_rafs_phone\n data:\n title: Location Update\n message: Lynn has {{ message_verb }} the office",
|
|
"config": [
|
|
{
|
|
"name": "person lynn",
|
|
"room": null,
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.lynn",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "workday sensor",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.workday_sensor",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Media: Max Volumes'",
|
|
"automation": "- alias: 'Media: Max Volumes'\n description: When media volume changes too high, if sleeping, set it lower\n trigger:\n - platform: numeric_state\n attribute: volume_level\n above: 0.16\n entity_id:\n - media_player.bathroom_mini\n - media_player.guest_room_mini\n - media_player.speaker\n - media_player.living_room_display\n variables:\n volume: 0.15\n - platform: numeric_state\n attribute: volume_level\n above: 0.41\n entity_id:\n - media_player.bedroom_display\n variables:\n volume: 0.3\n condition:\n - condition: template\n value_template: '{{ trigger.to_state.state != ''off'' }}'\n - condition: state\n entity_id: input_boolean.sleeping\n state: 'on'\n action:\n - service: media_player.volume_set\n data:\n entity_id: '{{ trigger.entity_id }}'\n volume_level: '{{ volume }}'",
|
|
"config": [
|
|
{
|
|
"name": "sleeping state",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.sleeping",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "bathroom mini",
|
|
"room": "bathroom",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.bathroom_mini",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "guest room mini",
|
|
"room": "guest_room",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.guest_room_mini",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "speaker",
|
|
"room": "living_room",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.speaker",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "living room display",
|
|
"room": "living_room",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.living_room_display",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "bedroom display",
|
|
"room": "bedroom",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.bedroom_display",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Light: Living Room Morning'",
|
|
"automation": "- alias: 'Light: Living Room Morning'\n description: When bedroom door opens in the morning, if dark, turn on living room\n lights\n trigger:\n platform: state\n entity_id: binary_sensor.bedroom_door_sensor_contact\n from: 'off'\n to: 'on'\n condition:\n - condition: numeric_state\n entity_id: sensor.hue_motion_sensor_1_illuminance\n below: 350\n - condition: time\n after: 06:00:00\n before: '12:00:00'\n - condition: numeric_state\n entity_id: automation.light_living_room_morning\n above: 0\n value_template: '{{ (now().date() - state.attributes.last_triggered.date()).days\n }}'\n - condition: state\n entity_id: light.desk_area\n state: 'off'\n action:\n - service: scene.turn_on\n data:\n transition: 60\n entity_id: scene.living_room_evening",
|
|
"config": [
|
|
{
|
|
"name": "bedroom door sensor contact",
|
|
"room": "bedroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.bedroom_door_sensor_contact",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "hue motion sensor 1 illuminance",
|
|
"room": "living_room",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.hue_motion_sensor_1_illuminance",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "living room evening scene",
|
|
"room": "living_room",
|
|
"type": "scene",
|
|
"id": {
|
|
"entity_id": "scene.living_room_evening",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "desk area light",
|
|
"room": "living_room",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.desk_area",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "light living room morning automation",
|
|
"room": "living_room",
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.light_living_room_morning",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Light: Bathroom Morning Bedroom Door'",
|
|
"automation": "- alias: 'Light: Bathroom Morning Bedroom Door'\n description: When bedroom door opens in the morning, turn on bathroom normal scene\n trigger:\n platform: state\n entity_id: binary_sensor.bedroom_door_sensor_contact\n from: 'off'\n to: 'on'\n condition:\n - condition: time\n after: 06:00:00\n before: '12:00:00'\n - condition: numeric_state\n entity_id: automation.light_bathroom_morning_bedroom_door\n above: 0\n value_template: '{{ (now().date() - state.attributes.last_triggered.date()).days\n }}'\n - condition: numeric_state\n entity_id: automation.light_bathroom_morning_guest_room_door\n above: 0\n value_template: '{{ (now().date() - state.attributes.last_triggered.date()).days\n }}'\n action:\n - service: switch.turn_off\n data:\n entity_id: switch.adaptive_lighting_sleep_mode_bathroom\n - delay:\n seconds: 1\n - service: scene.turn_on\n data:\n entity_id: scene.bathroom_normal",
|
|
"config": [
|
|
{
|
|
"name": "bedroom door sensor contact",
|
|
"room": "bedroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.bedroom_door_sensor_contact",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "adaptive lighting sleep mode bathroom",
|
|
"room": "bathroom",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.adaptive_lighting_sleep_mode_bathroom",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "bathroom normal scene",
|
|
"room": "bathroom",
|
|
"type": "scene",
|
|
"id": {
|
|
"entity_id": "scene.bathroom_normal",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "light bathroom morning bedroom door automation",
|
|
"room": "bathroom",
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.light_bathroom_morning_bedroom_door",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "light bathroom morning guest room door automation",
|
|
"room": "bathroom",
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.light_bathroom_morning_guest_room_door",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Light: Bathroom Morning Guest Room Door'",
|
|
"automation": "- alias: 'Light: Bathroom Morning Guest Room Door'\n description: When guest room door opens in the morning, turn on bathroom normal\n scene\n trigger:\n platform: state\n entity_id: binary_sensor.guest_room_door_sensor_contact\n from: 'off'\n to: 'on'\n condition:\n - condition: time\n after: 06:00:00\n before: '12:00:00'\n - condition: numeric_state\n entity_id: automation.light_bathroom_morning_guest_room_door\n above: 0\n value_template: '{{ (now().date() - state.attributes.last_triggered.date()).days\n }}'\n - condition: numeric_state\n entity_id: automation.light_bathroom_morning_bedroom_door\n above: 0\n value_template: '{{ (now().date() - state.attributes.last_triggered.date()).days\n }}'\n action:\n - service: switch.turn_off\n data:\n entity_id: switch.adaptive_lighting_sleep_mode_bathroom\n - delay:\n seconds: 1\n - service: scene.turn_on\n data:\n entity_id: scene.bathroom_normal",
|
|
"config": [
|
|
{
|
|
"name": "guest room door sensor contact",
|
|
"room": "guest_room",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.guest_room_door_sensor_contact",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "adaptive lighting sleep mode bathroom",
|
|
"room": "bathroom",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.adaptive_lighting_sleep_mode_bathroom",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "bathroom normal scene",
|
|
"room": "bathroom",
|
|
"type": "scene",
|
|
"id": {
|
|
"entity_id": "scene.bathroom_normal",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "light bathroom morning bedroom door automation",
|
|
"room": "bathroom",
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.light_bathroom_morning_bedroom_door",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "light bathroom morning guest room door automation",
|
|
"room": "bathroom",
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.light_bathroom_morning_guest_room_door",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Alarm: Morning Sleeping State'",
|
|
"automation": "- alias: 'Alarm: Morning Sleeping State'\n description: At alarm time, turn off sleeping state if still on after delay\n trigger:\n platform: time\n at: input_datetime.morning_alarm\n action:\n - delay: 00:30:00\n - service: input_boolean.turn_off\n data:\n entity_id: input_boolean.sleeping",
|
|
"config": [
|
|
{
|
|
"name": "sleeping state",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.sleeping",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "morning alarm",
|
|
"room": null,
|
|
"type": "input_datetime",
|
|
"id": {
|
|
"entity_id": "input_datetime.morning_alarm",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Light: Bathroom Motion Off'",
|
|
"automation": "- alias: 'Light: Bathroom Motion Off'\n description: When bathroom has no motion for 20 minutes, if lights are on, turn\n off\n trigger:\n platform: state\n entity_id: binary_sensor.bathroom_motion_sensor_occupancy\n from: 'on'\n to: 'off'\n for:\n minutes: 15\n condition:\n - condition: state\n entity_id: light.bathroom\n state: 'on'\n action:\n - service: light.turn_off\n data:\n entity_id: light.bathroom",
|
|
"config": [
|
|
{
|
|
"name": "bathroom light",
|
|
"room": "bathroom",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.bathroom",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "bathroom motion sensor occupancy",
|
|
"room": "bathroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.bathroom_motion_sensor_occupancy",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Light: Bathroom Motion On'",
|
|
"automation": "- alias: 'Light: Bathroom Motion On'\n description: When bathroom has motion, if lights are off, turn on bathroom normal\n scene\n trigger:\n platform: state\n entity_id: binary_sensor.bathroom_motion_sensor_occupancy\n from: 'off'\n to: 'on'\n condition:\n - condition: state\n entity_id: light.bathroom\n state: 'off'\n action:\n - service: scene.turn_on\n data:\n entity_id: scene.bathroom_normal",
|
|
"config": [
|
|
{
|
|
"name": "bathroom light",
|
|
"room": "bathroom",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.bathroom",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "bathroom normal scene",
|
|
"room": "bathroom",
|
|
"type": "scene",
|
|
"id": {
|
|
"entity_id": "scene.bathroom_normal",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "bathroom motion sensor occupancy",
|
|
"room": "bathroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.bathroom_motion_sensor_occupancy",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Mount Media: Mount'",
|
|
"automation": "- alias: 'Mount Media: Mount'\n description: When Home Assistant starts, mount network share into /media\n trigger:\n platform: homeassistant\n event: start\n action:\n - service: shell_command.mount_media",
|
|
"config": []
|
|
},
|
|
{
|
|
"id": "'TV: Music Off'",
|
|
"automation": "- alias: 'TV: Music Off'\n description: When TV turns on, if music is playing, turn it off\n trigger:\n platform: state\n entity_id: media_player.lg_tv\n from: 'off'\n for:\n seconds: 30\n condition:\n - condition: state\n entity_id: media_player.speaker\n state: playing\n action:\n - service: media_player.media_pause\n data:\n entity_id: media_player.speaker",
|
|
"config": [
|
|
{
|
|
"name": "speaker",
|
|
"room": "living_room",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.speaker",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "lg tv",
|
|
"room": "living_room",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.lg_tv",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Light: Living Room Night'",
|
|
"automation": "- alias: 'Light: Living Room Night'\n description: When lights are off at night, turn off the heating\n trigger:\n platform: state\n entity_id: light.living_room\n from: 'on'\n to: 'off'\n condition:\n - condition: time\n after: '21:00:00'\n before: 03:00:00\n - condition: state\n entity_id: media_player.lg_tv\n state: 'off'\n action:\n - service: climate.turn_off\n data:\n entity_id: climate.living_room_heater",
|
|
"config": [
|
|
{
|
|
"name": "living room light",
|
|
"room": "living_room",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.living_room",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "lg tv",
|
|
"room": "living_room",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.lg_tv",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "living room heater",
|
|
"room": "living_room",
|
|
"type": "climate",
|
|
"id": {
|
|
"entity_id": "climate.living_room_heater",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Media: Notification Notify'",
|
|
"automation": "- alias: 'Media: Notification Notify'\n description: When media title changes, send notify command\n trigger:\n platform: state\n attribute: media_title\n entity_id:\n - media_player.speaker\n - media_player.bedroom_tv\n - media_player.bedroom_display\n - media_player.bathroom_mini\n - media_player.home_group\n - media_player.living_room_display\n condition:\n - condition: state\n entity_id: person.raf\n state: home\n - condition: template\n value_template: '{{ trigger.to_state.state != ''off'' and trigger.to_state.media_title\n is not none }}'\n - condition: state\n entity_id: media_player.lg_tv\n state: 'off'\n action:\n - service: joaoapps_join.rafs_phone_send_tasker\n data:\n command: '{{ ''homemedia=:=notify=:='' ~ trigger.to_state.object_id }}'",
|
|
"config": [
|
|
{
|
|
"name": "bathroom mini",
|
|
"room": "bathroom",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.bathroom_mini",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "speaker",
|
|
"room": "living_room",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.speaker",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "living room display",
|
|
"room": "living_room",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.living_room_display",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "lg tv",
|
|
"room": "living_room",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.lg_tv",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "person raf",
|
|
"room": null,
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.raf",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "bedroom display",
|
|
"room": "bedroom",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.bedroom_display",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "home group",
|
|
"room": null,
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.home_group",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "bedroom tv",
|
|
"room": "bedroom",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.bedroom_tv",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Media: Notification Notify Spotify'",
|
|
"automation": "- alias: 'Media: Notification Notify Spotify'\n description: When spotify is on Speaker, send notify command\n trigger:\n platform: state\n attribute: media_title\n entity_id:\n - media_player.spotify_raf\n condition:\n - condition: state\n entity_id: media_player.spotify_raf\n attribute: source\n state: Speaker\n - condition: state\n entity_id: person.raf\n state: home\n - condition: state\n entity_id: media_player.lg_tv\n state: 'off'\n - condition: template\n value_template: '{{ trigger.to_state.state != ''idle'' and trigger.to_state.media_title\n is not none }}'\n action:\n - service: joaoapps_join.rafs_phone_send_tasker\n data:\n command: '{{ ''homemedia=:=notify=:='' ~ trigger.to_state.object_id }}'",
|
|
"config": [
|
|
{
|
|
"name": "lg tv",
|
|
"room": "living_room",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.lg_tv",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "person raf",
|
|
"room": null,
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.raf",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "spotify raf",
|
|
"room": null,
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.spotify_raf",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Light: Bathroom No Motion'",
|
|
"automation": "- alias: 'Light: Bathroom No Motion'\n description: When bathroom lights turn on, if there is no motion for 20 minutes,\n turn off\n trigger:\n platform: state\n entity_id: light.bathroom\n from: 'off'\n to: 'on'\n for:\n minutes: 15\n condition:\n - condition: state\n entity_id: binary_sensor.bathroom_motion_sensor_occupancy\n state: 'off'\n for:\n minutes: 10\n action:\n - service: light.turn_off\n data:\n entity_id: light.bathroom",
|
|
"config": [
|
|
{
|
|
"name": "bathroom light",
|
|
"room": "bathroom",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.bathroom",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "bathroom motion sensor occupancy",
|
|
"room": "bathroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.bathroom_motion_sensor_occupancy",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'TV: Off Chromecast'",
|
|
"automation": "- alias: 'TV: Off Chromecast'\n description: When TV turns off, if Chromecast is on, turn it off\n trigger:\n - platform: state\n entity_id: media_player.lg_tv\n to: 'off'\n - platform: state\n entity_id: media_player.lg_tv\n attribute: source\n not_to: Chromecast\n condition:\n - condition: not\n conditions:\n - condition: state\n entity_id: media_player.living_room_tv\n state: 'off'\n action:\n - service: media_player.turn_off\n entity_id: media_player.living_room_tv",
|
|
"config": [
|
|
{
|
|
"name": "lg tv",
|
|
"room": "living_room",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.lg_tv",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "living room tv",
|
|
"room": "living_room",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.living_room_tv",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'TV: Off Scene'",
|
|
"automation": "- alias: 'TV: Off Scene'\n description: When TV turns off, if evening, activate evening scene\n trigger:\n platform: state\n entity_id: media_player.lg_tv\n to: 'off'\n for:\n seconds: 15\n condition:\n - '{{ state_attr(''sun.sun'', ''elevation'') <= states(''input_number.sunset_elevation'')|float\n }}'\n action:\n - service: scene.turn_on\n data:\n entity_id: scene.living_room_evening",
|
|
"config": [
|
|
{
|
|
"name": "sun sun",
|
|
"room": null,
|
|
"type": "sun",
|
|
"id": {
|
|
"entity_id": "sun.sun",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "sunset elevation",
|
|
"room": null,
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.sunset_elevation",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "lg tv",
|
|
"room": "living_room",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.lg_tv",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "living room evening scene",
|
|
"room": "living_room",
|
|
"type": "scene",
|
|
"id": {
|
|
"entity_id": "scene.living_room_evening",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'TV: On Scene'",
|
|
"automation": "- alias: 'TV: On Scene'\n description: When TV turns on, if lights on, activate tv scene\n trigger:\n platform: state\n entity_id: media_player.lg_tv\n from: 'off'\n to: 'on'\n condition:\n - condition: state\n entity_id: light.floor_lamp\n state: 'on'\n action:\n - service: scene.turn_on\n data:\n entity_id: scene.living_room_evening_tv",
|
|
"config": [
|
|
{
|
|
"name": "lg tv",
|
|
"room": "living_room",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.lg_tv",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "living room evening scene",
|
|
"room": "living_room",
|
|
"type": "scene",
|
|
"id": {
|
|
"entity_id": "scene.living_room_evening",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "living room evening tv scene",
|
|
"room": "living_room",
|
|
"type": "scene",
|
|
"id": {
|
|
"entity_id": "scene.living_room_evening_tv",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "floor lamp",
|
|
"room": "living_room",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.floor_lamp",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Security: Outdoor Motion'",
|
|
"automation": "- alias: 'Security: Outdoor Motion'\n description: When motion outside, if away, send notification\n trigger:\n platform: state\n entity_id: binary_sensor.front_door_motion_sensor_occupancy\n from: 'off'\n to: 'on'\n condition:\n - condition: state\n entity_id: input_boolean.at_home\n state: 'off'\n action:\n - service: notify.telegram_raf\n data:\n message: 'Alert: Motion detected outside'",
|
|
"config": [
|
|
{
|
|
"name": "at home state",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.at_home",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "front door motion sensor occupancy",
|
|
"room": "hallway",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.front_door_motion_sensor_occupancy",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Location: Owntracks Update Lynn'",
|
|
"automation": "- alias: 'Location: Owntracks Update Lynn'\n description: When location changes, push to Owntracks\n trigger:\n platform: state\n entity_id: device_tracker.lynns_phone_app\n condition:\n - condition: numeric_state\n entity_id: person.lynn\n attribute: gps_accuracy\n above: 0\n below: 101\n - condition: template\n value_template: '{{ (trigger.from_state.attributes.latitude != trigger.to_state.attributes.latitude)\n or (trigger.from_state.attributes.longitude != trigger.to_state.attributes.longitude)\n }}'\n action:\n - service: rest_command.owntracks_push_lynn",
|
|
"config": [
|
|
{
|
|
"name": "person lynn",
|
|
"room": null,
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.lynn",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Lynn's Phone App Tracker",
|
|
"room": null,
|
|
"type": "device_tracker",
|
|
"id": {
|
|
"entity_id": "device_tracker.lynns_phone_app",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Location: Owntracks Update Raf'",
|
|
"automation": "- alias: 'Location: Owntracks Update Raf'\n description: When location changes, push to Owntracks\n trigger:\n platform: state\n entity_id: person.raf\n condition:\n - condition: numeric_state\n entity_id: person.raf\n attribute: gps_accuracy\n above: 0\n below: 101\n - condition: template\n value_template: '{{ (trigger.from_state.attributes.latitude != trigger.to_state.attributes.latitude)\n or (trigger.from_state.attributes.longitude != trigger.to_state.attributes.longitude)\n }}'\n action:\n - service: rest_command.owntracks_push_raf",
|
|
"config": [
|
|
{
|
|
"name": "person raf",
|
|
"room": null,
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.raf",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'TV: Paused Chromecast'",
|
|
"automation": "- alias: 'TV: Paused Chromecast'\n description: When Chromecast is paused for too long, turn off the TV Screen\n trigger:\n - platform: state\n entity_id: media_player.living_room_tv\n to: paused\n for:\n seconds: 30\n condition:\n - condition: state\n entity_id: media_player.lg_tv\n attribute: source\n state: Chromecast\n action:\n - service: script.tv_screen_off",
|
|
"config": [
|
|
{
|
|
"name": "lg tv",
|
|
"room": "living_room",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.lg_tv",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "living room tv",
|
|
"room": "living_room",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.living_room_tv",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "TV Screen Off Script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.tv_screen_off",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Computer: Pi Off'",
|
|
"automation": "- alias: 'Computer: Pi Off'\n description: When the computer is off, turn off the Raspberry Pi\n trigger:\n platform: state\n entity_id: binary_sensor.rafs_pc_power\n from: 'on'\n to: 'off'\n for:\n minutes: 2\n action:\n - service: script.pi_off",
|
|
"config": [
|
|
{
|
|
"name": "rafs pc power",
|
|
"room": "office",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.rafs_pc_power",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Pi Off Script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.pi_off",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Computer: Pi On'",
|
|
"automation": "- alias: 'Computer: Pi On'\n description: When the computer is on, turn on the Raspberry Pi\n trigger:\n platform: state\n entity_id: binary_sensor.rafs_pc_power\n from: 'off'\n to: 'on'\n for:\n minutes: 2\n action:\n - service: script.pi_on",
|
|
"config": [
|
|
{
|
|
"name": "rafs pc power",
|
|
"room": "office",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.rafs_pc_power",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Pi On Script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.pi_on",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'TV: Play Chromecast'",
|
|
"automation": "- alias: 'TV: Play Chromecast'\n description: When Chromecast is playing, turn on the TV Screen\n trigger:\n - platform: state\n entity_id: media_player.living_room_tv\n from: paused\n to: playing\n condition:\n - condition: state\n entity_id: media_player.lg_tv\n attribute: source\n state: Chromecast\n action:\n - service: script.tv_screen_on",
|
|
"config": [
|
|
{
|
|
"name": "lg tv",
|
|
"room": "living_room",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.lg_tv",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "living room tv",
|
|
"room": "living_room",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.living_room_tv",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "TV Screen On Script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.tv_screen_on",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Alarm: Pre Morning Blanket'",
|
|
"automation": "- alias: 'Alarm: Pre Morning Blanket'\n description: At pre-alarm time, turn on the blanket\n trigger:\n platform: time\n at: input_datetime.morning_alarm_pre\n condition:\n - condition: state\n entity_id: input_boolean.electric_blanket_morning\n state: 'on'\n - condition: state\n entity_id: switch.plug5_power\n state: 'off'\n action:\n - service: switch.turn_on\n data:\n entity_id: switch.plug5_power\n - service: input_boolean.turn_off\n data:\n entity_id: input_boolean.electric_blanket_morning",
|
|
"config": [
|
|
{
|
|
"name": "plug5 power",
|
|
"room": "bedroom",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.plug5_power",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "electric blanket morning",
|
|
"room": "bedroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.electric_blanket_morning",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "morning alarm",
|
|
"room": null,
|
|
"type": "input_datetime",
|
|
"id": {
|
|
"entity_id": "input_datetime.morning_alarm",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "morning alarm pre",
|
|
"room": null,
|
|
"type": "input_datetime",
|
|
"id": {
|
|
"entity_id": "input_datetime.morning_alarm_pre",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Alarm: Pre Morning Heating Bedroom'",
|
|
"automation": "- alias: 'Alarm: Pre Morning Heating Bedroom'\n description: At pre-alarm time, turn off bedroom heater\n trigger:\n platform: time\n at: input_datetime.morning_alarm_pre\n condition:\n - condition: state\n entity_id: climate.bedroom_heater\n state: heat\n action:\n - service: climate.turn_off\n data:\n entity_id: climate.bedroom_heater",
|
|
"config": [
|
|
{
|
|
"name": "bedroom heater",
|
|
"room": "bedroom",
|
|
"type": "climate",
|
|
"id": {
|
|
"entity_id": "climate.bedroom_heater",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "morning alarm",
|
|
"room": null,
|
|
"type": "input_datetime",
|
|
"id": {
|
|
"entity_id": "input_datetime.morning_alarm",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "morning alarm pre",
|
|
"room": null,
|
|
"type": "input_datetime",
|
|
"id": {
|
|
"entity_id": "input_datetime.morning_alarm_pre",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Alarm: Pre Morning Heating Living Room'",
|
|
"automation": "- alias: 'Alarm: Pre Morning Heating Living Room'\n description: At pre-alarm time, if cold, turn on the living room heater\n trigger:\n platform: time\n at: input_datetime.morning_alarm_pre\n condition: '{{ (state_attr(''climate.living_room_heater'', ''current_temperature''))\n < (state_attr(''climate.living_room_heater'', ''temperature'')) }}'\n action:\n - service: climate.turn_on\n data:\n entity_id: climate.living_room_heater",
|
|
"config": [
|
|
{
|
|
"name": "living room heater",
|
|
"room": "living_room",
|
|
"type": "climate",
|
|
"id": {
|
|
"entity_id": "climate.living_room_heater",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "morning alarm",
|
|
"room": null,
|
|
"type": "input_datetime",
|
|
"id": {
|
|
"entity_id": "input_datetime.morning_alarm",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "morning alarm pre",
|
|
"room": null,
|
|
"type": "input_datetime",
|
|
"id": {
|
|
"entity_id": "input_datetime.morning_alarm_pre",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Alarm: Pre Morning Lights'",
|
|
"automation": "- alias: 'Alarm: Pre Morning Lights'\n description: At pre-alarm time, turn on the lights\n trigger:\n platform: time\n at: input_datetime.morning_alarm_pre\n action:\n - service: light.turn_on\n data:\n entity_id: light.bedside_lamp\n brightness_pct: 100\n transition: 1800",
|
|
"config": [
|
|
{
|
|
"name": "bedside lamp",
|
|
"room": "bedroom",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.bedside_lamp",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "morning alarm",
|
|
"room": null,
|
|
"type": "input_datetime",
|
|
"id": {
|
|
"entity_id": "input_datetime.morning_alarm",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "morning alarm pre",
|
|
"room": null,
|
|
"type": "input_datetime",
|
|
"id": {
|
|
"entity_id": "input_datetime.morning_alarm_pre",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Travel: Proximity Away Mode'",
|
|
"automation": "- alias: 'Travel: Proximity Away Mode'\n description: When close to home, turn off away mode\n trigger:\n - platform: numeric_state\n entity_id: sensor.rafs_flat_raf_distance\n below: 2\n - platform: numeric_state\n entity_id: sensor.rafs_flat_lynn_distance\n below: 2\n condition:\n - condition: state\n entity_id: input_boolean.away\n state: 'on'\n action:\n - service: input_boolean.turn_off\n data:\n entity_id: input_boolean.away",
|
|
"config": [
|
|
{
|
|
"name": "away state",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.away",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "rafs flat lynn distance",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.rafs_flat_lynn_distance",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "rafs flat raf distance",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.rafs_flat_raf_distance",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'System: Public IP'",
|
|
"automation": "- alias: 'System: Public IP'\n description: When public IP address changes, send a notification\n trigger:\n - platform: state\n entity_id: sensor.public_ip\n to: null\n for:\n minutes: 5\n action:\n - service: notify.telegram_raf\n data:\n message: 'IP changed: {{ trigger.to_state.state }}'",
|
|
"config": [
|
|
{
|
|
"name": "public ip",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.public_ip",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Zone: Raf Home'",
|
|
"automation": "- alias: 'Zone: Raf Home'\n description: Send a notification when at home\n trigger:\n platform: state\n entity_id: person.raf\n to: home\n for:\n seconds: 10\n condition:\n - not:\n - condition: state\n entity_id: person.lynn\n state: home\n - condition: numeric_state\n entity_id: sensor.raf_lynn_distance\n above: 1\n action:\n - service: notify.mobile_app_lynns_phone\n data:\n title: Location Update\n message: Raf has arrived at home",
|
|
"config": [
|
|
{
|
|
"name": "person raf",
|
|
"room": null,
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.raf",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "person lynn",
|
|
"room": null,
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.lynn",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "raf lynn distance",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.raf_lynn_distance",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Zone: Raf Work'",
|
|
"automation": "- alias: 'Zone: Raf Work'\n description: Send a notification when at work\n trigger:\n - platform: state\n entity_id: person.raf\n to: Raf's Work\n for:\n seconds: 10\n variables:\n message_verb: arrived at\n - platform: state\n entity_id: person.raf\n from: Raf's Work\n for:\n seconds: 10\n variables:\n message_verb: left\n condition:\n - condition: state\n entity_id: binary_sensor.workday_sensor\n state: 'on'\n - not:\n - condition: time\n after: '11:00:00'\n before: '15:00:00'\n action:\n - service: notify.mobile_app_lynns_phone\n data:\n title: Location Update\n message: Raf has {{ message_verb }} the office",
|
|
"config": [
|
|
{
|
|
"name": "person raf",
|
|
"room": null,
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.raf",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "workday sensor",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.workday_sensor",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Safety: Room Humidity'",
|
|
"automation": "- alias: 'Safety: Room Humidity'\n description: When humidity is too high, send a notification\n trigger:\n platform: numeric_state\n entity_id:\n - sensor.bedroom_sensor_humidity\n - sensor.guest_room_sensor_humidity\n - sensor.living_room_sensor_humidity\n above: 69\n for:\n minutes: 10\n action:\n - service: notify.telegram_raf\n data:\n message: 'High Humidity: {{ trigger.to_state.name }}'",
|
|
"config": [
|
|
{
|
|
"name": "bedroom sensor humidity",
|
|
"room": "bedroom",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.bedroom_sensor_humidity",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "guest room sensor humidity",
|
|
"room": "guest_room",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.guest_room_sensor_humidity",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "living room sensor humidity",
|
|
"room": "living_room",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.living_room_sensor_humidity",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Alarm: Set Pre Morning Alarm'",
|
|
"automation": "- alias: 'Alarm: Set Pre Morning Alarm'\n description: When morning alarm is set, set pre morning alarm\n trigger:\n platform: state\n entity_id: input_datetime.morning_alarm\n action:\n - service: input_datetime.set_datetime\n data:\n entity_id: input_datetime.morning_alarm_pre\n time: '{{ (strptime(states(''input_datetime.morning_alarm''), ''%H:%M:%S'')\n - timedelta(minutes=30)).time() }}'",
|
|
"config": [
|
|
{
|
|
"name": "morning alarm",
|
|
"room": null,
|
|
"type": "input_datetime",
|
|
"id": {
|
|
"entity_id": "input_datetime.morning_alarm",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "morning alarm pre",
|
|
"room": null,
|
|
"type": "input_datetime",
|
|
"id": {
|
|
"entity_id": "input_datetime.morning_alarm_pre",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Light: Bathroom Door Sleeping'",
|
|
"automation": "- alias: 'Light: Bathroom Door Sleeping'\n description: When bedroom door opens, if sleeping, turn on bathroom midnight scene\n trigger:\n platform: state\n entity_id: binary_sensor.bedroom_door_sensor_contact\n from: 'off'\n to: 'on'\n condition:\n - condition: state\n entity_id: input_boolean.sleeping\n state: 'on'\n - condition: time\n after: '21:00:00'\n before: 06:00:00\n - condition: state\n entity_id: light.bathroom\n state: 'off'\n action:\n - service: scene.turn_on\n data:\n entity_id: scene.bathroom_midnight",
|
|
"config": [
|
|
{
|
|
"name": "sleeping state",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.sleeping",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "bedroom door sensor contact",
|
|
"room": "bedroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.bedroom_door_sensor_contact",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "bathroom light",
|
|
"room": "bathroom",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.bathroom",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "bathroom midnight scene",
|
|
"room": "bathroom",
|
|
"type": "scene",
|
|
"id": {
|
|
"entity_id": "scene.bathroom_midnight",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Safety: Smoke'",
|
|
"automation": "- alias: 'Safety: Smoke'\n description: When smoke is detected, send a notification\n trigger:\n platform: state\n entity_id: binary_sensor.smoke_sensor_smoke\n from: 'off'\n to: 'on'\n action:\n - service: notify.telegram_raf\n data:\n message: 'Alert: Smoke Detected'",
|
|
"config": [
|
|
{
|
|
"name": "smoke sensor smoke",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.smoke_sensor_smoke",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'TV: Speakers Off'",
|
|
"automation": "- alias: 'TV: Speakers Off'\n description: When TV turns off, if speakers are on, turn off\n trigger:\n platform: state\n entity_id: media_player.lg_tv\n to: 'off'\n for:\n seconds: 15\n condition:\n - condition: state\n entity_id: binary_sensor.tv_speaker_power\n state: 'on'\n action:\n - service: switch.turn_off\n data:\n entity_id: switch.tv_speaker_power",
|
|
"config": [
|
|
{
|
|
"name": "lg tv",
|
|
"room": "living_room",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.lg_tv",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "tv speaker power",
|
|
"room": "living_room",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.tv_speaker_power",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "TV Speaker Power",
|
|
"room": "Living Room",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.tv_speaker_power",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'TV: Speakers On'",
|
|
"automation": "- alias: 'TV: Speakers On'\n description: When TV turns on, if speakers are off, turn on\n trigger:\n platform: state\n entity_id: media_player.lg_tv\n from: 'off'\n to: 'on'\n for:\n seconds: 5\n condition:\n - condition: state\n entity_id: binary_sensor.tv_speaker_power\n state: 'off'\n action:\n - service: switch.turn_on\n data:\n entity_id: switch.tv_speaker_power",
|
|
"config": [
|
|
{
|
|
"name": "lg tv",
|
|
"room": "living_room",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.lg_tv",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "tv speaker power",
|
|
"room": "living_room",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.tv_speaker_power",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "TV Speaker Power",
|
|
"room": "Living Room",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.tv_speaker_power",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Media: Spotify Redirect Lynn'",
|
|
"automation": "- alias: 'Media: Spotify Redirect Lynn'\n description: When spotify plays on Living Room Display, redirect to Speaker\n triggers:\n - trigger: state\n entity_id: media_player.spotify_lynn\n attribute: source\n to: Living Room Display\n action:\n - service: media_player.select_source\n target:\n entity_id: media_player.spotify_lynn\n data:\n source: Speaker\n - service: media_player.volume_set\n data:\n volume_level: 0.4\n target:\n device_id: media_player.spotify_lynn",
|
|
"config": [
|
|
{
|
|
"name": "spotify lynn",
|
|
"room": null,
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.spotify_lynn",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Media: Spotify Redirect Raf'",
|
|
"automation": "- alias: 'Media: Spotify Redirect Raf'\n description: When spotify plays on Living Room Display, redirect to Speaker\n triggers:\n - trigger: state\n entity_id: media_player.spotify_raf\n attribute: source\n to: Living Room Display\n action:\n - service: media_player.select_source\n target:\n entity_id: media_player.spotify_raf\n data:\n source: Speaker\n - service: media_player.volume_set\n data:\n volume_level: 0.4\n target:\n device_id: media_player.spotify_raf",
|
|
"config": [
|
|
{
|
|
"name": "spotify raf",
|
|
"room": null,
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.spotify_raf",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "vacuum_stuck_returning",
|
|
"automation": "- id: vacuum_stuck_returning\n alias: 'Vacuum: Stuck Returning'\n description: When Vacuum has been returning for long enough, stop it\n trigger:\n platform: state\n entity_id: vacuum.robovac\n to: returning\n for:\n minutes: 20\n action:\n - service: vacuum.pause\n entity_id: vacuum.robovac\n - service: notify.telegram_raf\n data:\n message: Vacuum got stuck returning to base",
|
|
"config": [
|
|
{
|
|
"name": "robovac vacuum",
|
|
"room": "living_room",
|
|
"type": "vacuum",
|
|
"id": {
|
|
"entity_id": "vacuum.robovac",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Light: Bedroom Sunset'",
|
|
"automation": "- alias: 'Light: Bedroom Sunset'\n description: At sunset, if home, turn on bedroom evening scene\n trigger:\n platform: template\n value_template: '{{ state_attr(''sun.sun'', ''elevation'') <= states(''input_number.sunset_elevation'')|float\n }}'\n condition:\n - condition: state\n entity_id: input_boolean.at_home\n state: 'on'\n - condition: state\n entity_id: light.bedroom\n state: 'off'\n action:\n - service: scene.turn_on\n data:\n entity_id: scene.bedroom_evening",
|
|
"config": [
|
|
{
|
|
"name": "sun sun",
|
|
"room": null,
|
|
"type": "sun",
|
|
"id": {
|
|
"entity_id": "sun.sun",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "sunset elevation",
|
|
"room": null,
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.sunset_elevation",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "at home state",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.at_home",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "bedroom light",
|
|
"room": "bedroom",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.bedroom",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "bedroom evening scene",
|
|
"room": "bedroom",
|
|
"type": "scene",
|
|
"id": {
|
|
"entity_id": "scene.bedroom_evening",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Log Level: System'",
|
|
"automation": "- alias: 'Log Level: System'\n description: When the log level is set, changes the log level\n trigger:\n platform: state\n entity_id: input_select.log_level\n action:\n - service: logger.set_default_level\n data_template:\n level: '{{ states(''input_select.log_level'') }}'",
|
|
"config": [
|
|
{
|
|
"name": "log level select",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.log_level",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Test: Automation'",
|
|
"automation": "- alias: 'Test: Automation'\n description: When something, if another thing, do the thing\n trigger:\n platform: state\n entity_id: input_boolean.test_value\n from: 'off'\n to: 'on'\n condition:\n - condition: numeric_state\n entity_id: automation.test_automation\n above: 10\n value_template: '{{ (now() - state.attributes.last_triggered) / timedelta(seconds=1)\n }}'\n action:\n - service: notify.persistent_notification\n data:\n message: Test Automation\n title: Automation fired",
|
|
"config": [
|
|
{
|
|
"name": "test automation",
|
|
"room": null,
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.test_automation",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "test value",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.test_value",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Travel: Travelling Automations State'",
|
|
"automation": "- alias: 'Travel: Travelling Automations State'\n description: When travelling, set automations state\n trigger:\n platform: state\n entity_id: input_boolean.away\n from: 'off'\n to: 'on'\n action:\n - service: automation.turn_off\n data:\n entity_id:\n - automation.vacuum_home_schedule\n - automation.vacuum_away_schedule\n - automation.presence_home_set_at_home",
|
|
"config": [
|
|
{
|
|
"name": "away state",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.away",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "vacuum home schedule automation",
|
|
"room": "living_room",
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.vacuum_home_schedule",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "vacuum away schedule automation",
|
|
"room": "living_room",
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.vacuum_away_schedule",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "presence home set at home automation",
|
|
"room": null,
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.presence_home_set_at_home",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Media: Notification TV Clear'",
|
|
"automation": "- alias: 'Media: Notification TV Clear'\n description: When TV is not playing, send clear command\n trigger:\n platform: state\n entity_id: media_player.lg_tv\n to: 'off'\n condition:\n - condition: state\n entity_id: person.raf\n state: home\n action:\n - service: joaoapps_join.rafs_phone_send_tasker\n data:\n command: homemedia=:=clear=:=lg_tv",
|
|
"config": [
|
|
{
|
|
"name": "lg tv",
|
|
"room": "living_room",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.lg_tv",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "person raf",
|
|
"room": null,
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.raf",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Media: Notification TV Notify'",
|
|
"automation": "- alias: 'Media: Notification TV Notify'\n description: When TV is playing, send notify command\n trigger:\n platform: state\n entity_id: media_player.lg_tv\n attribute: source\n for:\n seconds: 10\n condition:\n - condition: state\n entity_id: person.raf\n state: home\n - condition: not\n conditions:\n - condition: state\n entity_id: media_player.lg_tv\n state: 'off'\n action:\n - service: joaoapps_join.rafs_phone_send_tasker\n data:\n command: homemedia=:=tv=:=lg_tv",
|
|
"config": [
|
|
{
|
|
"name": "lg tv",
|
|
"room": "living_room",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.lg_tv",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "person raf",
|
|
"room": null,
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.raf",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'TV: Twitch Active'",
|
|
"automation": "- alias: 'TV: Twitch Active'\n description: When TV is on Twitch, keep the app active\n mode: restart\n trigger:\n - platform: state\n entity_id: media_player.lg_tv\n attribute: source\n to: Twitch\n action:\n - repeat:\n while:\n - condition: state\n entity_id: media_player.lg_tv\n attribute: source\n state: Twitch\n sequence:\n - service: webostv.button\n data:\n entity_id: media_player.lg_tv\n button: INFO\n - delay: 00:01:00",
|
|
"config": [
|
|
{
|
|
"name": "lg tv",
|
|
"room": "living_room",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.lg_tv",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Mount Media: Unmount'",
|
|
"automation": "- alias: 'Mount Media: Unmount'\n description: When Home Assistant is about to shutdown, unmount network share in\n /media\n trigger:\n platform: homeassistant\n event: shutdown\n action:\n - service: shell_command.unmount_media",
|
|
"config": []
|
|
},
|
|
{
|
|
"id": "'Safety: Water Leak'",
|
|
"automation": "- alias: 'Safety: Water Leak'\n description: When water leak is detected, send a notification\n trigger:\n platform: state\n entity_id:\n - binary_sensor.bathroom_water_sensor_water_leak\n - binary_sensor.boiler_water_sensor_water_leak\n - binary_sensor.kitchen_water_sensor_water_leak\n from: 'off'\n to: 'on'\n action:\n - service: notify.telegram_raf\n data:\n message: '\"Alert: Water Leak: {{ trigger.to_state.name }}\"'",
|
|
"config": [
|
|
{
|
|
"name": "bathroom water sensor water leak",
|
|
"room": "bathroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.bathroom_water_sensor_water_leak",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "boiler water sensor water leak",
|
|
"room": "utility",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.boiler_water_sensor_water_leak",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "kitchen water sensor water leak",
|
|
"room": "kitchen",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.kitchen_water_sensor_water_leak",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Log Level: Zigbee2Mqtt'",
|
|
"automation": "- alias: 'Log Level: Zigbee2Mqtt'\n description: When the log level is set, changes the log level\n trigger:\n platform: state\n entity_id: input_select.zigbee2mqtt_log_level\n action:\n - service: mqtt.publish\n data:\n payload_template: '{{ states(''input_select.zigbee2mqtt_log_level'') }}'\n topic: zigbee2mqtt/bridge/config/log_level",
|
|
"config": [
|
|
{
|
|
"name": "zigbee2mqtt log level",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.zigbee2mqtt_log_level",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
}
|
|
] |