4444 lines
188 KiB
JSON
4444 lines
188 KiB
JSON
[
|
|
{
|
|
"id": "'Adaptive lighting: turn on and off switches'",
|
|
"automation": "- alias: 'Adaptive lighting: turn on and off switches'\n triggers:\n - trigger: state\n entity_id: input_select.sleep_mode\n - trigger: homeassistant\n event: start\n variables:\n sleep_mode: '{{ states(''input_select.sleep_mode'') }}'\n actions:\n choose:\n - conditions: '{{ sleep_mode == ''off'' }}'\n sequence:\n - action: switch.turn_off\n entity_id:\n - switch.adaptive_lighting_sleep_mode_bedroom\n - switch.adaptive_lighting_sleep_mode_bedroom_led\n - switch.adaptive_lighting_sleep_mode_living_room\n - switch.adaptive_lighting_sleep_mode_baby_room\n - conditions: '{{ sleep_mode == ''half'' }}'\n sequence:\n - action: switch.turn_off\n entity_id:\n - switch.adaptive_lighting_sleep_mode_living_room\n - action: switch.turn_on\n entity_id:\n - switch.adaptive_lighting_sleep_mode_bedroom\n - switch.adaptive_lighting_sleep_mode_bedroom_led\n - switch.adaptive_lighting_sleep_mode_baby_room\n - conditions: '{{ sleep_mode == ''total'' }}'\n sequence:\n - action: switch.turn_on\n entity_id:\n - switch.adaptive_lighting_sleep_mode_bedroom\n - switch.adaptive_lighting_sleep_mode_bedroom_led\n - switch.adaptive_lighting_sleep_mode_baby_room",
|
|
"config": [
|
|
{
|
|
"name": "sleep mode selector",
|
|
"room": "system",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.sleep_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "adaptive lighting sleep mode bedroom",
|
|
"room": "bedroom",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.adaptive_lighting_sleep_mode_bedroom",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "adaptive lighting sleep mode bedroom led",
|
|
"room": "bedroom",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.adaptive_lighting_sleep_mode_bedroom_led",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "adaptive lighting sleep mode living room",
|
|
"room": "living_room",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.adaptive_lighting_sleep_mode_living_room",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "adaptive lighting sleep mode baby room",
|
|
"room": "baby_room",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.adaptive_lighting_sleep_mode_baby_room",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Adaptive lighting: reset manual_control after 1 hour'",
|
|
"automation": "- alias: 'Adaptive lighting: reset manual_control after 1 hour'\n mode: parallel\n max: 200\n triggers:\n - trigger: event\n event_type: adaptive_lighting.manual_control\n variables:\n light: '{{ trigger.event.data.entity_id }}'\n switch: '{{ trigger.event.data.switch }}'\n conditions: '{{ ''hall'' not in light and ''stairs'' not in light }}'\n actions:\n - delay: 01:00:00\n - condition: template\n value_template: '{{ light in state_attr(''switch'', ''manual_control'') }}'\n - action: adaptive_lighting.set_manual_control\n data:\n entity_id: '{{ switch }}'\n lights: '{{ light }}'\n manual_control: false\n - action: notify.iphone_bas\n data:\n title: 'Adaptive Ligthing: manual_control reset'\n message: '{{ light }} is reset to not ''manually controlled'''",
|
|
"config": [
|
|
{
|
|
"name": "All entities group",
|
|
"room": null,
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "all",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Adaptive lighting: notify manual_control'",
|
|
"automation": "- alias: 'Adaptive lighting: notify manual_control'\n mode: parallel\n max: 20\n triggers:\n - trigger: event\n event_type: adaptive_lighting.manual_control\n variables:\n light: '{{ trigger.event.data.entity_id }}'\n conditions: '{{ ''hall'' not in light and ''stairs'' not in light }}'\n actions:\n - action: system_log.write\n data:\n message: '{{ light }} is manually controlled'\n level: error\n logger: yolo.yolo\n - action: notify.iphone_bas\n data:\n title: 'Adaptive Ligthing: manual_control'\n message: '{{ light }} is now ''manually controlled'', context={{ trigger.event.context\n }}'",
|
|
"config": [
|
|
{
|
|
"name": "All entities group",
|
|
"room": null,
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "all",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Alarm clock: wake up with Spotify and light'",
|
|
"automation": "- alias: 'Alarm clock: wake up with Spotify and light'\n triggers:\n trigger: template\n value_template: '{{ states(\"sensor.time\")[0:5] == states(\"sensor.ten_minutes_before_alarm\")\n }}\n\n '\n conditions:\n condition: state\n entity_id: input_boolean.alarm_clock\n state: 'on'\n actions:\n - action: input_boolean.turn_off\n entity_id: input_boolean.alarm_clock\n - action: input_boolean.turn_on\n entity_id: input_boolean.wake_up_with_spotify\n - action: input_boolean.turn_on\n entity_id: input_boolean.wake_up_light\n - action: input_select.select_option\n entity_id: input_select.sleep_mode\n data:\n option: 'off'",
|
|
"config": [
|
|
{
|
|
"name": "sleep mode selector",
|
|
"room": "system",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.sleep_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "alarm clock",
|
|
"room": "bedroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.alarm_clock",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "wake up with spotify",
|
|
"room": "bedroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.wake_up_with_spotify",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "wake up light",
|
|
"room": "bedroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.wake_up_light",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Ten Minutes Before Alarm",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.ten_minutes_before_alarm",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Time",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.time",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Apple Watch: Play or Pause the TV'",
|
|
"automation": "- alias: 'Apple Watch: Play or Pause the TV'\n triggers:\n trigger: event\n event_type: ios.action_fired\n event_data:\n actionName: Play TV\n conditions:\n condition: state\n entity_id: media_player.tv\n state: 'on'\n actions:\n action: media_player.media_play_pause\n target:\n entity_id: 'media_player.{{ ''xbox'' if is_state_attr(''media_player.tv'', ''source'',\n ''XBOX'') else ''tv''}}\n\n '",
|
|
"config": [
|
|
{
|
|
"name": "tv",
|
|
"room": "living_room",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.tv",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Apple Watch: minimal lights bedroom'",
|
|
"automation": "- alias: 'Apple Watch: minimal lights bedroom'\n triggers:\n trigger: event\n event_type: ios.action_fired\n event_data:\n actionName: Minimal lights bedroom\n actions:\n action: light.turn_on\n data:\n entity_id:\n - light.philips_go\n - light.bed_led\n brightness: 1\n color_name: red",
|
|
"config": [
|
|
{
|
|
"name": "philips go",
|
|
"room": "bedroom",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.philips_go",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "bed led",
|
|
"room": "bedroom",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.bed_led",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Apple Watch: fix TV sound'",
|
|
"automation": "- alias: 'Apple Watch: fix TV sound'\n triggers:\n trigger: event\n event_type: ios.action_fired\n event_data:\n actionName: Fix TV sound\n actions:\n action: script.fix_sound",
|
|
"config": []
|
|
},
|
|
{
|
|
"id": "'Apple Watch: Go to sleep'",
|
|
"automation": "- alias: 'Apple Watch: Go to sleep'\n triggers:\n trigger: event\n event_type: ios.action_fired\n event_data:\n actionName: Go to sleep\n actions:\n action: script.going_to_sleep",
|
|
"config": []
|
|
},
|
|
{
|
|
"id": "'Apple Watch: set sleep mode'",
|
|
"automation": "- alias: 'Apple Watch: set sleep mode'\n mode: parallel\n triggers:\n trigger: event\n event_type: ios.action_fired\n event_data:\n actionName: Set sleep mode\n actions:\n - variables:\n iphone: notify.mobile_app_{{ trigger.event.data.sourceDeviceName.replace('-',\n '_') }}\n - action: '{{ iphone }}'\n data:\n message: 'Apple Watch: set sleep mode.'\n data:\n actions:\n - action: SLEEP_OFF\n title: 'Off'\n - action: SLEEP_HALF\n title: Half\n - action: SLEEP_TOTAL\n title: Total\n - wait_for_trigger:\n - trigger: event\n event_type: mobile_app_notification_action\n event_data:\n action: SLEEP_OFF\n - trigger: event\n event_type: mobile_app_notification_action\n event_data:\n action: SLEEP_HALF\n - trigger: event\n event_type: mobile_app_notification_action\n event_data:\n action: SLEEP_TOTAL\n timeout: 00:00:20\n continue_on_timeout: false\n - variables:\n event: '{{ wait.trigger.event.data.action.lower().split(''_'')[1] }}'\n - action: input_select.select_option\n data:\n entity_id: input_select.sleep_mode\n option: '{{ event }}'",
|
|
"config": [
|
|
{
|
|
"name": "sleep mode selector",
|
|
"room": "system",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.sleep_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "All entities group",
|
|
"room": null,
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "all",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Apple Watch: set lights'",
|
|
"automation": "- alias: 'Apple Watch: set lights'\n mode: parallel\n triggers:\n trigger: event\n event_type: ios.action_fired\n event_data:\n actionName: Set lights\n actions:\n - variables:\n iphone: notify.mobile_app_{{ trigger.event.data.sourceDeviceName.replace('-',\n '_') }}\n - action: '{{ iphone }}'\n data:\n message: 'Apple Watch: set lights'\n data:\n actions:\n - action: SET_LIGHTS_ALL\n title: All\n - action: SET_LIGHTS_BEDROOM\n title: Bedroom\n - action: SET_LIGHTS_LIVING_ROOM\n title: Living room\n - action: SET_LIGHTS_BATHROOM\n title: Bathroom\n - action: SET_LIGHTS_HALL\n title: Hall\n - action: SET_LIGHTS_TOILET\n title: Toilet\n - action: SET_LIGHTS_KITCHEN\n title: Kitchen\n - wait_for_trigger:\n - trigger: event\n event_type: mobile_app_notification_action\n event_data:\n action: SET_LIGHTS_ALL\n - trigger: event\n event_type: mobile_app_notification_action\n event_data:\n action: SET_LIGHTS_BEDROOM\n - trigger: event\n event_type: mobile_app_notification_action\n event_data:\n action: SET_LIGHTS_LIVING_ROOM\n - trigger: event\n event_type: mobile_app_notification_action\n event_data:\n action: SET_LIGHTS_BATHROOM\n - trigger: event\n event_type: mobile_app_notification_action\n event_data:\n action: SET_LIGHTS_HALL\n - trigger: event\n event_type: mobile_app_notification_action\n event_data:\n action: SET_LIGHTS_TOILET\n - trigger: event\n event_type: mobile_app_notification_action\n event_data:\n action: SET_LIGHTS_KITCHEN\n timeout: 00:00:20\n continue_on_timeout: false\n - variables:\n light: \"{{\\n {'SET_LIGHTS_ALL': 'all',\\n 'SET_LIGHTS_BEDROOM': 'light.bedroom_lights',\\n\\\n \\ 'SET_LIGHTS_LIVING_ROOM': 'light.living_room_lights',\\n 'SET_LIGHTS_BATHROOM':\\\n \\ 'light.bathroom_ceiling',\\n 'SET_LIGHTS_HALL': 'light.hall_lights,light.stairs_lights',\\n\\\n \\ 'SET_LIGHTS_TOILET': 'light.toilet',\\n 'SET_LIGHTS_KITCHEN': 'light.kitchen_lights',\\n\\\n \\ }[wait.trigger.event.data.action] }}\\n\"\n - action: '{{ iphone }}'\n data:\n message: 'Apple Watch: choose option'\n data:\n actions:\n - action: LIGHTS_OFF\n title: 'Off'\n - action: LIGHTS_ON\n title: 'On'\n - action: LIGHTS_FIFTY\n title: 50%\n - action: LIGHTS_HUNDRED\n title: 100%\n - action: LIGHTS_ONE\n title: 1%\n - action: LIGHTS_WHITE\n title: White lights\n - action: LIGHTS_COZY\n title: Cozy lights\n - wait_for_trigger:\n - trigger: event\n event_type: mobile_app_notification_action\n event_data:\n action: LIGHTS_OFF\n - trigger: event\n event_type: mobile_app_notification_action\n event_data:\n action: LIGHTS_ON\n - trigger: event\n event_type: mobile_app_notification_action\n event_data:\n action: LIGHTS_FIFTY\n - trigger: event\n event_type: mobile_app_notification_action\n event_data:\n action: LIGHTS_HUNDRED\n - trigger: event\n event_type: mobile_app_notification_action\n event_data:\n action: LIGHTS_ONE\n - trigger: event\n event_type: mobile_app_notification_action\n event_data:\n action: LIGHTS_WHITE\n - trigger: event\n event_type: mobile_app_notification_action\n event_data:\n action: LIGHTS_COZY\n timeout: 00:00:20\n continue_on_timeout: false\n - variables:\n option: '{{ wait.trigger.event.data.action }}'\n - choose:\n - conditions: '{{ option == ''LIGHTS_OFF'' }}'\n sequence:\n action: light.turn_off\n data:\n entity_id: '{{ light }}'\n - conditions: '{{ option == ''LIGHTS_ON'' }}'\n sequence:\n action: script.turn_on_lights\n data:\n entity_id: '{{ light }}'\n - conditions: '{{ option == ''LIGHTS_FIFTY'' }}'\n sequence:\n action: light.turn_on\n data:\n entity_id: '{{ light }}'\n brightness_pct: 50\n - conditions: '{{ option == ''LIGHTS_HUNDRED'' }}'\n sequence:\n action: light.turn_on\n data:\n entity_id: '{{ light }}'\n brightness_pct: 100\n - conditions: '{{ option == ''LIGHTS_ONE'' }}'\n sequence:\n action: light.turn_on\n data:\n entity_id: '{{ light }}'\n brightness_pct: 1\n - conditions: '{{ option == ''LIGHTS_WHITE'' and light == ''light.living_room_lights''}}'\n sequence:\n action: script.white_lights_living_room\n - conditions: '{{ option == ''LIGHTS_WHITE'' and light == ''light.bedroom_lights''}}'\n sequence:\n action: script.white_lights_living_room\n - conditions: '{{ option == ''LIGHTS_COZY'' and light == ''light.living_room_lights''}}'\n sequence:\n action: script.cozy_lights_living_room\n - conditions: '{{ option == ''LIGHTS_COZY'' and light == ''light.bedroom_lights''}}'\n sequence:\n action: script.cozy_lights_bedroom",
|
|
"config": [
|
|
{
|
|
"name": "living room lights",
|
|
"room": "living_room",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.living_room_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "bedroom lights",
|
|
"room": "bedroom",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.bedroom_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "bathroom ceiling",
|
|
"room": "bathroom",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.bathroom_ceiling",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "hall lights",
|
|
"room": "hall",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.hall_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "stairs lights",
|
|
"room": "stairs",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.stairs_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "toilet light",
|
|
"room": "toilet",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.toilet",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "kitchen lights",
|
|
"room": "kitchen",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.kitchen_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "All entities group",
|
|
"room": null,
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "all",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Apple Watch: temperature report'",
|
|
"automation": "- alias: 'Apple Watch: temperature report'\n mode: parallel\n triggers:\n trigger: event\n event_type: ios.action_fired\n event_data:\n actionName: Temperature report\n actions:\n - variables:\n iphone: notify.mobile_app_{{ trigger.event.data.sourceDeviceName.replace('-',\n '_') }}\n - action: '{{ iphone }}'\n data:\n title: Temperature\n message: 'Bedroom: {{ states(''sensor.temperature_bedroom'') }}°C Living room:\n {{ states(''sensor.temperature_living_room'') }}°C Hall: {{ states(''sensor.temperature_hall'')\n }}°C Thermostat: {{ state_attr(''climate.thermostat'', ''temperature'') }}°C\n Outside: {{ state_attr(''weather.huis'', ''temperature'') }}°C and it''s {{\n states(''weather.huis'') }}\n\n '",
|
|
"config": [
|
|
{
|
|
"name": "temperature bedroom",
|
|
"room": "bedroom",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.temperature_bedroom",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "temperature living room",
|
|
"room": "living_room",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.temperature_living_room",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "temperature hall",
|
|
"room": "hall",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.temperature_hall",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "thermostat",
|
|
"room": "living_room",
|
|
"type": "climate",
|
|
"id": {
|
|
"entity_id": "climate.thermostat",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "weather huis",
|
|
"room": "outside",
|
|
"type": "weather",
|
|
"id": {
|
|
"entity_id": "weather.huis",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "All entities group",
|
|
"room": null,
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "all",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Apple Watch: portfolio value'",
|
|
"automation": "- alias: 'Apple Watch: portfolio value'\n mode: parallel\n triggers:\n trigger: event\n event_type: ios.action_fired\n event_data:\n actionName: Portfolio value\n actions:\n - variables:\n iphone: notify.iphone_bas\n - action: '{{ iphone }}'\n data:\n title: Portfolio value\n message: '€{{ states(''sensor.portfolio_value'') }}\n\n '",
|
|
"config": [
|
|
{
|
|
"name": "portfolio value",
|
|
"room": "system",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.portfolio_value",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "All entities group",
|
|
"room": null,
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "all",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Apple Watch: send vacuum cleaner'",
|
|
"automation": "- alias: 'Apple Watch: send vacuum cleaner'\n mode: parallel\n triggers:\n trigger: event\n event_type: ios.action_fired\n event_data:\n actionName: Vacuum\n actions:\n - variables:\n iphone: notify.mobile_app_{{ trigger.event.data.sourceDeviceName.replace('-',\n '_') }}\n - action: '{{ iphone }}'\n data:\n message: 'Apple Watch: vacuum'\n data:\n actions:\n - action: VACUUM_LIVING_ROOM\n title: Living room\n - action: VACUUM_BEDROOM\n title: Bedroom\n - action: VACUUM_OFFICE\n title: Office\n - action: VACUUM_HALL\n title: Hall\n - action: VACUUM_KITCHEN\n title: Kitchen\n - action: VACUUM_ALL\n title: All\n - action: VACUUM_STOP\n title: Stop and return\n - wait_for_trigger:\n - trigger: event\n event_type: mobile_app_notification_action\n event_data:\n action: VACUUM_LIVING_ROOM\n - trigger: event\n event_type: mobile_app_notification_action\n event_data:\n action: VACUUM_BEDROOM\n - trigger: event\n event_type: mobile_app_notification_action\n event_data:\n action: VACUUM_OFFICE\n - trigger: event\n event_type: mobile_app_notification_action\n event_data:\n action: VACUUM_HALL\n - trigger: event\n event_type: mobile_app_notification_action\n event_data:\n action: VACUUM_KITCHEN\n - trigger: event\n event_type: mobile_app_notification_action\n event_data:\n action: VACUUM_ALL\n - trigger: event\n event_type: mobile_app_notification_action\n event_data:\n action: VACUUM_STOP\n timeout: 00:00:20\n continue_on_timeout: false\n - variables:\n location: '{{ wait.trigger.event.data.action.lower().split(''vacuum_'')[1] }}'\n - action: script.vacuum_command\n data:\n option: '{{ location }}'",
|
|
"config": [
|
|
{
|
|
"name": "All entities group",
|
|
"room": null,
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "all",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Apple Watch: movie time'",
|
|
"automation": "- alias: 'Apple Watch: movie time'\n triggers:\n trigger: event\n event_type: ios.action_fired\n event_data:\n actionName: Movie time\n actions:\n - action: light.turn_on\n data:\n entity_id:\n - light.living_room_lights\n brightness: 5\n color_name: red\n - action: light.turn_off\n data:\n entity_id:\n - light.marble\n - action: light.turn_on\n data:\n entity_id:\n - light.tv_led\n brightness: 20",
|
|
"config": [
|
|
{
|
|
"name": "living room lights",
|
|
"room": "living_room",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.living_room_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "marble light",
|
|
"room": "living_room",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.marble",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "tv led",
|
|
"room": "living_room",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.tv_led",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Apple Watch: reset adaptive lighting'",
|
|
"automation": "- alias: 'Apple Watch: reset adaptive lighting'\n triggers:\n trigger: event\n event_type: ios.action_fired\n event_data:\n actionName: Reset adaptive lighting\n actions:\n action: script.reset_adaptive_lighting",
|
|
"config": []
|
|
},
|
|
{
|
|
"id": "'Apple Watch: set temperature'",
|
|
"automation": "- alias: 'Apple Watch: set temperature'\n mode: parallel\n triggers:\n trigger: event\n event_type: ios.action_fired\n event_data:\n actionName: Set temperature\n actions:\n - variables:\n iphone: notify.mobile_app_{{ trigger.event.data.sourceDeviceName.replace('-',\n '_') }}\n - action: '{{ iphone }}'\n data:\n message: 'Apple Watch: set temperature'\n data:\n actions:\n - action: T15\n title: '15'\n - action: T16\n title: '16'\n - action: T17\n title: '17'\n - action: T18\n title: '18'\n - action: T19\n title: '19'\n - action: T20\n title: '20'\n - action: T21\n title: '21'\n - wait_for_trigger:\n - trigger: event\n event_type: mobile_app_notification_action\n event_data:\n action: T15\n - trigger: event\n event_type: mobile_app_notification_action\n event_data:\n action: T16\n - trigger: event\n event_type: mobile_app_notification_action\n event_data:\n action: T17\n - trigger: event\n event_type: mobile_app_notification_action\n event_data:\n action: T18\n - trigger: event\n event_type: mobile_app_notification_action\n event_data:\n action: T19\n - trigger: event\n event_type: mobile_app_notification_action\n event_data:\n action: T20\n - trigger: event\n event_type: mobile_app_notification_action\n event_data:\n action: T21\n timeout: 00:00:20\n continue_on_timeout: false\n - variables:\n temperature: '{{ wait.trigger.event.data.action.split(''T'')[1] | int }}'\n - action: climate.set_temperature\n data:\n entity_id: climate.thermostat\n temperature: '{{ temperature }}'",
|
|
"config": [
|
|
{
|
|
"name": "thermostat",
|
|
"room": "living_room",
|
|
"type": "climate",
|
|
"id": {
|
|
"entity_id": "climate.thermostat",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "All entities group",
|
|
"room": null,
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "all",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Apple Watch: where is other person?'",
|
|
"automation": "- alias: 'Apple Watch: where is other person?'\n mode: parallel\n triggers:\n trigger: event\n event_type: ios.action_fired\n event_data:\n actionName: Where is\n variables:\n phone: \"{% if trigger.event.data.sourceDeviceName == 'basnijholt-iphone' %}\\n\\\n \\ basnijholt\\n{% else %}\\n marcella\\n{% endif %}\\n\"\n other_person: '{% if phone == ''basnijholt'' %}Marcella{% else %}Bas{% endif %}'\n device_tracker: device_tracker.{{ other_person }}_iphone\n actions:\n action: notify.mobile_app_{{ phone }}_iphone\n data:\n message: '{{ other_person }} is {{ distance(''device_tracker.basnijholt_iphone'',\n ''device_tracker.marcella_iphone'') | round(2) }} km away'\n data:\n push:\n category: MAP\n action_data:\n latitude: '{{ state_attr(device_tracker, ''latitude'') }}'\n longitude: '{{ state_attr(device_tracker, ''longitude'') }}'",
|
|
"config": [
|
|
{
|
|
"name": "basnijholt iphone",
|
|
"room": "system",
|
|
"type": "device_tracker",
|
|
"id": {
|
|
"entity_id": "device_tracker.basnijholt_iphone",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "marcella iphone",
|
|
"room": "system",
|
|
"type": "device_tracker",
|
|
"id": {
|
|
"entity_id": "device_tracker.marcella_iphone",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "All entities group",
|
|
"room": null,
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "all",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Arriving: switch music from iPhone to speakers if no one is home'",
|
|
"automation": "- alias: 'Arriving: switch music from iPhone to speakers if no one is home'\n triggers:\n trigger: state\n entity_id: binary_sensor.openclose_front_door\n from: 'off'\n to: 'on'\n conditions:\n - condition: state\n entity_id: person.marcella\n state: not_home\n - condition: state\n entity_id: input_boolean.guest_mode\n state: 'off'\n - '{{ is_state_attr(''media_player.spotify'', ''source'', ''basnijholt-iphone'')\n }}'\n - '{{ is_state(''media_player.spotify'', ''playing'') }}'\n actions:\n - action: notify.iphone_bas\n data:\n title: Arriving\n message: Switched music from phone to speakers\n - action: media_player.turn_on\n entity_id: media_player.kef_ls50\n - action: media_player.select_source\n entity_id: media_player.kef_ls50\n data:\n source: Spotify\n - action: media_player.select_source\n entity_id: media_player.spotify\n data:\n source: KEF LS50",
|
|
"config": [
|
|
{
|
|
"name": "front door sensor",
|
|
"room": "hall",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.openclose_front_door",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "marcella person",
|
|
"room": "system",
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.marcella",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "guest mode",
|
|
"room": "system",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.guest_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "spotify",
|
|
"room": "living_room",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.spotify",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "kef ls50",
|
|
"room": "living_room",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.kef_ls50",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Bike: started charging'",
|
|
"automation": "- alias: 'Bike: started charging'\n triggers:\n trigger: state\n entity_id: switch.bike_charger\n to: 'on'\n from: 'off'\n actions:\n - action: input_datetime.set_datetime\n data:\n entity_id: input_datetime.bike_charger_on\n timestamp: '{{ now().timestamp() }}'\n - action: input_datetime.set_datetime\n data:\n entity_id: input_datetime.bike_charger_off\n timestamp: '{{ now().timestamp() + 3600 * 6 }}'",
|
|
"config": [
|
|
{
|
|
"name": "bike charger",
|
|
"room": "garage",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.bike_charger",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "bike charger on time",
|
|
"room": "garage",
|
|
"type": "input_datetime",
|
|
"id": {
|
|
"entity_id": "input_datetime.bike_charger_on",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "bike charger off time",
|
|
"room": "garage",
|
|
"type": "input_datetime",
|
|
"id": {
|
|
"entity_id": "input_datetime.bike_charger_off",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Bike: stop charging'",
|
|
"automation": "- alias: 'Bike: stop charging'\n triggers:\n trigger: time_pattern\n minutes: /1\n conditions:\n condition: template\n value_template: '{{ states(''sensor.time'') == states(''input_datetime.bike_charger_off'')[0:5]\n }}'\n actions:\n action: switch.turn_off\n data:\n entity_id: switch.bike_charger",
|
|
"config": [
|
|
{
|
|
"name": "bike charger",
|
|
"room": "garage",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.bike_charger",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "bike charger off time",
|
|
"room": "garage",
|
|
"type": "input_datetime",
|
|
"id": {
|
|
"entity_id": "input_datetime.bike_charger_off",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Time",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.time",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Climate: turn on the heating 30 min before waking up'",
|
|
"automation": "- alias: 'Climate: turn on the heating 30 min before waking up'\n triggers:\n trigger: template\n value_template: '{{ states(\"sensor.time\")[0:5] == states(\"sensor.half_hour_before_alarm\")\n }}\n\n '\n conditions:\n condition: state\n entity_id:\n - input_boolean.alarm_clock\n - input_boolean.automatic_temperature\n state: 'on'\n actions:\n action: script.set_high_temperature",
|
|
"config": [
|
|
{
|
|
"name": "alarm clock",
|
|
"room": "bedroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.alarm_clock",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "automatic temperature",
|
|
"room": "system",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.automatic_temperature",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Half Hour Before Alarm",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.half_hour_before_alarm",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Time",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.time",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Climate: turn on the heating when going home'",
|
|
"automation": "- alias: 'Climate: turn on the heating when going home'\n triggers:\n trigger: numeric_state\n entity_id: sensor.home_nearest_distance\n below: 6\n above: 1\n conditions:\n - condition: state\n entity_id: input_boolean.automatic_temperature\n state: 'on'\n - condition: time\n after: '16:00:00'\n before: '22:00:00'\n - '{{ is_state(''sensor.home_nearest_direction_of_travel'', ''towards'') }}'\n - '{{ not is_state_attr(''climate.thermostat'', ''temperature'', states(''input_number.temperature_high''))\n }}'\n - condition: state\n entity_id: binary_sensor.no_one_home\n state: 'on'\n actions:\n - action: script.set_high_temperature\n - action: notify.all_iphones\n data:\n title: Climate\n message: Automatically turned on the heating 🥵℃",
|
|
"config": [
|
|
{
|
|
"name": "thermostat",
|
|
"room": "living_room",
|
|
"type": "climate",
|
|
"id": {
|
|
"entity_id": "climate.thermostat",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "automatic temperature",
|
|
"room": "system",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.automatic_temperature",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "home nearest distance",
|
|
"room": "system",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.home_nearest_distance",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "home nearest direction of travel",
|
|
"room": "system",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.home_nearest_direction_of_travel",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "no one home",
|
|
"room": "system",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.no_one_home",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "All entities group",
|
|
"room": null,
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "all",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Temperature High Input",
|
|
"room": null,
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.temperature_high",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Climate: turn off the heating at 22:00'",
|
|
"automation": "- alias: 'Climate: turn off the heating at 22:00'\n triggers:\n trigger: time\n at: '22:00'\n conditions:\n - condition: state\n entity_id: input_boolean.automatic_temperature\n state: 'on'\n - condition: state\n entity_id: binary_sensor.no_one_home\n state: 'off'\n - '{{ not is_state_attr(''climate.thermostat'', ''temperature'', states(''input_number.temperature_low'')|float(0))\n }}'\n actions:\n - action: script.set_low_temperature\n - action: notify.all_iphones\n data:\n message: Turned off the heating 🥶, click to turn it on again?\n data:\n actions:\n - action: TURN_ON_HEATING\n title: Turn on heating\n activationMode: background\n authenticationRequired: true\n destructive: true\n - wait_for_trigger:\n trigger: event\n event_type: mobile_app_notification_action\n event_data:\n action: TURN_ON_HEATING\n timeout: 00:00:20\n continue_on_timeout: false\n - action: script.set_high_temperature",
|
|
"config": [
|
|
{
|
|
"name": "thermostat",
|
|
"room": "living_room",
|
|
"type": "climate",
|
|
"id": {
|
|
"entity_id": "climate.thermostat",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "automatic temperature",
|
|
"room": "system",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.automatic_temperature",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "no one home",
|
|
"room": "system",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.no_one_home",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "All entities group",
|
|
"room": null,
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "all",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Temperature Low Input",
|
|
"room": null,
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.temperature_low",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Climate: set outside temperature every hour'",
|
|
"automation": "- alias: 'Climate: set outside temperature every hour'\n triggers:\n trigger: time_pattern\n hours: /1\n actions:\n action: mqtt.publish\n data:\n topic: actions/otmonitor/outside\n payload: '{{ state_attr(\"weather.huis\", \"temperature\") }}\n\n '",
|
|
"config": [
|
|
{
|
|
"name": "weather huis",
|
|
"room": "outside",
|
|
"type": "weather",
|
|
"id": {
|
|
"entity_id": "weather.huis",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Climate: warning when heating on and living room door open'",
|
|
"automation": "- alias: 'Climate: warning when heating on and living room door open'\n triggers:\n trigger: state\n entity_id: binary_sensor.openclose_bedroom\n to: 'on'\n for: 00:05:00\n conditions: '{{ state_attr(''climate.thermostat'', ''temperature'') >= 18 }}'\n actions:\n - repeat:\n while:\n - condition: state\n entity_id: binary_sensor.openclose_bedroom\n state: 'on'\n - condition: template\n value_template: '{{ repeat.index <= 6 }}'\n sequence:\n - action: notify.all\n data:\n title: Climate\n message: 'The living room door is open and the heating is on! ⚠️ Warning\n #{{ repeat.index }}!'\n - delay: 00:05:00\n - condition: state\n entity_id: binary_sensor.openclose_bedroom\n state: 'on'\n - action: notify.all\n data:\n title: Climate\n message: Turning off the heating!\n - action: climate.set_temperature\n entity_id: climate.thermostat\n data:\n temperature: '{{ states(\"input_number.temperature_low\") }}\n\n '",
|
|
"config": [
|
|
{
|
|
"name": "thermostat",
|
|
"room": "living_room",
|
|
"type": "climate",
|
|
"id": {
|
|
"entity_id": "climate.thermostat",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "bedroom door sensor",
|
|
"room": "bedroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.openclose_bedroom",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "All entities group",
|
|
"room": null,
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "all",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Temperature Low Input",
|
|
"room": null,
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.temperature_low",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Climate: set temperature setpoint to 50 °C'",
|
|
"automation": "- alias: 'Climate: set temperature setpoint to 50 °C'\n triggers:\n trigger: time_pattern\n hours: /2\n actions:\n action: mqtt.publish\n data:\n topic: actions/otmonitor/maxdhwsetpt\n payload: '50'",
|
|
"config": []
|
|
},
|
|
{
|
|
"id": "'Climate: automatically turn off spaceheater when no-one is in the guest",
|
|
"automation": "- alias: 'Climate: automatically turn off spaceheater when no-one is in the guest\n room'\n triggers:\n - trigger: time_pattern\n minutes: /10\n - trigger: state\n entity_id: binary_sensor.activity_in_guest_room\n to: 'off'\n conditions:\n condition: state\n entity_id: binary_sensor.activity_in_guest_room\n state: 'off'\n actions:\n action: switch.turn_off\n entity_id: switch.space_heater",
|
|
"config": [
|
|
{
|
|
"name": "activity in guest room",
|
|
"room": "guest_room",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.activity_in_guest_room",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "space heater",
|
|
"room": "guest_room",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.space_heater",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "All entities group",
|
|
"room": null,
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "all",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Control switches: living room Philips Hue dimmer switch'",
|
|
"automation": "- alias: 'Control switches: living room Philips Hue dimmer switch'\n mode: parallel\n triggers:\n trigger: mqtt\n topic: zigbee2mqtt/Dimmer Switch (Living room)\n variables:\n action: '{{ trigger.payload_json.action }}'\n actions:\n choose:\n - conditions: '{{ action == ''off_press'' }}'\n sequence:\n action: script.next_colors\n data:\n input_select: input_select.last_script_living_room\n - conditions:\n - '{{ action == ''up_press'' }}'\n - condition: state\n entity_id: light.living_room_lights\n state: 'on'\n sequence:\n - action: script.white_lights_living_room\n - action: light.turn_on\n entity_id: light.living_room_lights\n data:\n brightness: '255'\n - conditions: '{{ action == ''on_press'' }}'\n sequence:\n action: script.increase_brightness\n data:\n group: light.living_room_lights\n - conditions:\n - '{{ action == ''up_press'' }}'\n - condition: state\n entity_id: light.living_room_lights\n state: 'off'\n sequence:\n - action: light.turn_on\n entity_id: light.living_room_lights\n - conditions:\n - '{{ action == ''down_press'' }}'\n - condition: state\n entity_id: light.living_room_lights\n state: 'on'\n sequence:\n - action: light.turn_off\n entity_id: light.living_room_lights\n - conditions:\n - '{{ action == ''up_hold'' }}'\n - '{{ trigger.payload_json.action_duration > 2 }}'\n sequence:\n - action: script.reset_adaptive_lighting",
|
|
"config": [
|
|
{
|
|
"name": "living room lights",
|
|
"room": "living_room",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.living_room_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "last script living room",
|
|
"room": "living_room",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.last_script_living_room",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "All entities group",
|
|
"room": null,
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "all",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Control switches: bedroom Philips Hue dimmer switch'",
|
|
"automation": "- alias: 'Control switches: bedroom Philips Hue dimmer switch'\n mode: parallel\n triggers:\n trigger: mqtt\n topic: zigbee2mqtt/Dimmer Switch (Bedroom)\n variables:\n action: '{{ trigger.payload_json.action }}'\n actions:\n choose:\n - conditions: '{{ action == ''off_press'' }}'\n sequence:\n action: script.next_colors\n data:\n input_select: input_select.last_script_bedroom\n - conditions:\n - '{{ action == ''up_press'' }}'\n - condition: state\n entity_id: light.bedroom_lights\n state: 'on'\n sequence:\n - action: script.white_lights_bedroom\n - action: light.turn_on\n entity_id: light.bedroom_lights\n data:\n brightness: '255'\n - conditions: '{{ action == ''on_press'' }}'\n sequence:\n action: script.increase_brightness\n data:\n group: light.bedroom_lights\n - conditions:\n - '{{ action == ''up_press'' }}'\n - condition: state\n entity_id: light.bedroom_lights\n state: 'off'\n sequence:\n - action: light.turn_on\n entity_id: light.bedroom_lights\n - conditions:\n - '{{ action == ''down_press'' }}'\n - condition: state\n entity_id: light.bedroom_lights\n state: 'on'\n sequence:\n - action: light.turn_off\n entity_id: light.bedroom_lights\n - conditions:\n - '{{ action == ''up_hold'' }}'\n - '{{ trigger.payload_json.action_duration > 2 }}'\n sequence:\n - action: script.reset_adaptive_lighting",
|
|
"config": [
|
|
{
|
|
"name": "bedroom lights",
|
|
"room": "bedroom",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.bedroom_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "last script bedroom",
|
|
"room": "bedroom",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.last_script_bedroom",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "All entities group",
|
|
"room": null,
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "all",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Control switches: bedroom IKEA dimmer switch'",
|
|
"automation": "- alias: 'Control switches: bedroom IKEA dimmer switch'\n mode: parallel\n triggers:\n - trigger: mqtt\n topic: zigbee2mqtt/IKEA Remote (Bedroom)\n - trigger: mqtt\n topic: zigbee2mqtt/IKEA Remote (Bedroom Marcella)\n variables:\n action: '{{ trigger.payload_json.action }}'\n personal_light: \"{% if trigger.topic == 'zigbee2mqtt/IKEA Remote (Bedroom)' %}\\n\\\n \\ light.bed_led\\n{% elif trigger.topic == 'zigbee2mqtt/IKEA Remote (Bedroom\\\n \\ Marcella)' %}\\n light.philips_go\\n{% endif %}\"\n actions:\n choose:\n - conditions:\n - '{{ action == ''brightness_move_up'' }}'\n - condition: state\n entity_id: light.bedroom_lights\n state: 'on'\n sequence:\n - action: script.white_lights_bedroom\n - action: light.turn_on\n entity_id: light.bedroom_lights\n data:\n brightness: '255'\n kelvin: 5500\n - conditions:\n - '{{ action == ''on'' }}'\n - condition: state\n entity_id: light.bedroom_lights\n state: 'on'\n sequence:\n action: script.increase_brightness\n data:\n group: light.bedroom_lights\n - conditions:\n - '{{ action == ''on'' }}'\n - condition: state\n entity_id: light.bedroom_lights\n state: 'off'\n sequence:\n - action: light.turn_on\n entity_id: light.bedroom_lights\n - conditions:\n - '{{ action == ''off'' }}'\n - condition: state\n entity_id: light.bedroom_lights\n state: 'on'\n sequence:\n - action: light.turn_off\n entity_id: light.bedroom_lights\n - conditions: '{{ action == ''arrow_left_click'' }}'\n sequence:\n action: script.next_colors\n data:\n input_select: input_select.last_script_bedroom\n - conditions:\n - '{{ action == ''arrow_right_click'' }}'\n - '{{ is_state(personal_light, ''off'') }}'\n sequence:\n action: light.toggle\n data:\n entity_id: '{{ personal_light }}'\n - conditions:\n - '{{ action == ''arrow_right_click'' }}'\n - '{{ is_state(personal_light, ''on'') }}'\n sequence:\n action: script.increase_brightness\n data:\n group: '{{ personal_light }}'\n - conditions:\n - '{{ action == ''brightness_move_down'' }}'\n - '{{ is_state(''input_boolean.guest_mode'', ''off'') }}'\n sequence:\n - action: input_select.select_option\n data:\n entity_id: input_select.sleep_mode\n option: total\n - action: script.turn_off_everything\n - conditions:\n - '{{ action == ''brightness_move_down'' }}'\n - '{{ is_state(''input_boolean.guest_mode'', ''on'') }}'\n sequence:\n - action: input_select.select_option\n data:\n entity_id: input_select.sleep_mode\n option: total\n - action: light.turn_off\n data:\n entity_id:\n - light.bedroom_lights\n - light.baby_room_lights",
|
|
"config": [
|
|
{
|
|
"name": "sleep mode selector",
|
|
"room": "system",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.sleep_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "philips go",
|
|
"room": "bedroom",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.philips_go",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "bed led",
|
|
"room": "bedroom",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.bed_led",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "bedroom lights",
|
|
"room": "bedroom",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.bedroom_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "guest mode",
|
|
"room": "system",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.guest_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "last script bedroom",
|
|
"room": "bedroom",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.last_script_bedroom",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "baby room lights",
|
|
"room": "baby_room",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.baby_room_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "All entities group",
|
|
"room": null,
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "all",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Baby Room Light",
|
|
"room": "Baby Room",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.baby_room",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Control switches: living room Aqara Wireless Mini Switch'",
|
|
"automation": "- alias: 'Control switches: living room Aqara Wireless Mini Switch'\n mode: parallel\n triggers:\n trigger: event\n event_type: deconz_event\n event_data:\n id: smart_switch_living_room\n actions:\n choose:\n - conditions: '{{ trigger.event.data.event == 1004 }}'\n sequence:\n action: script.next_colors\n data:\n input_select: input_select.last_script_living_room\n - conditions: '{{ trigger.event.data.event == 1002 }}'\n sequence:\n action: script.increase_brightness\n data:\n group: light.living_room_lights\n - conditions:\n - '{{ trigger.event.data.event == 1007 }}'\n - condition: state\n entity_id: light.living_room_lights\n state: 'on'\n sequence:\n - action: light.turn_on\n data:\n flash: short\n entity_id: light.cabinet_led\n - action: media_player.turn_off\n entity_id: media_player.tv\n - wait_template: '{{ is_state(''media_player.tv'', ''off'') }}'\n timeout: 00:00:30\n - action: media_player.turn_off\n entity_id: media_player.kef_ls50\n - action: light.turn_off\n entity_id: light.living_room_lights\n data:\n transition: 30\n - conditions: '{{ trigger.event.data.event == 1001 }}'\n sequence:\n action: script.fix_sound",
|
|
"config": [
|
|
{
|
|
"name": "tv",
|
|
"room": "living_room",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.tv",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "living room lights",
|
|
"room": "living_room",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.living_room_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "kef ls50",
|
|
"room": "living_room",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.kef_ls50",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "last script living room",
|
|
"room": "living_room",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.last_script_living_room",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "All entities group",
|
|
"room": null,
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "all",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Cabinet LED",
|
|
"room": null,
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.cabinet_led",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Control switches: bedroom Aqara Wireless Mini Switch'",
|
|
"automation": "- alias: 'Control switches: bedroom Aqara Wireless Mini Switch'\n mode: parallel\n triggers:\n - trigger: event\n event_type: deconz_event\n event_data:\n id: smart_switch_bedroom_bas\n - trigger: event\n event_type: deconz_event\n event_data:\n id: smart_switch_bedroom_marcella\n actions:\n choose:\n - conditions: '{{ trigger.event.data.event == 1004 }}'\n sequence:\n action: script.next_colors\n data:\n input_select: input_select.last_script_bedroom\n - conditions: '{{ trigger.event.data.event == 1002 }}'\n sequence:\n action: script.increase_brightness\n data:\n group: light.bedroom_lights\n - conditions: '{{ trigger.event.data.event == 1001 }}'\n sequence:\n action: light.turn_off\n entity_id:\n - light.hall_lights\n - light.bedroom_lights\n - light.bathroom_ceiling\n - light.stairs_lights\n - conditions: '{{ trigger.event.data.event == 1007 }}'\n sequence:\n choose:\n - conditions: '{% set h, m = states(\"sensor.ten_minutes_before_alarm\").split(\":\")\n %} {% set t_diff = as_timestamp(now()) - as_timestamp(now().replace(hour=h|int(0),\n minute=m|int(0))) %} {% set is_near_alarm = (t_diff|abs) < 1800 %} {%\n set is_morning = now().replace(hour=6, minute=0) < now() < now().replace(hour=12,\n minute=0) %} {{ is_near_alarm or is_morning }}\n\n '\n sequence:\n action: light.turn_off\n entity_id: all\n - conditions:\n condition: state\n entity_id: input_select.sleep_mode\n state: 'off'\n sequence:\n - action: light.turn_off\n entity_id:\n - light.hall_lights\n - light.bedroom_lights\n - light.bathroom_ceiling\n - light.stairs_lights\n - action: input_select.select_option\n entity_id: input_select.sleep_mode\n data:\n option: half\n - conditions:\n condition: state\n entity_id: input_select.sleep_mode\n state: half\n sequence:\n - action: script.turn_off_everything\n - action: input_select.select_option\n entity_id: input_select.sleep_mode\n data:\n option: total\n - conditions:\n condition: state\n entity_id: input_select.sleep_mode\n state: total\n sequence:\n action: light.turn_off\n entity_id: all",
|
|
"config": [
|
|
{
|
|
"name": "sleep mode selector",
|
|
"room": "system",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.sleep_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "bedroom lights",
|
|
"room": "bedroom",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.bedroom_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "bathroom ceiling",
|
|
"room": "bathroom",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.bathroom_ceiling",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "hall lights",
|
|
"room": "hall",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.hall_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "stairs lights",
|
|
"room": "stairs",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.stairs_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "last script bedroom",
|
|
"room": "bedroom",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.last_script_bedroom",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "All entities group",
|
|
"room": null,
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "all",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Ten Minutes Before Alarm",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.ten_minutes_before_alarm",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Control switches: bathroom Aqara Wireless Mini Switch'",
|
|
"automation": "- alias: 'Control switches: bathroom Aqara Wireless Mini Switch'\n mode: parallel\n triggers:\n trigger: event\n event_type: deconz_event\n event_data:\n id: smart_switch_bathroom\n actions:\n choose:\n - conditions: '{{ trigger.event.data.event == 1002 }}'\n sequence:\n action: light.toggle\n entity_id: light.bathroom_lights\n - conditions: '{{ trigger.event.data.event == 1004 }}'\n sequence:\n - action: light.turn_on\n data:\n entity_id: light.living_room_lights\n flash: short",
|
|
"config": [
|
|
{
|
|
"name": "living room lights",
|
|
"room": "living_room",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.living_room_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "bathroom lights",
|
|
"room": "bathroom",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.bathroom_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "All entities group",
|
|
"room": null,
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "all",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Control switches: door Aqara Wireless Mini Switch'",
|
|
"automation": "- alias: 'Control switches: door Aqara Wireless Mini Switch'\n mode: parallel\n triggers:\n trigger: event\n event_type: deconz_event\n event_data:\n id: smart_switch_door\n actions:\n choose:\n - conditions: '{{ trigger.event.data.event == 1002 }}'\n sequence:\n - action: light.turn_on\n data:\n entity_id: light.living_room_lights\n flash: short\n - action: script.turn_off_everything_non_automatic\n - action: script.set_low_temperature\n - if: '{{ is_state_attr(''media_player.spotify'', ''source'', ''KEF LS50'')\n and is_state(''media_player.spotify'', ''playing'') }}'\n then:\n - action: media_player.media_pause\n entity_id: media_player.spotify\n - conditions: '{{ trigger.event.data.event == 1004 }}'\n sequence:\n - action: light.turn_on\n data:\n flash: short\n entity_id: light.ceiling_kitchen\n - action: script.turn_on\n data:\n entity_id: light.living_room_lights\n - action: script.arriving\n - action: script.start_spotify\n data:\n source: KEF LS50\n id: playlist:{{ states(\"sensor.favorite_playlist_of_nearest_person\") }}\n volume: 0.25",
|
|
"config": [
|
|
{
|
|
"name": "living room lights",
|
|
"room": "living_room",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.living_room_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "spotify",
|
|
"room": "living_room",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.spotify",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "All entities group",
|
|
"room": null,
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "all",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Ceiling Kitchen Light",
|
|
"room": "Kitchen",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.ceiling_kitchen",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Favorite Playlist of Nearest Person",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.favorite_playlist_of_nearest_person",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Control switches: guest room IKEA Switch'",
|
|
"automation": "- alias: 'Control switches: guest room IKEA Switch'\n mode: parallel\n triggers:\n trigger: mqtt\n topic: zigbee2mqtt/IKEA Switch (Guest room)\n variables:\n action: '{{ trigger.payload_json.action }}'\n actions:\n choose:\n - conditions: '{{ action == ''on'' }}'\n sequence:\n action: light.turn_on\n entity_id: light.guest_room_lights\n - conditions: '{{ action == ''off'' }}'\n sequence:\n action: light.turn_off\n entity_id: light.guest_room_lights",
|
|
"config": [
|
|
{
|
|
"name": "guest room lights",
|
|
"room": "guest_room",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.guest_room_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "All entities group",
|
|
"room": null,
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "all",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Control switches: Guest Room Light'",
|
|
"automation": "- alias: 'Control switches: Guest Room Light'\n mode: parallel\n triggers:\n trigger: mqtt\n topic: zigbee2mqtt/Smart Switch (Guest Room)\n variables:\n action: '{{ trigger.payload_json.action }}'\n actions:\n choose:\n - conditions: '{{ action == ''single'' }}'\n sequence:\n action: light.toggle\n data:\n entity_id: light.guest_room_lights\n - conditions: '{{ action == ''double'' }}'\n sequence:\n action: switch.toggle\n entity_id: switch.adaptive_lighting_sleep_mode_guest_room",
|
|
"config": [
|
|
{
|
|
"name": "guest room lights",
|
|
"room": "guest_room",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.guest_room_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "adaptive lighting sleep mode guest room",
|
|
"room": "guest_room",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.adaptive_lighting_sleep_mode_guest_room",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "All entities group",
|
|
"room": null,
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "all",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Control switches: Guest Room Space heater'",
|
|
"automation": "- alias: 'Control switches: Guest Room Space heater'\n mode: parallel\n triggers:\n trigger: mqtt\n topic: zigbee2mqtt/Smart Switch (Desk)\n variables:\n action: '{{ trigger.payload_json.action }}'\n actions:\n choose:\n - conditions: '{{ action == ''single'' }}'\n sequence:\n action: switch.toggle\n data:\n entity_id: switch.space_heater",
|
|
"config": [
|
|
{
|
|
"name": "space heater",
|
|
"room": "guest_room",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.space_heater",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "All entities group",
|
|
"room": null,
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "all",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Control switches: Baby Room Light'",
|
|
"automation": "- alias: 'Control switches: Baby Room Light'\n mode: parallel\n triggers:\n trigger: mqtt\n topic: zigbee2mqtt/Smart Switch (Baby Room)\n variables:\n action: '{{ trigger.payload_json.action }}'\n actions:\n choose:\n - conditions: '{{ action == ''single'' }}'\n sequence:\n action: light.toggle\n data:\n entity_id:\n - light.baby_room_lights\n - conditions: '{{ action == ''double'' }}'\n sequence:\n action: switch.toggle\n entity_id: switch.adaptive_lighting_sleep_mode_baby_room",
|
|
"config": [
|
|
{
|
|
"name": "adaptive lighting sleep mode baby room",
|
|
"room": "baby_room",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.adaptive_lighting_sleep_mode_baby_room",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "baby room lights",
|
|
"room": "baby_room",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.baby_room_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "All entities group",
|
|
"room": null,
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "all",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Baby Room Light",
|
|
"room": "Baby Room",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.baby_room",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Control switches: Mid Room Changing Table Light'",
|
|
"automation": "- alias: 'Control switches: Mid Room Changing Table Light'\n mode: parallel\n triggers:\n trigger: mqtt\n topic: zigbee2mqtt/Smart Switch (Mid Room)\n variables:\n action: '{{ trigger.payload_json.action }}'\n actions:\n choose:\n - conditions: '{{ action == ''single'' }}'\n sequence:\n action: light.toggle\n data:\n entity_id: light.mid_room\n brightness_pct: 100\n color_temp_kelvin: 2200\n - conditions: '{{ action == ''double'' }}'\n sequence:\n action: script.increase_brightness\n data:\n group: light.mid_room\n - conditions: '{{ action == ''hold'' }}'\n sequence:\n action: script.next_colors\n data:\n input_select: input_select.last_script_living_room",
|
|
"config": [
|
|
{
|
|
"name": "last script living room",
|
|
"room": "living_room",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.last_script_living_room",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "mid room light",
|
|
"room": "baby_room",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.mid_room",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "All entities group",
|
|
"room": null,
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "all",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Cube: perform operation'",
|
|
"automation": "- alias: 'Cube: perform operation'\n mode: parallel\n triggers:\n trigger: event\n event_type: deconz_event\n event_data:\n id: mi_magic_cube\n variables:\n event: '{{ trigger.event.data.event }}'\n conditions: '{{ (event | string)[1:-1] == ''00'' }}'\n actions:\n choose:\n - conditions: '{% set event = event | string %} {% set correct_start = event[:3]\n in (\"100\", \"200\", \"300\") %} {% set first_last_different = event[0] != event[-1]\n %} {% set last_is_zero = event[-1] == 0 %} {{ correct_start and (first_last_different\n or last_is_zero) }}\n\n '\n sequence:\n - action: input_select.select_option\n entity_id: input_select.cube_mode\n data:\n option: '{% set event = event | string %} {{ {\"100\": \"Volume\", \"200\": \"Hue\",\n \"300\": \"Brightness\"}[event[:3]] }}\n\n '\n - condition: state\n entity_id: media_player.tv\n state: 'on'\n - action: notify.tv\n data:\n message: 'Cube set to {{ states(\"input_select.cube_mode\") }}\n\n '\n - conditions:\n - '{{ event == 7007 }}'\n - '{{ is_state_attr(''media_player.spotify'', ''source'', ''KEF LS50'') }}'\n sequence:\n - action: media_player.shuffle_set\n entity_id: media_player.spotify\n data:\n shuffle: true\n - action: media_player.media_next_track\n entity_id: media_player.spotify\n - conditions:\n - '{{ event in (1001, 2002, 3003, 4004, 5005, 6006) }}'\n - '{{ is_state_attr(''media_player.spotify'', ''source'', ''KEF LS50'') }}'\n sequence:\n action: media_player.media_play_pause\n entity_id: media_player.spotify\n - conditions: '{{ event == 7008 }}'\n sequence:\n action: script.start_spotify_playlist_of_nearest_person\n data:\n source: KEF LS50\n entity_id: media_player.kef_ls50",
|
|
"config": [
|
|
{
|
|
"name": "tv",
|
|
"room": "living_room",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.tv",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "spotify",
|
|
"room": "living_room",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.spotify",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "kef ls50",
|
|
"room": "living_room",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.kef_ls50",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "cube mode",
|
|
"room": "living_room",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.cube_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "All entities group",
|
|
"room": null,
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "all",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Cube: rotate the cube'",
|
|
"automation": "- alias: 'Cube: rotate the cube'\n triggers:\n trigger: event\n event_type: deconz_event\n event_data:\n id: mi_magic_cube\n variables:\n event: '{{ trigger.event.data.event }}'\n conditions: '{{ (event | string)[1:-1] != ''00'' or event < 0 }}'\n actions:\n choose:\n - conditions:\n condition: state\n entity_id: input_select.cube_mode\n state: Hue\n sequence:\n - variables:\n hue_sat: '{{ state_attr(''light.sphere'', ''hs_color'') or [30, 56] }}'\n - action: light.turn_on\n entity_id: light.living_room_lights\n data:\n hs_color:\n - '{% set delta = event / 200 %} {% set new_hue = [([0, (hue_sat[0] + delta)]|max),\n 360]|min %} {{ new_hue|round(3) }}\n\n '\n - '{{ hue_sat[1] }}'\n - conditions:\n condition: state\n entity_id: input_select.cube_mode\n state: Brightness\n sequence:\n action: light.turn_on\n entity_id: light.living_room_lights\n data:\n brightness: '{% set brightness = state_attr(''light.sphere'', ''brightness'')\n %} {% set delta = event / 450 %} {% set new_brightness = [([0, (brightness\n + delta)]|max), 255]|min %} {{ new_brightness|int(0) }}\n\n '\n - conditions:\n condition: state\n entity_id: input_select.cube_mode\n state: Volume\n sequence:\n - action: media_player.volume_set\n entity_id: media_player.kef_ls50\n data:\n volume_level: '{% set max_change = 0.15 %} {% set dV = [event / 100 / 900,\n max_change] | min %} {{ (states.media_player.kef_ls50.attributes.volume_level\n + dV)|round(2) }}\n\n '\n - condition: state\n entity_id: media_player.tv\n state: 'on'\n - action: notify.tv\n data:\n message: 'Volume set to {{ state_attr(\"media_player.kef_ls50\", \"volume_level\")\n }}\n\n '",
|
|
"config": [
|
|
{
|
|
"name": "tv",
|
|
"room": "living_room",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.tv",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "living room lights",
|
|
"room": "living_room",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.living_room_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "kef ls50",
|
|
"room": "living_room",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.kef_ls50",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "cube mode",
|
|
"room": "living_room",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.cube_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "sphere light",
|
|
"room": "living_room",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.sphere",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Doorbell: click the button'",
|
|
"automation": "- alias: 'Doorbell: click the button'\n initial_state: true\n triggers:\n trigger: event\n event_type: deconz_event\n event_data:\n id: smart_switch_doorbell\n event: 1002\n actions:\n - action: light.turn_on\n data:\n flash: short\n entity_id: all\n - action: notify.all_iphones\n data:\n title: Doorbell\n message: Someone in front of the door!\n - condition: state\n entity_id: media_player.tv\n state: 'on'\n - action: notify.tv\n data:\n message: Someone in front of the door!",
|
|
"config": [
|
|
{
|
|
"name": "tv",
|
|
"room": "living_room",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.tv",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "All entities group",
|
|
"room": null,
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "all",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Frontend: turn on dark mode'",
|
|
"automation": "- alias: 'Frontend: turn on dark mode'\n triggers:\n - trigger: time\n at: '20:00'\n - trigger: sun\n event: sunset\n conditions: '{{ is_state(''input_boolean.dark_mode'', ''off'') }}'\n actions:\n entity_id: input_boolean.dark_mode\n action: input_boolean.turn_on",
|
|
"config": [
|
|
{
|
|
"name": "dark mode",
|
|
"room": "system",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.dark_mode",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Frontend: turn on light mode'",
|
|
"automation": "- alias: 'Frontend: turn on light mode'\n triggers:\n - trigger: time\n at: 06:00\n - trigger: sun\n event: sunrise\n conditions: '{{ is_state(''input_boolean.dark_mode'', ''on'') }}'\n actions:\n entity_id: input_boolean.dark_mode\n action: input_boolean.turn_off",
|
|
"config": [
|
|
{
|
|
"name": "dark mode",
|
|
"room": "system",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.dark_mode",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Frontend: change theme'",
|
|
"automation": "- alias: 'Frontend: change theme'\n triggers:\n - trigger: state\n entity_id: input_select.theme\n - trigger: state\n entity_id: input_boolean.dark_mode\n - trigger: state\n entity_id: input_boolean.theme_alternative\n - trigger: homeassistant\n event: start\n actions:\n action: frontend.set_theme\n data:\n name: '{% set which = \"dark\" if is_state(\"input_boolean.dark_mode\", \"on\") else\n \"light\" -%} {% set name = states(\"input_select.theme\") -%} {% set suffix =\n \"-alternative\" if is_state(\"input_boolean.theme_alternative\", \"on\") else \"\"\n -%} ios-{{ which }}-mode-{{ name }}{{ suffix }}\n\n '",
|
|
"config": [
|
|
{
|
|
"name": "dark mode",
|
|
"room": "system",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.dark_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "theme selector",
|
|
"room": "system",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.theme",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "theme alternative",
|
|
"room": "system",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.theme_alternative",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Leaving: automatically turn off everything'",
|
|
"automation": "- alias: 'Leaving: automatically turn off everything'\n initial_state: 'on'\n triggers:\n - trigger: state\n entity_id: binary_sensor.someone_in_the_house_in_last_hour\n from: 'on'\n to: 'off'\n for: 00:01:00\n - trigger: time_pattern\n hours: /1\n conditions:\n - condition: state\n entity_id:\n - binary_sensor.no_one_home\n - binary_sensor.anything_on\n state: 'on'\n - condition: state\n entity_id:\n - binary_sensor.someone_in_the_house_in_last_hour\n - input_boolean.guest_mode\n state: 'off'\n actions:\n - action: script.leaving\n - action: notify.all_iphones\n data:\n title: Leaving\n message: Everything automatically turned off!",
|
|
"config": [
|
|
{
|
|
"name": "guest mode",
|
|
"room": "system",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.guest_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "no one home",
|
|
"room": "system",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.no_one_home",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "someone in the house in last hour",
|
|
"room": "system",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.someone_in_the_house_in_last_hour",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "anything on",
|
|
"room": "system",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.anything_on",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "All entities group",
|
|
"room": null,
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "all",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Leaving: ask to turn off everything'",
|
|
"automation": "- alias: 'Leaving: ask to turn off everything'\n initial_state: 'on'\n triggers:\n - trigger: state\n entity_id: person.bas\n from: home\n - trigger: state\n entity_id: person.marcella\n from: home\n conditions:\n - condition: state\n entity_id:\n - binary_sensor.no_one_home\n - binary_sensor.anything_on\n state: 'on'\n - condition: state\n entity_id: input_boolean.guest_mode\n state: 'off'\n actions:\n - delay: 00:05:00\n - condition: state\n entity_id: binary_sensor.no_one_home\n state: 'on'\n - action: notify.all_iphones\n data:\n message: No one is home, turn off everything?\n data:\n actions:\n - action: TURN_OFF_EVERYTHING\n title: Turn off everything\n activationMode: background\n authenticationRequired: false\n destructive: true",
|
|
"config": [
|
|
{
|
|
"name": "marcella person",
|
|
"room": "system",
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.marcella",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "guest mode",
|
|
"room": "system",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.guest_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "no one home",
|
|
"room": "system",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.no_one_home",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "anything on",
|
|
"room": "system",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.anything_on",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "bas person",
|
|
"room": "system",
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.bas",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "All entities group",
|
|
"room": null,
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "all",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Leaving: turn off everything after notification'",
|
|
"automation": "- alias: 'Leaving: turn off everything after notification'\n triggers:\n trigger: event\n event_type: mobile_app_notification_action\n event_data:\n action: TURN_OFF_EVERYTHING\n actions:\n action: script.leaving",
|
|
"config": []
|
|
},
|
|
{
|
|
"id": "'Leaving: downstairs Aqara Wireless Mini Switch'",
|
|
"automation": "- alias: 'Leaving: downstairs Aqara Wireless Mini Switch'\n triggers:\n trigger: event\n event_type: deconz_event\n event_data:\n id: smart_switch_door\n event: 1002\n actions:\n - wait_for_trigger:\n trigger: state\n entity_id: binary_sensor.openclose_front_door\n from: 'on'\n to: 'off'\n timeout: 00:01:00\n continue_on_timeout: false\n - action: script.turn_off_everything\n - action: notify.all_iphones\n data:\n title: Bye 👋\n message: See you soon!",
|
|
"config": [
|
|
{
|
|
"name": "front door sensor",
|
|
"room": "hall",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.openclose_front_door",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "All entities group",
|
|
"room": null,
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "all",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Light: turn on living room'",
|
|
"automation": "- alias: 'Light: turn on living room'\n triggers:\n trigger: state\n entity_id: binary_sensor.activity_in_living_room\n to: 'on'\n conditions:\n condition: state\n entity_id: input_boolean.guest_mode\n state: 'off'\n actions:\n action: light.turn_on\n entity_id: light.living_room_lights",
|
|
"config": [
|
|
{
|
|
"name": "living room lights",
|
|
"room": "living_room",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.living_room_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "guest mode",
|
|
"room": "system",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.guest_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Activity in Living Room",
|
|
"room": "Living Room",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.activity_in_living_room",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Light: turn off living room'",
|
|
"automation": "- alias: 'Light: turn off living room'\n triggers:\n - trigger: state\n entity_id: binary_sensor.activity_in_living_room\n to: 'off'\n - trigger: state\n entity_id: input_select.sleep_mode\n from: total\n conditions:\n condition: state\n entity_id: input_boolean.guest_mode\n state: 'off'\n actions:\n action: light.turn_off\n entity_id: light.living_room_lights",
|
|
"config": [
|
|
{
|
|
"name": "sleep mode selector",
|
|
"room": "system",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.sleep_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "living room lights",
|
|
"room": "living_room",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.living_room_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "guest mode",
|
|
"room": "system",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.guest_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Activity in Living Room",
|
|
"room": "Living Room",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.activity_in_living_room",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Light: turn on Chrismas tree'",
|
|
"automation": "- alias: 'Light: turn on Chrismas tree'\n triggers:\n - trigger: state\n entity_id: input_select.sleep_mode\n to:\n - 'off'\n - half\n - trigger: state\n entity_id: binary_sensor.someone_in_the_house_in_last_hour\n to: 'on'\n conditions:\n condition: state\n entity_id: binary_sensor.someone_in_the_house_in_last_hour\n state: 'on'\n actions:\n action: switch.turn_on\n entity_id: switch.christmas_tree",
|
|
"config": [
|
|
{
|
|
"name": "sleep mode selector",
|
|
"room": "system",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.sleep_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "someone in the house in last hour",
|
|
"room": "system",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.someone_in_the_house_in_last_hour",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "christmas tree",
|
|
"room": "living_room",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.christmas_tree",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Light: turn off Chrismas tree'",
|
|
"automation": "- alias: 'Light: turn off Chrismas tree'\n triggers:\n - trigger: state\n entity_id: input_select.sleep_mode\n to: total\n - trigger: state\n entity_id: binary_sensor.someone_in_the_house_in_last_hour\n to: 'off'\n actions:\n action: switch.turn_off\n entity_id: switch.christmas_tree",
|
|
"config": [
|
|
{
|
|
"name": "sleep mode selector",
|
|
"room": "system",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.sleep_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "someone in the house in last hour",
|
|
"room": "system",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.someone_in_the_house_in_last_hour",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "christmas tree",
|
|
"room": "living_room",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.christmas_tree",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Light: toggle dinner area lights'",
|
|
"automation": "- alias: 'Light: toggle dinner area lights'\n triggers:\n trigger: state\n entity_id: binary_sensor.activity_in_dinner_area\n conditions:\n - condition: state\n entity_id: input_boolean.automatic_dinner_area_light\n state: 'on'\n - condition: state\n entity_id: input_select.sleep_mode\n state: 'off'\n - condition: state\n entity_id: input_boolean.guest_mode\n state: 'off'\n actions:\n action: light.turn_{{ trigger.to_state.state }}\n data:\n entity_id: light.dinner_area",
|
|
"config": [
|
|
{
|
|
"name": "sleep mode selector",
|
|
"room": "system",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.sleep_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "guest mode",
|
|
"room": "system",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.guest_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "activity in dinner area",
|
|
"room": "dinner_area",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.activity_in_dinner_area",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "automatic dinner area light",
|
|
"room": "dinner_area",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.automatic_dinner_area_light",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "dinner area light",
|
|
"room": "dinner_area",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.dinner_area",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Light: turn off automatic dinner area lights when turning off lights after",
|
|
"automation": "- alias: 'Light: turn off automatic dinner area lights when turning off lights after\n 18:00'\n conditions:\n - condition: state\n entity_id: input_boolean.automatic_dinner_area_light\n state: 'on'\n - condition: time\n after: '18:00:00'\n triggers:\n trigger: state\n entity_id: light.dinner_area\n to: 'off'\n actions:\n action: input_boolean.turn_off\n entity_id: input_boolean.automatic_dinner_area_light",
|
|
"config": [
|
|
{
|
|
"name": "automatic dinner area light",
|
|
"room": "dinner_area",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.automatic_dinner_area_light",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "dinner area light",
|
|
"room": "dinner_area",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.dinner_area",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Light: reset automatic dinner area lights at 06:00'",
|
|
"automation": "- alias: 'Light: reset automatic dinner area lights at 06:00'\n triggers:\n trigger: time\n at: 06:00:00\n actions:\n action: input_boolean.turn_on\n entity_id: input_boolean.automatic_dinner_area_light",
|
|
"config": [
|
|
{
|
|
"name": "automatic dinner area light",
|
|
"room": "dinner_area",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.automatic_dinner_area_light",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Light: turn on kitchen counter if sleep mode is off'",
|
|
"automation": "- alias: 'Light: turn on kitchen counter if sleep mode is off'\n triggers:\n trigger: state\n entity_id: binary_sensor.activity_in_kitchen\n to: 'on'\n conditions:\n condition: state\n entity_id: input_select.sleep_mode\n state:\n - 'off'\n - half\n actions:\n action: light.turn_on\n entity_id: light.kitchen_counter",
|
|
"config": [
|
|
{
|
|
"name": "sleep mode selector",
|
|
"room": "system",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.sleep_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "activity in kitchen",
|
|
"room": "kitchen",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.activity_in_kitchen",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "kitchen counter",
|
|
"room": "kitchen",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.kitchen_counter",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Light: turn off kitchen counter'",
|
|
"automation": "- alias: 'Light: turn off kitchen counter'\n triggers:\n trigger: state\n entity_id: binary_sensor.activity_in_kitchen\n to: 'off'\n actions:\n action: light.turn_off\n entity_id: light.kitchen_counter",
|
|
"config": [
|
|
{
|
|
"name": "activity in kitchen",
|
|
"room": "kitchen",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.activity_in_kitchen",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "kitchen counter",
|
|
"room": "kitchen",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.kitchen_counter",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Light: reboot kitchen ceiling Shelly'",
|
|
"automation": "- alias: 'Light: reboot kitchen ceiling Shelly'\n triggers:\n trigger: time\n at: 05:00:00\n actions:\n action: shell_command.reboot_kitchen_ceiling",
|
|
"config": []
|
|
},
|
|
{
|
|
"id": "'Light: turn on bathroom'",
|
|
"automation": "- alias: 'Light: turn on bathroom'\n triggers:\n trigger: state\n entity_id: binary_sensor.activity_in_bathroom\n to: 'on'\n conditions: '{{ states(''input_select.sleep_mode'') != ''total'' }}'\n actions:\n action: light.turn_on\n data:\n entity_id: light.bathroom_lights\n transition: 1",
|
|
"config": [
|
|
{
|
|
"name": "sleep mode selector",
|
|
"room": "system",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.sleep_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "activity in bathroom",
|
|
"room": "bathroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.activity_in_bathroom",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "bathroom lights",
|
|
"room": "bathroom",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.bathroom_lights",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Light: turn off bathroom'",
|
|
"automation": "- alias: 'Light: turn off bathroom'\n triggers:\n trigger: state\n entity_id: binary_sensor.activity_in_bathroom\n to: 'off'\n actions:\n action: light.turn_off\n data:\n entity_id: light.bathroom_lights\n transition: 1",
|
|
"config": [
|
|
{
|
|
"name": "activity in bathroom",
|
|
"room": "bathroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.activity_in_bathroom",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "bathroom lights",
|
|
"room": "bathroom",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.bathroom_lights",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Light: turn on hall'",
|
|
"automation": "- alias: 'Light: turn on hall'\n mode: parallel\n triggers:\n - trigger: state\n entity_id: binary_sensor.activity_in_hall\n from: 'off'\n to: 'on'\n - trigger: state\n entity_id: binary_sensor.openclose_front_door\n from: 'off'\n to: 'on'\n variables:\n off_lights: \"{% set hall_lights = [\\\"light.hall_2\\\"]\\n if is_state('input_select.sleep_mode',\\\n \\ 'total')\\n else [\\\"light.hall_1\\\", \\\"light.hall_2\\\", \\\"light.hall_3\\\"] %}\\n\\\n {{ expand(state_attr(\\\"light.stairs_lights\\\", \\\"entity_id\\\") + hall_lights)\\n\\\n \\ | selectattr(\\\"state\\\", \\\"eq\\\", \\\"off\\\")\\n | map(attribute=\\\"entity_id\\\"\\\n )\\n | list }}\\n\"\n conditions: '{{ (off_lights | length) > 0 }}'\n actions:\n alias: Turn on lights that are off\n repeat:\n count: '{{ off_lights | length }}'\n sequence:\n action: script.turn_on_lights\n data:\n entity_id: '{{ off_lights[repeat.index - 1] }}'",
|
|
"config": [
|
|
{
|
|
"name": "sleep mode selector",
|
|
"room": "system",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.sleep_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "stairs lights",
|
|
"room": "stairs",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.stairs_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "front door sensor",
|
|
"room": "hall",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.openclose_front_door",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "activity in hall",
|
|
"room": "hall",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.activity_in_hall",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "hall 1",
|
|
"room": "hall",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.hall_1",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "hall 2",
|
|
"room": "hall",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.hall_2",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "hall 3",
|
|
"room": "hall",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.hall_3",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "All entities group",
|
|
"room": null,
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "all",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Light: turn off hall'",
|
|
"automation": "- alias: 'Light: turn off hall'\n triggers:\n trigger: state\n entity_id: binary_sensor.activity_in_hall\n from: 'on'\n to: 'off'\n actions:\n action: light.turn_off\n data:\n entity_id:\n - light.stairs_lights\n - light.hall_lights\n transition: 1",
|
|
"config": [
|
|
{
|
|
"name": "hall lights",
|
|
"room": "hall",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.hall_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "stairs lights",
|
|
"room": "stairs",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.stairs_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "activity in hall",
|
|
"room": "hall",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.activity_in_hall",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "All entities group",
|
|
"room": null,
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "all",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Light: automatically turn on the bedroom'",
|
|
"automation": "- alias: 'Light: automatically turn on the bedroom'\n triggers:\n trigger: state\n entity_id: binary_sensor.activity_in_master_bedroom\n to: 'on'\n variables:\n off_lights: \"{{ expand(state_attr(\\\"light.bedroom_lights\\\", \\\"entity_id\\\"))\\n\\\n \\ | selectattr(\\\"state\\\", \\\"eq\\\", \\\"off\\\")\\n | map(attribute=\\\"entity_id\\\"\\\n )\\n | list }}\\n\"\n conditions:\n - '{{ (off_lights | length) > 0 }}'\n - condition: state\n entity_id: input_select.sleep_mode\n state: 'off'\n - condition: state\n entity_id: input_boolean.automatic_bedroom_lights\n state: 'on'\n actions:\n - alias: Turn on lights that are off\n repeat:\n count: '{{ off_lights | length }}'\n sequence:\n action: script.turn_on_lights\n data:\n entity_id: '{{ off_lights[repeat.index - 1] }}'\n - action: input_boolean.turn_on\n entity_id: input_boolean.bedroom_lights_automatically_turned_on",
|
|
"config": [
|
|
{
|
|
"name": "sleep mode selector",
|
|
"room": "system",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.sleep_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "bedroom lights",
|
|
"room": "bedroom",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.bedroom_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "activity in master bedroom",
|
|
"room": "bedroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.activity_in_master_bedroom",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "automatic bedroom lights",
|
|
"room": "bedroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.automatic_bedroom_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "bedroom lights automatically turned on",
|
|
"room": "bedroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.bedroom_lights_automatically_turned_on",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "All entities group",
|
|
"room": null,
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "all",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Light: automatically turn off the bedroom'",
|
|
"automation": "- alias: 'Light: automatically turn off the bedroom'\n initial_state: 'on'\n triggers:\n trigger: state\n entity_id: binary_sensor.activity_in_master_bedroom\n to: 'off'\n for: 00:08:00\n conditions:\n - condition: state\n entity_id: input_boolean.bedroom_lights_automatically_turned_on\n state: 'on'\n - condition: state\n entity_id: light.bedroom_lights\n state: 'on'\n - condition: state\n entity_id: input_boolean.automatic_bedroom_lights\n state: 'on'\n actions:\n action: light.turn_off\n entity_id: light.bedroom_lights\n data:\n transition: 10",
|
|
"config": [
|
|
{
|
|
"name": "bedroom lights",
|
|
"room": "bedroom",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.bedroom_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "activity in master bedroom",
|
|
"room": "bedroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.activity_in_master_bedroom",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "automatic bedroom lights",
|
|
"room": "bedroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.automatic_bedroom_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "bedroom lights automatically turned on",
|
|
"room": "bedroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.bedroom_lights_automatically_turned_on",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "All entities group",
|
|
"room": null,
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "all",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Light: turn off bedroom lights auto switch'",
|
|
"automation": "- alias: 'Light: turn off bedroom lights auto switch'\n mode: parallel\n triggers:\n - trigger: state\n entity_id: light.bedroom_lights\n to: 'off'\n - trigger: event\n event_type: deconz_event\n event_data:\n id: dimmer_switch_bedroom\n - trigger: event\n event_type: deconz_event\n event_data:\n id: smart_switch_bedroom_bas\n - trigger: event\n event_type: deconz_event\n event_data:\n id: smart_switch_bedroom_marcella\n conditions:\n condition: state\n entity_id: input_boolean.bedroom_lights_automatically_turned_on\n state: 'on'\n actions:\n action: input_boolean.turn_off\n entity_id: input_boolean.bedroom_lights_automatically_turned_on",
|
|
"config": [
|
|
{
|
|
"name": "bedroom lights",
|
|
"room": "bedroom",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.bedroom_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "bedroom lights automatically turned on",
|
|
"room": "bedroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.bedroom_lights_automatically_turned_on",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "All entities group",
|
|
"room": null,
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "all",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Light: turn on automatic_bedroom_lights switch'",
|
|
"automation": "- alias: 'Light: turn on automatic_bedroom_lights switch'\n triggers:\n trigger: time\n at: '12:00'\n actions:\n entity_id: input_boolean.automatic_bedroom_lights\n action: input_boolean.turn_on",
|
|
"config": [
|
|
{
|
|
"name": "automatic bedroom lights",
|
|
"room": "bedroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.automatic_bedroom_lights",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Light: turn off bedroom after 2 hours of inactivity'",
|
|
"automation": "- alias: 'Light: turn off bedroom after 2 hours of inactivity'\n triggers:\n trigger: state\n entity_id: binary_sensor.activity_in_master_bedroom\n from: 'on'\n to: 'off'\n for: 02:00:00\n conditions: '{{ is_state(''light.bedroom_lights'', ''on'') }}'\n actions:\n action: light.turn_off\n data:\n entity_id: light.bedroom_lights",
|
|
"config": [
|
|
{
|
|
"name": "bedroom lights",
|
|
"room": "bedroom",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.bedroom_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "activity in master bedroom",
|
|
"room": "bedroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.activity_in_master_bedroom",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Light: reboot bedroom ceiling Shelly'",
|
|
"automation": "- alias: 'Light: reboot bedroom ceiling Shelly'\n triggers:\n trigger: time\n at: '13:00:00'\n actions:\n action: shell_command.reboot_bedroom_ceiling",
|
|
"config": []
|
|
},
|
|
{
|
|
"id": "'Light: Update input_select when bedroom lights turned off'",
|
|
"automation": "- alias: 'Light: Update input_select when bedroom lights turned off'\n description: Set the input_select.last_script_bedroom such that colored lights will\n be chosen\n triggers:\n trigger: state\n entity_id: light.bedroom_lights\n to: 'off'\n actions:\n action: input_select.select_option\n data:\n entity_id: input_select.last_script_bedroom\n option: script.white_lights_bedroom",
|
|
"config": [
|
|
{
|
|
"name": "bedroom lights",
|
|
"room": "bedroom",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.bedroom_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "last script bedroom",
|
|
"room": "bedroom",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.last_script_bedroom",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Light: turn on utility room / garage outside'",
|
|
"automation": "- alias: 'Light: turn on utility room / garage outside'\n triggers:\n - trigger: state\n to: 'on'\n entity_id: binary_sensor.activity_in_utility_room\n - trigger: state\n to: 'on'\n entity_id: binary_sensor.activity_outside_front_door\n - trigger: state\n to: 'on'\n entity_id: binary_sensor.activity_outside_garage\n actions:\n - action: light.turn_on\n data:\n entity_id:\n - light.utility_room\n transition: 1\n - if: '{{ state_attr(''sun.sun'', ''elevation'') < 6 }}'\n then:\n - action: light.turn_on\n data:\n entity_id:\n - light.outside_front_door\n - light.garage_outside\n - action: switch.turn_on\n data:\n entity_id: switch.string_lights_outside",
|
|
"config": [
|
|
{
|
|
"name": "activity in utility room",
|
|
"room": "utility_room",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.activity_in_utility_room",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "activity outside front door",
|
|
"room": "outside",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.activity_outside_front_door",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "activity outside garage",
|
|
"room": "garage",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.activity_outside_garage",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "utility room light",
|
|
"room": "utility_room",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.utility_room",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "outside front door light",
|
|
"room": "outside",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.outside_front_door",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "garage outside light",
|
|
"room": "garage",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.garage_outside",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "string lights outside",
|
|
"room": "outside",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.string_lights_outside",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Light: turn off utility room / garage outside'",
|
|
"automation": "- alias: 'Light: turn off utility room / garage outside'\n triggers:\n - trigger: state\n to: 'off'\n entity_id: binary_sensor.activity_in_utility_room\n - trigger: state\n to: 'off'\n entity_id: binary_sensor.activity_outside_front_door\n - trigger: state\n to: 'off'\n entity_id: binary_sensor.activity_outside_garage\n actions:\n - if: '{{ is_state(''binary_sensor.activity_in_utility_room'', ''off'') }}'\n then:\n - action: light.turn_off\n entity_id: light.utility_room\n - if: '{{ is_state(''binary_sensor.activity_outside_house'', ''off'') }}'\n then:\n - action: light.turn_off\n data:\n entity_id:\n - light.outside_front_door\n - light.garage_outside\n - action: switch.turn_off\n data:\n entity_id: switch.string_lights_outside",
|
|
"config": [
|
|
{
|
|
"name": "activity in utility room",
|
|
"room": "utility_room",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.activity_in_utility_room",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "activity outside front door",
|
|
"room": "outside",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.activity_outside_front_door",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "activity outside garage",
|
|
"room": "garage",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.activity_outside_garage",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "utility room light",
|
|
"room": "utility_room",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.utility_room",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "outside front door light",
|
|
"room": "outside",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.outside_front_door",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "garage outside light",
|
|
"room": "garage",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.garage_outside",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "string lights outside",
|
|
"room": "outside",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.string_lights_outside",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Activity Outside House",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.activity_outside_house",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Light: turn on the outside front light'",
|
|
"automation": "- alias: 'Light: turn on the outside front light'\n triggers:\n - trigger: sun\n event: sunset\n offset: -01:00:00\n - trigger: sun\n event: sunrise\n offset: -02:00:00\n actions:\n action: light.turn_on\n entity_id: light.front_house",
|
|
"config": [
|
|
{
|
|
"name": "front house light",
|
|
"room": "outside",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.front_house",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Light: turn off the outside front light'",
|
|
"automation": "- alias: 'Light: turn off the outside front light'\n triggers:\n - trigger: time\n at: 01:00:00\n - trigger: sun\n event: sunrise\n offset: +01:00:00\n actions:\n action: light.turn_off\n entity_id: light.front_house",
|
|
"config": [
|
|
{
|
|
"name": "front house light",
|
|
"room": "outside",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.front_house",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Light: toggle guest room'",
|
|
"automation": "- alias: 'Light: toggle guest room'\n triggers:\n trigger: state\n entity_id: binary_sensor.activity_in_guest_room\n conditions:\n - condition: state\n entity_id: input_boolean.guest_mode\n state: 'off'\n actions:\n action: light.turn_{{ trigger.to_state.state }}\n data:\n entity_id: light.guest_room_lights\n transition: 1",
|
|
"config": [
|
|
{
|
|
"name": "guest mode",
|
|
"room": "system",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.guest_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "activity in guest room",
|
|
"room": "guest_room",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.activity_in_guest_room",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "guest room lights",
|
|
"room": "guest_room",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.guest_room_lights",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Light: toggle baby room'",
|
|
"automation": "- alias: 'Light: toggle baby room'\n triggers:\n trigger: state\n entity_id: binary_sensor.activity_in_baby_room\n actions:\n - action: light.turn_{{ trigger.to_state.state }}\n data:\n entity_id: light.baby_sphere\n - action: light.turn_{{ trigger.to_state.state }}\n data:\n entity_id: light.baby_room_lights\n transition: 1",
|
|
"config": [
|
|
{
|
|
"name": "baby room lights",
|
|
"room": "baby_room",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.baby_room_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "activity in baby room",
|
|
"room": "baby_room",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.activity_in_baby_room",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "baby sphere",
|
|
"room": "baby_room",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.baby_sphere",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Baby Room Light",
|
|
"room": "Baby Room",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.baby_room",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Light: turn off living room (extra check)'",
|
|
"automation": "- alias: 'Light: turn off living room (extra check)'\n description: In case the other automation failed\n triggers:\n trigger: time_pattern\n minutes: /59\n conditions:\n - condition: state\n entity_id: binary_sensor.activity_in_living_room\n state: 'off'\n - condition: state\n entity_id: light.living_room_lights\n state: 'on'\n actions:\n action: light.turn_off\n entity_id: light.living_room_lights",
|
|
"config": [
|
|
{
|
|
"name": "living room lights",
|
|
"room": "living_room",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.living_room_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Activity in Living Room",
|
|
"room": "Living Room",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.activity_in_living_room",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Light: turn off guest room (extra check)'",
|
|
"automation": "- alias: 'Light: turn off guest room (extra check)'\n description: In case the other automation failed\n triggers:\n trigger: time_pattern\n minutes: /10\n conditions:\n - condition: state\n entity_id: binary_sensor.activity_in_guest_room\n state: 'off'\n - condition: state\n entity_id: light.guest_room_lights\n state: 'on'\n actions:\n action: light.turn_off\n entity_id: light.guest_room_lights",
|
|
"config": [
|
|
{
|
|
"name": "activity in guest room",
|
|
"room": "guest_room",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.activity_in_guest_room",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "guest room lights",
|
|
"room": "guest_room",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.guest_room_lights",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Light: turn off baby room (extra check)'",
|
|
"automation": "- alias: 'Light: turn off baby room (extra check)'\n description: In case the other automation failed\n triggers:\n trigger: time_pattern\n minutes: /10\n conditions:\n - condition: state\n entity_id: binary_sensor.activity_in_baby_room\n state: 'off'\n - condition: or\n conditions:\n - condition: state\n entity_id: light.baby_sphere\n state: 'on'\n - condition: state\n entity_id: light.baby_room_lights\n state: 'on'\n actions:\n action: light.turn_off\n entity_id:\n - light.baby_room_lights",
|
|
"config": [
|
|
{
|
|
"name": "baby room lights",
|
|
"room": "baby_room",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.baby_room_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "activity in baby room",
|
|
"room": "baby_room",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.activity_in_baby_room",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "baby sphere",
|
|
"room": "baby_room",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.baby_sphere",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Baby Room Light",
|
|
"room": "Baby Room",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.baby_room",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Light: turn off bedroom (extra check)'",
|
|
"automation": "- alias: 'Light: turn off bedroom (extra check)'\n description: In case the other automation failed\n triggers:\n trigger: time_pattern\n minutes: /30\n conditions:\n - condition: state\n entity_id: binary_sensor.activity_in_master_bedroom\n state: 'off'\n - condition: state\n entity_id: input_boolean.automatic_bedroom_lights\n state: 'on'\n - condition: state\n entity_id: input_boolean.bedroom_lights_automatically_turned_on\n state: 'on'\n actions:\n - action: light.turn_off\n entity_id: light.bedroom_lights\n - action: light.turn_off\n entity_id: input_boolean.bedroom_lights_automatically_turned_on",
|
|
"config": [
|
|
{
|
|
"name": "bedroom lights",
|
|
"room": "bedroom",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.bedroom_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "activity in master bedroom",
|
|
"room": "bedroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.activity_in_master_bedroom",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "automatic bedroom lights",
|
|
"room": "bedroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.automatic_bedroom_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "bedroom lights automatically turned on",
|
|
"room": "bedroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.bedroom_lights_automatically_turned_on",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "All entities group",
|
|
"room": null,
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "all",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Light: turn off utility room / garage (extra check)'",
|
|
"automation": "- alias: 'Light: turn off utility room / garage (extra check)'\n description: In case the other automation failed\n triggers:\n trigger: time_pattern\n minutes: /10\n conditions:\n - condition: state\n entity_id: binary_sensor.activity_in_utility_room\n state: 'off'\n - condition: state\n entity_id: binary_sensor.activity_outside_front_door\n state: 'off'\n - condition: state\n entity_id: binary_sensor.activity_outside_garage\n state: 'off'\n - condition: or\n conditions:\n - condition: state\n entity_id: light.utility_room\n state: 'on'\n - condition: state\n entity_id: light.garage_outside\n state: 'on'\n - condition: state\n entity_id: light.outside_front_door\n state: 'on'\n actions:\n action: light.turn_off\n entity_id:\n - light.utility_room\n - light.garage_outside\n - light.outside_front_door",
|
|
"config": [
|
|
{
|
|
"name": "activity in utility room",
|
|
"room": "utility_room",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.activity_in_utility_room",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "activity outside front door",
|
|
"room": "outside",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.activity_outside_front_door",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "activity outside garage",
|
|
"room": "garage",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.activity_outside_garage",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "utility room light",
|
|
"room": "utility_room",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.utility_room",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "outside front door light",
|
|
"room": "outside",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.outside_front_door",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "garage outside light",
|
|
"room": "garage",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.garage_outside",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Light: Update Zigbee2MQTT lights input_select options'",
|
|
"automation": "- alias: 'Light: Update Zigbee2MQTT lights input_select options'\n triggers:\n trigger: mqtt\n topic: zigbee2mqtt/bridge/devices\n actions:\n - variables:\n devices: '{{ trigger.payload_json }}'\n - variables:\n z2m_lights: \"{% set ns = namespace(lights=[]) %} {% for device in devices %}\\n\\\n \\ {% if device.definition is not none %}\\n {% for expose in device.definition.exposes\\\n \\ %}\\n {% if expose.type == 'light' %}\\n {% set light_name = device.friendly_name\\\n \\ %}\\n {% set ns.lights = ns.lights + [light_name] %}\\n {% endif\\\n \\ %}\\n {% endfor %}\\n {% endif %}\\n{% endfor %} {{ ns.lights }}\"\n - action: input_select.set_options\n target:\n entity_id: input_select.z2m_lights\n data:\n options: '{{ z2m_lights }}'",
|
|
"config": [
|
|
{
|
|
"name": "z2m lights selector",
|
|
"room": "system",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.z2m_lights",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Light: Update Zigbee2MQTT Lights State'",
|
|
"automation": "- alias: 'Light: Update Zigbee2MQTT Lights State'\n description: Refresh the state of all Zigbee2MQTT lights\n triggers:\n trigger: time_pattern\n minutes: /5\n actions:\n action: script.sync_z2m_to_ha_lights\n mode: single",
|
|
"config": [
|
|
{
|
|
"name": "All entities group",
|
|
"room": null,
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "all",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Lovelace: convert lovelace.json to lovelace-ui.yaml'",
|
|
"automation": "- alias: 'Lovelace: convert lovelace.json to lovelace-ui.yaml'\n initial_state: 'on'\n triggers:\n trigger: state\n entity_id: sensor.lovelace\n actions:\n - action: shell_command.convert_lovelace\n - action: shell_command.chores",
|
|
"config": [
|
|
{
|
|
"name": "Lovelace",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.lovelace",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Mailbox: the mailbox was opened'",
|
|
"automation": "- alias: 'Mailbox: the mailbox was opened'\n description: 'In the UI show the `input_boolean.mailbox_full`. It needs to\n\n be manually switched off after getting the mail.\"\n\n '\n triggers:\n - trigger: state\n entity_id: binary_sensor.mailbox_vibration\n to: 'on'\n conditions:\n - condition: state\n entity_id: input_boolean.mailbox_full\n state: 'off'\n actions:\n - action: notify.all_iphones\n data:\n title: Mailbox\n message: Received mail in the mailbox!\n - action: input_boolean.turn_on\n data:\n entity_id: input_boolean.mailbox_full",
|
|
"config": [
|
|
{
|
|
"name": "mailbox vibration",
|
|
"room": "outside",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.mailbox_vibration",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "mailbox full",
|
|
"room": "outside",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.mailbox_full",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "All entities group",
|
|
"room": null,
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "all",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Media player: turn on Opt when TV is on and Spotify is not playing and not",
|
|
"automation": "- alias: 'Media player: turn on Opt when TV is on and Spotify is not playing and not\n Usb'\n description: 'The speaker is connected via an optical cable to the TV. Whenever\n the speakers\n\n aren''t playing Spotify (via WiFi) directly, switch the source of the speakers\n\n to \"Opt\".\n\n '\n triggers:\n - trigger: state\n entity_id: media_player.tv\n - trigger: state\n entity_id: media_player.spotify\n to: paused\n conditions:\n - condition: state\n entity_id: media_player.tv\n state: 'on'\n - '{{ not is_state_attr(''media_player.kef_ls50'', ''source'', ''Optical Input 1'')\n }}'\n - '{{ not is_state_attr(''media_player.kef_ls50'', ''source'', ''HDMI ARC'') }}'\n - '{{ not is_state_attr(''media_player.tv'', ''source'', ''GALLERY'') }}'\n - \"{{ not (is_state_attr('media_player.kef_ls50', 'source', 'Usb')\\n and\\\n \\ is_state_attr('media_player.tv', 'source', 'HDMI 3')) }}\\n\"\n - \"{{ not (is_state_attr('media_player.spotify', 'source', 'KEF LS50')\\n \\\n \\ and is_state('media_player.spotify', 'playing')) }}\\n\"\n actions:\n action: media_player.select_source\n entity_id: media_player.kef_ls50\n data:\n source: Optical Input 1",
|
|
"config": [
|
|
{
|
|
"name": "tv",
|
|
"room": "living_room",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.tv",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "spotify",
|
|
"room": "living_room",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.spotify",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "kef ls50",
|
|
"room": "living_room",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.kef_ls50",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Media player: turn off speakers when turning off TV'",
|
|
"automation": "- alias: 'Media player: turn off speakers when turning off TV'\n triggers:\n trigger: state\n entity_id: media_player.tv\n to: 'off'\n conditions:\n condition: state\n entity_id: media_player.kef_ls50\n state: 'on'\n actions:\n - action: homeassistant.update_entity\n entity_id: media_player.kef_ls50\n - condition: template\n value_template: \"{{ is_state_attr(\\\"media_player.kef_ls50\\\", \\\"source\\\", \\\"HDMI\\\n \\ ARC\\\")\\n or is_state_attr(\\\"media_player.kef_ls50\\\", \\\"source\\\", \\\"Optical\\\n \\ Input 1\\\") }}\\n\"\n - action: media_player.turn_off\n entity_id: media_player.kef_ls50",
|
|
"config": [
|
|
{
|
|
"name": "tv",
|
|
"room": "living_room",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.tv",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "kef ls50",
|
|
"room": "living_room",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.kef_ls50",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Media player: if speakers off and TV on, turn on the speaker on TV state",
|
|
"automation": "- alias: 'Media player: if speakers off and TV on, turn on the speaker on TV state\n change'\n triggers:\n trigger: state\n entity_id: media_player.tv\n conditions:\n - condition: state\n entity_id: media_player.kef_ls50\n state: 'off'\n - condition: state\n entity_id: media_player.tv\n state: 'on'\n - \"{{ trigger.from_state.state != trigger.to_state.state\\n or trigger.from_state.attributes[\\\"\\\n volume_level\\\"] != trigger.to_state.attributes[\\\"volume_level\\\"]\\n or trigger.from_state.attributes[\\\"\\\n source\\\"] != trigger.to_state.attributes[\\\"source\\\"] }}\\n\"\n actions:\n - action: media_player.turn_on\n entity_id: media_player.kef_ls50\n - action: media_player.select_source\n entity_id: media_player.kef_ls50\n data:\n source: Optical Input 1",
|
|
"config": [
|
|
{
|
|
"name": "tv",
|
|
"room": "living_room",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.tv",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "kef ls50",
|
|
"room": "living_room",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.kef_ls50",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Media player: update Spotify entity when TV is on every 5 seconds'",
|
|
"automation": "- alias: 'Media player: update Spotify entity when TV is on every 5 seconds'\n triggers:\n trigger: time_pattern\n seconds: /5\n conditions:\n - condition: state\n entity_id: media_player.spotify\n state: playing\n - condition: state\n entity_id: media_player.tv\n state: 'on'\n actions:\n action: homeassistant.update_entity\n entity_id: media_player.spotify",
|
|
"config": [
|
|
{
|
|
"name": "tv",
|
|
"room": "living_room",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.tv",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "spotify",
|
|
"room": "living_room",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.spotify",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Media player: sync KEF LS50 and TV volume'",
|
|
"automation": "- alias: 'Media player: sync KEF LS50 and TV volume'\n mode: single\n max_exceeded: silent\n triggers:\n - trigger: state\n entity_id: media_player.kef_ls50\n attribute: volume_level\n - trigger: state\n entity_id: media_player.tv\n attribute: volume_level\n conditions:\n - '{{ trigger.to_state.state != ''off'' }}'\n - '{{ state_attr(''media_player.kef_ls50'', ''source'') in (''Optical Input 1'',\n ''HDMI ARC'', ''Usb'') }}'\n actions:\n repeat:\n sequence:\n - action: media_player.volume_set\n data:\n entity_id: 'media_player.{{ \"tv\" if (trigger.entity_id == \"media_player.kef_ls50\")\n else \"kef_ls50\" }}\n\n '\n volume_level: '{{ state_attr(trigger.entity_id, \"volume_level\") }}\n\n '\n - delay:\n milliseconds: 200\n until:\n - \"{{ state_attr(\\\"media_player.tv\\\", \\\"volume_level\\\") == state_attr(\\\"media_player.kef_ls50\\\"\\\n , \\\"volume_level\\\")\\n or not (is_state(\\\"media_player.tv\\\", \\\"on\\\") and\\\n \\ is_state(\\\"media_player.kef_ls50\\\", \\\"on\\\")) }}\\n\"",
|
|
"config": [
|
|
{
|
|
"name": "tv",
|
|
"room": "living_room",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.tv",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "kef ls50",
|
|
"room": "living_room",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.kef_ls50",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Media player: automatically turn off TV and Xbox after two hours of inactivity'",
|
|
"automation": "- alias: 'Media player: automatically turn off TV and Xbox after two hours of inactivity'\n triggers:\n trigger: state\n entity_id: binary_sensor.motion_sensor_living_room_klok\n to: 'off'\n for: 02:00:00\n actions:\n - action: media_player.turn_off\n entity_id: media_player.living_room_xbox\n - action: media_player.turn_off\n entity_id: media_player.tv",
|
|
"config": [
|
|
{
|
|
"name": "tv",
|
|
"room": "living_room",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.tv",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "living room xbox",
|
|
"room": "living_room",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.living_room_xbox",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "All entities group",
|
|
"room": null,
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "all",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Motion Sensor Living Room Klok",
|
|
"room": "Living Room",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.motion_sensor_living_room_klok",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Media player: Turn On Living Room TV with WakeOnLan'",
|
|
"automation": "- alias: 'Media player: Turn On Living Room TV with WakeOnLan'\n triggers:\n trigger: webostv.turn_on\n entity_id: media_player.tv\n actions:\n - action: wake_on_lan.send_magic_packet\n data:\n mac: '!secret tv_mac_address'",
|
|
"config": [
|
|
{
|
|
"name": "tv",
|
|
"room": "living_room",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.tv",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Music: start playlist'",
|
|
"automation": "- alias: 'Music: start playlist'\n initial_state: 'on'\n triggers:\n trigger: state\n entity_id: input_boolean.start_the_music\n from: 'off'\n to: 'on'\n actions:\n - action: input_boolean.turn_off\n entity_id: input_boolean.start_the_music\n - action: script.start_spotify_playlist_of_nearest_person\n data:\n source: KEF LS50\n entity_id: media_player.kef_ls50",
|
|
"config": [
|
|
{
|
|
"name": "kef ls50",
|
|
"room": "living_room",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.kef_ls50",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "start the music",
|
|
"room": "living_room",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.start_the_music",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Music: switch music from iPhone to speakers if coming home'",
|
|
"automation": "- alias: 'Music: switch music from iPhone to speakers if coming home'\n triggers:\n trigger: state\n entity_id: binary_sensor.openclose_front_door\n from: 'off'\n to: 'on'\n conditions:\n - condition: state\n entity_id: person.marcella\n state: not_home\n - condition: state\n entity_id: input_boolean.guest_mode\n state: 'off'\n - '{{ is_state_attr(''media_player.spotify'', ''source'', ''basnijholt-iphone'')\n }}'\n - '{{ is_state(''media_player.spotify'', ''playing'') }}'\n - '{{ as_timestamp(now()) - as_timestamp(states.person.bas.last_changed) < 5 * 60\n }}'\n - condition: numeric_state\n entity_id: sensor.home_nearest_distance\n below: 2\n actions:\n - action: media_player.turn_on\n entity_id: media_player.kef_ls50\n - action: media_player.select_source\n entity_id: media_player.kef_ls50\n data:\n source: Wifi\n - action: media_player.select_source\n entity_id: media_player.spotify\n data:\n source: KEF LS50",
|
|
"config": [
|
|
{
|
|
"name": "front door sensor",
|
|
"room": "hall",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.openclose_front_door",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "marcella person",
|
|
"room": "system",
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.marcella",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "guest mode",
|
|
"room": "system",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.guest_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "spotify",
|
|
"room": "living_room",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.spotify",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "kef ls50",
|
|
"room": "living_room",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.kef_ls50",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "home nearest distance",
|
|
"room": "system",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.home_nearest_distance",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "bas person",
|
|
"room": "system",
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.bas",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Notifications: Marcella leaving work'",
|
|
"automation": "- alias: 'Notifications: Marcella leaving work'\n triggers:\n trigger: state\n entity_id: device_tracker.marcella_iphone_se2\n to: Work Marcella Kirkland\n actions:\n action: notify.iphone_bas\n data:\n title: Leaving\n message: Marcella left work",
|
|
"config": [
|
|
{
|
|
"name": "marcella iphone",
|
|
"room": "system",
|
|
"type": "device_tracker",
|
|
"id": {
|
|
"entity_id": "device_tracker.marcella_iphone",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "marcella iphone se2",
|
|
"room": "system",
|
|
"type": "device_tracker",
|
|
"id": {
|
|
"entity_id": "device_tracker.marcella_iphone_se2",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Notifications: front door has opened'",
|
|
"automation": "- alias: 'Notifications: front door has opened'\n triggers:\n trigger: state\n entity_id: binary_sensor.openclose_front_door\n to: 'on'\n conditions:\n condition: state\n entity_id: input_boolean.front_door_open_warning\n state: 'on'\n actions:\n - action: notify.mobile_app_basnijholt_iphone_13\n data:\n title: Security\n message: Front door opened!\n - action: notify.iphone_bas\n data:\n title: Security\n message: Front door opened!\n - action: input_boolean.turn_off\n entity_id: input_boolean.front_door_open_warning",
|
|
"config": [
|
|
{
|
|
"name": "front door sensor",
|
|
"room": "hall",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.openclose_front_door",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "front door open warning",
|
|
"room": "hall",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.front_door_open_warning",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Notifications: Daily New Word Notification'",
|
|
"automation": "- alias: 'Notifications: Daily New Word Notification'\n triggers:\n - trigger: time\n at: 07:30:00\n actions:\n - action: notify.mobile_app_marcella_iphone_14_pro\n data:\n title: Daily new word\n message: \"{% set words = [\\n \\\"Mama\\\",\\n \\\"Baby\\\",\\n \\\"Dog\\\",\\n \\\"Cat\\\"\\\n ,\\n \\\"Ball\\\",\\n \\\"Car\\\",\\n \\\"Book\\\",\\n \\\"Milk\\\",\\n \\\"Juice\\\",\\n \\\"Water\\\"\\\n ,\\n \\\"Apple\\\",\\n \\\"Banana\\\",\\n \\\"Eat\\\",\\n \\\"More\\\",\\n \\\"No\\\",\\n \\\"Yes\\\"\\\n ,\\n \\\"Please\\\",\\n \\\"Thank you\\\",\\n \\\"Hi\\\",\\n \\\"Bye\\\",\\n \\\"Night-night\\\"\\\n ,\\n \\\"Bath\\\",\\n \\\"Diaper\\\",\\n \\\"Shoe\\\",\\n \\\"Hat\\\",\\n \\\"Ear\\\",\\n \\\"Nose\\\"\\\n ,\\n \\\"Eye\\\",\\n \\\"Hand\\\",\\n] %} {% set word = words | random %} {{ word }}\\n\"\n data:\n actions:\n - action: AGREE_WORD\n title: Great word!\n activationMode: background\n authenticationRequired: true\n destructive: true\n - wait_for_trigger:\n trigger: event\n event_type: mobile_app_notification_action\n event_data:\n action: AGREE_WORD\n timeout: 01:00:00\n continue_on_timeout: false\n - action: notify.mobile_app_marcella_iphone_14_pro\n data:\n message: We all love you! ❤️😘🥰💖💕🌷🌼🌈✨🎉🍀",
|
|
"config": [
|
|
{
|
|
"name": "All entities group",
|
|
"room": null,
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "all",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Plant: problem with Calathea'",
|
|
"automation": "- alias: 'Plant: problem with Calathea'\n triggers:\n - trigger: state\n entity_id: plant.calathea\n to: problem\n - trigger: time\n at: '20:00'\n conditions:\n condition: state\n entity_id: plant.calathea\n state: problem\n actions:\n action: notify.all_iphones\n data:\n title: Plant in trouble! ⚠️☢️☠️\n message: 'You need to give the Calathea 🌳 attention and love: {{ state_attr(\"plant.calathea\",\n \"problem\") }}!\n\n '",
|
|
"config": [
|
|
{
|
|
"name": "calathea plant",
|
|
"room": "living_room",
|
|
"type": "plant",
|
|
"id": {
|
|
"entity_id": "plant.calathea",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "All entities group",
|
|
"room": null,
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "all",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Plant: problem with Monstera'",
|
|
"automation": "- alias: 'Plant: problem with Monstera'\n triggers:\n - trigger: state\n entity_id: plant.monstera\n to: problem\n - trigger: time\n at: '20:00'\n conditions:\n condition: state\n entity_id: plant.monstera\n state: problem\n actions:\n action: notify.all_iphones\n data:\n title: Plant in trouble! ⚠️☢️☠️\n message: 'You need to give the Monstera 🌴 attention and love: {{ state_attr(\"plant.monstera\",\n \"problem\") }}!\n\n '",
|
|
"config": [
|
|
{
|
|
"name": "monstera plant",
|
|
"room": "living_room",
|
|
"type": "plant",
|
|
"id": {
|
|
"entity_id": "plant.monstera",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "All entities group",
|
|
"room": null,
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "all",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Plant: problem with Peace lily'",
|
|
"automation": "- alias: 'Plant: problem with Peace lily'\n triggers:\n - trigger: state\n entity_id: plant.peace_lily\n to: problem\n - trigger: time\n at: '20:00'\n conditions:\n condition: state\n entity_id: plant.peace_lily\n state: problem\n actions:\n action: notify.all_iphones\n data:\n title: Plant in trouble! ⚠️☢️☠️\n message: 'You need to give the Peace lily 🌿 attention and love: {{ state_attr(\"plant.peace_lily\",\n \"problem\") }}!\n\n '",
|
|
"config": [
|
|
{
|
|
"name": "peace lily plant",
|
|
"room": "living_room",
|
|
"type": "plant",
|
|
"id": {
|
|
"entity_id": "plant.peace_lily",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "All entities group",
|
|
"room": null,
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "all",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Security: motion detected but we are not home'",
|
|
"automation": "- alias: 'Security: motion detected but we are not home'\n triggers:\n trigger: state\n entity_id: binary_sensor.motion_detected\n from: 'off'\n to: 'on'\n conditions:\n - condition: state\n entity_id: group.persons\n state: not_home\n - condition: state\n entity_id: vacuum.valetudo_vacuum\n state: docked\n actions:\n - action: notify.all_iphones\n data:\n message: 'Security: motion is detected, but we are not home.'\n data:\n actions:\n - action: SOUND_ALARM\n title: Sound alarm\n activationMode: background\n authenticationRequired: true\n destructive: true\n - wait_for_trigger:\n trigger: event\n event_type: mobile_app_notification_action\n event_data:\n action: SOUND_ALARM\n timeout: 01:00:00\n continue_on_timeout: false\n - action: light.turn_on\n entity_id: all\n data:\n flash: long\n color_name: red",
|
|
"config": [
|
|
{
|
|
"name": "motion detected",
|
|
"room": "system",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.motion_detected",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "vacuum valetudo",
|
|
"room": "living_room",
|
|
"type": "vacuum",
|
|
"id": {
|
|
"entity_id": "vacuum.valetudo_vacuum",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "All entities group",
|
|
"room": null,
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "all",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Persons Group",
|
|
"room": null,
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "group.persons",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Security: front door has been open for more than 5 minutes'",
|
|
"automation": "- alias: 'Security: front door has been open for more than 5 minutes'\n triggers:\n trigger: state\n entity_id: binary_sensor.openclose_front_door\n from: 'off'\n to: 'on'\n for: 00:05:00\n actions:\n action: notify.all_iphones\n data:\n title: Security\n message: The front door has been open for more than 5 minutes.",
|
|
"config": [
|
|
{
|
|
"name": "front door sensor",
|
|
"room": "hall",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.openclose_front_door",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "All entities group",
|
|
"room": null,
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "all",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Security: utility room door has been open for more than 5 minutes'",
|
|
"automation": "- alias: 'Security: utility room door has been open for more than 5 minutes'\n triggers:\n trigger: state\n entity_id: binary_sensor.openclose_front_door\n from: 'off'\n to: 'on'\n for: 00:05:00\n actions:\n action: notify.all_iphones\n data:\n title: Security\n message: The utility room door has been open for more than 5 minutes.",
|
|
"config": [
|
|
{
|
|
"name": "front door sensor",
|
|
"room": "hall",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.openclose_front_door",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "All entities group",
|
|
"room": null,
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "all",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Security: no one is home but high power usage'",
|
|
"automation": "- alias: 'Security: no one is home but high power usage'\n triggers:\n - trigger: state\n entity_id: binary_sensor.no_one_home\n to: 'on'\n - trigger: time_pattern\n minutes: /10\n conditions:\n - condition: state\n entity_id: binary_sensor.no_one_home\n state: 'on'\n - condition: numeric_state\n entity_id: sensor.power_consumption\n above: 0.7\n actions:\n action: notify.all_iphones\n data:\n title: Security\n message: 'No one is home and we are using a lot of energy ({{ states(''sensor.power_consumption'')\n }} kW now)! ⚡️\n\n '",
|
|
"config": [
|
|
{
|
|
"name": "no one home",
|
|
"room": "system",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.no_one_home",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "power consumption",
|
|
"room": "system",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.power_consumption",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "All entities group",
|
|
"room": null,
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "all",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Security: bathroom door has opened'",
|
|
"automation": "- alias: 'Security: bathroom door has opened'\n triggers:\n trigger: state\n entity_id: binary_sensor.openclose_bathroom\n to: 'on'\n conditions:\n condition: state\n entity_id: input_boolean.bathroom_door_open_warning\n state: 'on'\n actions:\n - action: notify.bas\n data:\n title: Security\n message: Office door opened!\n - action: notify.iphone_bas\n data:\n title: Security\n message: Office door opened!\n - action: light.turn_on\n data:\n entity_id:\n - light.philips_go\n - light.desk_led\n flash: short\n - action: input_boolean.turn_off\n entity_id: input_boolean.bathroom_door_open_warning",
|
|
"config": [
|
|
{
|
|
"name": "philips go",
|
|
"room": "bedroom",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.philips_go",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "bathroom door open warning",
|
|
"room": "bathroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.bathroom_door_open_warning",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Bathroom Open/Close",
|
|
"room": "Bathroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.openclose_bathroom",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Desk LED",
|
|
"room": null,
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.desk_led",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Security: activity in master bedroom'",
|
|
"automation": "- alias: 'Security: activity in master bedroom'\n triggers:\n trigger: state\n entity_id: binary_sensor.activity_in_master_bedroom\n to: 'on'\n conditions:\n condition: state\n entity_id: input_boolean.bedroom_activity_warning\n state: 'on'\n actions:\n - action: notify.bas\n data:\n title: Security\n message: Activity bedroom!\n - action: notify.iphone_bas\n data:\n title: Security\n message: Activity bedroom!\n - action: light.turn_on\n data:\n entity_id: light.desk_led\n flash: short\n - action: input_boolean.turn_off\n entity_id: input_boolean.bedroom_activity_warning",
|
|
"config": [
|
|
{
|
|
"name": "activity in master bedroom",
|
|
"room": "bedroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.activity_in_master_bedroom",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "bedroom activity warning",
|
|
"room": "bedroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.bedroom_activity_warning",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Desk LED",
|
|
"room": null,
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.desk_led",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Security: Door to outside open'",
|
|
"automation": "- alias: 'Security: Door to outside open'\n description: ''\n triggers:\n - trigger: state\n entity_id: binary_sensor.door_to_outside_open\n to: 'on'\n for:\n seconds: 15\n actions:\n - repeat:\n while:\n - condition: state\n entity_id: binary_sensor.door_to_outside_open\n state: 'on'\n sequence:\n - action: light.turn_off\n data:\n entity_id:\n - light.garage_outside\n - light.outside_front_door\n - light.bedroom_outside\n - light.utility_room\n - delay:\n seconds: 1\n - action: light.turn_on\n data:\n entity_id:\n - light.garage_outside\n - light.outside_front_door\n - light.bedroom_outside\n - light.utility_room\n brightness_pct: 100\n - delay:\n seconds: 1\n mode: single",
|
|
"config": [
|
|
{
|
|
"name": "utility room light",
|
|
"room": "utility_room",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.utility_room",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "outside front door light",
|
|
"room": "outside",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.outside_front_door",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "garage outside light",
|
|
"room": "garage",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.garage_outside",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "door to outside open",
|
|
"room": "outside",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.door_to_outside_open",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Bedroom Outside Light",
|
|
"room": "Bedroom",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.bedroom_outside",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Night mode: automatically turn off when alarm turns off or at 7AM'",
|
|
"automation": "- alias: 'Night mode: automatically turn off when alarm turns off or at 7AM'\n triggers:\n - trigger: time\n at: 07:00\n - trigger: state\n entity_id: input_boolean.alarm_clock\n from: 'on'\n to: 'off'\n conditions:\n condition: state\n entity_id: input_boolean.alarm_clock\n state: 'off'\n actions:\n entity_id: input_select.sleep_mode\n action: input_select.select_option\n data:\n option: half",
|
|
"config": [
|
|
{
|
|
"name": "sleep mode selector",
|
|
"room": "system",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.sleep_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "alarm clock",
|
|
"room": "bedroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.alarm_clock",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "All entities group",
|
|
"room": null,
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "all",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Night mode: automatically turn off sleeping mode at 11AM'",
|
|
"automation": "- alias: 'Night mode: automatically turn off sleeping mode at 11AM'\n triggers:\n trigger: time\n at: '11:00'\n actions:\n entity_id: input_select.sleep_mode\n action: input_select.select_option\n data:\n option: 'off'",
|
|
"config": [
|
|
{
|
|
"name": "sleep mode selector",
|
|
"room": "system",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.sleep_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "All entities group",
|
|
"room": null,
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "all",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Night mode: turn off automatic bedroom lights'",
|
|
"automation": "- alias: 'Night mode: turn off automatic bedroom lights'\n triggers:\n trigger: state\n entity_id: input_select.sleep_mode\n from: 'off'\n actions:\n action: input_boolean.turn_off\n entity_id: input_boolean.automatic_bedroom_lights",
|
|
"config": [
|
|
{
|
|
"name": "sleep mode selector",
|
|
"room": "system",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.sleep_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "automatic bedroom lights",
|
|
"room": "bedroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.automatic_bedroom_lights",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Night mode: set low temperature when sleep mode turns on'",
|
|
"automation": "- alias: 'Night mode: set low temperature when sleep mode turns on'\n triggers:\n trigger: state\n entity_id: input_select.sleep_mode\n from: 'off'\n actions:\n action: script.set_low_temperature",
|
|
"config": [
|
|
{
|
|
"name": "sleep mode selector",
|
|
"room": "system",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.sleep_mode",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Night mode: go from half to total sleeping mode'",
|
|
"automation": "- alias: 'Night mode: go from half to total sleeping mode'\n description: 'When it is half sleeping mode and there is no activity in the house\n for more than an hour go to total sleeping mode.\n\n '\n triggers:\n trigger: state\n entity_id: binary_sensor.activity_outside_bedroom\n to: 'off'\n for: 01:00:00\n conditions:\n condition: state\n entity_id: input_select.sleep_mode\n state: half\n actions:\n - action: input_select.select_option\n entity_id: input_select.sleep_mode\n data:\n option: total\n - action: notify.iphone_bas\n data:\n title: Night mode\n message: Automatically switched from 'half' to 'total' sleeping mode! 💤🛌",
|
|
"config": [
|
|
{
|
|
"name": "sleep mode selector",
|
|
"room": "system",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.sleep_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "activity outside bedroom",
|
|
"room": "bedroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.activity_outside_bedroom",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "All entities group",
|
|
"room": null,
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "all",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Night mode: set sleeping mode in the living room'",
|
|
"automation": "- alias: 'Night mode: set sleeping mode in the living room'\n description: 'Set the living room lights to sleep mode only when no-one is there\n anymore.\n\n '\n triggers:\n trigger: state\n entity_id: input_select.sleep_mode\n to: total\n actions:\n choose:\n - conditions: '{{ is_state(''binary_sensor.activity_in_living_room'', ''on'')\n }}'\n sequence:\n - wait_for_trigger:\n trigger: state\n entity_id: binary_sensor.activity_in_living_room\n from: 'on'\n to: 'off'\n timeout: 06:00:00\n continue_on_timeout: false\n - condition: state\n entity_id: input_select.sleep_mode\n state: total\n - action: switch.turn_on\n entity_id: switch.adaptive_lighting_sleep_mode_living_room\n - conditions: '{{ is_state(''binary_sensor.activity_in_living_room'', ''off'')\n }}'\n sequence:\n action: switch.turn_on\n entity_id: switch.adaptive_lighting_sleep_mode_living_room",
|
|
"config": [
|
|
{
|
|
"name": "sleep mode selector",
|
|
"room": "system",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.sleep_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "adaptive lighting sleep mode living room",
|
|
"room": "living_room",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.adaptive_lighting_sleep_mode_living_room",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Activity in Living Room",
|
|
"room": "Living Room",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.activity_in_living_room",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'System: warning about high CPU usage'",
|
|
"automation": "- alias: 'System: warning about high CPU usage'\n triggers:\n trigger: numeric_state\n entity_id: sensor.processor_use\n above: 70\n for:\n hours: 4\n actions:\n action: notify.iphone_bas\n data:\n title: System\n message: CPU usage has been above 70% for 4 hours! ⚠️🖥",
|
|
"config": [
|
|
{
|
|
"name": "processor use",
|
|
"room": "system",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.processor_use",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'System: warning about high CPU temperature'",
|
|
"automation": "- alias: 'System: warning about high CPU temperature'\n triggers:\n trigger: numeric_state\n entity_id: sensor.cpu_temperature\n above: 70\n for:\n hours: 4\n actions:\n action: notify.iphone_bas\n data:\n title: System\n message: CPU temperature has been above 70 °C for 4 hours! ⚠️",
|
|
"config": [
|
|
{
|
|
"name": "cpu temperature",
|
|
"room": "system",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.cpu_temperature",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'System: warning about high Xbox temperature'",
|
|
"automation": "- alias: 'System: warning about high Xbox temperature'\n triggers:\n trigger: numeric_state\n entity_id: sensor.temperature_xbox\n above: 50\n actions:\n - action: notify.iphone_bas\n data:\n title: System\n message: 'Temperature in the Xbox cabinet is {{ states(\"sensor.temperature_xbox\")\n }} °C! ⚠️\n\n '\n - condition: state\n entity_id: media_player.tv\n state: 'on'\n - action: notify.tv\n data:\n message: 'Temperature in the Xbox cabinet is {{ states(\"sensor.temperature_xbox\")\n }} °C! ⚠️\n\n '",
|
|
"config": [
|
|
{
|
|
"name": "tv",
|
|
"room": "living_room",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.tv",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "temperature xbox",
|
|
"room": "living_room",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.temperature_xbox",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'System: update DNS'",
|
|
"automation": "- alias: 'System: update DNS'\n description: Update the DNS at Gandi to point my domain to my Home Assistant instance.\n triggers:\n trigger: time_pattern\n minutes: /15\n actions:\n action: script.update_dns",
|
|
"config": []
|
|
},
|
|
{
|
|
"id": "'System: run chores'",
|
|
"automation": "- alias: 'System: run chores'\n description: Run shell and Python scripts in utils folder.\n triggers:\n trigger: time_pattern\n minutes: /15\n actions:\n action: shell_command.chores",
|
|
"config": []
|
|
},
|
|
{
|
|
"id": "'System: MQTT sensors are not updating'",
|
|
"automation": "- alias: 'System: MQTT sensors are not updating'\n description: Check whether we are receiving messages over MQTT from my other HA\n instance.\n triggers:\n trigger: time_pattern\n minutes: /5\n conditions: '{{ (as_timestamp(now()) - as_timestamp(states.sensor.power_consumption.last_changed))\n > 20 * 60 }}'\n actions:\n - action: notify.iphone_bas\n data:\n title: System\n message: Not receiving MQTT updates, maybe reboot the other HA instance! ⚠️\n - delay: 03:00:00",
|
|
"config": [
|
|
{
|
|
"name": "power consumption",
|
|
"room": "system",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.power_consumption",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'System: battery level low'",
|
|
"automation": "- alias: 'System: battery level low'\n triggers:\n trigger: time\n at: '14:30:00'\n variables:\n min_battery_level: 50\n notify_service: notify.iphone_bas\n battery_ids: ''\n current: ''\n actions:\n - variables:\n battery_ids: \"{% set ns = namespace(battery=[]) %} {% for s in states.sensor\\\n \\ if 'battery_level' in s.entity_id %}\\n {% set ns.battery = ns.battery +\\\n \\ [s] %}\\n{% endfor %} {{ ns.battery | map(attribute='entity_id') | list }}\\n\"\n - alias: Repeat\n repeat:\n count: '{{ battery_ids | length }}'\n sequence:\n - variables:\n current: '{{ battery_ids[repeat.index - 1] }}'\n - condition: template\n value_template: '{{ ''iphone'' not in current and ''ipad'' not in current\n }}'\n - condition: template\n value_template: '{{ 0 < (states(current) | float) < (min_battery_level | float\n ) }}'\n - action: '{{ notify_service }}'\n data:\n title: System\n message: 'Battery level low of {{ current }}: {{ states(current) }}%! ⚠️'",
|
|
"config": []
|
|
},
|
|
{
|
|
"id": "'Test: listen to Adaptive Lighting events'",
|
|
"automation": "- alias: 'Test: listen to Adaptive Lighting events'\n mode: parallel\n max: 100\n triggers:\n - trigger: event\n event_type: call_service\n event_data:\n action: turn_on\n domain: light\n - trigger: event\n event_type: state_changed\n conditions: '{{ trigger.event.context.id.startswith(''adapt_lgt'') }}'\n actions:\n action: system_log.write\n data:\n message: '{{ trigger.event.data.entity_id }} is changed by AL: {{ trigger.event.data\n }}'\n level: debug\n logger: yolo.yolo",
|
|
"config": [
|
|
{
|
|
"name": "All entities group",
|
|
"room": null,
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "all",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Test: time'",
|
|
"automation": "- alias: 'Test: time'\n triggers:\n trigger: state\n entity_id: sensor.time\n actions:\n - variables:\n t_start: '{{ as_timestamp(now()) }}'\n - action: system_log.write\n data:\n message: took {{ as_timestamp(now()) - t_start | int }}\n level: debug\n logger: yolo.yolo",
|
|
"config": [
|
|
{
|
|
"name": "Time",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.time",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Test: flash lights'",
|
|
"automation": "- alias: 'Test: flash lights'\n triggers:\n trigger: state\n entity_id: sensor.time\n variables:\n lights: light.bed_led,light.philips_go,light.bed_reading_up,light.hall_3,light.toilet,light.ceiling_kitchen,light.bamboo,light.lampan,light.sphere_2,light.sphere_1,light.hall_2,light.bed_reading_down,light.corner_living_room,light.tv_led,light.stairs_up,light.stairs_down,light.ceiling_bedroom,light.ceiling_living_room,light.hall_1,light.bed_reading\n actions:\n - alias: Turn on lights that are off\n repeat:\n count: '{{ lights | length }}'\n sequence:\n - variables:\n light: '{{ lights.split('','')[repeat.index - 1] }}'\n - action: light.turn_on\n data:\n entity_id: '{{ light }}'\n - delay: 00:00:01\n - action: light.turn_off\n data:\n entity_id: '{{ light }}'",
|
|
"config": [
|
|
{
|
|
"name": "philips go",
|
|
"room": "bedroom",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.philips_go",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "bed led",
|
|
"room": "bedroom",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.bed_led",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "tv led",
|
|
"room": "living_room",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.tv_led",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "toilet light",
|
|
"room": "toilet",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.toilet",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "sphere light",
|
|
"room": "living_room",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.sphere",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "hall 1",
|
|
"room": "hall",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.hall_1",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "hall 2",
|
|
"room": "hall",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.hall_2",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "hall 3",
|
|
"room": "hall",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.hall_3",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "All entities group",
|
|
"room": null,
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "all",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Ceiling Kitchen Light",
|
|
"room": "Kitchen",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.ceiling_kitchen",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Time",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.time",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Test: call update_entity after light.turn_on/turn_off'",
|
|
"automation": "- alias: 'Test: call update_entity after light.turn_on/turn_off'\n mode: parallel\n max: 100\n triggers:\n - trigger: event\n event_type: call_service\n event_data:\n action: turn_on\n domain: light\n - trigger: event\n event_type: call_service\n event_data:\n action: turn_off\n domain: light\n actions:\n - delay: 00:00:01\n - action: homeassistant.update_entity\n data:\n entity_id: '{{ trigger.event.entity_id }}'",
|
|
"config": [
|
|
{
|
|
"name": "All entities group",
|
|
"room": null,
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "all",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Test: Light Baby Room Loop'",
|
|
"automation": "- alias: 'Test: Light Baby Room Loop'\n mode: parallel\n triggers:\n trigger: homeassistant\n event: start\n actions:\n - condition: '{{ is_state(''automation.test_light_baby_room_loop'', ''on'') }}'\n - action: light.turn_on\n target:\n entity_id: light.baby_room\n - delay: 00:00:10\n - action: light.turn_off\n target:\n entity_id: light.baby_room\n - delay: 00:00:10\n - action: automation.trigger\n target:\n entity_id: automation.test_light_baby_room_loop",
|
|
"config": [
|
|
{
|
|
"name": "All entities group",
|
|
"room": null,
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "all",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Test Light Baby Room Loop Automation",
|
|
"room": "Baby Room",
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.test_light_baby_room_loop",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Baby Room Light",
|
|
"room": "Baby Room",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.baby_room",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Utilities: washing machine or dishwasher started or finished'",
|
|
"automation": "- alias: 'Utilities: washing machine or dishwasher started or finished'\n triggers:\n - trigger: state\n entity_id: binary_sensor.dishwasher\n - trigger: state\n entity_id: binary_sensor.washing_machine\n variables:\n from_state: '{{ trigger.from_state.state }}'\n to_state: '{{ trigger.to_state.state }}'\n name: '{{ trigger.entity_id.split(''.'', 1)[1] }}'\n conditions: '{{ (to_state == ''on'' and from_state == ''off'') or (to_state == ''off''\n and from_state == ''on'') }}'\n actions:\n action: input_datetime.set_datetime\n data:\n entity_id: input_datetime.{{ name }}_{{ to_state }}\n timestamp: '{{ now().timestamp() }}'",
|
|
"config": [
|
|
{
|
|
"name": "dishwasher",
|
|
"room": "kitchen",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.dishwasher",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "washing machine",
|
|
"room": "utility_room",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.washing_machine",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Utilities: washing machine notification'",
|
|
"automation": "- alias: 'Utilities: washing machine notification'\n triggers:\n trigger: state\n entity_id: binary_sensor.washing_machine\n from: 'off'\n to: 'on'\n actions:\n action: script.utility_notification\n data:\n name: washing_machine\n emojis: 👚👕",
|
|
"config": [
|
|
{
|
|
"name": "washing machine",
|
|
"room": "utility_room",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.washing_machine",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Utilities: dishwasher notification'",
|
|
"automation": "- alias: 'Utilities: dishwasher notification'\n triggers:\n trigger: state\n entity_id: binary_sensor.dishwasher\n from: 'off'\n to: 'on'\n actions:\n action: script.utility_notification\n data:\n name: dishwasher\n emojis: 🍽🍳",
|
|
"config": [
|
|
{
|
|
"name": "dishwasher",
|
|
"room": "kitchen",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.dishwasher",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Vacation mode: auto turn on'",
|
|
"automation": "- alias: 'Vacation mode: auto turn on'\n initial_state: 'on'\n triggers:\n trigger: state\n entity_id: group.persons\n from: home\n to: not_home\n for: '24:00:00'\n conditions:\n - condition: state\n entity_id: input_boolean.guest_mode\n state: 'off'\n actions:\n - action: input_boolean.turn_on\n entity_id: input_boolean.vacation_mode\n - action: notify.all_iphones\n data:\n title: Vacation mode\n message: No one at home for 24 hours, switching on vacation mode.",
|
|
"config": [
|
|
{
|
|
"name": "guest mode",
|
|
"room": "system",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.guest_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "vacation mode",
|
|
"room": "system",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.vacation_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "All entities group",
|
|
"room": null,
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "all",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Persons Group",
|
|
"room": null,
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "group.persons",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Vacation mode: auto turn off'",
|
|
"automation": "- alias: 'Vacation mode: auto turn off'\n initial_state: 'on'\n triggers:\n trigger: state\n entity_id: group.persons\n from: not_home\n to: home\n conditions:\n - condition: state\n entity_id: input_boolean.vacation_mode\n state: 'on'\n - condition: state\n entity_id: input_boolean.guest_mode\n state: 'off'\n actions:\n - action: input_boolean.turn_off\n entity_id: input_boolean.vacation_mode\n - action: notify.all_iphones\n data:\n title: Vacation mode\n message: Welcome back! Switching off the vacation mode.",
|
|
"config": [
|
|
{
|
|
"name": "guest mode",
|
|
"room": "system",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.guest_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "vacation mode",
|
|
"room": "system",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.vacation_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "All entities group",
|
|
"room": null,
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "all",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Persons Group",
|
|
"room": null,
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "group.persons",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Vacuum: started cleaning'",
|
|
"automation": "- alias: 'Vacuum: started cleaning'\n triggers:\n trigger: state\n entity_id: vacuum.valetudo_vacuum\n from: docked\n to: cleaning\n actions:\n - action: notify.all_iphones\n data:\n title: Robot\n message: Robot started to clean!\n - action: input_datetime.set_datetime\n data:\n entity_id: input_datetime.vacuum_on\n datetime: '{{ now().isoformat() }}'",
|
|
"config": [
|
|
{
|
|
"name": "vacuum valetudo",
|
|
"room": "living_room",
|
|
"type": "vacuum",
|
|
"id": {
|
|
"entity_id": "vacuum.valetudo_vacuum",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "vacuum on time",
|
|
"room": "living_room",
|
|
"type": "input_datetime",
|
|
"id": {
|
|
"entity_id": "input_datetime.vacuum_on",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "All entities group",
|
|
"room": null,
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "all",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Vacuum: stopped cleaning'",
|
|
"automation": "- alias: 'Vacuum: stopped cleaning'\n triggers:\n trigger: state\n entity_id: vacuum.valetudo_vacuum\n from: returning\n to: docked\n actions:\n - action: input_boolean.turn_on\n entity_id: input_boolean.cleaned_today\n - action: input_datetime.set_datetime\n data:\n entity_id: input_datetime.vacuum_off\n datetime: '{{ now().isoformat() }}'\n - action: notify.all_iphones\n data:\n title: Robot\n message: Cleanup successful after {{ (states('sensor.robot_vacuum_last_clean_duration')\n | int / 60) | round }} minutes",
|
|
"config": [
|
|
{
|
|
"name": "vacuum valetudo",
|
|
"room": "living_room",
|
|
"type": "vacuum",
|
|
"id": {
|
|
"entity_id": "vacuum.valetudo_vacuum",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "vacuum off time",
|
|
"room": "living_room",
|
|
"type": "input_datetime",
|
|
"id": {
|
|
"entity_id": "input_datetime.vacuum_off",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "cleaned today",
|
|
"room": "living_room",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.cleaned_today",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "robot vacuum last clean duration",
|
|
"room": "living_room",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.robot_vacuum_last_clean_duration",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "All entities group",
|
|
"room": null,
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "all",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Vacuum: reminder notification'",
|
|
"automation": "- alias: 'Vacuum: reminder notification'\n triggers:\n trigger: time\n at: 08:00\n conditions:\n condition: state\n entity_id: binary_sensor.vacuum_day\n state: 'on'\n actions:\n action: notify.all_iphones\n data:\n title: Robot\n message: Vacuum will go today, make sure to leave the doors open and leave nothing\n on the floor!",
|
|
"config": [
|
|
{
|
|
"name": "vacuum day",
|
|
"room": "living_room",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.vacuum_day",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "All entities group",
|
|
"room": null,
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "all",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Vacuum: cleanup if nobody is home'",
|
|
"automation": "- alias: 'Vacuum: cleanup if nobody is home'\n triggers:\n - trigger: time\n at: '13:00'\n - trigger: state\n entity_id: group.persons\n from: home\n to: not_home\n conditions:\n - condition: time\n after: '13:00:00'\n before: '22:00:00'\n - condition: state\n entity_id: binary_sensor.vacuum_day\n state: 'on'\n - condition: state\n entity_id: group.persons\n state: not_home\n - condition: state\n entity_id: input_boolean.cleaned_today\n state: 'off'\n - condition: state\n entity_id: input_boolean.guest_mode\n state: 'off'\n - condition: state\n entity_id: input_boolean.vacation_mode\n state: 'off'\n actions:\n action: vacuum.start\n entity_id: vacuum.valetudo_vacuum",
|
|
"config": [
|
|
{
|
|
"name": "guest mode",
|
|
"room": "system",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.guest_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "vacuum valetudo",
|
|
"room": "living_room",
|
|
"type": "vacuum",
|
|
"id": {
|
|
"entity_id": "vacuum.valetudo_vacuum",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "vacation mode",
|
|
"room": "system",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.vacation_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "cleaned today",
|
|
"room": "living_room",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.cleaned_today",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "vacuum day",
|
|
"room": "living_room",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.vacuum_day",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Persons Group",
|
|
"room": null,
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "group.persons",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Vacuum: reset cleaned today'",
|
|
"automation": "- alias: 'Vacuum: reset cleaned today'\n initial_state: 'on'\n triggers:\n trigger: time\n at: 00:00:00\n actions:\n action: input_boolean.turn_off\n entity_id: input_boolean.cleaned_today",
|
|
"config": [
|
|
{
|
|
"name": "cleaned today",
|
|
"room": "living_room",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.cleaned_today",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Vacuum: reset to standard mode'",
|
|
"automation": "- alias: 'Vacuum: reset to standard mode'\n triggers:\n trigger: state\n entity_id: vacuum.living_room\n to: docked\n actions:\n action: vacuum.set_fan_speed\n entity_id: vacuum.valetudo_vacuum\n data:\n fan_speed: Standard",
|
|
"config": [
|
|
{
|
|
"name": "vacuum valetudo",
|
|
"room": "living_room",
|
|
"type": "vacuum",
|
|
"id": {
|
|
"entity_id": "vacuum.valetudo_vacuum",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Living Room Vacuum",
|
|
"room": "Living Room",
|
|
"type": "vacuum",
|
|
"id": {
|
|
"entity_id": "vacuum.living_room",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Work: go home notification'",
|
|
"automation": "- alias: 'Work: go home notification'\n triggers:\n trigger: state\n entity_id: binary_sensor.worked_enough_today\n from: 'off'\n to: 'on'\n conditions:\n - condition: state\n entity_id: binary_sensor.workday_sensor\n state: 'on'\n - condition: state\n entity_id: input_boolean.work_hour_notification_sent\n state: 'off'\n actions:\n - action: notify.iphone_bas\n data:\n title: Work\n message: You have worked 8 hours today, very good! Go home 🎉\n - action: input_boolean.turn_on\n entity_id: input_boolean.work_hour_notification_sent",
|
|
"config": [
|
|
{
|
|
"name": "worked enough today",
|
|
"room": "office",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.worked_enough_today",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "workday sensor",
|
|
"room": "office",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.workday_sensor",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "work hour notification sent",
|
|
"room": "office",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.work_hour_notification_sent",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Work: reset input_boolean at midnight'",
|
|
"automation": "- alias: 'Work: reset input_boolean at midnight'\n triggers:\n trigger: time\n at: 00:00\n conditions:\n condition: state\n entity_id: input_boolean.work_hour_notification_sent\n state: 'on'\n actions:\n action: input_boolean.turn_off\n entity_id: input_boolean.work_hour_notification_sent",
|
|
"config": [
|
|
{
|
|
"name": "work hour notification sent",
|
|
"room": "office",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.work_hour_notification_sent",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Work: Bas left work notification for Marcella'",
|
|
"automation": "- alias: 'Work: Bas left work notification for Marcella'\n triggers:\n trigger: state\n entity_id: person.bas\n from: Work\n conditions:\n condition: time\n after: '15:00:00'\n before: '22:00:00'\n actions:\n action: notify.all_iphones\n data:\n title: Work\n message: Bas has left work! ♥️🎉",
|
|
"config": [
|
|
{
|
|
"name": "bas person",
|
|
"room": "system",
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.bas",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "All entities group",
|
|
"room": null,
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "all",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
}
|
|
] |