28535 lines
1.2 MiB
28535 lines
1.2 MiB
[
|
|
{
|
|
"id": "air_quality_alert_good",
|
|
"automation": "- id: air_quality_alert_good\n alias: Air Quality - Alert for Good Conditions\n initial_state: true\n trigger:\n - trigger: state\n entity_id: input_select.air_quality_state\n to: Good\n actions:\n - action: script.air_quality_alert_set_air_purifier_auto",
|
|
"config": [
|
|
{
|
|
"name": "air quality state",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.air_quality_state",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "air_quality_alert_unhealthy",
|
|
"automation": "- id: air_quality_alert_unhealthy\n alias: Air Quality - Alert for Unhealthy Conditions\n initial_state: true\n trigger:\n - trigger: state\n entity_id: input_select.air_quality_state\n from:\n - Good\n - Moderate\n - Slightly Unhealthy\n to: Unhealthy\n for:\n minutes: 5\n conditions:\n - condition: template\n value_template: '{{ ( now().timestamp() - as_timestamp(state_attr(''automation.air_quality_alert_unhealthy'',''last_triggered''),\n 0) ) | int > 7200 }}'\n actions:\n - action: script.voice_announcement\n data:\n media_players: auto\n sound: one-chime\n priority: high\n expires_in: 60\n speech_message: Hey Fam, the air quality is looking unhealthy, please keep windows\n closed and make sure to take precautions.\n - action: script.air_quality_alert_turn_on_air_purifiers\n data:\n speed: 25",
|
|
"config": [
|
|
{
|
|
"name": "air quality state",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.air_quality_state",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "voice announcement script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.voice_announcement",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "script voice announcement",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.voice_announcement",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "air_quality_alert_very_unhealthy",
|
|
"automation": "- id: air_quality_alert_very_unhealthy\n alias: Air Quality - Alert for Very Unhealthy Conditions\n initial_state: true\n trigger:\n - trigger: state\n entity_id: input_select.air_quality_state\n from:\n - Good\n - Moderate\n - Slightly Unhealthy\n - Unhealthy\n to: Very Unhealthy\n for:\n minutes: 5\n conditions:\n - condition: template\n value_template: '{{ ( now().timestamp() - as_timestamp(state_attr(''automation.air_quality_alert_very_unhealthy'',''last_triggered''),\n 0) ) | int > 7200 }}'\n actions:\n - action: script.voice_announcement\n data:\n media_players: auto\n sound: one-chime\n priority: high\n expires_in: 60\n speech_message: Hey Fam, the air quality is looking very unhealthy, please keep\n windows closed and make sure to take precautions.\n - action: script.air_quality_alert_turn_on_air_purifiers\n data:\n speed: 50",
|
|
"config": [
|
|
{
|
|
"name": "air quality state",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.air_quality_state",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "voice announcement script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.voice_announcement",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "script voice announcement",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.voice_announcement",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "air_quality_alert_hazardous",
|
|
"automation": "- id: air_quality_alert_hazardous\n alias: Air Quality - Alert for Very Unhealthy Conditions\n initial_state: true\n triggers:\n - trigger: state\n entity_id: input_select.air_quality_state\n to: Hazardous\n for:\n minutes: 2\n conditions:\n - condition: template\n value_template: '{{ ( now().timestamp() - as_timestamp(state_attr(''automation.air_quality_alert_hazardous'',''last_triggered''),\n 0) ) | int > 7200 }}'\n actions:\n - action: script.voice_announcement\n data:\n media_players: auto\n sound: nuclear\n priority: critical\n speech_message: Attention! The air quality is hazardous today. Please stay indoors\n as much as possible.\n - action: script.air_quality_alert_turn_on_air_purifiers\n data:\n speed: 100",
|
|
"config": [
|
|
{
|
|
"name": "air quality state",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.air_quality_state",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "voice announcement script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.voice_announcement",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "script voice announcement",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.voice_announcement",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "update_air_quality_state",
|
|
"automation": "- id: update_air_quality_state\n alias: Update Air Quality State\n mode: single\n triggers:\n - trigger: state\n entity_id: sensor.desplns_illinois_usa_air_quality_index\n - trigger: event\n event_type: automation_reloaded\n - trigger: homeassistant\n event: start\n action:\n - action: input_select.select_option\n data:\n entity_id: input_select.air_quality_state\n option: \"{% set aqi = states.sensor.desplns_illinois_usa_air_quality_index.state\\\n \\ | int %} {% if aqi <= 50 %}\\n Good\\n{% elif aqi <= 100 %}\\n Moderate\\n\\\n {% elif aqi <= 150 %}\\n Slightly Unhealthy\\n{% elif aqi <= 200 %}\\n Unhealthy\\n\\\n {% elif aqi <= 300 %}\\n Very Unhealthy\\n{% else %}\\n Hazardous\\n{% endif\\\n \\ %}\\n\"",
|
|
"config": [
|
|
{
|
|
"name": "air quality state",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.air_quality_state",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "air quality index",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.desplns_illinois_usa_air_quality_index",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "alarm_arm_at_bedtime",
|
|
"automation": "- id: alarm_arm_at_bedtime\n alias: Alarm - Arm at Bedtime\n mode: single\n triggers:\n - trigger: state\n entity_id: input_boolean.bedtime\n to: 'on'\n conditions:\n - condition: state\n entity_id: alarm_control_panel.panel\n state: disarmed\n - condition: time\n after: '20:00:00'\n before: 05:00:00\n actions:\n - action: script.alarm_arm_home",
|
|
"config": [
|
|
{
|
|
"name": "bedtime",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.bedtime",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "alarm control panel",
|
|
"room": null,
|
|
"type": "alarm_control_panel",
|
|
"id": {
|
|
"entity_id": "alarm_control_panel.panel",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "alarm_arm_away_when_vacation_mode",
|
|
"automation": "- id: alarm_arm_away_when_vacation_mode\n alias: Alarm - Arm Away When Vacation Mode\n mode: single\n triggers:\n - trigger: state\n entity_id: input_select.house\n to: Vacation\n conditions:\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'off'\n actions:\n - action: alarm_control_panel.alarm_arm_away\n entity_id: alarm_control_panel.panel\n - action: script.general_notification\n data:\n message: Home is armed Away since the house is in Vacation mode.\n title: Security System\n devices: jk\n priority: time-sensitive\n tag: home-security",
|
|
"config": [
|
|
{
|
|
"name": "alarm control panel",
|
|
"room": null,
|
|
"type": "alarm_control_panel",
|
|
"id": {
|
|
"entity_id": "alarm_control_panel.panel",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "house status",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.house",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "general notification script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.general_notification",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "alarm_arm_if_john_away",
|
|
"automation": "- id: alarm_arm_if_john_away\n alias: Alarm - Arm if John Away\n mode: single\n initial_state: false\n triggers:\n - trigger: time\n at: '21:30:00'\n conditions:\n - condition: state\n entity_id: alarm_control_panel.panel\n state: disarmed\n - condition: state\n entity_id: input_boolean.john_home\n state: 'off'\n actions:\n - action: script.alarm_arm_home\n - action: script.general_notification\n data:\n message: Home is ARMED for stay since John's not home.\n title: Security System\n devices: cfalb\n priority: time-sensitive\n tag: home-security\n - action: script.voice_announcement\n data:\n media_players: auto\n sound: default\n priority: high\n speech_message: I'm arming the security system since John's out of town. Make\n sure to disarm before opening an exterior door.",
|
|
"config": [
|
|
{
|
|
"name": "alarm control panel",
|
|
"room": null,
|
|
"type": "alarm_control_panel",
|
|
"id": {
|
|
"entity_id": "alarm_control_panel.panel",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "john home",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.john_home",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "general notification script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.general_notification",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "voice announcement script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.voice_announcement",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "script voice announcement",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.voice_announcement",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "active_alarm_automation_if_john_away",
|
|
"automation": "- id: active_alarm_automation_if_john_away\n alias: Activate Alarm Automation if John Away\n mode: single\n triggers:\n - trigger: state\n entity_id: input_boolean.john_home\n to: 'off'\n for:\n hours: 2\n - trigger: state\n entity_id: input_select.john_status\n to: Extended Away\n actions:\n - action: automation.turn_on\n entity_id: automation.alarm_arm_if_john_away",
|
|
"config": [
|
|
{
|
|
"name": "john home",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.john_home",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "john status",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.john_status",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Alarm Arm if John Away",
|
|
"room": null,
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.alarm_arm_if_john_away",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "deactive_alarm_automation_if_john_home",
|
|
"automation": "- id: deactive_alarm_automation_if_john_home\n alias: Deactivate Alarm Automation if John Home\n mode: single\n triggers:\n - trigger: state\n entity_id: input_boolean.john_home\n to: 'on'\n conditions:\n - condition: state\n entity_id: automation.alarm_arm_if_john_away\n state: 'on'\n actions:\n - action: automation.turn_off\n entity_id: automation.alarm_arm_if_john_away",
|
|
"config": [
|
|
{
|
|
"name": "john home",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.john_home",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Alarm Arm if John Away",
|
|
"room": null,
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.alarm_arm_if_john_away",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "alarm_arm_when_house_empty",
|
|
"automation": "- id: alarm_arm_when_house_empty\n alias: Alarm - Arm When House is Empty\n mode: single\n trigger:\n - platform: state\n entity_id: input_select.house\n to: Away\n for:\n minutes: 5\n - platform: zone\n entity_id:\n - person.john_koht\n - person.cristina_falbo\n zone: zone.neighborhood\n event: leave\n - platform: numeric_state\n entity_id: sensor.home_nearest_distance\n above: 5\n condition:\n - condition: state\n entity_id: alarm_control_panel.panel\n state: disarmed\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'off'\n action:\n - action: script.alarm_arm_home",
|
|
"config": [
|
|
{
|
|
"name": "alarm control panel",
|
|
"room": null,
|
|
"type": "alarm_control_panel",
|
|
"id": {
|
|
"entity_id": "alarm_control_panel.panel",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "house status",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.house",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "home nearest distance",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.home_nearest_distance",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "person cristina falbo",
|
|
"room": null,
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.cristina_falbo",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "person john koht",
|
|
"room": null,
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.john_koht",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "person cristina falbo",
|
|
"room": null,
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.cristina_falbo",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "alarm_disarm_in_morning",
|
|
"automation": "- id: alarm_disarm_in_morning\n alias: Alarm - Disarm in Morning\n mode: single\n trigger:\n - platform: state\n entity_id: input_boolean.bedtime\n to: 'off'\n for:\n minutes: 3\n - platform: state\n entity_id: input_select.house\n from: Bedtime\n to: Auto\n for:\n minutes: 3\n condition:\n - condition: state\n entity_id: alarm_control_panel.panel\n state: armed_home\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n action:\n - service: alarm_control_panel.alarm_disarm\n entity_id: alarm_control_panel.panel\n - service: script.general_notification\n data:\n message: Home is now disarmed!\n title: Security System\n devices: all\n priority: active\n tag: home-security",
|
|
"config": [
|
|
{
|
|
"name": "bedtime",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.bedtime",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "alarm control panel",
|
|
"room": null,
|
|
"type": "alarm_control_panel",
|
|
"id": {
|
|
"entity_id": "alarm_control_panel.panel",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "house status",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.house",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "general notification script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.general_notification",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "alarm_disarm_when_house_becomes_occupied",
|
|
"automation": "- id: alarm_disarm_when_house_becomes_occupied\n alias: Alarm - Disarm When House Becomes Occupied\n mode: single\n triggers:\n - trigger: state\n entity_id: input_boolean.house_occupied\n to: 'on'\n conditions:\n - condition: state\n entity_id: alarm_control_panel.panel\n state:\n - armed_home\n - armed_away\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n actions:\n - action: alarm_control_panel.alarm_disarm\n entity_id: alarm_control_panel.panel\n - action: script.general_notification\n data:\n message: Home is now disarmed upon the arrival of somebody.\n title: Home Security System\n devices: jk\n priority: active\n tag: home-security",
|
|
"config": [
|
|
{
|
|
"name": "alarm control panel",
|
|
"room": null,
|
|
"type": "alarm_control_panel",
|
|
"id": {
|
|
"entity_id": "alarm_control_panel.panel",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "general notification script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.general_notification",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "alarm_disarm_when_somebody_arrives_and_house_occupied",
|
|
"automation": "- id: alarm_disarm_when_somebody_arrives_and_house_occupied\n alias: Alarm - Disarm When Somebody Arrives and House Occupied\n mode: single\n triggers:\n - trigger: state\n entity_id:\n - sensor.john_person\n - sensor.cristina_person\n - sensor.nonna_person\n - sensor.tayta_person\n - sensor.jido_person\n - sensor.katia_person\n - sensor.joe_person\n - sensor.alex_person\n to: home\n conditions:\n - condition: state\n entity_id: alarm_control_panel.panel\n state: armed_home\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n - condition: template\n value_template: '{{ state_attr(trigger.entity_id, ''unlock_privilege'') == \"on\"\n }}\n\n '\n actions:\n - action: script.alarm_arm_home",
|
|
"config": [
|
|
{
|
|
"name": "alarm control panel",
|
|
"room": null,
|
|
"type": "alarm_control_panel",
|
|
"id": {
|
|
"entity_id": "alarm_control_panel.panel",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "john person",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.john_person",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "cristina person",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.cristina_person",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "nonna person",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.nonna_person",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "tayta person",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.tayta_person",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "jido person",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.jido_person",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "katia person",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.katia_person",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "joe person",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.joe_person",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "alex person",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.alex_person",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "security_alarm_trigger",
|
|
"automation": "- id: security_alarm_trigger\n alias: Security Alarm - Triggered\n mode: single\n triggers:\n - trigger: state\n entity_id: alarm_control_panel.panel\n to: triggered\n actions:\n - action: script.security_alarm_alert\n data: {}",
|
|
"config": [
|
|
{
|
|
"name": "alarm control panel",
|
|
"room": null,
|
|
"type": "alarm_control_panel",
|
|
"id": {
|
|
"entity_id": "alarm_control_panel.panel",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'1672413097885'",
|
|
"automation": "- id: '1672413097885'\n alias: Hello World Response\n trigger:\n - platform: event\n event_type: alexa_actionable_notification\n event_data:\n event_id: hello_world\n variables:\n response_type: '{{ trigger.event.data.event_response_type }}'\n response: '{{ trigger.event.data.event_response }}'\n action:\n - service: input_text.set_value\n data:\n value: '{{ response_type }}'\n target:\n entity_id: input_text.l\n - service: input_text.set_value\n data:\n value: '{{ response }}'\n target:\n entity_id: input_text.hello_world_response",
|
|
"config": [
|
|
{
|
|
"name": "hello world response",
|
|
"room": null,
|
|
"type": "input_text",
|
|
"id": {
|
|
"entity_id": "input_text.hello_world_response",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input text l",
|
|
"room": null,
|
|
"type": "input_text",
|
|
"id": {
|
|
"entity_id": "input_text.l",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "alexa_volume_control",
|
|
"automation": "- id: alexa_volume_control\n initial_state: true\n alias: Alexa Volume Control\n trigger:\n - platform: state\n entity_id: input_boolean.quiet_mode\n to: 'on'\n - platform: state\n entity_id: input_boolean.bedtime\n to: 'on'\n condition:\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n action:\n - service: media_player.volume_set\n data:\n entity_id:\n - media_player.john_s_echo_dot\n - media_player.john_s_2nd_echo_dot\n - media_player.kohbo_dot_main_bedroom\n - media_player.john_s_echo_show\n volume_level: 0.3",
|
|
"config": [
|
|
{
|
|
"name": "bedtime",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.bedtime",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "quiet mode",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.quiet_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "john's echo dot",
|
|
"room": "john",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.john_s_echo_dot",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "john's 2nd echo dot",
|
|
"room": "john",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.john_s_2nd_echo_dot",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "kohbo dot main bedroom",
|
|
"room": "main bedroom",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.kohbo_dot_main_bedroom",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "john's echo show",
|
|
"room": "john",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.john_s_echo_show",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean quiet mode",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.quiet_mode",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "alexa_volume_control_turn_up",
|
|
"automation": "- id: alexa_volume_control_turn_up\n initial_state: true\n alias: Alexa Volume Control - Turn Up\n trigger:\n - platform: state\n entity_id: input_boolean.quiet_mode\n to: 'off'\n - platform: state\n entity_id: input_boolean.bedtime\n to: 'off'\n condition:\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n action:\n - service: media_player.volume_set\n data:\n entity_id:\n - media_player.john_s_echo_dot\n - media_player.john_s_2nd_echo_dot\n - media_player.kohbo_dot_main_bedroom\n - media_player.john_s_echo_show\n volume_level: 0.6",
|
|
"config": [
|
|
{
|
|
"name": "bedtime",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.bedtime",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "quiet mode",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.quiet_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "john's echo dot",
|
|
"room": "john",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.john_s_echo_dot",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "john's 2nd echo dot",
|
|
"room": "john",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.john_s_2nd_echo_dot",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "kohbo dot main bedroom",
|
|
"room": "main bedroom",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.kohbo_dot_main_bedroom",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "john's echo show",
|
|
"room": "john",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.john_s_echo_show",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean quiet mode",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.quiet_mode",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "alex_announce_arrival",
|
|
"automation": "- id: alex_announce_arrival\n alias: Alex Presence - Announce Arrival\n mode: queued\n initial_state: true\n triggers:\n - trigger: state\n entity_id: person.alex\n from: not_home\n to: home\n conditions:\n - condition: state\n entity_id: person.alex\n state: home\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n for:\n minutes: 5\n actions:\n - action: script.person_announcement\n data:\n person: alex\n announcement_type: arrival\n - condition: state\n entity_id: input_boolean.guest_mode_announced\n state: 'off'\n - action: input_boolean.turn_on\n entity_id: input_boolean.guest_mode_announced",
|
|
"config": [
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "person alex",
|
|
"room": null,
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.alex",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "guest mode announced",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.guest_mode_announced",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "guest mode",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.guest_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "script person announcement",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.person_announcement",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "alex_announce_departure",
|
|
"automation": "- id: alex_announce_departure\n alias: Alex Presence - Announce Departure\n mode: queued\n initial_state: true\n triggers:\n - trigger: state\n entity_id: person.alex\n from: home\n conditions:\n - condition: state\n entity_id: person.alex\n state: not_home\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n for:\n minutes: 5\n actions:\n - action: script.person_announcement\n data:\n person: alex\n announcement_type: departure",
|
|
"config": [
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "person alex",
|
|
"room": null,
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.alex",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "script person announcement",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.person_announcement",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "alex_is_away",
|
|
"automation": "- id: alex_is_away\n alias: Alex Presence - Away\n initial_state: true\n triggers:\n - trigger: state\n entity_id: person.alex\n to: not_home\n - trigger: event\n event_type: automation_reloaded\n - trigger: homeassistant\n event: start\n conditions:\n - condition: not\n conditions:\n - condition: state\n entity_id: input_select.alex_status\n state: Just Left\n - or:\n - condition: state\n entity_id: person.alex\n state: not_home\n - condition: state\n entity_id: device_tracker.alex_iphone_detect\n state: not_home\n actions:\n - action: input_boolean.turn_off\n entity_id: input_boolean.alex_home",
|
|
"config": [
|
|
{
|
|
"name": "person alex",
|
|
"room": null,
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.alex",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "alex status",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.alex_status",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "alex home",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.alex_home",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "alex iphone detect",
|
|
"room": null,
|
|
"type": "device_tracker",
|
|
"id": {
|
|
"entity_id": "device_tracker.alex_iphone_detect",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "alex_is_home",
|
|
"automation": "- id: alex_is_home\n initial_state: true\n alias: Alex Presence - Home\n triggers:\n - trigger: state\n entity_id: person.alex\n to: home\n - trigger: state\n entity_id: device_tracker.alex_iphone_detect\n to: home\n - trigger: event\n event_type: automation_reloaded\n - trigger: homeassistant\n event: start\n conditions:\n - condition: state\n entity_id: person.alex\n state: home\n actions:\n - action: input_boolean.turn_on\n entity_id: input_boolean.alex_home",
|
|
"config": [
|
|
{
|
|
"name": "person alex",
|
|
"room": null,
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.alex",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "alex home",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.alex_home",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "alex iphone detect",
|
|
"room": null,
|
|
"type": "device_tracker",
|
|
"id": {
|
|
"entity_id": "device_tracker.alex_iphone_detect",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "alex_presence_just_arrived",
|
|
"automation": "- id: alex_presence_just_arrived\n alias: Alex Presence - Just Arrived\n mode: single\n initial_state: true\n triggers:\n - trigger: state\n entity_id: input_boolean.alex_home\n to: 'on'\n actions:\n - action: input_select.select_option\n data:\n entity_id: input_select.alex_status\n option: '{{ ''Home'' if states.input_select.alex_status.state else ''Just Arrived''\n }}'",
|
|
"config": [
|
|
{
|
|
"name": "alex status",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.alex_status",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "alex home",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.alex_home",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "alex_presence_home",
|
|
"automation": "- id: alex_presence_home\n alias: Alex Presence - Home\n mode: single\n initial_state: true\n triggers:\n - trigger: state\n entity_id: input_select.alex_status\n to: Just Arrived\n for:\n minutes: 5\n - trigger: state\n entity_id: input_select.alex_status\n from: Just Left\n to: Just Arrived\n actions:\n - action: input_select.select_option\n data:\n entity_id: input_select.alex_status\n option: Home",
|
|
"config": [
|
|
{
|
|
"name": "alex status",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.alex_status",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "alex_presence_just_left",
|
|
"automation": "- id: alex_presence_just_left\n alias: Alex Presence - Just Left\n mode: single\n initial_state: true\n triggers:\n - trigger: state\n entity_id: input_boolean.alex_home\n to: 'off'\n actions:\n - action: input_select.select_option\n data:\n entity_id: input_select.alex_status\n option: Just Left",
|
|
"config": [
|
|
{
|
|
"name": "alex status",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.alex_status",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "alex home",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.alex_home",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "alex_presence_away",
|
|
"automation": "- id: alex_presence_away\n alias: Alex Presence - Away\n mode: single\n initial_state: true\n triggers:\n - trigger: state\n entity_id: input_select.alex_status\n to: Just Left\n for:\n minutes: 5\n actions:\n - action: input_select.select_option\n data:\n entity_id: input_select.alex_status\n option: Away",
|
|
"config": [
|
|
{
|
|
"name": "alex status",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.alex_status",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "all_away_media_off",
|
|
"automation": "- id: all_away_media_off\n alias: All away media off\n initial_state: 'off'\n trigger:\n - platform: state\n entity_id: input_boolean.house_occupied\n to: 'off'\n condition:\n condition: or\n conditions:\n - condition: state\n entity_id: media_player.sonos_office\n state: playing\n - condition: state\n entity_id: media_player.sonos_family_room\n state: playing\n - condition: state\n entity_id: media_player.sonos_kitchen\n state: playing\n - condition: state\n entity_id: media_player.sony_bravia_tv\n state: playing\n - condition: state\n entity_id: media_player.kohbo_echo\n state: playing\n - condition: state\n entity_id: media_player.john_s_echo_show\n state: playing\n - condition: state\n entity_id: media_player.kohbo_dot_main_bedroom\n state: playing\n action:\n service: media_player.media_pause",
|
|
"config": [
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "kohbo dot main bedroom",
|
|
"room": "main bedroom",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.kohbo_dot_main_bedroom",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "john's echo show",
|
|
"room": "john",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.john_s_echo_show",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "sonos office",
|
|
"room": "office",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.sonos_office",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "sonos family room",
|
|
"room": "family room",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.sonos_family_room",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "sonos kitchen",
|
|
"room": "kitchen",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.sonos_kitchen",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "sony bravia tv",
|
|
"room": null,
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.sony_bravia_tv",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "kohbo echo",
|
|
"room": null,
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.kohbo_echo",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "announcement_queue_append",
|
|
"automation": "- id: announcement_queue_append\n alias: Announcement Queue - Append\n mode: single\n trigger:\n - trigger: mqtt\n topic: home/announcement_queue/append\n variables:\n new_item: \"{% set item = trigger.payload | from_json %} {% if item.expires_in\\\n \\ is defined %}\\n {% set expires_at = now() + timedelta(minutes=item.expires_in)\\\n \\ %}\\n {{ item | combine({'expires_at': expires_at.isoformat()}) }}\\n{% else\\\n \\ %}\\n {{ item }}\\n{% endif %}\"\n queue_data_topic: home/announcement_queue/data\n queue_state_topic: home/announcement_queue/state\n action:\n - variables:\n current_queue: \"{% set q = state_attr('sensor.announcement_queue', 'queue')\\\n \\ %} {% if q is iterable %}\\n {{ q }}\\n{% else %}\\n []\\n{% endif %}\"\n updated: \"{% if new_item.priority == 'critical' %}\\n {# Keep only critical\\\n \\ messages and add new critical message at start #}\\n {% set critical_msgs\\\n \\ = current_queue | selectattr('priority', 'eq', 'critical') | list %}\\n \\\n \\ {{ [new_item] + critical_msgs }}\\n{% else %}\\n {# For non-critical messages,\\\n \\ sort by priority #}\\n {% set high_priority = current_queue | selectattr('priority',\\\n \\ 'eq', 'high') | list %}\\n {% set normal_priority = current_queue | selectattr('priority',\\\n \\ 'eq', 'normal') | list %}\\n {% set low_priority = current_queue | selectattr('priority',\\\n \\ 'eq', 'low') | list %}\\n {% set critical_msgs = current_queue | selectattr('priority',\\\n \\ 'eq', 'critical') | list %}\\n \\n {# Add new message to appropriate priority\\\n \\ list #}\\n {% if new_item.priority == 'high' %}\\n {% set high_priority\\\n \\ = high_priority + [new_item] %}\\n {% elif new_item.priority == 'low' %}\\n\\\n \\ {% set low_priority = low_priority + [new_item] %}\\n {% else %}\\n \\\n \\ {% set normal_priority = normal_priority + [new_item] %}\\n {% endif %}\\n\\\n \\ \\n {# Combine all lists in priority order #}\\n {{ critical_msgs + high_priority\\\n \\ + normal_priority + low_priority }}\\n{% endif %}\"\n payload_json: '{{ {\"queue\": updated} | to_json }}'\n - action: system_log.write\n data:\n level: warning\n message: 'Appended item. New queue: {{ payload_json }}\n\n '\n - action: mqtt.publish\n data:\n topic: '{{ queue_data_topic }}'\n payload: '{{ payload_json }}'\n retain: true\n - action: mqtt.publish\n data:\n topic: '{{ queue_state_topic }}'\n payload: queue\n retain: true",
|
|
"config": [
|
|
{
|
|
"name": "announcement queue",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.announcement_queue",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "audi_is_away",
|
|
"automation": "- id: audi_is_away\n alias: Audi is Away\n initial_state: true\n trigger:\n - platform: state\n entity_id: sensor.audi_presence\n to: not_home\n - platform: event\n event_type: automation_reloaded\n - platform: homeassistant\n event: start\n condition:\n - condition: state\n entity_id: sensor.audi_presence\n state: not_home\n action:\n - service: input_boolean.turn_off\n entity_id: input_boolean.audi_home",
|
|
"config": [
|
|
{
|
|
"name": "audi presence",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.audi_presence",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "audi home",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.audi_home",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "audi_is_home",
|
|
"automation": "- id: audi_is_home\n initial_state: true\n alias: Audi is Home\n trigger:\n - platform: state\n entity_id: sensor.audi_presence\n from: not_home\n - platform: state\n entity_id: sensor.audi_presence\n to: garage\n - platform: event\n event_type: automation_reloaded\n - platform: homeassistant\n event: start\n condition:\n - condition: or\n conditions:\n - condition: state\n entity_id: sensor.audi_presence\n state: garage\n - condition: template\n value_template: '{{ states.sensor.audi_presence.state != ''not_home''}}'\n action:\n - service: input_boolean.turn_on\n entity_id: input_boolean.audi_home",
|
|
"config": [
|
|
{
|
|
"name": "audi presence",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.audi_presence",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "audi home",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.audi_home",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'1623896972382'",
|
|
"automation": "- id: '1623896972382'\n alias: Start DnD via Webhook\n description: ''\n trigger:\n - platform: webhook\n webhook_id: 71c672f8399aad2ccec8769e9ce75f46b7260ddb308de102224b9fe03ebb21f0\n condition: []\n action:\n - type: turn_on\n device_id: cdddd3246291229c09cb7cc75ff1feb1\n entity_id: light.hue_play_1\n domain: light\n - service: hue.hue_activate_scene\n data:\n group_name: Office Signal\n scene_name: John DnD\n - repeat:\n count: '3'\n sequence:\n - service: light.turn_on\n target:\n area_id: office\n data:\n brightness_step_pct: -50\n - delay:\n hours: 0\n minutes: 0\n seconds: 0\n milliseconds: 750\n - service: light.turn_on\n target:\n area_id: office\n data:\n brightness_step_pct: 50\n mode: single",
|
|
"config": [
|
|
{
|
|
"name": "hue play 1",
|
|
"room": null,
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.hue_play_1",
|
|
"device_id": "cdddd3246291229c09cb7cc75ff1feb1"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'1623985104359'",
|
|
"automation": "- id: '1623985104359'\n alias: Garbage Day Reminder\n description: ''\n trigger:\n - platform: time\n at: '18:15:00'\n condition:\n - condition: time\n weekday:\n - thu\n before: 00:00:00\n after: 00:00:00\n action:\n - service: script.speech_engine\n data:\n speech_message: It's garbage day. Don't forget to collect garbage from the bathrooms\n and diaper bin!\n mode: single",
|
|
"config": [
|
|
{
|
|
"name": "Speech Engine",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.speech_engine",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'1624048450884'",
|
|
"automation": "- id: '1624048450884'\n alias: Front Door Alert\n description: ''\n trigger:\n - type: motion\n platform: device\n device_id: 92b464fee4dab94c831b8ff8686f330a\n entity_id: binary_sensor.front_door_camera_motion\n domain: binary_sensor\n condition: []\n action:\n - service: script.set_doorbell_message\n data:\n message: \"{% if states('input_boolean.quiet_mode') == 'on' %}\\n quiet_mode\\n\\\n {% else %}\\n welcome\\n{% endif %}\"\n - service: script.display_doorbell_snapshot_on_tvs\n data: {}\n mode: single",
|
|
"config": [
|
|
{
|
|
"name": "quiet mode",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.quiet_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "front door camera motion",
|
|
"room": "front door",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.front_door_camera_motion",
|
|
"device_id": "92b464fee4dab94c831b8ff8686f330a"
|
|
}
|
|
},
|
|
{
|
|
"name": "front door camera doorbell",
|
|
"room": "front door",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.front_door_camera_doorbell",
|
|
"device_id": "92b464fee4dab94c831b8ff8686f330a"
|
|
}
|
|
},
|
|
{
|
|
"name": "display doorbell snapshot on tv script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.display_doorbell_snapshot_on_tv",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean quiet mode",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.quiet_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Display Doorbell Snapshot on TVs",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.display_doorbell_snapshot_on_tvs",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Set Doorbell Message",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.set_doorbell_message",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'1644810800643'",
|
|
"automation": "- id: '1644810800643'\n alias: Vacation Faux Home On\n description: Make it appear as if people are home when we're out of town\n trigger:\n - platform: sun\n event: sunset\n offset: 00:01:00\n condition:\n - condition: state\n entity_id: input_boolean.vacation_mode\n state: 'on'\n action:\n - type: turn_on\n device_id: 44fcccda63e4e38e416babd3f3e1fded\n entity_id: light.family_room_main_lights\n domain: light\n - type: turn_on\n device_id: 59ca60e52d36629d4f1c5cca974d0cfa\n entity_id: light.kitchen_main_light_switch\n domain: light\n mode: single",
|
|
"config": [
|
|
{
|
|
"name": "family room main lights",
|
|
"room": "family room",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.family_room_main_lights",
|
|
"device_id": "44fcccda63e4e38e416babd3f3e1fded"
|
|
}
|
|
},
|
|
{
|
|
"name": "kitchen main light switch",
|
|
"room": "kitchen",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.kitchen_main_light_switch",
|
|
"device_id": "59ca60e52d36629d4f1c5cca974d0cfa"
|
|
}
|
|
},
|
|
{
|
|
"name": "vacation mode",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.vacation_mode",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'1644810923409'",
|
|
"automation": "- id: '1644810923409'\n alias: Vacation Faux Home Off\n description: ''\n trigger:\n - platform: time\n at: '22:01:00'\n condition:\n - condition: state\n entity_id: input_boolean.vacation_mode\n state: 'on'\n action:\n - type: turn_off\n device_id: 59ca60e52d36629d4f1c5cca974d0cfa\n entity_id: light.kitchen_main_light_switch\n domain: light\n - type: turn_off\n device_id: 44fcccda63e4e38e416babd3f3e1fded\n entity_id: light.family_room_main_lights\n domain: light\n mode: single",
|
|
"config": [
|
|
{
|
|
"name": "family room main lights",
|
|
"room": "family room",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.family_room_main_lights",
|
|
"device_id": "44fcccda63e4e38e416babd3f3e1fded"
|
|
}
|
|
},
|
|
{
|
|
"name": "kitchen main light switch",
|
|
"room": "kitchen",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.kitchen_main_light_switch",
|
|
"device_id": "59ca60e52d36629d4f1c5cca974d0cfa"
|
|
}
|
|
},
|
|
{
|
|
"name": "vacation mode",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.vacation_mode",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'1645246661438'",
|
|
"automation": "- id: '1645246661438'\n alias: Mudroom Light Automation\n description: Automatically turn on the Mudroom lights when motion is detected.\n use_blueprint:\n path: homeassistant/motion_light.yaml\n input:\n light_target:\n device_id:\n - 37ab5381dccd0ec08d2043d4cf433d72\n no_motion_wait: 240\n motion_entity: binary_sensor.mudroom_trisensor_home_security_motion_detection",
|
|
"config": [
|
|
{
|
|
"name": "mudroom light device",
|
|
"room": "mudroom",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": null,
|
|
"device_id": "37ab5381dccd0ec08d2043d4cf433d72"
|
|
}
|
|
},
|
|
{
|
|
"name": "mudroom trisensor motion detection",
|
|
"room": "mudroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.mudroom_trisensor_home_security_motion_detection",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'1646251632973'",
|
|
"automation": "- id: '1646251632973'\n alias: Doorbell Ring (Duplicate)\n description: ''\n trigger:\n - type: occupied\n platform: device\n device_id: 92b464fee4dab94c831b8ff8686f330a\n entity_id: binary_sensor.front_door_camera_doorbell\n domain: binary_sensor\n condition: []\n action:\n - service: camera.snapshot\n data:\n filename: /config/www/images/doorbell_camera_alert.jpg\n target:\n device_id: 92b464fee4dab94c831b8ff8686f330a\n - service: script.display_doorbell_snapshot_on_tvs\n data: {}\n - service: script.play_doorbell\n data: {}\n - service: notify.ios_family\n data:\n message: ' Somebody is at the front door!'\n title: Kohbo Front Door\n data:\n image: /config/www/images/doorbell_camera_alert.jpg\n mode: single",
|
|
"config": [
|
|
{
|
|
"name": "front door camera motion",
|
|
"room": "front door",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.front_door_camera_motion",
|
|
"device_id": "92b464fee4dab94c831b8ff8686f330a"
|
|
}
|
|
},
|
|
{
|
|
"name": "front door camera doorbell",
|
|
"room": "front door",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.front_door_camera_doorbell",
|
|
"device_id": "92b464fee4dab94c831b8ff8686f330a"
|
|
}
|
|
},
|
|
{
|
|
"name": "display doorbell snapshot on tv script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.display_doorbell_snapshot_on_tv",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Display Doorbell Snapshot on TVs",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.display_doorbell_snapshot_on_tvs",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Play Doorbell",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.play_doorbell",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'1646272122915'",
|
|
"automation": "- id: '1646272122915'\n alias: Turn on Outdoor Lights\n description: ''\n trigger:\n - platform: sun\n event: sunset\n offset: 00:15:00\n condition: []\n action:\n - service: homeassistant.turn_on\n data: {}\n target:\n entity_id: group.exterior_lights\n - service: script.speech_engine\n data:\n speech_message: The sun has set, turning on the exterior lights.\n mode: single",
|
|
"config": [
|
|
{
|
|
"name": "exterior lights group",
|
|
"room": "exterior",
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "group.exterior_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Speech Engine",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.speech_engine",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'1646272166786'",
|
|
"automation": "- id: '1646272166786'\n alias: Turn off Outdoor Lights\n description: ''\n trigger:\n - platform: sun\n event: sunrise\n offset: -00:30:00\n condition: []\n action:\n - service: homeassistant.turn_off\n data: {}\n target:\n entity_id: group.exterior_lights\n mode: single",
|
|
"config": [
|
|
{
|
|
"name": "exterior lights group",
|
|
"room": "exterior",
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "group.exterior_lights",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'1646280009884'",
|
|
"automation": "- id: '1646280009884'\n alias: 'Weather: Bad Weather Lighting'\n description: Extra interior lights when the weather is bad\n trigger:\n - platform: numeric_state\n entity_id: sensor.openweathermap_weather_code\n above: '199'\n below: '233'\n - platform: numeric_state\n entity_id: sensor.openweathermap_weather_code\n above: '500'\n below: '532'\n - platform: numeric_state\n entity_id: sensor.openweathermap_weather_code\n above: '761'\n below: '782'\n - platform: numeric_state\n entity_id: sensor.openweathermap_weather_code\n above: '311'\n below: '322'\n condition:\n - condition: and\n conditions:\n - condition: sun\n before: sunset\n after: sunset\n - condition: time\n before: '22:00:00'\n after: 07:00:00\n weekday:\n - mon\n - tue\n - wed\n - thu\n - fri\n - sat\n - sun\n - condition: state\n entity_id: group.family\n state: home\n action:\n - service: homeassistant.turn_on\n data: {}\n target:\n entity_id:\n - group.kitchen_lights\n - light.family_room_main_lights\n - service: notify.mobile_app_jk\n data:\n title: Weather Automation\n message: The weather isn't looking to great so turning some interior lights\n on.\n - service: script.speech_engine\n data:\n speech_message: The weather isn't looking great so turning on the some interior\n lights.\n mode: single",
|
|
"config": [
|
|
{
|
|
"name": "family room main lights",
|
|
"room": "family room",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.family_room_main_lights",
|
|
"device_id": "44fcccda63e4e38e416babd3f3e1fded"
|
|
}
|
|
},
|
|
{
|
|
"name": "openweathermap weather code",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.openweathermap_weather_code",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "family group",
|
|
"room": "family",
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "group.family",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "kitchen lights group",
|
|
"room": "kitchen",
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "group.kitchen_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Speech Engine",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.speech_engine",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'1646884521741'",
|
|
"automation": "- id: '1646884521741'\n alias: Nino Pickup\n description: ''\n trigger:\n - platform: time\n at: '12:30:00'\n condition:\n - condition: time\n before: 00:00:00\n weekday:\n - tue\n - wed\n - thu\n action:\n - service: script.notify_engine\n data:\n title: Kohbo Reminder\n message: Time to pick up Nino from school!\n who: family\n - service: script.speech_engine\n data:\n speech_message: Time to pick up Nino from school!\n mode: single",
|
|
"config": [
|
|
{
|
|
"name": "Notify Engine",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.notify_engine",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Speech Engine",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.speech_engine",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'1647462190395'",
|
|
"automation": "- id: '1647462190395'\n alias: Quiet Mode - Enable\n description: ''\n trigger:\n - type: not_opened\n platform: device\n device_id: b68b546103678f1b18954634f33f230b\n entity_id: binary_sensor.gianlucas_door_sensor_ias_zone\n domain: binary_sensor\n condition:\n - condition: state\n entity_id: input_boolean.quiet_mode\n state: 'off'\n action:\n - service: input_boolean.turn_on\n data: {}\n target:\n entity_id: input_boolean.quiet_mode\n mode: single",
|
|
"config": [
|
|
{
|
|
"name": "quiet mode",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.quiet_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "gianlucas door sensor",
|
|
"room": "gianlucas",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.gianlucas_door_sensor_ias_zone",
|
|
"device_id": "b68b546103678f1b18954634f33f230b"
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean quiet mode",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.quiet_mode",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'1647462317728'",
|
|
"automation": "- id: '1647462317728'\n alias: Quite Mode - Disable\n description: ''\n trigger:\n - type: opened\n platform: device\n device_id: b68b546103678f1b18954634f33f230b\n entity_id: binary_sensor.gianlucas_door_sensor_ias_zone\n domain: binary_sensor\n for:\n hours: 0\n minutes: 5\n seconds: 0\n condition:\n - condition: state\n entity_id: input_boolean.quiet_mode\n state: 'on'\n action:\n - service: input_boolean.turn_off\n data: {}\n target:\n entity_id: input_boolean.quiet_mode\n mode: single",
|
|
"config": [
|
|
{
|
|
"name": "quiet mode",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.quiet_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "gianlucas door sensor",
|
|
"room": "gianlucas",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.gianlucas_door_sensor_ias_zone",
|
|
"device_id": "b68b546103678f1b18954634f33f230b"
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean quiet mode",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.quiet_mode",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'1703382935999'",
|
|
"automation": "- id: '1703382935999'\n alias: Playroom play time\n description: ''\n trigger:\n - platform: conversation\n command:\n - Play mode\n condition: []\n action:\n - service: media_player.play_media\n target:\n entity_id: media_player.sonos_playroom\n data:\n media_content_id: spotify://1ab9efdddfcfad61a69054a109320f8a/spotify:playlist:47VW3DAzyva9wf0o505XFq\n media_content_type: spotify://playlist\n metadata:\n title: Nino Songs\n thumbnail: https://mosaic.scdn.co/640/ab67616d00001e0219ae9f2ac27cfa4de951e56eab67616d00001e0258d16d8402fd5d1c2289ec65ab67616d00001e02774249cfb4814cce97478521ab67616d00001e027f9c9b62b5c266ec1f484397\n media_class: playlist\n children_media_class: track\n navigateIds:\n - {}\n - media_content_type: spotify://library\n media_content_id: spotify://1ab9efdddfcfad61a69054a109320f8a\n - media_content_type: spotify://current_user_playlists\n media_content_id: spotify://1ab9efdddfcfad61a69054a109320f8a/current_user_playlists\n - media_content_type: spotify://playlist\n media_content_id: spotify://1ab9efdddfcfad61a69054a109320f8a/spotify:playlist:47VW3DAzyva9wf0o505XFq\n - service: light.turn_on\n target:\n entity_id: light.playroom_lights\n data: {}\n mode: single",
|
|
"config": [
|
|
{
|
|
"name": "playroom lights",
|
|
"room": "playroom",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.playroom_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "sonos playroom",
|
|
"room": "playroom",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.sonos_playroom",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "playroom media player",
|
|
"room": "playroom",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.sonos_playroom",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'1705228787929'",
|
|
"automation": "- id: '1705228787929'\n alias: New automation\n description: ''\n trigger:\n - platform: time\n at: 05:05:00\n condition: []\n action:\n - service: light.turn_off\n metadata: {}\n data: {}\n target:\n entity_id: light.hue_smart_plug_1\n mode: single",
|
|
"config": [
|
|
{
|
|
"name": "hue smart plug 1",
|
|
"room": null,
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.hue_smart_plug_1",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'1708729229186'",
|
|
"automation": "- id: '1708729229186'\n alias: Jumpy House Toggle New\n description: ''\n trigger:\n - device_id: 8f2fc00a55d6328dc30ed2d53372a1f4\n domain: zha\n platform: device\n type: remote_button_short_press\n subtype: remote_button_short_press\n condition: []\n action:\n - type: toggle\n device_id: 7468fd0c889aba8fcd895aa3387c3795\n entity_id: e96ec63d4a34cf5ed92370e69442c31c\n domain: switch\n mode: single",
|
|
"config": [
|
|
{
|
|
"name": "jumpy house toggle device",
|
|
"room": null,
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "e96ec63d4a34cf5ed92370e69442c31c",
|
|
"device_id": "7468fd0c889aba8fcd895aa3387c3795"
|
|
}
|
|
},
|
|
{
|
|
"name": "jumpy house remote",
|
|
"room": null,
|
|
"type": "remote",
|
|
"id": {
|
|
"entity_id": null,
|
|
"device_id": "8f2fc00a55d6328dc30ed2d53372a1f4"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'1710176506867'",
|
|
"automation": "- id: '1710176506867'\n alias: Playroom button Test\n description: ''\n trigger:\n - platform: event\n event_type: zwave_js_value_notification\n event_data:\n device_id: cd626e869b9ddd77c680a7c1b1bd9bfc\n context: {}\n condition: []\n action: []\n mode: single",
|
|
"config": [
|
|
{
|
|
"name": "playroom button test device",
|
|
"room": "playroom",
|
|
"type": null,
|
|
"id": {
|
|
"entity_id": null,
|
|
"device_id": "cd626e869b9ddd77c680a7c1b1bd9bfc"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'1726030107950'",
|
|
"automation": "- id: '1726030107950'\n alias: Toggle garage door 2\n description: ''\n trigger:\n - event_data:\n actionID: 6EE7ECA3-E8C5-4603-B741-F2B23A89C131\n platform: event\n event_type: ios.action_fired\n condition: []\n action:\n - action: cover.toggle\n metadata: {}\n data: {}\n target:\n device_id: fbe1f9961737e541fa5e35c420d63bfd\n mode: single",
|
|
"config": [
|
|
{
|
|
"name": "garage door 2 device",
|
|
"room": "garage",
|
|
"type": "cover",
|
|
"id": {
|
|
"entity_id": null,
|
|
"device_id": "fbe1f9961737e541fa5e35c420d63bfd"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'1728564743404'",
|
|
"automation": "- id: '1728564743404'\n alias: Temp auto - unlock garage door\n description: ''\n trigger:\n - platform: state\n entity_id:\n - input_boolean.bedtime\n from: 'on'\n to: 'off'\n for:\n hours: 0\n minutes: 2\n seconds: 0\n condition:\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n - condition: state\n entity_id: lock.garage_entry_door\n state: locked\n action:\n - action: lock.unlock\n metadata: {}\n data: {}\n target:\n entity_id: lock.garage_entry_door\n mode: single",
|
|
"config": [
|
|
{
|
|
"name": "bedtime",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.bedtime",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "garage entry door lock",
|
|
"room": "garage",
|
|
"type": "lock",
|
|
"id": {
|
|
"entity_id": "lock.garage_entry_door",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'1745156745937'",
|
|
"automation": "- id: '1745156745937'\n alias: ' Notify Cristina of Event'\n description: ''\n triggers:\n - trigger: calendar\n entity_id: calendar.kohbocal\n event: start\n offset: '-1:0:0'\n conditions: []\n actions: null\n mode: single",
|
|
"config": [
|
|
{
|
|
"name": "calendar kohbocal",
|
|
"room": null,
|
|
"type": "calendar",
|
|
"id": {
|
|
"entity_id": "calendar.kohbocal",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'1754455487847'",
|
|
"automation": "- id: '1754455487847'\n alias: custom assist weather test\n description: ''\n triggers:\n - trigger: conversation\n command: tell me the weather\n conditions: []\n actions:\n - set_conversation_response: It's currently {{ states.weather.pirateweather.attributes.temperature\n }} degrees with {{ states.weather.pirateweather.attributes.humidity }} percent\n humidity\n mode: single",
|
|
"config": [
|
|
{
|
|
"name": "weather pirateweather",
|
|
"room": null,
|
|
"type": "weather",
|
|
"id": {
|
|
"entity_id": "weather.pirateweather",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'1754970331821'",
|
|
"automation": "- id: '1754970331821'\n alias: Music Assistant Voice Command\n description: Play music through voice commands\n use_blueprint:\n path: music-assistant/mass_assist_blueprint_en.yaml\n input:\n default_player_entity_id_input: media_player.office_3",
|
|
"config": [
|
|
{
|
|
"name": "office 3 media player",
|
|
"room": "office",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.office_3",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "backyard_porch_camera_detections_animal",
|
|
"automation": "- id: backyard_porch_camera_detections_animal\n alias: Backyard Porch Camera Detections - Animal\n mode: single\n trigger:\n - platform: state\n entity_id: binary_sensor.backyard_porch_camera_animal_detected\n to: 'on'\n variables:\n camera_name: Backyard Porch Camera\n nvr_id: '{{ config_entry_id(trigger.entity_id) }}'\n event_id: '{{ trigger.to_state.attributes.event_id }}'\n image_path: /api/unifiprotect/thumbnail/{{ nvr_id }}/{{ event_id }}\n proxy_camera: camera.camera_proxy_camera_backyard_porch_camera_high_resolution_channel\n condition:\n - condition: template\n value_template: '{{ ( now().timestamp() - as_timestamp(state_attr(''automation.backyard_porch_camera_detections_animal'',''last_triggered''),\n 0) ) | int > 60 }}'\n - condition: state\n entity_id: input_boolean.camera_notifications\n state: 'on'\n - condition: and\n conditions:\n - condition: template\n value_template: '{{ ( now().timestamp() - as_timestamp(state_attr(''binary_sensor.kitchen_door'',''last_changed''),\n 0) ) | int > 600 }}'\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n action:\n - action: script.camera_detection_alert\n data:\n detection_type: animal\n camera_name: '{{ camera_name }}'\n image_path: '{{ image_path }}'\n proxy_camera: '{{ proxy_camera }}'",
|
|
"config": [
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "backyard porch camera animal detected",
|
|
"room": "backyard porch",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.backyard_porch_camera_animal_detected",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "camera notifications",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.camera_notifications",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "kitchen door",
|
|
"room": "kitchen",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.kitchen_door",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "backyard porch camera proxy",
|
|
"room": "backyard porch",
|
|
"type": "camera",
|
|
"id": {
|
|
"entity_id": "camera.camera_proxy_camera_backyard_porch_camera_high_resolution_channel",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "camera detection alert script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.camera_detection_alert",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "backyard_porch_camera_detections_person",
|
|
"automation": "- id: backyard_porch_camera_detections_person\n alias: Backyard Porch Camera Detections - Person\n mode: single\n trigger:\n - platform: state\n entity_id: binary_sensor.backyard_porch_camera_person_detected\n to: 'on'\n variables:\n camera_name: Backyard Porch Camera\n nvr_id: '{{ config_entry_id(trigger.entity_id) }}'\n event_id: '{{ trigger.to_state.attributes.event_id }}'\n image_path: /api/unifiprotect/thumbnail/{{ nvr_id }}/{{ event_id }}\n proxy_camera: camera.camera_proxy_camera_backyard_porch_camera_high_resolution_channel\n condition:\n - condition: template\n value_template: '{{ ( now().timestamp() - as_timestamp(state_attr(''automation.backyard_porch_camera_detections_person'',''last_triggered''),\n 0) ) | int > 180 }}'\n - condition: state\n entity_id: input_boolean.camera_notifications\n state: 'on'\n - condition: and\n conditions:\n - condition: template\n value_template: '{{ ( now().timestamp() - as_timestamp(state_attr(''binary_sensor.kitchen_door'',''last_changed''),\n 0) ) | int > 600 }}'\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n action:\n - action: script.camera_detection_alert\n data:\n detection_type: person\n camera_name: '{{ camera_name }}'\n image_path: '{{ image_path }}'\n proxy_camera: '{{ proxy_camera }}'",
|
|
"config": [
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "camera notifications",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.camera_notifications",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "kitchen door",
|
|
"room": "kitchen",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.kitchen_door",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "backyard porch camera person detected",
|
|
"room": "backyard porch",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.backyard_porch_camera_person_detected",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "backyard porch camera proxy",
|
|
"room": "backyard porch",
|
|
"type": "camera",
|
|
"id": {
|
|
"entity_id": "camera.camera_proxy_camera_backyard_porch_camera_high_resolution_channel",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "camera detection alert script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.camera_detection_alert",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "backyard_south_camera_detections_animal",
|
|
"automation": "- id: backyard_south_camera_detections_animal\n alias: Backyard South Camera Detections - Animal\n mode: single\n trigger:\n - platform: state\n entity_id: binary_sensor.backyard_south_camera_animal_detected\n to: 'on'\n variables:\n camera_name: Backyard South Camera\n nvr_id: '{{ config_entry_id(trigger.entity_id) }}'\n event_id: '{{ trigger.to_state.attributes.event_id }}'\n image_path: /api/unifiprotect/thumbnail/{{ nvr_id }}/{{ event_id }}\n proxy_camera: camera.camera_proxy_camera_backyard_south_camera_high\n condition:\n - condition: template\n value_template: '{{ ( now().timestamp() - as_timestamp(state_attr(''automation.backyard_south_camera_detections_animal'',''last_triggered''),\n 0) ) | int > 60 }}'\n - condition: state\n entity_id: input_boolean.camera_notifications\n state: 'on'\n action:\n - action: script.camera_detection_alert\n data:\n detection_type: animal\n camera_name: '{{ camera_name }}'\n image_path: '{{ image_path }}'\n proxy_camera: '{{ proxy_camera }}'",
|
|
"config": [
|
|
{
|
|
"name": "camera notifications",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.camera_notifications",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "backyard south camera animal detected",
|
|
"room": "backyard south",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.backyard_south_camera_animal_detected",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "backyard south camera proxy",
|
|
"room": "backyard south",
|
|
"type": "camera",
|
|
"id": {
|
|
"entity_id": "camera.camera_proxy_camera_backyard_south_camera_high",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "camera detection alert script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.camera_detection_alert",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "backyard_south_camera_detections_person",
|
|
"automation": "- id: backyard_south_camera_detections_person\n alias: Backyard South Camera Detections - Person\n mode: single\n trigger:\n - platform: state\n entity_id: binary_sensor.backyard_south_person_detected\n to: 'on'\n variables:\n camera_name: Backyard South Camera\n nvr_id: '{{ config_entry_id(trigger.entity_id) }}'\n event_id: '{{ trigger.to_state.attributes.event_id }}'\n image_path: /api/unifiprotect/thumbnail/{{ nvr_id }}/{{ event_id }}\n proxy_camera: camera.camera_proxy_camera_backyard_south_camera_high\n condition:\n - condition: template\n value_template: '{{ ( now().timestamp() - as_timestamp(state_attr(''automation.backyard_south_camera_detections_person'',''last_triggered''),\n 0) ) | int > 60 }}'\n - condition: state\n entity_id: input_boolean.camera_notifications\n state: 'on'\n action:\n - action: script.camera_detection_alert\n data:\n detection_type: person\n camera_name: '{{ camera_name }}'\n image_path: '{{ image_path }}'\n proxy_camera: '{{ proxy_camera }}'",
|
|
"config": [
|
|
{
|
|
"name": "camera notifications",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.camera_notifications",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "backyard south person detected",
|
|
"room": "backyard south",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.backyard_south_person_detected",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "backyard south camera proxy",
|
|
"room": "backyard south",
|
|
"type": "camera",
|
|
"id": {
|
|
"entity_id": "camera.camera_proxy_camera_backyard_south_camera_high",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "camera detection alert script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.camera_detection_alert",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "bad_weather_mode_off",
|
|
"automation": "- id: bad_weather_mode_off\n initial_state: 'on'\n alias: Bad Weather Mode Off\n trigger:\n - platform: state\n entity_id: input_boolean.house_occupied\n to: 'off'\n - platform: state\n entity_id: sensor.pirateweather_summary\n to: sunny\n - platform: numeric_state\n entity_id: sensor.pirateweather_cloud_coverage\n above: '41'\n - platform: numeric_state\n entity_id: sensor.tempest_illuminance\n above: 150\n condition:\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n - condition: state\n entity_id: input_boolean.bad_weather\n state: 'on'\n - condition: state\n entity_id: sun.sun\n state: above_horizon\n - condition: or\n conditions:\n - condition: state\n entity_id: sensor.pirateweather_summary\n state: sunny\n - condition: state\n entity_id: sensor.pirateweather_summary\n state: clear\n - condition: state\n entity_id: sensor.pirateweather_summary\n state: party cloudy\n - condition: numeric_state\n entity_id: sensor.pirateweather_cloud_coverage_1h\n below: '40'\n - condition: numeric_state\n entity_id: sensor.pirateweather_cloud_coverage\n above: '41'\n action:\n - service: input_boolean.turn_off\n entity_id: input_boolean.bad_weather",
|
|
"config": [
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "pirateweather summary",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.pirateweather_summary",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "pirateweather cloud coverage",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.pirateweather_cloud_coverage",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "tempest illuminance",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.tempest_illuminance",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "bad weather",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.bad_weather",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "sun sun",
|
|
"room": null,
|
|
"type": "sun",
|
|
"id": {
|
|
"entity_id": "sun.sun",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "pirateweather cloud coverage 1h",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.pirateweather_cloud_coverage_1h",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "bad_weather_mode_on",
|
|
"automation": "- id: bad_weather_mode_on\n initial_state: 'on'\n alias: Bad Weather Mode On\n trigger:\n - platform: state\n entity_id: input_boolean.house_occupied\n to: 'on'\n - platform: state\n entity_id: sensor.pirateweather_summary\n to:\n - exceptional\n - lightning\n - rainy\n - snowy\n - snowy rainy\n - platform: state\n entity_id: sensor.pirateweather_alerts\n - platform: numeric_state\n entity_id: sensor.pirateweather_cloud_coverage\n above: 75\n - platform: numeric_state\n entity_id: sensor.tempest_illuminance\n below: 50\n condition:\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n - condition: state\n entity_id: input_boolean.bad_weather\n state: 'off'\n - condition: state\n entity_id: sun.sun\n state: above_horizon\n - condition: or\n conditions:\n - condition: state\n entity_id: sensor.pirateweather_summary\n state:\n - exceptional\n - lightning\n - rainy\n - snowy\n - snowy rainy\n - condition: numeric_state\n entity_id: sensor.pirateweather_alerts\n above: 1\n - condition: and\n conditions:\n - condition: or\n conditions:\n - condition: numeric_state\n entity_id: sensor.tempest_precipitation\n above: '.01'\n - condition: numeric_state\n entity_id: sensor.tempest_precipitation_intensity\n above: '.25'\n - condition: numeric_state\n entity_id: sensor.tempest_illuminance\n below: 150\n action:\n - service: input_boolean.turn_on\n entity_id: input_boolean.bad_weather",
|
|
"config": [
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "pirateweather summary",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.pirateweather_summary",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "pirateweather cloud coverage",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.pirateweather_cloud_coverage",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "tempest illuminance",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.tempest_illuminance",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "bad weather",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.bad_weather",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "sun sun",
|
|
"room": null,
|
|
"type": "sun",
|
|
"id": {
|
|
"entity_id": "sun.sun",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "tempest precipitation",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.tempest_precipitation",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "tempest precipitation intensity",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.tempest_precipitation_intensity",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "pirateweather alerts",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.pirateweather_alerts",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "basement_mode_auto",
|
|
"automation": "- id: basement_mode_auto\n initial_state: true\n alias: Basement mode Auto\n trigger:\n - platform: state\n entity_id: input_select.house\n to: Auto\n - platform: state\n entity_id: input_boolean.house_occupied\n to: 'on'\n condition:\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n - condition: template\n value_template: '{{ not is_state(''input_select.basement'',''Auto'') }}'\n - condition: state\n entity_id: input_boolean.bedtime\n state: 'off'\n - condition: state\n entity_id: input_select.house\n state: Auto\n action:\n - service: input_select.select_option\n data:\n entity_id: input_select.basement\n option: Auto",
|
|
"config": [
|
|
{
|
|
"name": "bedtime",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.bedtime",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "house status",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.house",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "basement mode",
|
|
"room": "basement",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.basement",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "basement_mode_off",
|
|
"automation": "- id: basement_mode_off\n initial_state: true\n alias: Basement mode off\n trigger:\n - platform: state\n entity_id: input_boolean.house_occupied\n to: 'off'\n - platform: state\n entity_id: input_select.house\n to: Away\n - platform: state\n entity_id: input_boolean.bedtime\n to: 'on'\n - platform: homeassistant\n event: start\n - platform: event\n event_type: automation_reloaded\n condition:\n - condition: template\n value_template: '{{ not is_state(''input_select.basement'',''Off'') }}'\n - condition: or\n conditions:\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'off'\n - condition: state\n entity_id: input_select.house\n state: Away\n - condition: state\n entity_id: input_boolean.bedtime\n state: 'on'\n action:\n - service: input_select.select_option\n data:\n entity_id: input_select.basement\n option: 'Off'",
|
|
"config": [
|
|
{
|
|
"name": "bedtime",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.bedtime",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "house status",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.house",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "basement mode",
|
|
"room": "basement",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.basement",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "basement_not_occupied",
|
|
"automation": "- id: basement_not_occupied\n initial_state: true\n alias: Basement not occupied\n trigger:\n - platform: template\n value_template: '{{ expand(''group.room_presence_devices'')|selectattr(''state'',\n ''eq'', ''basement'')|map(attribute=''name'')|list | length == 0 }}'\n for:\n minutes: 5\n - platform: state\n entity_id: binary_sensor.basement_motion_sensor\n to: 'off'\n for:\n minutes: 5\n - platform: state\n entity_id: binary_sensor.basement_occupancy_sensor\n to: 'off'\n - platform: state\n entity_id: binary_sensor.basement_occupancy_sensor\n to: 'off'\n for:\n minutes: 5\n condition:\n - condition: state\n entity_id: input_boolean.basement_occupied\n state: 'on'\n - condition: or\n conditions:\n - condition: and\n conditions:\n - condition: state\n entity_id: input_boolean.guest_mode\n state: 'on'\n - condition: state\n entity_id: binary_sensor.basement_occupancy_sensor\n state: 'off'\n for:\n minutes: 5\n - condition: and\n conditions:\n - condition: state\n entity_id: input_boolean.guest_mode\n state: 'off'\n - condition: state\n entity_id: binary_sensor.basement_occupancy_sensor\n state: 'off'\n for:\n minutes: 2\n - condition: template\n value_template: '{{ expand(''group.room_presence_devices'')|selectattr(''state'',\n ''eq'', ''basement'')|map(attribute=''name'')|list | length == 0 }}'\n action:\n - service: input_boolean.turn_off\n entity_id: input_boolean.basement_occupied",
|
|
"config": [
|
|
{
|
|
"name": "basement occupied",
|
|
"room": "basement",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.basement_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "guest mode",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.guest_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "basement motion sensor",
|
|
"room": "basement",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.basement_motion_sensor",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "basement occupancy sensor",
|
|
"room": "basement",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.basement_occupancy_sensor",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "room presence devices group",
|
|
"room": null,
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "group.room_presence_devices",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "basement_occupied",
|
|
"automation": "- id: basement_occupied\n initial_state: true\n alias: Basement occupied\n trigger:\n - platform: state\n entity_id: binary_sensor.basement_motion_sensor\n to: 'on'\n - platform: state\n entity_id: binary_sensor.basement_occupancy_sensor\n to: 'on'\n condition:\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n - condition: state\n entity_id: input_boolean.basement_occupied\n state: 'off'\n - condition: or\n conditions:\n - condition: template\n value_template: '{{ expand(''group.room_presence_devices'')|selectattr(''state'',\n ''eq'', ''basement'')|map(attribute=''name'')|list | length > 0 }}'\n - condition: state\n entity_id: binary_sensor.basement_occupancy_sensor\n state: 'on'\n action:\n - service: input_boolean.turn_on\n entity_id: input_boolean.basement_occupied",
|
|
"config": [
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "basement occupied",
|
|
"room": "basement",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.basement_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "basement motion sensor",
|
|
"room": "basement",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.basement_motion_sensor",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "basement occupancy sensor",
|
|
"room": "basement",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.basement_occupancy_sensor",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "room presence devices group",
|
|
"room": null,
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "group.room_presence_devices",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "bedtime_mode_off",
|
|
"automation": "- id: bedtime_mode_off\n alias: Bedtime Mode - Off\n initial_state: true\n triggers:\n - trigger: state\n entity_id: binary_sensor.everybody_in_bed\n to: 'off'\n - trigger: state\n entity_id:\n - input_boolean.cristina_is_awake\n - input_boolean.john_is_awake\n to: 'on'\n - trigger: time\n at: 06:30:00\n - trigger: sun\n event: sunrise\n condition:\n - condition: time\n after: 05:00:00\n - condition: or\n conditions:\n - condition: or\n conditions:\n - condition: state\n entity_id: input_boolean.john_home\n state: 'off'\n - condition: and\n conditions:\n - condition: state\n entity_id: input_boolean.john_home\n state: 'on'\n - condition: state\n entity_id: input_boolean.john_is_awake\n state: 'on'\n - condition: or\n conditions:\n - condition: state\n entity_id: input_boolean.cristina_home\n state: 'off'\n - condition: and\n conditions:\n - condition: state\n entity_id: input_boolean.cristina_home\n state: 'on'\n - condition: state\n entity_id: input_boolean.cristina_is_awake\n state: 'on'\n action:\n - service: input_boolean.turn_off\n entity_id: input_boolean.bedtime",
|
|
"config": [
|
|
{
|
|
"name": "bedtime",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.bedtime",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "john home",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.john_home",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "everybody in bed",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.everybody_in_bed",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "cristina is awake",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.cristina_is_awake",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "john is awake",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.john_is_awake",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "cristina home",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.cristina_home",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "bedtime_mode_on",
|
|
"automation": "- id: bedtime_mode_on\n initial_state: true\n alias: Bedtime Mode - On\n triggers:\n - trigger: state\n entity_id: binary_sensor.everybody_in_bed\n to: 'on'\n conditions:\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n action:\n - action: input_boolean.turn_on\n entity_id: input_boolean.bedtime",
|
|
"config": [
|
|
{
|
|
"name": "bedtime",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.bedtime",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "everybody in bed",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.everybody_in_bed",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "bedtime_mode_vacation_on",
|
|
"automation": "- id: bedtime_mode_vacation_on\n initial_state: true\n alias: Bedtime Mode - Vacation On\n triggers:\n - trigger: time\n at: '22:00:00'\n conditions:\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'off'\n action:\n - action: input_boolean.turn_on\n entity_id: input_boolean.bedtime",
|
|
"config": [
|
|
{
|
|
"name": "bedtime",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.bedtime",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "bedtime_mode_vacation_off",
|
|
"automation": "- id: bedtime_mode_vacation_off\n initial_state: true\n alias: Bedtime Mode - Vacation Off\n triggers:\n - trigger: time\n at: 07:00:00\n conditions:\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'off'\n action:\n - action: input_boolean.turn_off\n entity_id: input_boolean.bedtime",
|
|
"config": [
|
|
{
|
|
"name": "bedtime",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.bedtime",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "bedtime_notifications",
|
|
"automation": "- id: bedtime_notifications\n alias: Bedtime Notifications\n mode: single\n trigger:\n - platform: state\n entity_id: input_select.main_bedroom\n to: Bedtime\n condition:\n - condition: state\n entity_id: input_select.main_bedroom\n state: Bedtime\n - condition: state\n entity_id: binary_sensor.bedtime\n state: 'on'\n action:\n - service: input_text.set_value\n entity_id: input_text.bedtime_notification_message\n data:\n value: ''\n - if:\n - condition: state\n entity_id: lock.front_door\n state: unlocked\n then:\n - service: input_text.set_value\n entity_id: input_text.bedtime_notification_message\n data:\n value: The front door is unlocked.\n - if:\n - condition: state\n entity_id: binary_sensor.jr_suite_door_status\n state: 'off'\n then:\n - service: input_text.set_value\n entity_id: input_text.bedtime_notification_message\n data:\n value: \"{% set message = states.input_text.bedtime_notification_message.state\\\n \\ %} {% set vac_message = \\\"the junior suite door is closed, so the vacuum\\\n \\ will get stuck\\\" %} {% if message | length > 0 %}\\n \\\"{{message}} and\\\n \\ {{vac_message}}\\\"\\n{% else %}\\n {{vac_message}}\\n{% endif %}\"\n - if:\n - condition: state\n entity_id: binary_sensor.windows\n state: 'on'\n then:\n - service: input_text.set_value\n entity_id: input_text.bedtime_notification_message\n data:\n value: \"{% set open_windows = expand('binary_sensor.windows')|selectattr('state',\\\n \\ 'eq', 'on')|map(attribute='name')|list|unique|join(', ') %} {% set window_message\\\n \\ = \\\"The following windows are still open: \\\" + open_windows %}\\n{% set\\\n \\ message = states.input_text.bedtime_notification_message.state %} {% if\\\n \\ message | length > 0 %}\\n \\\"{{message}} and {{window_message}}\\\"\\n{%\\\n \\ else %}\\n {{window_message}}\\n{% endif %}\"\n - condition: template\n value_template: '{{states.input_text.bedtime_notification_message.state | length\n > 0}}'\n - service: input_text.set_value\n entity_id: input_text.bedtime_notification_message\n data:\n value: Hey there, just wanted to let you know {{states.input_text.bedtime_notification_message.state}}\n - service: script.general_notification\n data:\n message: '{{states.input_text.bedtime_notification_message.state}}'\n title: Bedtime Notifications\n devices: jk\n priority: time-sensitive\n tag: bedtime-notifications\n - service: media_player.volume_set\n data:\n entity_id: media_player.main_bedroom\n volume_level: 0.25\n - service: notify.alexa_media\n data:\n data:\n type: tts\n target: media_player.kohbo_dot_main_bedroom\n message: '{{states.input_text.bedtime_notification_message.state}}'",
|
|
"config": [
|
|
{
|
|
"name": "kohbo dot main bedroom",
|
|
"room": "main bedroom",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.kohbo_dot_main_bedroom",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "main bedroom mode",
|
|
"room": "main bedroom",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.main_bedroom",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "bedtime notification message",
|
|
"room": null,
|
|
"type": "input_text",
|
|
"id": {
|
|
"entity_id": "input_text.bedtime_notification_message",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "front door lock",
|
|
"room": "front door",
|
|
"type": "lock",
|
|
"id": {
|
|
"entity_id": "lock.front_door",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "jr suite door status",
|
|
"room": "jr suite",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.jr_suite_door_status",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "windows group",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.windows",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "main bedroom media player",
|
|
"room": "main bedroom",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.main_bedroom",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "general notification script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.general_notification",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "binary sensor bedtime",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.bedtime",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "notify alexa media",
|
|
"room": null,
|
|
"type": "notify",
|
|
"id": {
|
|
"entity_id": "notify.alexa_media",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "birthday_today_reminder",
|
|
"automation": "- id: birthday_today_reminder\n alias: Birthday Today Reminder\n mode: single\n trigger:\n - platform: time\n at: 07:35:00\n - platform: time\n at: '17:15:00'\n condition:\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n - condition: state\n entity_id: calendar.birthdays_2\n state: 'on'\n action:\n - wait_template: \"{{ \\n is_state('binary_sensor.kitchen_motion_sensor_status',\\\n \\ 'on')\\n or\\n is_state('binary_sensor.family_room_motion_sensor', 'on')\\n\\\n }}\"\n timeout: 00:05:00\n - alias: Wait 2 seconds\n delay: 2\n - service: script.voice_announcement\n data:\n media_players: auto\n sound: success-trumpets\n priority: normal\n speech_message: \"{{ \\n [\\n \\\"Hey fam, just wanted to remind you that today\\\n \\ is \\\" ~ states.calendar.birthdays_2.attributes.message,\\n \\\"Just a quick\\\n \\ reminder that it's \\\" ~ states.calendar.birthdays_2.attributes.message ~\\\n \\ \\\" today!\\\",\\n \\\"Pardon the interruption, don't forget that today is\\\n \\ \\\" ~ states.calendar.birthdays_2.attributes.message\\n ] | random\\n}}\"\n - service: script.general_notification\n data:\n message: Today is {{states.calendar.birthdays_2.attributes.message}}\n title: Birthday Reminder\n devices: jk\n priority: active\n tag: birthday-reminder",
|
|
"config": [
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "calendar birthdays 2",
|
|
"room": null,
|
|
"type": "calendar",
|
|
"id": {
|
|
"entity_id": "calendar.birthdays_2",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "kitchen motion sensor status",
|
|
"room": "kitchen",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.kitchen_motion_sensor_status",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "family room motion sensor",
|
|
"room": "family room",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.family_room_motion_sensor",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "general notification script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.general_notification",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "voice announcement script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.voice_announcement",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "family room motion sensor",
|
|
"room": "family room",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.family_room_motion_sensor",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "script voice announcement",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.voice_announcement",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "binary sensor kitchen motion sensor status",
|
|
"room": "kitchen",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.kitchen_motion_sensor_status",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "birthday_tomorrow_reminder",
|
|
"automation": "- id: birthday_tomorrow_reminder\n alias: Birthday Tomorrow Reminder\n mode: single\n trigger:\n - platform: time\n at: '18:30:00'\n - platform: time\n at: '20:05:00'\n condition:\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n - condition: state\n entity_id: binary_sensor.birthday_tomorrow\n state: 'on'\n - condition: time\n after: '17:00:00'\n action:\n - wait_template: \"{{ \\n is_state('binary_sensor.kitchen_motion_sensor_status',\\\n \\ 'on')\\n or\\n is_state('binary_sensor.family_room_motion_sensor', 'on')\\n\\\n }}\"\n timeout: 00:05:00\n - alias: Wait 2 seconds\n delay: 2\n - service: script.voice_announcement\n data:\n media_players: auto\n sound: success-trumpets\n priority: high\n speech_message: \"{{ \\n [\\n \\\"Hey fam, just wanted to remind you that tomorrow\\\n \\ is \\\" ~ states.calendar.birthdays_2.attributes.message,\\n \\\"Just a quick\\\n \\ reminder that \\\" ~ states.calendar.birthdays_2.attributes.message ~ \\\" is\\\n \\ tomorrow.\\\",\\n \\\"Pardon the interruption, don't forget that tomorrow\\\n \\ is \\\" ~ states.calendar.birthdays_2.attributes.message\\n ] | random\\n}}\"\n - service: script.general_notification\n data:\n message: Tomorrow is {{states.calendar.birthdays_2.attributes.message}}\n title: Birthday Reminder\n devices: jk\n priority: active\n tag: birthday-reminder",
|
|
"config": [
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "calendar birthdays 2",
|
|
"room": null,
|
|
"type": "calendar",
|
|
"id": {
|
|
"entity_id": "calendar.birthdays_2",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "kitchen motion sensor status",
|
|
"room": "kitchen",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.kitchen_motion_sensor_status",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "family room motion sensor",
|
|
"room": "family room",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.family_room_motion_sensor",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "birthday tomorrow",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.birthday_tomorrow",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "general notification script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.general_notification",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "voice announcement script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.voice_announcement",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "family room motion sensor",
|
|
"room": "family room",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.family_room_motion_sensor",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "script voice announcement",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.voice_announcement",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "binary sensor kitchen motion sensor status",
|
|
"room": "kitchen",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.kitchen_motion_sensor_status",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "bmw_is_away",
|
|
"automation": "- id: bmw_is_away\n alias: BMW is Away\n initial_state: true\n trigger:\n - platform: state\n entity_id: sensor.bmw_presence\n to: not_home\n - platform: event\n event_type: automation_reloaded\n - platform: homeassistant\n event: start\n condition:\n - condition: state\n entity_id: sensor.bmw_presence\n state: not_home\n action:\n - service: input_boolean.turn_off\n entity_id: input_boolean.bmw_home",
|
|
"config": [
|
|
{
|
|
"name": "bmw presence",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.bmw_presence",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "bmw home",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.bmw_home",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "bmw_is_home",
|
|
"automation": "- id: bmw_is_home\n initial_state: true\n alias: BMW is Home\n trigger:\n - platform: state\n entity_id: sensor.bmw_presence\n from: not_home\n - platform: state\n entity_id: sensor.bmw_presence\n to: garage\n - platform: event\n event_type: automation_reloaded\n - platform: homeassistant\n event: start\n condition:\n - condition: or\n conditions:\n - condition: state\n entity_id: sensor.bmw_presence\n state: garage\n - condition: template\n value_template: '{{ states.sensor.bmw_presence.state != ''not_home''}}'\n action:\n - service: input_boolean.turn_on\n entity_id: input_boolean.bmw_home",
|
|
"config": [
|
|
{
|
|
"name": "bmw presence",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.bmw_presence",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "bmw home",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.bmw_home",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "camera_notifications_activate",
|
|
"automation": "- id: camera_notifications_activate\n alias: Camera Notifications - Activate\n mode: single\n initial_state: true\n trigger:\n - platform: state\n entity_id: input_select.house\n to: Away\n - platform: time\n at: '22:00:00'\n - platform: sun\n event: sunset\n offset: 00:15:00\n - platform: state\n entity_id: binary_sensor.exterior_doors\n to: 'off'\n for:\n minutes: 45\n - platform: state\n entity_id: input_boolean.bedtime\n to: 'on'\n condition:\n - condition: state\n entity_id: input_boolean.camera_notifications\n state: 'off'\n action:\n - service: input_boolean.turn_on\n entity_id: input_boolean.camera_notifications\n - service: script.general_notification\n data:\n title: Security Cameras\n message: Camera detections have been enabled.\n devices: all\n priority: time-sensitive\n tag: camera-notifications",
|
|
"config": [
|
|
{
|
|
"name": "bedtime",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.bedtime",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "house status",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.house",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "camera notifications",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.camera_notifications",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "exterior doors group",
|
|
"room": "exterior",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.exterior_doors",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "general notification script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.general_notification",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "camera_notifications_deactivate",
|
|
"automation": "- id: camera_notifications_deactivate\n alias: Camera Notifications - Deactivate\n mode: single\n initial_state: true\n trigger:\n - platform: state\n entity_id: input_boolean.house_occupied\n to: 'on'\n for:\n minutes: 15\n - platform: state\n entity_id: input_select.house\n to: Auto\n for:\n minutes: 30\n - platform: sun\n event: sunrise\n offset: 00:15:00\n - platform: state\n entity_id: binary_sensor.exterior_doors\n to: 'on'\n - platform: state\n entity_id:\n - input_boolean.cristina_home\n - input_boolean.john_home\n - input_boolean.joe_home\n - input_boolean.nonna_home\n - input_boolean.katia_home\n to: 'on'\n - platform: state\n entity_id: cover.garage_doors\n to: open\n condition:\n - condition: state\n entity_id: input_boolean.camera_notifications\n state: 'on'\n - condition: state\n entity_id: group.family\n state: home\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n - condition: state\n entity_id: input_boolean.bedtime\n state: 'off'\n - condition: state\n entity_id: sun.sun\n state: above_horizon\n action:\n - service: input_boolean.turn_off\n entity_id: input_boolean.camera_notifications\n - service: script.general_notification\n data:\n title: Security Cameras\n message: Camera detections have been disabled to cut down on notification overload.\n devices: all\n priority: time-sensitive\n tag: camera-notifications",
|
|
"config": [
|
|
{
|
|
"name": "bedtime",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.bedtime",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "house status",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.house",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "john home",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.john_home",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "family group",
|
|
"room": "family",
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "group.family",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "camera notifications",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.camera_notifications",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "sun sun",
|
|
"room": null,
|
|
"type": "sun",
|
|
"id": {
|
|
"entity_id": "sun.sun",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "cristina home",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.cristina_home",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "exterior doors group",
|
|
"room": "exterior",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.exterior_doors",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "joe home",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.joe_home",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "nonna home",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.nonna_home",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "katia home",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.katia_home",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "cover garage doors",
|
|
"room": "garage",
|
|
"type": "cover",
|
|
"id": {
|
|
"entity_id": "cover.garage_doors",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "general notification script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.general_notification",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "christmas_activated",
|
|
"automation": "- id: christmas_activated\n alias: Christmas Activated\n mode: single\n trigger:\n - platform: state\n entity_id: input_boolean.dark_outside\n to: 'on'\n - platform: time\n at: '16:00:00'\n - platform: state\n entity_id: input_select.house\n to: Auto\n - platform: state\n entity_id: input_boolean.house_occupied\n to: 'on'\n - platform: event\n event_type: automation_reloaded\n - platform: homeassistant\n event: start\n condition:\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n - condition: state\n entity_id: input_boolean.christmas_active\n state: 'off'\n - condition: or\n conditions:\n - condition: state\n entity_id: input_boolean.dark_outside\n state: 'on'\n - condition: time\n after: '16:00:00'\n - condition: time\n after: '12:00:00'\n before: '22:00:00'\n action:\n - service: input_boolean.turn_on\n entity_id: input_boolean.christmas_active",
|
|
"config": [
|
|
{
|
|
"name": "house status",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.house",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "dark outside",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.dark_outside",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "christmas active",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.christmas_active",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "christmas_disabled",
|
|
"automation": "- id: christmas_disabled\n alias: Christmas Disabled\n mode: single\n trigger:\n - platform: homeassistant\n event: start\n - platform: time\n at: 02:00:00\n condition:\n - condition: state\n entity_id: input_boolean.christmas_season_active\n state: 'on'\n - condition: template\n value_template: '{% set d = now() %} {{ (d.month == 1 and d.day > 7) or (d.month\n > 2 and d.month < 12) }}\n\n '\n action:\n - service: script.turn_on\n entity_id: script.christmas_disable_automations",
|
|
"config": [
|
|
{
|
|
"name": "christmas season active",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.christmas_season_active",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Christmas Disable Automations",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.christmas_disable_automations",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Turn On",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.turn_on",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "christmas_enabled",
|
|
"automation": "- id: christmas_enabled\n alias: Christmas Enabled\n mode: single\n trigger:\n - platform: homeassistant\n event: start\n - platform: time\n at: 02:00:00\n condition:\n - condition: template\n value_template: '{% set d = now() %} {{ d.month == 12 or (d.month == 1 and ( 1<=\n d.day <= 7)) }}\n\n '\n - condition: state\n entity_id: input_boolean.christmas_season_active\n state: 'off'\n action:\n - service: script.turn_on\n entity_id: script.christmas_enable_automations",
|
|
"config": [
|
|
{
|
|
"name": "christmas season active",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.christmas_season_active",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Christmas Enable Automations",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.christmas_enable_automations",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Turn On",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.turn_on",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "turn_on_christmas_lights",
|
|
"automation": "- id: turn_on_christmas_lights\n alias: Turn ON Christmas Lights\n mode: single\n trigger:\n - platform: state\n entity_id: input_boolean.christmas_active\n to: 'on'\n condition:\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n action:\n - service: switch.turn_on\n entity_id: switch.christmas_lights",
|
|
"config": [
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "christmas active",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.christmas_active",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "christmas lights switch",
|
|
"room": null,
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.christmas_lights",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "turn_off_christmas_lights",
|
|
"automation": "- id: turn_off_christmas_lights\n alias: Turn OFF Christmas Lights\n mode: single\n trigger:\n - platform: state\n entity_id: input_boolean.christmas_active\n to: 'off'\n - platform: state\n entity_id: input_boolean.christmas_active\n to: 'off'\n for:\n minutes: 3\n action:\n - service: switch.turn_off\n entity_id: switch.christmas_lights",
|
|
"config": [
|
|
{
|
|
"name": "christmas active",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.christmas_active",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "christmas lights switch",
|
|
"room": null,
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.christmas_lights",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "handle_ikea_unresponsive",
|
|
"automation": "- id: handle_ikea_unresponsive\n alias: Handle IKEA Unresponsive\n mode: single\n trigger:\n - platform: state\n entity_id:\n - switch.tradfri_smart_plug_1_switch\n - switch.tradfri_smart_plug_2_switch\n - switch.tradfri_smart_plug_3_switch\n - switch.tradfri_smart_plug_4_switch\n from: unresponsive\n action:\n choose:\n - conditions:\n - condition: state\n entity_id: input_boolean.christmas_active\n state: 'on'\n sequence:\n - service: switch.turn_on\n target:\n entity_id:\n - switch.tradfri_smart_plug_1_switch\n - switch.tradfri_smart_plug_2_switch\n - switch.tradfri_smart_plug_3_switch\n - switch.tradfri_smart_plug_4_switch\n - conditions:\n - condition: state\n entity_id: input_boolean.christmas_active\n state: 'off'\n sequence:\n - service: switch.turn_off\n target:\n entity_id:\n - switch.tradfri_smart_plug_1_switch\n - switch.tradfri_smart_plug_2_switch\n - switch.tradfri_smart_plug_3_switch\n - switch.tradfri_smart_plug_4_switch",
|
|
"config": [
|
|
{
|
|
"name": "christmas active",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.christmas_active",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "tradfri smart plug 1 switch",
|
|
"room": null,
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.tradfri_smart_plug_1_switch",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "tradfri smart plug 2 switch",
|
|
"room": null,
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.tradfri_smart_plug_2_switch",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "tradfri smart plug 3 switch",
|
|
"room": null,
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.tradfri_smart_plug_3_switch",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "tradfri smart plug 4 switch",
|
|
"room": null,
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.tradfri_smart_plug_4_switch",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "christmas_not_activated",
|
|
"automation": "- id: christmas_not_activated\n alias: Christmas NOT Activated\n mode: single\n trigger:\n - platform: state\n entity_id: input_boolean.dark_outside\n to: 'off'\n - platform: state\n entity_id: input_select.house\n to: Away\n - platform: state\n entity_id: input_select.house\n to: Bedtime\n - platform: state\n entity_id: input_boolean.house_occupied\n to: 'off'\n - platform: event\n event_type: automation_reloaded\n - platform: homeassistant\n event: start\n condition:\n - condition: state\n entity_id: input_boolean.christmas_active\n state: 'on'\n - condition: or\n conditions:\n - condition: state\n entity_id: input_select.house\n state: Away\n - condition: state\n entity_id: input_select.house\n state: Bedtime\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'off'\n action:\n - service: input_boolean.turn_off\n entity_id: input_boolean.christmas_active\n - service: notify.mobile_app_jk_2\n data:\n title: Holidays\n message: Christmas is NO longer activate",
|
|
"config": [
|
|
{
|
|
"name": "house status",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.house",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "dark outside",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.dark_outside",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "christmas active",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.christmas_active",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "mobile app jk 2 notification",
|
|
"room": null,
|
|
"type": "notify",
|
|
"id": {
|
|
"entity_id": "notify.mobile_app_jk_2",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "christmas_shortcut_button",
|
|
"automation": "- id: christmas_shortcut_button\n alias: Christmas Shortcut Button\n initial_state: false\n trigger:\n - device_id: d98b081e7991a6e9ce1672128dad93ae\n domain: zha\n platform: device\n type: remote_button_short_press\n subtype: turn_on\n action:\n - service: input_boolean.toggle\n entity_id: input_boolean.christmas_active\n - alias: Wait 1 seconds\n delay: 1",
|
|
"config": [
|
|
{
|
|
"name": "christmas active",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.christmas_active",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "christmas shortcut button",
|
|
"room": null,
|
|
"type": "remote",
|
|
"id": {
|
|
"entity_id": null,
|
|
"device_id": "d98b081e7991a6e9ce1672128dad93ae"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "vacuum_clean_dining_and_foyer_at_night",
|
|
"automation": "- id: vacuum_clean_dining_and_foyer_at_night\n alias: Vacuum - Clean Dining and Foyer at Night\n mode: single\n triggers:\n - trigger: time\n at: '21:00:00'\n id: nightly_check\n - trigger: state\n entity_id: input_boolean.guest_mode\n to: 'off'\n for:\n minutes: 15\n enabled: true\n id: guest_mode_off\n conditions:\n - condition: or\n conditions:\n - condition: trigger\n id: nightly_check\n - condition: and\n conditions:\n - condition: trigger\n id: guest_mode_off\n - condition: time\n after: '21:00:00'\n before: '23:00:00'\n - condition: state\n entity_id: input_boolean.guest_mode\n state: 'off'\n - condition: state\n entity_id: input_boolean.entertainment_mode\n state: 'off'\n - condition: template\n value_template: \"{% set vacation = states.input_boolean.vacation_mode %} {% if\\\n \\ vacation.state == \\\"on\\\" %}\\n {{ (now() - vacation.last_changed).total_seconds()\\\n \\ < 86400 }}\\n{% else %}\\n true\\n{% endif %}\\n\"\n - condition: state\n entity_id: binary_sensor.jr_suite_door_status\n state: 'on'\n - condition: template\n value_template: \"{% set last_run = state_attr('automation.vacuum_clean_dining_and_foyer_at_night',\\\n \\ 'last_triggered') %} {% set yesterday_start = now().replace(hour=0, minute=0,\\\n \\ second=0) - timedelta(days=1) %} {% set yesterday_end = now().replace(hour=0,\\\n \\ minute=0, second=0) %} {% set entertainment_yesterday = states.input_boolean.entertainment_mode.last_changed.replace(hour=0,\\\n \\ minute=0, second=0) >= yesterday_start \\n and states.input_boolean.entertainment_mode.last_changed\\\n \\ < yesterday_end %}\\n\\n{% if last_run != None %}\\n {% set days_since_last_run\\\n \\ = (now() - last_run).total_seconds() / 108000 %}\\n {% if entertainment_yesterday\\\n \\ %}\\n {# Run if there was entertainment yesterday, regardless of last run\\\n \\ #}\\n {{ true }}\\n {% else %}\\n {# Otherwise run if it's been at least\\\n \\ 2 days since last run #}\\n {{ days_since_last_run >= 2 }}\\n {% endif %}\\n\\\n {% else %}\\n {{ true }}\\n{% endif %}\\n\"\n - condition: template\n value_template: \"{{ states('input_boolean.sylvia_home') == 'off' \\n and (now()\\\n \\ - states.input_boolean.sylvia_home.last_changed).total_seconds() > 86400 }}\\n\"\n actions:\n - action: vacuum.send_command\n target:\n entity_id: vacuum.roborock_s7\n data:\n command: app_segment_clean\n params:\n - 20\n - 23",
|
|
"config": [
|
|
{
|
|
"name": "vacation mode",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.vacation_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "guest mode",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.guest_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "jr suite door status",
|
|
"room": "jr suite",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.jr_suite_door_status",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "entertainment mode",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.entertainment_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "sylvia home",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.sylvia_home",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "roborock s7 vacuum",
|
|
"room": null,
|
|
"type": "vacuum",
|
|
"id": {
|
|
"entity_id": "vacuum.roborock_s7",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "clean_kitchen_and_family_room_at_night",
|
|
"automation": "- id: clean_kitchen_and_family_room_at_night\n alias: Vacuum - Clean Kitchen and Family Room at Night\n mode: single\n triggers:\n - trigger: state\n entity_id: input_boolean.bedtime\n to: 'on'\n for:\n minutes: 30\n - trigger: time\n at: 01:01:00\n conditions:\n - condition: time\n after: '22:00:00'\n before: 07:00:00\n - condition: state\n entity_id: binary_sensor.jr_suite_door_status\n state: 'on'\n - condition: or\n conditions:\n - condition: state\n entity_id: input_boolean.vacation_mode\n state: 'off'\n - condition: template\n value_template: \"{% set vacation_last_changed = states.input_boolean.vacation_mode.last_changed\\\n \\ %} {% if states.input_boolean.vacation_mode.state == \\\"on\\\" %}\\n {{ (now()\\\n \\ - vacation_last_changed).total_seconds() < 86400 }}\\n{% else %}\\n {{ false\\\n \\ }}\\n{% endif %}\\n\"\n actions:\n - action: vacuum.send_command\n target:\n entity_id: vacuum.roborock_s7\n data:\n command: app_segment_clean\n params:\n - 24\n - 25\n - 26",
|
|
"config": [
|
|
{
|
|
"name": "bedtime",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.bedtime",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "vacation mode",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.vacation_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "jr suite door status",
|
|
"room": "jr suite",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.jr_suite_door_status",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "roborock s7 vacuum",
|
|
"room": null,
|
|
"type": "vacuum",
|
|
"id": {
|
|
"entity_id": "vacuum.roborock_s7",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "clean_kitchen_when_unoccupied",
|
|
"automation": "- id: clean_kitchen_when_unoccupied\n alias: Vacuum - Clean Kitchen When Unoccupied\n mode: single\n triggers:\n - trigger: state\n entity_id: input_boolean.house_occupied\n to: 'off'\n for:\n minutes: 5\n conditions:\n - condition: state\n entity_id: vacuum.roborock_s7\n state: docked\n - condition: or\n conditions:\n - condition: and\n conditions:\n - condition: time\n after: 08:00:00\n before: 09:30:00\n - condition: time\n weekday:\n - mon\n - tue\n - wed\n - thu\n - fri\n - condition: and\n conditions:\n - condition: time\n after: 08:30:00\n before: '10:30:00'\n - condition: time\n weekday:\n - sat\n - sun\n - condition: state\n entity_id: input_boolean.guest_mode\n state: 'off'\n - condition: state\n entity_id: binary_sensor.jr_suite_door_status\n state: 'on'\n - condition: state\n entity_id: input_boolean.vacation_mode\n state: 'off'\n actions:\n - action: vacuum.send_command\n target:\n entity_id: vacuum.roborock_s7\n data:\n command: app_segment_clean\n params:\n - 24",
|
|
"config": [
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "vacation mode",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.vacation_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "guest mode",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.guest_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "jr suite door status",
|
|
"room": "jr suite",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.jr_suite_door_status",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "roborock s7 vacuum",
|
|
"room": null,
|
|
"type": "vacuum",
|
|
"id": {
|
|
"entity_id": "vacuum.roborock_s7",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "return_vacuum_when_occupied",
|
|
"automation": "- id: return_vacuum_when_occupied\n alias: Vacuum - Return to Dock When House Occupied\n mode: single\n triggers:\n - trigger: state\n entity_id: input_boolean.house_occupied\n to: 'on'\n conditions:\n - condition: state\n entity_id: vacuum.roborock_s7\n state: cleaning\n - condition: or\n conditions:\n - condition: and\n conditions:\n - condition: time\n after: 08:00:00\n before: 09:30:00\n - condition: time\n weekday:\n - mon\n - tue\n - wed\n - thu\n - fri\n - condition: and\n conditions:\n - condition: time\n after: 08:30:00\n before: '10:30:00'\n - condition: time\n weekday:\n - sat\n - sun\n actions:\n - action: vacuum.return_to_base\n target:\n entity_id: vacuum.roborock_s7",
|
|
"config": [
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "roborock s7 vacuum",
|
|
"room": null,
|
|
"type": "vacuum",
|
|
"id": {
|
|
"entity_id": "vacuum.roborock_s7",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "cristina_announce_arrival",
|
|
"automation": "- id: cristina_announce_arrival\n alias: Cristina Announce Arrival\n mode: parallel\n initial_state: 'on'\n trigger:\n - platform: state\n entity_id: input_select.cristina_status_dropdown\n from: Away\n to: Just Arrived\n - platform: state\n entity_id: input_select.cristina_status_dropdown\n from: Extended Away\n to: Just Arrived\n condition:\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n for:\n minutes: 5\n action:\n - service: script.voice_announcement\n data:\n media_players: auto\n sound: fanfare\n speech_message: \"{{\\n [\\n \\\"Guess who's home? It's Mamma!\\\",\\n \\\"Stop\\\n \\ what you're doing, mamma is home!\\\",\\n \\\"Mamma is home! Yay!\\\",\\n \\\n \\ \\\"And the house becomes a home. Welcome back Mamma!\\\",\\n \\\"Pardon the\\\n \\ interruption but Mamma is home!\\\",\\n \\\"Knock knock. Who's there? It's\\\n \\ Mamma!\\\",\\n \\\"Yo hey! Mamma is home!\\\",\\n \\\"Our queen has arrived!\\\n \\ Welcome Mamma!\\\",\\n \\\"Ciao! Mamma is home!\\\"\\n ] | random\\n}}\"",
|
|
"config": [
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "cristina status dropdown",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.cristina_status_dropdown",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "voice announcement script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.voice_announcement",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "script voice announcement",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.voice_announcement",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "cristina_announce_departure",
|
|
"automation": "- id: cristina_announce_departure\n alias: Cristina Announce Departure\n mode: parallel\n initial_state: 'on'\n trigger:\n - platform: state\n entity_id: input_boolean.cristina_home\n to: 'off'\n condition:\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n for:\n minutes: 5\n action:\n - service: script.voice_announcement\n data:\n media_players: auto\n expires_in: 2\n speech_message: \"{{\\n [\\n \\\"Arrivederci! Mamma has left the house.\\\",\\n\\\n \\ \\\"Ciao Mamma! See you later.\\\",\\n \\\"Mamma just left, but she misses\\\n \\ you dearly!\\\",\\n \\\"Mamma just left, but don't worry, she'll be back soon.\\\"\\\n ,\\n \\\"Pardon the interruption but Mamma has left the house.\\\",\\n \\\"\\\n Attention! Mamma left the house.\\\"\\n ] | random\\n}}\"",
|
|
"config": [
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "cristina home",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.cristina_home",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "voice announcement script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.voice_announcement",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "script voice announcement",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.voice_announcement",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "cristina_arrived_work",
|
|
"automation": "- id: cristina_arrived_work\n alias: Cristina arrived at work\n initial_state: 'on'\n trigger:\n - platform: zone\n entity_id: person.cristina_falbo\n zone: zone.cristina_s_work\n event: enter\n condition:\n - condition: state\n entity_id: input_boolean.cristina_home\n state: 'off'\n - condition: state\n entity_id: binary_sensor.workday_sensor\n state: 'on'\n - condition: time\n before: '10:00:00'\n - condition: state\n entity_id: person.cristina_falbo\n state: Cristina's Work\n action:\n - service: script.cristina_arrived_work\n data:\n who: cfalb\n - service: script.general_notification\n data:\n title: Cristina is at work\n message: Cristina has arrived at work!\n devices: jk\n priority: passive\n tag: cristina-arrived-work",
|
|
"config": [
|
|
{
|
|
"name": "cristina home",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.cristina_home",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "person cristina falbo",
|
|
"room": null,
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.cristina_falbo",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "workday sensor",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.workday_sensor",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "general notification script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.general_notification",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "person cristina falbo",
|
|
"room": null,
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.cristina_falbo",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Cristina Arrived Work",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.cristina_arrived_work",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "cristina_away",
|
|
"automation": "- id: cristina_away\n alias: Cristina away\n initial_state: 'on'\n trigger:\n - platform: zone\n entity_id:\n - person.cristina_falbo\n - device_tracker.cfalb_iphone_14\n zone: zone.home\n event: leave\n - platform: state\n entity_id:\n - person.cristina_falbo\n - device_tracker.cfalb_iphone_14\n to: not_home\n - platform: state\n entity_id: binary_sensor.cristina_presence\n to: 'off'\n - platform: state\n entity_id: binary_sensor.cristina_presence\n to: 'off'\n for:\n minutes: 3\n - platform: event\n event_type: automation_reloaded\n - platform: homeassistant\n event: start\n condition:\n - condition: template\n value_template: '{{ not is_state(''input_select.cristina_status_dropdown'', ''Just\n Arrived'') }}'\n - condition: state\n entity_id: input_boolean.cristina_home\n state: 'on'\n - condition: state\n entity_id: person.cristina_falbo\n state: not_home\n - condition: or\n conditions:\n - condition: state\n entity_id: binary_sensor.cristina_presence\n state: 'off'\n - condition: state\n entity_id: device_tracker.cfalb_iphone_14\n state: not_home\n action:\n - service: script.turn_on\n data:\n entity_id: script.cristina_away",
|
|
"config": [
|
|
{
|
|
"name": "cristina home",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.cristina_home",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "cristina status dropdown",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.cristina_status_dropdown",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "person cristina falbo",
|
|
"room": null,
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.cristina_falbo",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "cristina presence",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.cristina_presence",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "device tracker cfalb iphone 14",
|
|
"room": null,
|
|
"type": "device_tracker",
|
|
"id": {
|
|
"entity_id": "device_tracker.cfalb_iphone_14",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "person cristina falbo",
|
|
"room": null,
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.cristina_falbo",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Cristina Away",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.cristina_away",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Turn On",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.turn_on",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "cristina_bed_awake",
|
|
"automation": "- id: cristina_bed_awake\n alias: Cristina Bed - Awake\n mode: single\n trigger:\n - platform: state\n entity_id: input_select.cristina_sleep_state\n to: Just Got Up\n for:\n minutes: 5\n action:\n - service: input_select.select_option\n data:\n entity_id: input_select.cristina_sleep_state\n option: Awake",
|
|
"config": [
|
|
{
|
|
"name": "cristina sleep state",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.cristina_sleep_state",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "cristina_bed_just_got_up",
|
|
"automation": "- id: cristina_bed_just_got_up\n alias: Cristina Bed - Just Got Up\n mode: single\n trigger:\n - platform: state\n entity_id: binary_sensor.cristina_bed_occupied\n to: 'off'\n action:\n - service: input_select.select_option\n data:\n entity_id: input_select.cristina_sleep_state\n option: Just Got Up",
|
|
"config": [
|
|
{
|
|
"name": "cristina sleep state",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.cristina_sleep_state",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "cristina bed occupied",
|
|
"room": "cristina",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.cristina_bed_occupied",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "cristina_bed_just_laid_down",
|
|
"automation": "- id: cristina_bed_just_laid_down\n alias: Cristina Bed - Just Laid Down\n mode: single\n trigger:\n - platform: state\n entity_id: binary_sensor.cristina_bed_occupied\n to: 'on'\n condition:\n - condition: template\n value_template: '{{ not is_state(''input_select.cristina_sleep_state'',''Sleep'')\n }}'\n action:\n - service: input_select.select_option\n data:\n entity_id: input_select.cristina_sleep_state\n option: Just Laid Down",
|
|
"config": [
|
|
{
|
|
"name": "cristina sleep state",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.cristina_sleep_state",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "cristina bed occupied",
|
|
"room": "cristina",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.cristina_bed_occupied",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "cristina_bed_sleep",
|
|
"automation": "- id: cristina_bed_sleep\n alias: Cristina Bed - Sleep\n mode: single\n trigger:\n - platform: state\n entity_id: input_select.cristina_sleep_state\n to: Just Laid Down\n for:\n minutes: 5\n action:\n - service: input_select.select_option\n data:\n entity_id: input_select.cristina_sleep_state\n option: Sleep",
|
|
"config": [
|
|
{
|
|
"name": "cristina sleep state",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.cristina_sleep_state",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "cristina_commute_arrived_glenview_station",
|
|
"automation": "- id: cristina_commute_arrived_glenview_station\n alias: Cristina Commute - Arrived at Glenview Station\n initial_state: false\n trigger:\n - platform: zone\n entity_id: person.cristina_falbo\n zone: zone.glenview_train_station\n event: enter\n condition:\n - condition: state\n entity_id: input_boolean.cristina_home\n state: 'off'\n - condition: time\n after: '12:00:00'\n - condition: state\n entity_id: input_boolean.cristina_commuting\n state: 'on'\n action:\n - service: automation.turn_off\n entity_id:\n - automation.cristina_commute_departed_union_station\n - automation.cristina_commute_passing_morton_grove_station\n - automation.cristina_commute_arrived_at_glenview_station",
|
|
"config": [
|
|
{
|
|
"name": "cristina home",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.cristina_home",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "person cristina falbo",
|
|
"room": null,
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.cristina_falbo",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "cristina commuting",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.cristina_commuting",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "person cristina falbo",
|
|
"room": null,
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.cristina_falbo",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "zone glenview train station",
|
|
"room": null,
|
|
"type": "zone",
|
|
"id": {
|
|
"entity_id": "zone.glenview_train_station",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Cristina Commute Arrived at Glenview Station",
|
|
"room": null,
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.cristina_commute_arrived_at_glenview_station",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Cristina Commute Departed Union Station",
|
|
"room": null,
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.cristina_commute_departed_union_station",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Cristina Commute Passing Morton Grove Station",
|
|
"room": null,
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.cristina_commute_passing_morton_grove_station",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "cristina_commute_arrived_union_station",
|
|
"automation": "- id: cristina_commute_arrived_union_station\n alias: Cristina Commute - Arrived at Union Station\n initial_state: true\n trigger:\n - platform: zone\n entity_id: person.cristina_falbo\n zone: zone.union_station\n event: enter\n condition:\n - condition: state\n entity_id: input_boolean.cristina_home\n state: 'off'\n - condition: state\n entity_id: person.cristina_falbo\n state: Union Station\n - condition: time\n before: '12:00:00'\n action:\n - service: automation.turn_on\n entity_id:\n - automation.cristina_commute_departed_union_station\n - automation.cristina_commute_passing_morton_grove_station\n - automation.cristina_commute_arrived_at_glenview_station\n - service: script.voice_announcement\n data:\n media_players: auto\n priority: normal\n speech_message: \"{{\\n [\\n \\\"Attention! Mamma just arrived at Union Station.\\\"\\\n ,\\n \\\"Pardon the interruption, just wanted to let you know Mamma's train\\\n \\ arrived downtown.\\\"\\n ] | random\\n}}\"",
|
|
"config": [
|
|
{
|
|
"name": "cristina home",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.cristina_home",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "person cristina falbo",
|
|
"room": null,
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.cristina_falbo",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "voice announcement script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.voice_announcement",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "person cristina falbo",
|
|
"room": null,
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.cristina_falbo",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "script voice announcement",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.voice_announcement",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "zone union station",
|
|
"room": null,
|
|
"type": "zone",
|
|
"id": {
|
|
"entity_id": "zone.union_station",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Cristina Commute Arrived at Glenview Station",
|
|
"room": null,
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.cristina_commute_arrived_at_glenview_station",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Cristina Commute Departed Union Station",
|
|
"room": null,
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.cristina_commute_departed_union_station",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Cristina Commute Passing Morton Grove Station",
|
|
"room": null,
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.cristina_commute_passing_morton_grove_station",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "cristina_commute_departed_union_station",
|
|
"automation": "- id: cristina_commute_departed_union_station\n alias: Cristina Commute - Departed Union Station\n initial_state: false\n trigger:\n - platform: zone\n entity_id: person.cristina_falbo\n zone: zone.union_station\n event: leave\n condition:\n - condition: state\n entity_id: input_boolean.cristina_home\n state: 'off'\n - condition: time\n after: '12:00:00'\n - condition: state\n entity_id: input_boolean.cristina_commuting\n state: 'on'\n action:\n - service: script.voice_announcement\n data:\n media_players: auto\n priority: normal\n speech_message: \"{{\\n [\\n \\\"Attention! Mamma just left Union Station.\\\"\\\n ,\\n \\\"Pardon the interruption, but Mamma is on the train headed home.\\\"\\\n ,\\n \\\"Just a friendly note that Mamma's train has departed.\\\"\\n ] | random\\n\\\n }}\"",
|
|
"config": [
|
|
{
|
|
"name": "cristina home",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.cristina_home",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "person cristina falbo",
|
|
"room": null,
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.cristina_falbo",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "cristina commuting",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.cristina_commuting",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "voice announcement script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.voice_announcement",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "person cristina falbo",
|
|
"room": null,
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.cristina_falbo",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "script voice announcement",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.voice_announcement",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "zone union station",
|
|
"room": null,
|
|
"type": "zone",
|
|
"id": {
|
|
"entity_id": "zone.union_station",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "cristina_commute_passing_morton_grove_station",
|
|
"automation": "- id: cristina_commute_passing_morton_grove_station\n alias: Cristina Commute - Passing Morton Grove Station\n initial_state: false\n trigger:\n - platform: zone\n entity_id: person.cristina_falbo\n zone: zone.morton_grove_train_station\n event: enter\n condition:\n - condition: state\n entity_id: input_boolean.cristina_home\n state: 'off'\n - condition: time\n after: '12:00:00'\n - condition: state\n entity_id: input_boolean.cristina_commuting\n state: 'on'\n action:\n - service: script.voice_announcement\n data:\n media_players: auto\n priority: normal\n expires_in: 3\n speech_message: \"{{\\n [\\n \\\"Attention! Mamma's train will arrive within\\\n \\ five minutes!\\\",\\n \\\"Pardon the interruption, but Mamma's train is arriving\\\n \\ soon.\\\",\\n \\\"Just a friendly note that Mamma's train is arriving shortly.\\\"\\\n \\n ] | random\\n}}\"",
|
|
"config": [
|
|
{
|
|
"name": "cristina home",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.cristina_home",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "person cristina falbo",
|
|
"room": null,
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.cristina_falbo",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "cristina commuting",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.cristina_commuting",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "voice announcement script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.voice_announcement",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "person cristina falbo",
|
|
"room": null,
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.cristina_falbo",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "script voice announcement",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.voice_announcement",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "zone morton grove train station",
|
|
"room": null,
|
|
"type": "zone",
|
|
"id": {
|
|
"entity_id": "zone.morton_grove_train_station",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "cristina_daily_medication_reminder",
|
|
"automation": "- id: cristina_daily_medication_reminder\n alias: Cristina Daily Medication Reminder\n trigger:\n - trigger: time\n at: 07:30:00\n - trigger: event\n event_type: timer.finished\n event_data:\n entity_id: timer.cristina_daily_medication_timer\n - trigger: state\n entity_id: input_boolean.cristina_home\n to: 'on'\n for:\n minutes: 15\n conditions:\n - condition: state\n entity_id: input_boolean.cristina_daily_medication_taken\n state: 'off'\n - condition: state\n entity_id: timer.cristina_daily_medication_timer\n state: idle\n - condition: state\n entity_id: input_boolean.cristina_is_awake\n state: 'on'\n - or:\n - condition: state\n entity_id: input_boolean.cristina_home\n state: 'on'\n - condition: state\n entity_id: input_select.cristina_status_dropdown\n state: Extended Away\n actions:\n - variables:\n action_taken: '{{ ''TAKEN_'' ~ context.id }}'\n action_snooze: '{{ ''SNOOZE_'' ~ context.id }}'\n - action: notify.mobile_app_cfalb2\n data:\n message: Cristina, it's time to take your morning medication.\n title: Medication Reminder\n data:\n tag: cristina-morning-medication\n push:\n interruption-level: critical\n actions:\n - action: '{{ action_taken }}'\n title: Medication Taken\n - action: '{{ action_snooze }}'\n title: Snooze 30 Minutes\n - wait_for_trigger:\n - trigger: event\n event_type: mobile_app_notification_action\n event_data:\n action: '{{ action_taken }}'\n - trigger: event\n event_type: mobile_app_notification_action\n event_data:\n action: '{{ action_snooze }}'\n timeout:\n minutes: 30\n - if:\n - '{{ not wait.completed }}'\n then:\n - action: timer.start\n entity_id: timer.cristina_daily_medication_timer\n else:\n - if:\n - condition: template\n value_template: '{{ wait.trigger.event.data.action == action_taken }}'\n then:\n - action: input_boolean.turn_on\n entity_id: input_boolean.cristina_daily_medication_taken\n - action: timer.cancel\n entity_id: timer.cristina_daily_medication_timer\n - action: automation.turn_off\n entity_id: automation.cristina_daily_medication_reminder\n - if:\n - condition: template\n value_template: '{{ wait.trigger.event.data.action == action_snooze }}'\n then:\n - action: timer.start\n entity_id: timer.cristina_daily_medication_timer",
|
|
"config": [
|
|
{
|
|
"name": "cristina is awake",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.cristina_is_awake",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "cristina home",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.cristina_home",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "cristina status dropdown",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.cristina_status_dropdown",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "cristina daily medication taken",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.cristina_daily_medication_taken",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "cristina daily medication timer",
|
|
"room": null,
|
|
"type": "timer",
|
|
"id": {
|
|
"entity_id": "timer.cristina_daily_medication_timer",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Cristina Daily Medication Reminder",
|
|
"room": null,
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.cristina_daily_medication_reminder",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "cristina_medication_reminder_reset",
|
|
"automation": "- id: cristina_medication_reminder_reset\n alias: Cristina Medication Reminder Reset\n trigger:\n - trigger: time\n at: 03:00:01\n actions:\n - action: input_boolean.turn_off\n entity_id: input_boolean.cristina_daily_medication_taken\n - action: timer.cancel\n entity_id: timer.cristina_daily_medication_timer\n - action: automation.turn_on\n entity_id: automation.cristina_daily_medication_reminder",
|
|
"config": [
|
|
{
|
|
"name": "cristina daily medication taken",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.cristina_daily_medication_taken",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "cristina daily medication timer",
|
|
"room": null,
|
|
"type": "timer",
|
|
"id": {
|
|
"entity_id": "timer.cristina_daily_medication_timer",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Cristina Daily Medication Reminder",
|
|
"room": null,
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.cristina_daily_medication_reminder",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "cristina_departed_work",
|
|
"automation": "- id: cristina_departed_work\n alias: Cristina has left the office\n initial_state: 'on'\n trigger:\n - platform: zone\n entity_id: person.cristina_falbo\n zone: zone.cristina_s_work\n event: leave\n - platform: numeric_state\n entity_id: sensor.paramount_cristina_distance\n above: 1\n condition:\n - condition: state\n entity_id: input_boolean.cristina_home\n state: 'off'\n - condition: state\n entity_id: binary_sensor.workday_sensor\n state: 'on'\n - condition: time\n after: '16:00:00'\n - condition: state\n entity_id: sensor.paramount_cristina_direction_of_travel\n state: away_from\n action:\n - service: script.cristina_left_work\n data:\n who: cfalb",
|
|
"config": [
|
|
{
|
|
"name": "cristina home",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.cristina_home",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "person cristina falbo",
|
|
"room": null,
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.cristina_falbo",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "workday sensor",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.workday_sensor",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "paramount cristina distance",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.paramount_cristina_distance",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "paramount cristina direction of travel",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.paramount_cristina_direction_of_travel",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "person cristina falbo",
|
|
"room": null,
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.cristina_falbo",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Cristina Left Work",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.cristina_left_work",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "cristina_extended_away",
|
|
"automation": "- id: cristina_extended_away\n alias: Cristina - Extended Away\n mode: parallel\n initial_state: 'on'\n trigger:\n - platform: state\n entity_id: input_select.cristina_status_dropdown\n to: Away\n for:\n hours: 24\n - platform: numeric_state\n entity_id: sensor.home_cristina_distance\n above: 200\n action:\n - service: input_select.select_option\n target:\n entity_id: input_select.cristina_status_dropdown\n data:\n option: Extended Away",
|
|
"config": [
|
|
{
|
|
"name": "cristina status dropdown",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.cristina_status_dropdown",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "home cristina distance",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.home_cristina_distance",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "cristina_friday_medication_reminder",
|
|
"automation": "- id: cristina_friday_medication_reminder\n alias: Cristina Friday Medication Reminder\n triggers:\n - trigger: time\n at: '21:30:00'\n - trigger: event\n event_type: timer.finished\n event_data:\n entity_id: timer.cristina_friday_medication_timer\n conditions:\n - condition: template\n value_template: '{{ now().isoweekday() == 5 }}'\n - condition: state\n entity_id: input_boolean.cristina_friday_medication_taken\n state: 'off'\n action:\n - variables:\n action_taken: '{{ ''FRIDAY_TAKEN_'' ~ context.id }}'\n action_snooze: '{{ ''FRIDAY_SNOOZE_'' ~ context.id }}'\n - action: notify.mobile_app_cfalb2\n data:\n message: Cristina, it's time to take your Friday evening medication.\n title: Friday Medication Reminder\n data:\n tag: cristina-friday-medication\n push:\n interruption-level: critical\n actions:\n - action: '{{ action_taken }}'\n title: Medication Taken\n - action: '{{ action_snooze }}'\n title: Snooze 30 Minutes\n - wait_for_trigger:\n - trigger: event\n event_type: mobile_app_notification_action\n event_data:\n action: '{{ action_taken }}'\n - trigger: event\n event_type: mobile_app_notification_action\n event_data:\n action: '{{ action_snooze }}'\n timeout:\n minutes: 30\n - choose:\n - conditions:\n - condition: template\n value_template: '{{ not wait.completed }}'\n sequence:\n - action: timer.start\n entity_id: timer.cristina_friday_medication_timer\n - conditions:\n - condition: template\n value_template: '{{ wait.trigger.event.data.action == action_taken }}'\n sequence:\n - action: input_boolean.turn_on\n entity_id: input_boolean.cristina_friday_medication_taken\n - action: timer.cancel\n entity_id: timer.cristina_friday_medication_timer\n - conditions:\n - condition: template\n value_template: '{{ wait.trigger.event.data.action == action_snooze }}'\n sequence:\n - action: timer.start\n entity_id: timer.cristina_friday_medication_timer",
|
|
"config": [
|
|
{
|
|
"name": "cristina friday medication taken",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.cristina_friday_medication_taken",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "cristina friday medication timer",
|
|
"room": null,
|
|
"type": "timer",
|
|
"id": {
|
|
"entity_id": "timer.cristina_friday_medication_timer",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "cristina_friday_medication_reminder_reset",
|
|
"automation": "- id: cristina_friday_medication_reminder_reset\n alias: Cristina Friday Medication Reminder Reset\n triggers:\n - trigger: time\n at: 03:00:01\n actions:\n - action: input_boolean.turn_off\n entity_id: input_boolean.cristina_friday_medication_taken\n - action: timer.cancel\n entity_id: timer.cristina_friday_medication_timer",
|
|
"config": [
|
|
{
|
|
"name": "cristina friday medication taken",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.cristina_friday_medication_taken",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "cristina friday medication timer",
|
|
"room": null,
|
|
"type": "timer",
|
|
"id": {
|
|
"entity_id": "timer.cristina_friday_medication_timer",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "cristina_home",
|
|
"automation": "- id: cristina_home\n initial_state: 'on'\n alias: Cristina Home\n trigger:\n - platform: state\n entity_id: binary_sensor.cristina_presence\n to: 'on'\n - platform: zone\n entity_id:\n - person.cristina_falbo\n - device_tracker.cfalb_iphone_14\n zone: zone.home\n event: enter\n - platform: state\n entity_id:\n - person.cristina_falbo\n - device_tracker.cfalb_iphone_14\n to: home\n - platform: event\n event_type: automation_reloaded\n - platform: homeassistant\n event: start\n condition:\n - condition: state\n entity_id: input_boolean.cristina_home\n state: 'off'\n - condition: or\n conditions:\n - condition: state\n entity_id: binary_sensor.cristina_presence\n state: 'on'\n - condition: state\n entity_id: person.cristina_falbo\n state: home\n - condition: state\n entity_id: device_tracker.cfalb_iphone_14\n state: home\n - condition: zone\n entity_id:\n - person.cristina_falbo\n - device_tracker.cfalb_iphone_14\n zone: zone.home\n action:\n - service: script.turn_on\n entity_id: script.cristina_home",
|
|
"config": [
|
|
{
|
|
"name": "cristina home",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.cristina_home",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "person cristina falbo",
|
|
"room": null,
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.cristina_falbo",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "cristina presence",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.cristina_presence",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "device tracker cfalb iphone 14",
|
|
"room": null,
|
|
"type": "device_tracker",
|
|
"id": {
|
|
"entity_id": "device_tracker.cfalb_iphone_14",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "person cristina falbo",
|
|
"room": null,
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.cristina_falbo",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Cristina Home",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.cristina_home",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Turn On",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.turn_on",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "cristina_in_bed",
|
|
"automation": "- id: cristina_in_bed\n alias: Cristina in bed\n initial_state: 'on'\n trigger:\n - platform: state\n entity_id: binary_sensor.cristina_sleeping\n to: 'on'\n for:\n minutes: 1\n - platform: state\n entity_id: input_select.cristina_sleep_state\n to: Sleep\n - platform: state\n entity_id: input_select.cristina_sleep_state\n to: Just Laid Down\n condition:\n - condition: or\n conditions:\n - condition: state\n entity_id: input_select.cristina_sleep_state\n state: Sleep\n - condition: state\n entity_id: input_select.cristina_sleep_state\n state: Just Laid Down\n - condition: state\n entity_id: input_boolean.cristina_home\n state: 'on'\n - condition: state\n entity_id: binary_sensor.bedtime\n state: 'on'\n action:\n - service: input_boolean.turn_on\n entity_id: input_boolean.cristina_in_bed\n - service: input_boolean.turn_off\n entity_id: input_boolean.cristina_is_awake",
|
|
"config": [
|
|
{
|
|
"name": "cristina is awake",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.cristina_is_awake",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "cristina home",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.cristina_home",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "cristina sleep state",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.cristina_sleep_state",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "cristina sleeping",
|
|
"room": "cristina",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.cristina_sleeping",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "cristina in bed",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.cristina_in_bed",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "binary sensor bedtime",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.bedtime",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "cristina_is_commuting",
|
|
"automation": "- id: cristina_is_commuting\n alias: Cristina is Commuting\n initial_state: true\n trigger:\n - platform: state\n entity_id: person.cristina_falbo\n to:\n - Morton Grove Train Station\n - Union Station\n for:\n minutes: 2\n condition:\n - condition: state\n entity_id: input_boolean.cristina_home\n state: 'off'\n - condition: state\n entity_id: input_boolean.cristina_commuting\n state: 'off'\n action:\n - service: input_boolean.turn_on\n entity_id: input_boolean.cristina_commuting\n - service: automation.turn_on\n entity_id: automation.cristina_is_not_commuting",
|
|
"config": [
|
|
{
|
|
"name": "cristina home",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.cristina_home",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "person cristina falbo",
|
|
"room": null,
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.cristina_falbo",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "cristina commuting",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.cristina_commuting",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "person cristina falbo",
|
|
"room": null,
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.cristina_falbo",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Cristina is Not Commuting",
|
|
"room": null,
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.cristina_is_not_commuting",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "cristina_is_not_commuting",
|
|
"automation": "- id: cristina_is_not_commuting\n alias: Cristina is Not Commuting\n initial_state: false\n trigger:\n - platform: state\n entity_id: input_boolean.cristina_home\n to: 'on'\n condition:\n - condition: state\n entity_id: input_boolean.cristina_commuting\n state: 'on'\n action:\n - service: input_boolean.turn_off\n entity_id: input_boolean.cristina_commuting\n - service: automation.turn_off\n entity_id: automation.cristina_is_not_commuting",
|
|
"config": [
|
|
{
|
|
"name": "cristina home",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.cristina_home",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "cristina commuting",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.cristina_commuting",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Cristina is Not Commuting",
|
|
"room": null,
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.cristina_is_not_commuting",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "cristina_wake_up",
|
|
"automation": "- id: cristina_wake_up\n alias: Cristina wake up\n initial_state: 'on'\n trigger:\n - platform: state\n entity_id: binary_sensor.cristina_sleeping\n to: 'off'\n for:\n minutes: 2\n - platform: state\n entity_id: input_select.cristina_sleep_state\n to: Awake\n - platform: state\n entity_id: input_select.cristina_sleep_state\n to: Just Got Up\n for:\n minutes: 2\n condition:\n - condition: state\n entity_id: binary_sensor.cristina_sleeping\n state: 'off'\n - condition: state\n entity_id: input_boolean.cristina_home\n state: 'on'\n - condition: state\n entity_id: input_boolean.cristina_in_bed\n state: 'on'\n action:\n - service: input_boolean.turn_off\n entity_id: input_boolean.cristina_in_bed\n - service: input_boolean.turn_on\n entity_id: input_boolean.cristina_is_awake",
|
|
"config": [
|
|
{
|
|
"name": "cristina is awake",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.cristina_is_awake",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "cristina home",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.cristina_home",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "cristina sleep state",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.cristina_sleep_state",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "cristina sleeping",
|
|
"room": "cristina",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.cristina_sleeping",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "cristina in bed",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.cristina_in_bed",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "turn_on_dark_outside",
|
|
"automation": "- id: turn_on_dark_outside\n alias: Turn on Dark Outside\n mode: single\n trigger:\n - platform: sun\n event: sunset\n - platform: sun\n event: sunset\n offset: 00:10:00\n - platform: numeric_state\n entity_id: sun.sun\n attribute: elevation\n below: 4.0\n - platform: numeric_state\n entity_id: sensor.tempest_illuminance\n below: 30\n - platform: event\n event_type: automation_reloaded\n - platform: homeassistant\n event: start\n condition:\n - condition: state\n entity_id: input_boolean.dark_outside\n state: 'off'\n - condition: numeric_state\n entity_id: sun.sun\n attribute: elevation\n below: 4.0\n - condition: numeric_state\n entity_id: sensor.tempest_illuminance\n below: 30\n action:\n - service: input_boolean.turn_on\n entity_id: input_boolean.dark_outside",
|
|
"config": [
|
|
{
|
|
"name": "tempest illuminance",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.tempest_illuminance",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "sun sun",
|
|
"room": null,
|
|
"type": "sun",
|
|
"id": {
|
|
"entity_id": "sun.sun",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "dark outside",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.dark_outside",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "turn_off_dark_outside",
|
|
"automation": "- id: turn_off_dark_outside\n alias: Turn off Dark Outside\n mode: single\n trigger:\n - platform: sun\n event: sunrise\n - platform: sun\n event: sunrise\n offset: -00:10:00\n - platform: numeric_state\n entity_id: sun.sun\n attribute: elevation\n above: -4.0\n - platform: numeric_state\n entity_id: sensor.tempest_illuminance\n above: 51\n for:\n minutes: 2\n - platform: event\n event_type: automation_reloaded\n - platform: homeassistant\n event: start\n condition:\n - condition: state\n entity_id: input_boolean.dark_outside\n state: 'on'\n - condition: numeric_state\n entity_id: sun.sun\n attribute: elevation\n above: -4.0\n - condition: numeric_state\n entity_id: sensor.tempest_illuminance\n above: 31\n action:\n - service: input_boolean.turn_off\n entity_id: input_boolean.dark_outside",
|
|
"config": [
|
|
{
|
|
"name": "tempest illuminance",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.tempest_illuminance",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "sun sun",
|
|
"room": null,
|
|
"type": "sun",
|
|
"id": {
|
|
"entity_id": "sun.sun",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "dark outside",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.dark_outside",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "dining_room_lights_off",
|
|
"automation": "- id: dining_room_lights_off\n initial_state: true\n alias: Dining Room lights off\n trigger:\n - platform: state\n entity_id: input_select.dining_room\n to: 'Off'\n - platform: state\n entity_id: input_boolean.lighting_automations\n to: 'on'\n condition:\n - condition: state\n entity_id: light.dining_room_lights\n state: 'on'\n - condition: state\n entity_id: input_select.dining_room\n state: 'Off'\n action:\n - service: light.turn_off\n entity_id: light.dining_room_lights",
|
|
"config": [
|
|
{
|
|
"name": "lighting automations",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.lighting_automations",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "dining room mode",
|
|
"room": "dining room",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.dining_room",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Dining Room Lights",
|
|
"room": "Dining Room",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.dining_room_lights",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "dining_room_mode_auto",
|
|
"automation": "- id: dining_room_mode_auto\n initial_state: true\n alias: Dining Room mode Auto\n trigger:\n - platform: state\n entity_id: input_boolean.dining_room_occupied\n to: 'on'\n - platform: state\n entity_id: input_select.house\n to: Auto\n - platform: state\n entity_id: input_boolean.house_occupied\n to: 'on'\n condition:\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n - condition: template\n value_template: '{{ not is_state(''input_select.dining_room'',''Auto'') }}'\n - condition: state\n entity_id: input_boolean.bedtime\n state: 'off'\n - condition: state\n entity_id: input_select.house\n state: Auto\n action:\n - service: input_select.select_option\n data:\n entity_id: input_select.dining_room\n option: Auto",
|
|
"config": [
|
|
{
|
|
"name": "bedtime",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.bedtime",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "house status",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.house",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "dining room mode",
|
|
"room": "dining room",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.dining_room",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "dining room occupied",
|
|
"room": "dining room",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.dining_room_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean dining room occupied",
|
|
"room": "dining room",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.dining_room_occupied",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "dining_room_mode_off",
|
|
"automation": "- id: dining_room_mode_off\n initial_state: true\n alias: Dining Room mode off\n trigger:\n - platform: state\n entity_id: input_boolean.house_occupied\n to: 'off'\n - platform: state\n entity_id: input_select.house\n to: Away\n - platform: state\n entity_id: input_boolean.bedtime\n to: 'on'\n - platform: homeassistant\n event: start\n - platform: event\n event_type: automation_reloaded\n condition:\n - condition: template\n value_template: '{{ not is_state(''input_select.dining_room'',''Off'') }}'\n - condition: or\n conditions:\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'off'\n - condition: state\n entity_id: input_select.house\n state: Away\n - condition: state\n entity_id: input_boolean.bedtime\n state: 'on'\n action:\n - service: input_select.select_option\n data:\n entity_id: input_select.dining_room\n option: 'Off'",
|
|
"config": [
|
|
{
|
|
"name": "bedtime",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.bedtime",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "house status",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.house",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "dining room mode",
|
|
"room": "dining room",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.dining_room",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "dining_room_not_occupied",
|
|
"automation": "- id: dining_room_not_occupied\n initial_state: true\n alias: Dining Room not occupied\n trigger:\n - platform: template\n value_template: '{{ expand(''group.room_presence_devices'')|selectattr(''state'',\n ''eq'', ''living_room'')|map(attribute=''name'')|list | length == 0 }}'\n for:\n minutes: 2\n - platform: state\n entity_id: binary_sensor.dining_room_north_motion_sensor_motion\n to: 'off'\n for:\n minutes: 5\n - platform: state\n entity_id: binary_sensor.dining_room_north_motion_sensor_occupancy\n to: 'off'\n - platform: state\n entity_id: binary_sensor.dining_room_north_motion_sensor_occupancy\n to: 'off'\n for:\n minutes: 5\n condition:\n - condition: state\n entity_id: input_boolean.dining_room_occupied\n state: 'on'\n - condition: or\n conditions:\n - condition: and\n conditions:\n - condition: state\n entity_id: input_boolean.guest_mode\n state: 'on'\n - condition: state\n entity_id: binary_sensor.dining_room_north_motion_sensor_occupancy\n state: 'off'\n for:\n minutes: 5\n - condition: and\n conditions:\n - condition: state\n entity_id: input_boolean.guest_mode\n state: 'off'\n - condition: state\n entity_id: binary_sensor.dining_room_north_motion_sensor_motion\n state: 'off'\n for:\n minutes: 5\n - condition: template\n value_template: '{{ expand(''group.room_presence_devices'')|selectattr(''state'',\n ''eq'', ''living_room'')|map(attribute=''name'')|list | length == 0 }}'\n action:\n - service: input_boolean.turn_off\n entity_id: input_boolean.dining_room_occupied\n - alias: Wait 2 seconds\n delay: 2\n - service: input_boolean.turn_on\n entity_id: input_boolean.dining_room_lighting_automations",
|
|
"config": [
|
|
{
|
|
"name": "guest mode",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.guest_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "room presence devices group",
|
|
"room": null,
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "group.room_presence_devices",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "dining room occupied",
|
|
"room": "dining room",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.dining_room_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "dining room lighting automations",
|
|
"room": "dining room",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.dining_room_lighting_automations",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "dining room north motion sensor motion",
|
|
"room": "dining room",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.dining_room_north_motion_sensor_motion",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "dining room north motion sensor occupancy",
|
|
"room": "dining room",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.dining_room_north_motion_sensor_occupancy",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean dining room occupied",
|
|
"room": "dining room",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.dining_room_occupied",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "dining_room_occupied",
|
|
"automation": "- id: dining_room_occupied\n initial_state: true\n alias: Dining Room occupied\n trigger:\n - platform: state\n entity_id: binary_sensor.dining_room_north_motion_sensor_motion\n to: 'on'\n - platform: state\n entity_id: binary_sensor.dining_room_north_motion_sensor_occupancy\n to: 'on'\n - platform: state\n entity_id: light.dining_room_lights\n to: 'on'\n condition:\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n - condition: state\n entity_id: input_boolean.dining_room_occupied\n state: 'off'\n - condition: or\n conditions:\n - condition: template\n value_template: '{{ expand(''group.room_presence_devices'')|selectattr(''state'',\n ''eq'', ''living_room'')|map(attribute=''name'')|list | length > 0 }}'\n - condition: state\n entity_id: binary_sensor.dining_room_north_motion_sensor_occupancy\n state: 'on'\n action:\n - service: input_boolean.turn_on\n entity_id: input_boolean.dining_room_occupied",
|
|
"config": [
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "room presence devices group",
|
|
"room": null,
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "group.room_presence_devices",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "dining room occupied",
|
|
"room": "dining room",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.dining_room_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "dining room north motion sensor motion",
|
|
"room": "dining room",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.dining_room_north_motion_sensor_motion",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "dining room north motion sensor occupancy",
|
|
"room": "dining room",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.dining_room_north_motion_sensor_occupancy",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean dining room occupied",
|
|
"room": "dining room",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.dining_room_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Dining Room Lights",
|
|
"room": "Dining Room",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.dining_room_lights",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "district_school_year_activate",
|
|
"automation": "- id: district_school_year_activate\n alias: District School Year - Activate\n mode: single\n trigger:\n - platform: time\n at: input_datetime.district_34_first_day_of_school\n - platform: event\n event_type: automation_reloaded\n - platform: homeassistant\n event: start\n condition:\n - condition: template\n value_template: \"{{ \\n states.input_datetime.district_34_first_day_of_school.attributes.timestamp\\\n \\ < (now() | as_timestamp)\\n and\\n states.input_datetime.district_34_last_day_of_school.attributes.timestamp\\\n \\ > (now() | as_timestamp)\\n}}\"\n action:\n - service: input_boolean.turn_on\n entity_id: input_boolean.district_school_year_active\n - service: automation.turn_on\n entity_id:\n - automation.primary_school_day_on\n - automation.primary_school_day_off\n - automation.nino_school_day_on\n - automation.nino_school_day_off\n - automation.school_departure_reminder\n - automation.school_day_reminder",
|
|
"config": [
|
|
{
|
|
"name": "district 34 first day of school",
|
|
"room": null,
|
|
"type": "input_datetime",
|
|
"id": {
|
|
"entity_id": "input_datetime.district_34_first_day_of_school",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "district 34 last day of school",
|
|
"room": null,
|
|
"type": "input_datetime",
|
|
"id": {
|
|
"entity_id": "input_datetime.district_34_last_day_of_school",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "district school year active",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.district_school_year_active",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "primary school day on automation",
|
|
"room": null,
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.primary_school_day_on",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "primary school day off automation",
|
|
"room": null,
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.primary_school_day_off",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "nino school day on automation",
|
|
"room": null,
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.nino_school_day_on",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "nino school day off automation",
|
|
"room": null,
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.nino_school_day_off",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "school departure reminder automation",
|
|
"room": null,
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.school_departure_reminder",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "school day reminder automation",
|
|
"room": null,
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.school_day_reminder",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "district_school_year_deactivate",
|
|
"automation": "- id: district_school_year_deactivate\n alias: District School Year - Deactivate\n mode: single\n trigger:\n - platform: time\n at: input_datetime.district_34_last_day_of_school\n condition:\n - condition: state\n entity_id: input_boolean.district_school_year_active\n state: 'on'\n action:\n - service: input_boolean.turn_off\n entity_id: input_boolean.district_school_year_active\n - service: automation.turn_off\n entity_id:\n - automation.primary_school_day_on\n - automation.primary_school_day_off\n - automation.school_departure_reminder\n - automation.school_day_reminder",
|
|
"config": [
|
|
{
|
|
"name": "district 34 last day of school",
|
|
"room": null,
|
|
"type": "input_datetime",
|
|
"id": {
|
|
"entity_id": "input_datetime.district_34_last_day_of_school",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "district school year active",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.district_school_year_active",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "primary school day on automation",
|
|
"room": null,
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.primary_school_day_on",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "primary school day off automation",
|
|
"room": null,
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.primary_school_day_off",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "school departure reminder automation",
|
|
"room": null,
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.school_departure_reminder",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "school day reminder automation",
|
|
"room": null,
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.school_day_reminder",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "doorbell_ring",
|
|
"automation": "- id: doorbell_ring\n alias: Doorbell Ring\n mode: single\n triggers:\n - trigger: state\n entity_id: binary_sensor.front_door_camera_doorbell\n to: 'on'\n action:\n - action: script.activate_doorbell_chime\n data: {}\n - action: script.display_doorbell_snapshot_on_tv\n data: {}\n - action: script.general_notification\n data:\n title: Front Door\n message: Somebody is at the front door!\n devices: all\n priority: time-sensitive\n tag: doorbell-ring",
|
|
"config": [
|
|
{
|
|
"name": "front door camera doorbell",
|
|
"room": "front door",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.front_door_camera_doorbell",
|
|
"device_id": "92b464fee4dab94c831b8ff8686f330a"
|
|
}
|
|
},
|
|
{
|
|
"name": "activate doorbell chime script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.activate_doorbell_chime",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "display doorbell snapshot on tv script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.display_doorbell_snapshot_on_tv",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "general notification script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.general_notification",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "door_left_open",
|
|
"automation": "- id: door_left_open\n alias: Door Left Open\n mode: single\n initial_state: true\n triggers:\n - trigger: state\n entity_id:\n - binary_sensor.interior_garage_door\n - binary_sensor.front_door_status\n to: 'on'\n for:\n minutes: 5\n - trigger: state\n entity_id:\n - binary_sensor.interior_garage_door\n - binary_sensor.front_door_status\n to: 'on'\n for:\n minutes: 10\n - trigger: state\n entity_id:\n - binary_sensor.interior_garage_door\n - binary_sensor.front_door_status\n to: 'on'\n for:\n minutes: 15\n - trigger: event\n event_type: timer.finished\n event_data:\n entity_id: timer.snooze_door_left_open_automation\n conditions:\n - condition: state\n entity_id: timer.snooze_door_left_open_automation\n state: idle\n - condition: or\n conditions:\n - condition: state\n entity_id: binary_sensor.interior_garage_door\n state: 'on'\n - condition: state\n entity_id: binary_sensor.front_door_status\n state: 'on'\n actions:\n - variables:\n action_snooze: '{{ ''SNOOZE_'' ~ context.id }}'\n - action: script.voice_announcement\n data:\n media_players: auto\n sound: police-whistle\n priority: high\n speech_message: '{{ trigger.from_state.attributes.friendly_name }} has been\n open for too long, please close the door!'\n - action: script.general_notification\n data:\n title: Exterior House Doors\n message: '{{ trigger.from_state.attributes.friendly_name }} has been open for\n too long, please close the door!'\n devices: all\n priority: time-sensitive\n tag: door-open\n actions:\n - action: '{{ action_snooze }}'\n title: Snooze 30 Minutes\n - wait_for_trigger:\n - trigger: event\n event_type: mobile_app_notification_action\n event_data:\n action: '{{ action_snooze }}'\n timeout:\n minutes: 3\n - if:\n - condition: template\n value_template: '{{ wait.trigger.event.data.action == action_snooze }}'\n then:\n - action: timer.start\n entity_id: timer.snooze_door_left_open_automation",
|
|
"config": [
|
|
{
|
|
"name": "general notification script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.general_notification",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "snooze door left open automation timer",
|
|
"room": null,
|
|
"type": "timer",
|
|
"id": {
|
|
"entity_id": "timer.snooze_door_left_open_automation",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "voice announcement script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.voice_announcement",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "script voice announcement",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.voice_announcement",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Front Door Status",
|
|
"room": "Front Door",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.front_door_status",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Interior Garage Door",
|
|
"room": "Garage",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.interior_garage_door",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "driveway_front_camera_detections_animal",
|
|
"automation": "- id: driveway_front_camera_detections_animal\n alias: Driveway Front Camera Detections - Animal\n mode: single\n trigger:\n - platform: state\n entity_id: binary_sensor.driveway_front_camera_animal_detected\n to: 'on'\n variables:\n camera_name: Driveway Front Camera\n nvr_id: '{{ config_entry_id(trigger.entity_id) }}'\n event_id: '{{ trigger.to_state.attributes.event_id }}'\n image_path: /api/unifiprotect/thumbnail/{{ nvr_id }}/{{ event_id }}\n proxy_camera: camera.camera_proxy_camera_driveway_front_camera_high\n condition:\n - condition: template\n value_template: '{{ ( now().timestamp() - as_timestamp(state_attr(''automation.driveway_front_camera_detections_animal'',''last_triggered''),\n 0) ) | int > 60 }}'\n - condition: state\n entity_id: input_boolean.camera_notifications\n state: 'on'\n action:\n - action: script.camera_detection_alert\n data:\n detection_type: animal\n camera_name: '{{ camera_name }}'\n image_path: '{{ image_path }}'\n proxy_camera: '{{ proxy_camera }}'",
|
|
"config": [
|
|
{
|
|
"name": "camera notifications",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.camera_notifications",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "driveway front camera animal detected",
|
|
"room": "driveway front",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.driveway_front_camera_animal_detected",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "driveway front camera proxy",
|
|
"room": "driveway front",
|
|
"type": "camera",
|
|
"id": {
|
|
"entity_id": "camera.camera_proxy_camera_driveway_front_camera_high",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "camera detection alert script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.camera_detection_alert",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "driveway_front_camera_detections_person",
|
|
"automation": "- id: driveway_front_camera_detections_person\n alias: Driveway Front Camera Detections - Person\n mode: single\n triggers:\n - trigger: state\n entity_id: binary_sensor.driveway_front_camera_person_detected\n to: 'on'\n variables:\n camera_name: Driveway Front Camera\n nvr_id: '{{ config_entry_id(trigger.entity_id) }}'\n event_id: '{{ trigger.to_state.attributes.event_id }}'\n image_path: /api/unifiprotect/thumbnail/{{ nvr_id }}/{{ event_id }}\n proxy_camera: camera.camera_proxy_camera_driveway_front_camera_high\n conditions:\n - condition: template\n value_template: '{{ ( now().timestamp() - as_timestamp(state_attr(''automation.driveway_front_camera_detections_person'',''last_triggered''),\n 0) ) | int > 60 }}'\n - condition: state\n entity_id: input_boolean.camera_notifications\n state: 'on'\n - condition: or\n conditions:\n - condition: state\n entity_id: input_boolean.garage_occupied\n state: 'off'\n - condition: state\n entity_id: cover.garage_doors\n state: closed\n - condition: state\n entity_id: binary_sensor.garage_ble_occupancy\n state: 'off'\n for:\n minutes: 2\n actions:\n - action: script.camera_detection_alert\n data:\n detection_type: person\n camera_name: '{{ camera_name }}'\n image_path: '{{ image_path }}'\n proxy_camera: '{{ proxy_camera }}'",
|
|
"config": [
|
|
{
|
|
"name": "camera notifications",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.camera_notifications",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "cover garage doors",
|
|
"room": "garage",
|
|
"type": "cover",
|
|
"id": {
|
|
"entity_id": "cover.garage_doors",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "driveway front camera person detected",
|
|
"room": "driveway front",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.driveway_front_camera_person_detected",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "driveway front camera proxy",
|
|
"room": "driveway front",
|
|
"type": "camera",
|
|
"id": {
|
|
"entity_id": "camera.camera_proxy_camera_driveway_front_camera_high",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "garage occupied",
|
|
"room": "garage",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.garage_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "garage ble occupancy",
|
|
"room": "garage",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.garage_ble_occupancy",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "camera detection alert script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.camera_detection_alert",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "driveway_front_camera_detections_vehicle",
|
|
"automation": "- id: driveway_front_camera_detections_vehicle\n alias: Driveway Front Camera Detections - Vehicle\n mode: single\n trigger:\n - platform: state\n entity_id: binary_sensor.driveway_front_camera_vehicle_detected\n to: 'on'\n variables:\n camera_name: Driveway Front Camera\n nvr_id: '{{ config_entry_id(trigger.entity_id) }}'\n event_id: '{{ trigger.to_state.attributes.event_id }}'\n image_path: /api/unifiprotect/thumbnail/{{ nvr_id }}/{{ event_id }}\n proxy_camera: camera.camera_proxy_camera_driveway_front_camera_high\n condition:\n - condition: template\n value_template: '{{ ( now().timestamp() - as_timestamp(state_attr(''automation.driveway_front_camera_detections_vehicle'',''last_triggered''),\n 0) ) | int > 60 }}'\n - condition: state\n entity_id: input_boolean.camera_notifications\n state: 'on'\n action:\n - action: script.camera_detection_alert\n data:\n detection_type: vehicle\n camera_name: '{{ camera_name }}'\n image_path: '{{ image_path }}'\n proxy_camera: '{{ proxy_camera }}'",
|
|
"config": [
|
|
{
|
|
"name": "camera notifications",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.camera_notifications",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "driveway front camera vehicle detected",
|
|
"room": "driveway front",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.driveway_front_camera_vehicle_detected",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "driveway front camera proxy",
|
|
"room": "driveway front",
|
|
"type": "camera",
|
|
"id": {
|
|
"entity_id": "camera.camera_proxy_camera_driveway_front_camera_high",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "camera detection alert script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.camera_detection_alert",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "energy_prices_are_negative",
|
|
"automation": "- id: energy_prices_are_negative\n alias: Energy Prices Are Negative\n mode: single\n initial_state: true\n trigger:\n - platform: state\n entity_id: binary_sensor.energy_prices_are_negative\n to: 'on'\n action:\n - service: script.general_notification\n data:\n message: Energy prices are negative at {{ states.sensor.energy_price.state }}.\n Turn on everything!!!\n title: Energy Prices Are Negative\n devices: jk\n priority: time-sensitive\n tag: energy_prices_are_negative",
|
|
"config": [
|
|
{
|
|
"name": "general notification script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.general_notification",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "energy prices are negative",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.energy_prices_are_negative",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "energy price",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.energy_price",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "entertainment_mode_activated",
|
|
"automation": "- id: entertainment_mode_activated\n initial_state: true\n alias: Entertainment Mode - Activated\n trigger:\n - platform: state\n entity_id: input_boolean.entertainment_mode\n to: 'on'\n condition:\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n action:\n - service: switch.turn_off\n entity_id:\n - switch.adaptive_lighting_foyer\n - switch.adaptive_lighting_kitchen\n - switch.adaptive_lighting_office\n - switch.adaptive_lighting_family_room\n - switch.adaptive_lighting_main_bedroom\n - service: input_boolean.turn_off\n entity_id: input_boolean.speech_notifications\n - service: automation.turn_on\n entity_id: automation.entertainment_mode_deactivated",
|
|
"config": [
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "entertainment mode",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.entertainment_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "speech notifications",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.speech_notifications",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "entertainment mode deactivated automation",
|
|
"room": null,
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.entertainment_mode_deactivated",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Adaptive Lighting Family Room",
|
|
"room": "Family Room",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.adaptive_lighting_family_room",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Adaptive Lighting Foyer",
|
|
"room": "Foyer",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.adaptive_lighting_foyer",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Adaptive Lighting Kitchen",
|
|
"room": "Kitchen",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.adaptive_lighting_kitchen",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Adaptive Lighting Main Bedroom",
|
|
"room": "Main Bedroom",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.adaptive_lighting_main_bedroom",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Adaptive Lighting Office",
|
|
"room": "Office",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.adaptive_lighting_office",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "entertainment_mode_deactivated",
|
|
"automation": "- id: entertainment_mode_deactivated\n initial_state: false\n alias: Entertainment Mode - Deactivated\n trigger:\n - platform: state\n entity_id: input_boolean.entertainment_mode\n to: 'off'\n - platform: state\n entity_id: input_boolean.house_occupied\n to: 'off'\n action:\n - service: switch.turn_on\n entity_id:\n - switch.adaptive_lighting_foyer\n - switch.adaptive_lighting_kitchen\n - switch.adaptive_lighting_office\n - switch.adaptive_lighting_family_room\n - switch.adaptive_lighting_main_bedroom\n - service: input_boolean.turn_on\n entity_id: input_boolean.speech_notifications\n - service: automation.turn_off\n entity_id: automation.entertainment_mode_deactivated",
|
|
"config": [
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "entertainment mode",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.entertainment_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "speech notifications",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.speech_notifications",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "entertainment mode deactivated automation",
|
|
"room": null,
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.entertainment_mode_deactivated",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Adaptive Lighting Family Room",
|
|
"room": "Family Room",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.adaptive_lighting_family_room",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Adaptive Lighting Foyer",
|
|
"room": "Foyer",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.adaptive_lighting_foyer",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Adaptive Lighting Kitchen",
|
|
"room": "Kitchen",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.adaptive_lighting_kitchen",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Adaptive Lighting Main Bedroom",
|
|
"room": "Main Bedroom",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.adaptive_lighting_main_bedroom",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Adaptive Lighting Office",
|
|
"room": "Office",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.adaptive_lighting_office",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "entertainment_mode_turn_off",
|
|
"automation": "- id: entertainment_mode_turn_off\n initial_state: false\n alias: Entertainment Mode - Turn Off\n trigger:\n - platform: state\n entity_id: input_boolean.bedtime\n to: 'on'\n - platform: state\n entity_id: input_boolean.house_occupied\n to: 'off'\n - platform: time\n at: '23:00:00'\n - platform: time\n at: '23:59:59'\n - platform: numeric_state\n entity_id: sensor.indoor_bluetooth_device_count\n below: 6\n for:\n minutes: 10\n condition:\n - condition: state\n entity_id: input_boolean.entertainment_mode\n state: 'on'\n - condition: numeric_state\n entity_id: sensor.indoor_bluetooth_device_count\n below: 6\n action:\n - service: input_boolean.turn_off\n entity_id: input_boolean.entertainment_mode\n - service: automation.turn_off\n entity_id: automation.entertainment_mode_turn_off",
|
|
"config": [
|
|
{
|
|
"name": "bedtime",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.bedtime",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "entertainment mode",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.entertainment_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "indoor bluetooth device count",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.indoor_bluetooth_device_count",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "entertainment mode turn off automation",
|
|
"room": null,
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.entertainment_mode_turn_off",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "entertainment_mode_turn_on",
|
|
"automation": "- id: entertainment_mode_turn_on\n initial_state: false\n alias: Entertainment Mode - Turn On\n trigger:\n - platform: numeric_state\n entity_id: sensor.indoor_bluetooth_device_count\n above: 30\n for:\n minutes: 1\n - platform: numeric_state\n entity_id: sensor.indoor_bluetooth_device_count\n above: 25\n for:\n minutes: 5\n - platform: numeric_state\n entity_id: sensor.indoor_bluetooth_device_count\n above: 20\n for:\n minutes: 10\n - platform: numeric_state\n entity_id: sensor.indoor_bluetooth_device_count\n above: 15\n for:\n minutes: 10\n condition:\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n action:\n - service: input_boolean.turn_on\n entity_id: input_boolean.entertainment_mode\n - service: automation.turn_on\n entity_id: automation.entertainment_mode_turn_off\n - service: script.general_notification\n data:\n title: Entertainment Mode\n message: Entertainment mode was trigger by {{state.sensor.indoor_bluetooth_device_count.state}}\n devices.\n devices: jk\n priority: passive\n tag: entertainment-mode-activated",
|
|
"config": [
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "entertainment mode",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.entertainment_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "general notification script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.general_notification",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "indoor bluetooth device count",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.indoor_bluetooth_device_count",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "entertainment mode turn off automation",
|
|
"room": null,
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.entertainment_mode_turn_off",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "family_room_arrival",
|
|
"automation": "- id: family_room_arrival\n alias: Family room arrival\n initial_state: 'off'\n trigger:\n - platform: state\n entity_id: input_select.john_status\n to: Just Arrived\n - platform: state\n entity_id: input_select.cristina_status_dropdown\n to: Just Arrived\n condition:\n - condition: state\n entity_id: input_boolean.family_room_occupied\n state: 'off'\n action:\n - service: input_select.select_option\n data:\n entity_id: input_select.family_room\n option: Dim",
|
|
"config": [
|
|
{
|
|
"name": "john status",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.john_status",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "cristina status dropdown",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.cristina_status_dropdown",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "family room occupied",
|
|
"room": "family room",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.family_room_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "family room mode",
|
|
"room": "family room",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.family_room",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean family room occupied",
|
|
"room": "family room",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.family_room_occupied",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "family_room_speech_notifications_off",
|
|
"automation": "- id: family_room_speech_notifications_off\n initial_state: true\n alias: Family Room Speech Notifications Off\n trigger:\n - platform: state\n entity_id: input_boolean.family_room_occupied\n to: 'off'\n action:\n - service: input_boolean.turn_off\n entity_id: input_boolean.family_room_speech_notifications",
|
|
"config": [
|
|
{
|
|
"name": "family room occupied",
|
|
"room": "family room",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.family_room_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "family room speech notifications",
|
|
"room": "family room",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.family_room_speech_notifications",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean family room occupied",
|
|
"room": "family room",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.family_room_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean family room speech notifications",
|
|
"room": "family room",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.family_room_speech_notifications",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "family_room_lights_to_away",
|
|
"automation": "- id: family_room_lights_to_away\n initial_state: 'on'\n alias: Family room lights to away\n trigger:\n - platform: state\n entity_id: input_select.family_room\n to: Away\n - platform: state\n entity_id: input_select.house\n to: Away\n condition:\n - condition: state\n entity_id: input_boolean.lighting_automations\n state: 'on'\n - condition: or\n conditions:\n - condition: state\n entity_id: input_select.family_room\n state: Away\n - condition: and\n conditions:\n - condition: state\n entity_id: input_select.family_room\n state: Auto\n - condition: state\n entity_id: input_select.house\n state: Away\n - condition: state\n entity_id: light.family_room_main_lights\n state: 'on'\n action:\n - service: light.turn_off\n entity_id: light.family_room_main_lights",
|
|
"config": [
|
|
{
|
|
"name": "house status",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.house",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "family room main lights",
|
|
"room": "family room",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.family_room_main_lights",
|
|
"device_id": "44fcccda63e4e38e416babd3f3e1fded"
|
|
}
|
|
},
|
|
{
|
|
"name": "lighting automations",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.lighting_automations",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "family room mode",
|
|
"room": "family room",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.family_room",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "family_room_lights_to_off",
|
|
"automation": "- id: family_room_lights_to_off\n initial_state: 'on'\n alias: Family room lights to off\n trigger:\n - platform: state\n entity_id: input_select.family_room\n to: 'Off'\n - platform: state\n entity_id: input_select.house\n to: 'Off'\n - platform: state\n entity_id: input_boolean.family_room_occupied\n to: 'off'\n condition:\n - condition: state\n entity_id: input_boolean.lighting_automations\n state: 'on'\n - condition: or\n conditions:\n - condition: state\n entity_id: input_select.family_room\n state: 'Off'\n - condition: state\n entity_id: input_boolean.family_room_occupied\n state: 'off'\n - condition: and\n conditions:\n - condition: state\n entity_id: input_select.family_room\n state: Auto\n - condition: state\n entity_id: input_select.house\n state: 'Off'\n - condition: state\n entity_id: light.family_room_main_lights\n state: 'on'\n action:\n - service: light.turn_off\n entity_id: light.family_room_main_lights",
|
|
"config": [
|
|
{
|
|
"name": "house status",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.house",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "family room main lights",
|
|
"room": "family room",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.family_room_main_lights",
|
|
"device_id": "44fcccda63e4e38e416babd3f3e1fded"
|
|
}
|
|
},
|
|
{
|
|
"name": "lighting automations",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.lighting_automations",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "family room occupied",
|
|
"room": "family room",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.family_room_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "family room mode",
|
|
"room": "family room",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.family_room",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean family room occupied",
|
|
"room": "family room",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.family_room_occupied",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "family_room_lights_to_on",
|
|
"automation": "- id: family_room_lights_to_on\n initial_state: 'off'\n alias: Family room lights to On\n trigger:\n - platform: state\n entity_id: input_select.family_room\n to: 'On'\n - platform: state\n entity_id: input_select.house\n to: 'On'\n condition:\n - condition: state\n entity_id: input_boolean.lighting_automations\n state: 'on'\n - condition: or\n conditions:\n - condition: state\n entity_id: input_select.family_room\n state: 'On'\n - condition: and\n conditions:\n - condition: state\n entity_id: input_select.family_room\n state: Auto\n - condition: state\n entity_id: input_select.house\n state: 'On'\n - condition: state\n entity_id: light.family_room_main_lights\n state: 'off'\n action:\n - service: switch.turn_on\n entity_id: light.family_room_main_lights",
|
|
"config": [
|
|
{
|
|
"name": "house status",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.house",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "family room main lights",
|
|
"room": "family room",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.family_room_main_lights",
|
|
"device_id": "44fcccda63e4e38e416babd3f3e1fded"
|
|
}
|
|
},
|
|
{
|
|
"name": "lighting automations",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.lighting_automations",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "family room mode",
|
|
"room": "family room",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.family_room",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "family_room_mode_away",
|
|
"automation": "- id: family_room_mode_away\n initial_state: 'off'\n alias: Family room mode away\n trigger:\n - platform: state\n entity_id: input_boolean.family_room_occupied\n to: 'off'\n - platform: state\n entity_id: input_boolean.family_room_occupied\n to: 'off'\n for:\n minutes: 10\n - platform: state\n entity_id: input_boolean.house_occupied\n to: 'off'\n condition:\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'off'\n action:\n - service: input_select.select_option\n data:\n entity_id: input_select.family_room\n option: Away",
|
|
"config": [
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "family room occupied",
|
|
"room": "family room",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.family_room_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "family room mode",
|
|
"room": "family room",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.family_room",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean family room occupied",
|
|
"room": "family room",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.family_room_occupied",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "family_room_mode_auto",
|
|
"automation": "- id: family_room_mode_auto\n initial_state: true\n alias: Family Room Mode Auto\n trigger:\n - platform: state\n entity_id: input_boolean.family_room_occupied\n to: 'on'\n - platform: state\n entity_id: input_select.house\n to: Auto\n - platform: state\n entity_id: input_boolean.house_occupied\n to: 'on'\n condition:\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n - condition: template\n value_template: '{{ not is_state(''input_select.family_room'',''Auto'') }}'\n - condition: state\n entity_id: input_boolean.bedtime\n state: 'off'\n - condition: state\n entity_id: input_select.house\n state: Auto\n action:\n - service: input_select.select_option\n data:\n entity_id: input_select.family_room\n option: Auto",
|
|
"config": [
|
|
{
|
|
"name": "bedtime",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.bedtime",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "house status",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.house",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "family room occupied",
|
|
"room": "family room",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.family_room_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "family room mode",
|
|
"room": "family room",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.family_room",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean family room occupied",
|
|
"room": "family room",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.family_room_occupied",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "family_room_not_occupied",
|
|
"automation": "- id: family_room_not_occupied\n initial_state: 'on'\n alias: Family room not occupied\n trigger:\n - platform: state\n entity_id: binary_sensor.family_room_presence\n to: 'off'\n for:\n minutes: 3\n - platform: state\n entity_id: binary_sensor.family_room_ble_occupancy\n to: 'off'\n for:\n minutes: 2\n - platform: state\n entity_id: binary_sensor.family_room_motion_sensor\n to: 'off'\n for:\n minutes: 5\n - platform: state\n entity_id: binary_sensor.family_room_motion_sensor_occupancy\n to: 'off'\n - platform: state\n entity_id: binary_sensor.family_room_motion_sensor_occupancy\n to: 'off'\n for:\n minutes: 5\n - platform: state\n entity_id: input_boolean.kitchen_occupied\n to: 'off'\n for:\n minutes: 5\n condition:\n - condition: state\n entity_id: input_boolean.family_room_occupied\n state: 'on'\n - condition: or\n conditions:\n - condition: and\n conditions:\n - condition: state\n entity_id: binary_sensor.family_room_motion_sensor_occupancy\n state: 'off'\n - condition: state\n entity_id: input_boolean.kitchen_occupied\n state: 'off'\n - condition: state\n entity_id: media_player.sony_bravia_tv\n state: 'off'\n - condition: state\n entity_id: binary_sensor.family_room_ble_occupancy\n state: 'off'\n action:\n - service: input_boolean.turn_off\n entity_id: input_boolean.family_room_occupied\n - service: script.general_notification\n data:\n title: Family Room Logger\n message: The family room is NO LONGER occupied\n devices: jk\n priority: passive\n tag: family-room-not-occupied",
|
|
"config": [
|
|
{
|
|
"name": "sony bravia tv",
|
|
"room": null,
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.sony_bravia_tv",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "family room motion sensor",
|
|
"room": "family room",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.family_room_motion_sensor",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "general notification script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.general_notification",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "family room occupied",
|
|
"room": "family room",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.family_room_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "family room presence",
|
|
"room": "family room",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.family_room_presence",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "family room ble occupancy",
|
|
"room": "family room",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.family_room_ble_occupancy",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "family room motion sensor",
|
|
"room": "family room",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.family_room_motion_sensor",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "family room motion sensor occupancy",
|
|
"room": "family room",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.family_room_motion_sensor_occupancy",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "kitchen occupied",
|
|
"room": "kitchen",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.kitchen_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean family room occupied",
|
|
"room": "family room",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.family_room_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean kitchen occupied",
|
|
"room": "kitchen",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.kitchen_occupied",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "family_room_occupied",
|
|
"automation": "- id: family_room_occupied\n initial_state: 'on'\n alias: Family room occupied\n trigger:\n - platform: state\n entity_id: binary_sensor.family_room_motion_sensor_occupancy\n to: 'on'\n - platform: state\n entity_id: binary_sensor.family_room_motion_sensor\n to: 'on'\n - platform: state\n entity_id: device_tracker.family_room_tv\n to: home\n - platform: state\n entity_id: media_player.sony_bravia_tv\n to: playing\n - platform: state\n entity_id: media_player.sonos_family_room\n to: playing\n condition:\n - condition: state\n entity_id: input_boolean.family_room_occupied\n state: 'off'\n - condition: or\n conditions:\n - condition: state\n entity_id: binary_sensor.family_room_ble_occupancy\n state: 'on'\n - condition: state\n entity_id: binary_sensor.family_room_motion_sensor_occupancy\n state: 'on'\n action:\n - service: input_boolean.turn_on\n entity_id: input_boolean.family_room_occupied\n - service: script.general_notification\n data:\n title: Family Room Logger\n message: The family room is occupied\n devices: jk\n priority: passive\n tag: family-room-occupied",
|
|
"config": [
|
|
{
|
|
"name": "sonos family room",
|
|
"room": "family room",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.sonos_family_room",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "sony bravia tv",
|
|
"room": null,
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.sony_bravia_tv",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "family room motion sensor",
|
|
"room": "family room",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.family_room_motion_sensor",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "general notification script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.general_notification",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "family room occupied",
|
|
"room": "family room",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.family_room_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "family room ble occupancy",
|
|
"room": "family room",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.family_room_ble_occupancy",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "family room motion sensor",
|
|
"room": "family room",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.family_room_motion_sensor",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "family room motion sensor occupancy",
|
|
"room": "family room",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.family_room_motion_sensor_occupancy",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "family room tv device tracker",
|
|
"room": "family room",
|
|
"type": "device_tracker",
|
|
"id": {
|
|
"entity_id": "device_tracker.family_room_tv",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean family room occupied",
|
|
"room": "family room",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.family_room_occupied",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "family_room_mode_off",
|
|
"automation": "- id: family_room_mode_off\n initial_state: 'on'\n alias: Family Room Mode Off\n trigger:\n - platform: state\n entity_id: input_boolean.house_occupied\n to: 'off'\n - platform: state\n entity_id: input_select.house\n to: Away\n - platform: state\n entity_id: input_boolean.bedtime\n to: 'on'\n - platform: homeassistant\n event: start\n - platform: event\n event_type: automation_reloaded\n condition:\n - condition: template\n value_template: '{{ not is_state(''input_select.family_room'',''Off'') }}'\n - condition: or\n conditions:\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'off'\n - condition: state\n entity_id: input_select.house\n state: Away\n - condition: state\n entity_id: input_boolean.bedtime\n state: 'on'\n action:\n - service: input_select.select_option\n data:\n entity_id: input_select.family_room\n option: 'Off'",
|
|
"config": [
|
|
{
|
|
"name": "bedtime",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.bedtime",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "house status",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.house",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "family room mode",
|
|
"room": "family room",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.family_room",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "family_room_mode_on",
|
|
"automation": "- id: family_room_mode_on\n initial_state: 'off'\n alias: Family room mode on\n trigger:\n - platform: state\n entity_id: input_boolean.family_room_occupied\n to: 'on'\n - platform: state\n entity_id: light.family_room_main_lights\n to: 'on'\n condition:\n - condition: state\n entity_id: input_boolean.family_room_occupied\n state: 'on'\n - condition: not\n conditions:\n - condition: state\n entity_id: input_select.family_room\n state: 'On'\n action:\n - service: input_select.select_option\n data:\n entity_id: input_select.family_room\n option: 'On'",
|
|
"config": [
|
|
{
|
|
"name": "family room main lights",
|
|
"room": "family room",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.family_room_main_lights",
|
|
"device_id": "44fcccda63e4e38e416babd3f3e1fded"
|
|
}
|
|
},
|
|
{
|
|
"name": "family room occupied",
|
|
"room": "family room",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.family_room_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "family room mode",
|
|
"room": "family room",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.family_room",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean family room occupied",
|
|
"room": "family room",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.family_room_occupied",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "family_room_lights_sleep_mode_off",
|
|
"automation": "- id: family_room_lights_sleep_mode_off\n initial_state: false\n alias: Family Room Lights Sleep Mode Off\n trigger:\n - platform: sun\n event: sunrise\n offset: 00:15:00\n - platform: time\n at: 07:00:00\n condition:\n - condition: state\n entity_id: input_boolean.lighting_automations\n state: 'on'\n - condition: or\n conditions:\n - condition: sun\n after: sunrise\n - condition: time\n after: 07:00:00\n action:\n - service: switch.turn_off\n entity_id: switch.adaptive_lighting_sleep_mode_family_room\n - service: automation.turn_off\n entity_id: automation.family_room_lights_sleep_mode_off",
|
|
"config": [
|
|
{
|
|
"name": "lighting automations",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.lighting_automations",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "adaptive lighting sleep mode family room",
|
|
"room": "family room",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.adaptive_lighting_sleep_mode_family_room",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Family Room Lights Sleep Mode Off",
|
|
"room": "Family Room",
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.family_room_lights_sleep_mode_off",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "family_room_lights_sleep_mode_on",
|
|
"automation": "- id: family_room_lights_sleep_mode_on\n initial_state: true\n alias: Family Room Lights Sleep Mode On\n trigger:\n - platform: state\n entity_id: input_boolean.bedtime\n to: 'on'\n - platform: time\n at: '23:00:00'\n - platform: time\n at: 03:00:00\n condition:\n - condition: state\n entity_id: input_boolean.lighting_automations\n state: 'on'\n - condition: sun\n after: sunset\n - condition: state\n entity_id: input_boolean.dark_outside\n state: 'on'\n - condition: time\n after: '20:00:00'\n action:\n - service: switch.turn_on\n entity_id: switch.adaptive_lighting_sleep_mode_family_room\n - service: automation.turn_on\n entity_id: automation.family_room_lights_sleep_mode_off",
|
|
"config": [
|
|
{
|
|
"name": "bedtime",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.bedtime",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "dark outside",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.dark_outside",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "lighting automations",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.lighting_automations",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "adaptive lighting sleep mode family room",
|
|
"room": "family room",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.adaptive_lighting_sleep_mode_family_room",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Family Room Lights Sleep Mode Off",
|
|
"room": "Family Room",
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.family_room_lights_sleep_mode_off",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "family_room_speech_notifications_on",
|
|
"automation": "- id: family_room_speech_notifications_on\n initial_state: true\n alias: Family Room Speech Notifications On\n trigger:\n - platform: state\n entity_id: input_boolean.family_room_occupied\n to: 'on'\n - platform: state\n entity_id: input_select.family_room\n to: Auto\n condition:\n - condition: state\n entity_id: input_boolean.family_room_occupied\n state: 'on'\n - condition: state\n entity_id: input_select.family_room\n state: Auto\n action:\n - service: input_boolean.turn_on\n entity_id: input_boolean.family_room_speech_notifications",
|
|
"config": [
|
|
{
|
|
"name": "family room occupied",
|
|
"room": "family room",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.family_room_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "family room mode",
|
|
"room": "family room",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.family_room",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "family room speech notifications",
|
|
"room": "family room",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.family_room_speech_notifications",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean family room occupied",
|
|
"room": "family room",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.family_room_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean family room speech notifications",
|
|
"room": "family room",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.family_room_speech_notifications",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "family_room_turn_music_off",
|
|
"automation": "- id: family_room_turn_music_off\n initial_state: 'on'\n alias: Family room turn the music off\n trigger:\n - platform: state\n entity_id: input_select.family_room\n to: Away\n - platform: state\n entity_id: input_select.family_room\n to: 'Off'\n - platform: state\n entity_id: input_select.house\n to: Away\n - platform: state\n entity_id: input_boolean.bedtime\n to: 'on'\n condition:\n - condition: or\n conditions:\n - condition: state\n entity_id: input_select.family_room\n state: Away\n - condition: state\n entity_id: input_select.family_room\n state: 'Off'\n - condition: and\n conditions:\n - condition: state\n entity_id: input_select.family_room\n state: Auto\n - condition: state\n entity_id: input_select.house\n state: Away\n - condition: state\n entity_id: media_player.sonos_family_room\n state: playing\n action:\n - service: media_player.turn_off\n entity_id: media_player.sonos_family_room",
|
|
"config": [
|
|
{
|
|
"name": "bedtime",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.bedtime",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "house status",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.house",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "sonos family room",
|
|
"room": "family room",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.sonos_family_room",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "family room mode",
|
|
"room": "family room",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.family_room",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "family_room_turn_tv_off",
|
|
"automation": "- id: family_room_turn_tv_off\n initial_state: 'on'\n alias: Family Room Turn the TV Off\n trigger:\n - platform: state\n entity_id: input_select.family_room\n to: 'Off'\n - platform: state\n entity_id: input_boolean.family_room_occupied\n to: 'off'\n condition:\n - condition: state\n entity_id: input_select.family_room\n state: 'Off'\n - condition: state\n entity_id: media_player.sony_bravia_tv\n state: 'on'\n action:\n - service: media_player.turn_off\n entity_id: media_player.sony_bravia_tv",
|
|
"config": [
|
|
{
|
|
"name": "sony bravia tv",
|
|
"room": null,
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.sony_bravia_tv",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "family room occupied",
|
|
"room": "family room",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.family_room_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "family room mode",
|
|
"room": "family room",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.family_room",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean family room occupied",
|
|
"room": "family room",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.family_room_occupied",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "family_room_turn_tv_off",
|
|
"automation": "- id: family_room_turn_tv_off\n initial_state: 'off'\n alias: Family room turn the TV off\n trigger:\n - platform: state\n entity_id: input_select.family_room\n to: Away\n - platform: state\n entity_id: input_select.family_room\n to: 'Off'\n - platform: state\n entity_id: input_select.house\n to: Away\n - platform: state\n entity_id: input_boolean.bedtime\n to: 'on'\n condition:\n - condition: or\n conditions:\n - condition: state\n entity_id: input_select.family_room\n state: Away\n - condition: state\n entity_id: input_select.family_room\n state: 'Off'\n - condition: and\n conditions:\n - condition: state\n entity_id: input_select.family_room\n state: Auto\n - condition: state\n entity_id: input_select.house\n state: Away\n - condition: state\n entity_id: media_player.sonos_family_room\n state: playing\n action:\n - service: media_player.turn_off\n entity_id: media_player.sony_bravia_tv",
|
|
"config": [
|
|
{
|
|
"name": "bedtime",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.bedtime",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "house status",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.house",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "sonos family room",
|
|
"room": "family room",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.sonos_family_room",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "sony bravia tv",
|
|
"room": null,
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.sony_bravia_tv",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "family room mode",
|
|
"room": "family room",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.family_room",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "fire_alarm_trigger",
|
|
"automation": "- id: fire_alarm_trigger\n alias: Fire Alarm - Triggered\n mode: single\n triggers:\n - trigger: state\n entity_id: binary_sensor.smoke_detector\n from: 'off'\n to: 'on'\n actions:\n - action: script.fire_alarm_alert\n data: {}",
|
|
"config": [
|
|
{
|
|
"name": "fire alarm alert script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.fire_alarm_alert",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "smoke detector",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.smoke_detector",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "foyer_lights_days_off",
|
|
"automation": "- id: foyer_lights_days_off\n initial_state: true\n alias: Foyer Lights Day Off\n trigger:\n - platform: state\n entity_id: input_boolean.bad_weather\n to: 'off'\n for:\n minutes: 5\n - platform: numeric_state\n entity_id: sensor.tempest_illuminance\n above: 250\n for:\n minutes: 3\n - platform: numeric_state\n entity_id: sensor.tempest_illuminance\n above: 500\n for:\n minutes: 3\n condition:\n - condition: state\n entity_id: input_boolean.lighting_automations\n state: 'on'\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n - condition: state\n entity_id: input_select.foyer\n state: Auto\n - condition: state\n entity_id: sun.sun\n state: above_horizon\n - condition: time\n before: '18:00:00'\n - condition: or\n conditions:\n - condition: state\n entity_id: light.foyer_chandelier\n state: 'on'\n action:\n - service: light.turn_off\n entity_id: light.foyer_chandelier",
|
|
"config": [
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "tempest illuminance",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.tempest_illuminance",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "bad weather",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.bad_weather",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "sun sun",
|
|
"room": null,
|
|
"type": "sun",
|
|
"id": {
|
|
"entity_id": "sun.sun",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "lighting automations",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.lighting_automations",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "foyer chandelier",
|
|
"room": "foyer",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.foyer_chandelier",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Foyer Input Select",
|
|
"room": "Foyer",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.foyer",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "foyer_lights_days_on",
|
|
"automation": "- id: foyer_lights_days_on\n initial_state: true\n alias: Foyer Lights Day On\n trigger:\n - platform: state\n entity_id: input_boolean.bad_weather\n to: 'on'\n for:\n minutes: 1\n - platform: numeric_state\n entity_id: sensor.tempest_illuminance\n below: 40\n for:\n minutes: 5\n - platform: numeric_state\n entity_id: sensor.foyer_motion_illuminance\n below: 5\n for:\n minutes: 5\n - platform: sun\n event: sunrise\n condition:\n - condition: state\n entity_id: input_boolean.lighting_automations\n state: 'on'\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n - condition: state\n entity_id: input_select.foyer\n state: Auto\n - condition: numeric_state\n entity_id: sensor.foyer_motion_illuminance\n below: 5\n - condition: or\n conditions:\n - condition: state\n entity_id: light.foyer_chandelier\n state: 'off'\n action:\n - service: light.turn_on\n entity_id: light.foyer_chandelier",
|
|
"config": [
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "tempest illuminance",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.tempest_illuminance",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "bad weather",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.bad_weather",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "lighting automations",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.lighting_automations",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "foyer motion illuminance",
|
|
"room": "foyer",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.foyer_motion_illuminance",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "foyer chandelier",
|
|
"room": "foyer",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.foyer_chandelier",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Foyer Input Select",
|
|
"room": "Foyer",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.foyer",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "foyer_lights_nightlight",
|
|
"automation": "- id: foyer_lights_nightlight\n initial_state: true\n alias: Foyer Lights Nightlight\n triggers:\n - trigger: sun\n event: sunset\n offset: -00:30:00\n - trigger: state\n entity_id: input_boolean.dark_outside\n to: 'on'\n - trigger: numeric_state\n entity_id: sensor.tempest_illuminance\n below: 250\n - trigger: time\n at: '18:00:00'\n - trigger: state\n entity_id: input_boolean.house_occupied\n to: 'on'\n conditions:\n - condition: state\n entity_id: input_boolean.lighting_automations\n state: 'on'\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n - condition: numeric_state\n entity_id: sensor.tempest_illuminance\n below: 250\n - condition: or\n conditions:\n - condition: sun\n before: sunset\n before_offset: -00:30:00\n - condition: state\n entity_id: input_boolean.dark_outside\n state: 'on'\n - condition: time\n after: '18:00:00'\n - condition: state\n entity_id: light.foyer_chandelier\n state: 'off'\n actions:\n - action: light.turn_on\n entity_id: light.foyer_chandelier\n - action: automation.turn_on\n entity_id: automation.foyer_lights_nightlight_off",
|
|
"config": [
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "tempest illuminance",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.tempest_illuminance",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "dark outside",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.dark_outside",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "lighting automations",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.lighting_automations",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "foyer chandelier",
|
|
"room": "foyer",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.foyer_chandelier",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Foyer Lights Nightlight Off",
|
|
"room": "Foyer",
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.foyer_lights_nightlight_off",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "foyer_lights_nightlight_off",
|
|
"automation": "- id: foyer_lights_nightlight_off\n initial_state: true\n alias: Foyer Lights Nightlight Off\n trigger:\n - platform: sun\n event: sunrise\n - platform: state\n entity_id: input_boolean.dark_outside\n to: 'off'\n condition:\n - condition: state\n entity_id: input_boolean.lighting_automations\n state: 'on'\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n - condition: or\n conditions:\n - condition: sun\n after: sunrise\n - condition: state\n entity_id: input_boolean.dark_outside\n state: 'off'\n - condition: state\n entity_id: light.foyer_chandelier\n state: 'on'\n action:\n - service: light.turn_off\n entity_id: light.foyer_chandelier\n - service: automation.turn_off\n entity_id: automation.foyer_lights_nightlight_off",
|
|
"config": [
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "dark outside",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.dark_outside",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "lighting automations",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.lighting_automations",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "foyer chandelier",
|
|
"room": "foyer",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.foyer_chandelier",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Foyer Lights Nightlight Off",
|
|
"room": "Foyer",
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.foyer_lights_nightlight_off",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "foyer_lights_sleep_mode_off",
|
|
"automation": "- id: foyer_lights_sleep_mode_off\n initial_state: false\n alias: Foyer Lights Sleep Mode Off\n trigger:\n - platform: sun\n event: sunrise\n - platform: time\n at: 08:00:00\n condition:\n - condition: state\n entity_id: input_boolean.lighting_automations\n state: 'on'\n - condition: sun\n after: sunrise\n action:\n - service: switch.turn_off\n entity_id: switch.adaptive_lighting_sleep_mode_foyer",
|
|
"config": [
|
|
{
|
|
"name": "lighting automations",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.lighting_automations",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "adaptive lighting sleep mode foyer",
|
|
"room": "foyer",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.adaptive_lighting_sleep_mode_foyer",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "foyer_lights_sleep_mode_on",
|
|
"automation": "- id: foyer_lights_sleep_mode_on\n initial_state: false\n alias: Foyer Lights Sleep Mode On\n trigger:\n - platform: state\n entity_id: input_boolean.bedtime\n to: 'on'\n - platform: time\n at: '23:00:00'\n condition:\n - condition: state\n entity_id: input_boolean.lighting_automations\n state: 'on'\n - condition: sun\n after: sunset\n - condition: state\n entity_id: input_boolean.dark_outside\n state: 'on'\n - condition: time\n after: '20:00:00'\n action:\n - service: switch.turn_on\n entity_id: switch.adaptive_lighting_sleep_mode_foyer",
|
|
"config": [
|
|
{
|
|
"name": "bedtime",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.bedtime",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "dark outside",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.dark_outside",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "lighting automations",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.lighting_automations",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "adaptive lighting sleep mode foyer",
|
|
"room": "foyer",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.adaptive_lighting_sleep_mode_foyer",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "foyer_lights_to_dim",
|
|
"automation": "- id: foyer_lights_to_dim\n initial_state: true\n alias: Foyer lights to dim\n trigger:\n - platform: state\n entity_id: input_select.foyer\n to: Dim\n condition:\n - condition: state\n entity_id: input_boolean.lighting_automations\n state: 'on'\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n - condition: state\n entity_id: input_select.foyer\n state: Dim\n - condition: or\n conditions:\n - condition: state\n entity_id: light.foyer_chandelier\n state: 'off'\n action:\n - service: light.turn_on\n entity_id: light.foyer_chandelier\n - service: switch.turn_on\n entity_id:\n - switch.adaptive_lighting_foyer\n - switch.adaptive_lighting_sleep_mode_foyer",
|
|
"config": [
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "lighting automations",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.lighting_automations",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "adaptive lighting sleep mode foyer",
|
|
"room": "foyer",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.adaptive_lighting_sleep_mode_foyer",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "foyer chandelier",
|
|
"room": "foyer",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.foyer_chandelier",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Foyer Input Select",
|
|
"room": "Foyer",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.foyer",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Adaptive Lighting Foyer",
|
|
"room": "Foyer",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.adaptive_lighting_foyer",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "foyer_lights_to_off",
|
|
"automation": "- id: foyer_lights_to_off\n initial_state: true\n alias: Foyer lights to off\n trigger:\n - platform: state\n entity_id: input_select.foyer\n to: 'Off'\n - platform: state\n entity_id: input_select.foyer\n to: Away\n condition:\n - condition: state\n entity_id: input_boolean.lighting_automations\n state: 'on'\n - condition: or\n conditions:\n - condition: state\n entity_id: input_select.foyer\n state: 'Off'\n - condition: state\n entity_id: input_select.foyer\n state: Away\n - condition: and\n conditions:\n - condition: state\n entity_id: input_select.foyer\n state: Auto\n - condition: state\n entity_id: input_select.house\n state: 'Off'\n - condition: state\n entity_id: light.foyer_lights\n state: 'on'\n action:\n - service: light.turn_off\n entity_id: light.foyer_lights\n data:\n transition: 1",
|
|
"config": [
|
|
{
|
|
"name": "house status",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.house",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "lighting automations",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.lighting_automations",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "foyer lights",
|
|
"room": "foyer",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.foyer_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Foyer Input Select",
|
|
"room": "Foyer",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.foyer",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "foyer_mode_auto",
|
|
"automation": "- id: foyer_mode_auto\n initial_state: true\n alias: Foyer mode auto\n trigger:\n - platform: state\n entity_id: input_select.house\n to: Auto\n condition:\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n - condition: template\n value_template: '{{ not is_state(''input_select.foyer'',''Auto'') }}'\n - condition: state\n entity_id: input_boolean.bedtime\n state: 'off'\n action:\n - service: input_select.select_option\n data:\n entity_id: input_select.foyer\n option: Auto",
|
|
"config": [
|
|
{
|
|
"name": "bedtime",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.bedtime",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "house status",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.house",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Foyer Input Select",
|
|
"room": "Foyer",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.foyer",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "foyer_mode_away",
|
|
"automation": "- id: foyer_mode_away\n initial_state: true\n alias: Foyer mode away\n trigger:\n - platform: state\n entity_id: input_boolean.house_occupied\n to: 'off'\n condition:\n - condition: template\n value_template: '{{ not is_state(''input_select.foyer'',''Away'') }}'\n action:\n - service: input_select.select_option\n data:\n entity_id: input_select.foyer\n option: Away",
|
|
"config": [
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Foyer Input Select",
|
|
"room": "Foyer",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.foyer",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "foyer_mode_dim",
|
|
"automation": "- id: foyer_mode_dim\n initial_state: false\n alias: Foyer mode dim\n trigger:\n - platform: state\n entity_id: input_boolean.house_occupied\n to: 'on'\n - platform: sun\n event: sunset\n - platform: time\n at: '21:00:00'\n - platform: state\n entity_id: input_boolean.dark_outside\n to: 'on'\n - platform: state\n entity_id: input_boolean.bedtime\n to: 'off'\n - platform: state\n entity_id: input_select.house\n from: Bedtime\n to: Auto\n condition:\n - condition: state\n entity_id: input_boolean.lighting_automations\n state: 'on'\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n - condition: template\n value_template: '{{ states(''input_select.house'') in (''Auto'', ''Bedtime'',\n ''Quiet'') }}'\n - condition: or\n conditions:\n - condition: state\n entity_id: input_boolean.dark_outside\n state: 'on'\n - condition: sun\n after: sunset\n - condition: template\n value_template: '{{ not is_state(''input_select.foyer'',''Dim'') }}'\n action:\n - service: input_select.select_option\n data:\n entity_id: input_select.foyer\n option: Dim\n - service: switch.turn_on\n entity_id:\n - switch.adaptive_lighting_foyer\n - switch.adaptive_lighting_sleep_mode_foyer",
|
|
"config": [
|
|
{
|
|
"name": "bedtime",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.bedtime",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "house status",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.house",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "dark outside",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.dark_outside",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "lighting automations",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.lighting_automations",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "adaptive lighting sleep mode foyer",
|
|
"room": "foyer",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.adaptive_lighting_sleep_mode_foyer",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Foyer Input Select",
|
|
"room": "Foyer",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.foyer",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Adaptive Lighting Foyer",
|
|
"room": "Foyer",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.adaptive_lighting_foyer",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "foyer_mode_off",
|
|
"automation": "- id: foyer_mode_off\n initial_state: true\n alias: Foyer mode off\n trigger:\n - platform: state\n entity_id: input_select.house\n to: bedtime\n - platform: state\n entity_id: input_boolean.bedtime\n to: 'on'\n condition:\n - condition: template\n value_template: '{{ not is_state(''input_select.foyer'',''Off'') }}'\n action:\n - service: input_select.select_option\n data:\n entity_id: input_select.foyer\n option: 'Off'",
|
|
"config": [
|
|
{
|
|
"name": "bedtime",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.bedtime",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "house status",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.house",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Foyer Input Select",
|
|
"room": "Foyer",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.foyer",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "front_door_auto_lock",
|
|
"automation": "- id: front_door_auto_lock\n alias: Front Door - Auto Lock\n initial_state: true\n trigger:\n - platform: state\n entity_id: input_boolean.bedtime\n to: 'on'\n - platform: state\n entity_id: input_boolean.house_occupied\n to: 'off'\n condition:\n - condition: state\n entity_id: lock.front_door\n state: unlocked\n action:\n - service: lock.lock\n entity_id: lock.front_door",
|
|
"config": [
|
|
{
|
|
"name": "bedtime",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.bedtime",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "front door lock",
|
|
"room": "front door",
|
|
"type": "lock",
|
|
"id": {
|
|
"entity_id": "lock.front_door",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "front_door_camera_detections_animal",
|
|
"automation": "- id: front_door_camera_detections_animal\n alias: Front Door Camera Detections - Animal\n mode: single\n trigger:\n - platform: state\n entity_id: binary_sensor.front_door_camera_animal_detected\n to: 'on'\n variables:\n camera_name: Front Doorbell Camera\n nvr_id: '{{ config_entry_id(trigger.entity_id) }}'\n event_id: '{{ trigger.to_state.attributes.event_id }}'\n image_path: /api/unifiprotect/thumbnail/{{ nvr_id }}/{{ event_id }}\n proxy_camera: camera.camera_proxy_camera_front_door_camera_high_resolution_channel\n condition:\n - condition: template\n value_template: '{{ ( now().timestamp() - as_timestamp(state_attr(''automation.front_door_camera_detections_animal'',''last_triggered''),\n 0) ) | int > 60 }}'\n - condition: state\n entity_id: input_boolean.camera_notifications\n state: 'on'\n action:\n - action: script.camera_detection_alert\n data:\n detection_type: animal\n camera_name: '{{ camera_name }}'\n image_path: '{{ image_path }}'\n proxy_camera: '{{ proxy_camera }}'",
|
|
"config": [
|
|
{
|
|
"name": "camera notifications",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.camera_notifications",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "front door camera animal detected",
|
|
"room": "front door",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.front_door_camera_animal_detected",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "front door camera proxy high resolution",
|
|
"room": "front door",
|
|
"type": "camera",
|
|
"id": {
|
|
"entity_id": "camera.camera_proxy_camera_front_door_camera_high_resolution_channel",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "camera detection alert script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.camera_detection_alert",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "front_door_camera_detections_person",
|
|
"automation": "- id: front_door_camera_detections_person\n alias: Front Door Camera Detections - Person\n mode: single\n trigger:\n - platform: state\n entity_id: binary_sensor.front_door_camera_person_detected\n to: 'on'\n variables:\n camera_name: Front Doorbell Camera\n nvr_id: '{{ config_entry_id(trigger.entity_id) }}'\n event_id: '{{ trigger.to_state.attributes.event_id }}'\n image_path: /api/unifiprotect/thumbnail/{{ nvr_id }}/{{ event_id }}\n proxy_camera: camera.camera_proxy_camera_front_door_camera_high_resolution_channel\n condition:\n - condition: template\n value_template: '{{ ( now().timestamp() - as_timestamp(state_attr(''automation.front_door_camera_detections_person'',''last_triggered''),\n 0) ) | int > 60 }}'\n action:\n - action: script.camera_detection_alert\n data:\n detection_type: person\n camera_name: '{{ camera_name }}'\n image_path: '{{ image_path }}'\n proxy_camera: '{{ proxy_camera }}'",
|
|
"config": [
|
|
{
|
|
"name": "front door camera person detected",
|
|
"room": "front door",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.front_door_camera_person_detected",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "front door camera proxy high resolution",
|
|
"room": "front door",
|
|
"type": "camera",
|
|
"id": {
|
|
"entity_id": "camera.camera_proxy_camera_front_door_camera_high_resolution_channel",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "camera detection alert script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.camera_detection_alert",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "front_door_camera_detections_vehicle",
|
|
"automation": "- id: front_door_camera_detections_vehicle\n alias: Front Door Camera Detections - Vehicle\n mode: single\n trigger:\n - platform: state\n entity_id: binary_sensor.front_door_camera_vehicle_detected\n to: 'on'\n variables:\n camera_name: Front Doorbell Camera\n nvr_id: '{{ config_entry_id(trigger.entity_id) }}'\n event_id: '{{ trigger.to_state.attributes.event_id }}'\n image_path: /api/unifiprotect/thumbnail/{{ nvr_id }}/{{ event_id }}\n proxy_camera: camera.camera_proxy_camera_front_door_camera_high_resolution_channel\n condition:\n - condition: template\n value_template: '{{ ( now().timestamp() - as_timestamp(state_attr(''automation.front_door_camera_detections_vehicle'',''last_triggered''),\n 0) ) | int > 60 }}'\n - condition: state\n entity_id: input_boolean.camera_notifications\n state: 'on'\n action:\n - action: script.camera_detection_alert\n data:\n detection_type: vehicle\n camera_name: '{{ camera_name }}'\n image_path: '{{ image_path }}'\n proxy_camera: '{{ proxy_camera }}'",
|
|
"config": [
|
|
{
|
|
"name": "camera notifications",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.camera_notifications",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "front door camera vehicle detected",
|
|
"room": "front door",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.front_door_camera_vehicle_detected",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "front door camera proxy high resolution",
|
|
"room": "front door",
|
|
"type": "camera",
|
|
"id": {
|
|
"entity_id": "camera.camera_proxy_camera_front_door_camera_high_resolution_channel",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "camera detection alert script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.camera_detection_alert",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "front_door_lock_if_open_too_long",
|
|
"automation": "- id: front_door_lock_if_open_too_long\n alias: Front Door - Lock If Open Too Long\n initial_state: true\n trigger:\n - platform: state\n entity_id: lock.front_door\n to: unlocked\n for:\n minutes: 15\n - platform: state\n entity_id: input_boolean.entertainment_mode\n from: 'on'\n to: 'off'\n condition:\n - condition: state\n entity_id: lock.front_door\n state: unlocked\n - condition: or\n conditions:\n - condition: state\n entity_id: input_boolean.entertainment_mode\n state: 'off'\n - condition: time\n after: '22:00:00'\n action:\n - service: lock.lock\n entity_id: lock.front_door",
|
|
"config": [
|
|
{
|
|
"name": "front door lock",
|
|
"room": "front door",
|
|
"type": "lock",
|
|
"id": {
|
|
"entity_id": "lock.front_door",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "entertainment mode",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.entertainment_mode",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "garage_doors_close_when_empty_house",
|
|
"automation": "- id: garage_doors_close_when_empty_house\n alias: Garage doors close when empty house\n initial_state: true\n trigger:\n - platform: state\n entity_id: input_select.garage\n to: Away\n - platform: event\n event_type: automation_reloaded\n - platform: homeassistant\n event: start\n condition:\n - condition: state\n entity_id: cover.garage_doors\n state: open\n - condition: state\n entity_id: input_select.garage\n state: Away\n action:\n - service: cover.close_cover\n entity_id: cover.garage_doors\n - service: script.general_notification\n data:\n title: Garage Doors Open!\n message: The house is empty or off so I'm closing the garage doors\n devices: jk\n priority: time-sensitive\n tag: garage-doors-closed-empty",
|
|
"config": [
|
|
{
|
|
"name": "cover garage doors",
|
|
"room": "garage",
|
|
"type": "cover",
|
|
"id": {
|
|
"entity_id": "cover.garage_doors",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "general notification script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.general_notification",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "garage mode",
|
|
"room": "garage",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.garage",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "garage_doors_close_when_home",
|
|
"automation": "- id: garage_doors_close_when_home\n alias: Garage doors close when home\n initial_state: true\n triggers:\n - trigger: state\n entity_id: cover.garage_doors\n to: open\n for:\n minutes: 30\n - trigger: state\n entity_id: input_select.garage\n to: 'Off'\n - trigger: state\n entity_id: input_boolean.bedtime\n to: 'on'\n - trigger: state\n entity_id: input_boolean.garage_occupied\n to: 'off'\n for:\n minutes: 20\n - trigger: event\n event_type: automation_reloaded\n - trigger: homeassistant\n event: start\n conditions:\n - condition: or\n conditions:\n - condition: state\n entity_id: input_boolean.bedtime\n state: 'on'\n - condition: and\n conditions:\n - condition: state\n entity_id: input_boolean.garage_occupied\n state: 'off'\n for:\n minutes: 20\n - condition: state\n entity_id: input_boolean.garage_override\n state: 'off'\n - condition: or\n conditions:\n - condition: state\n entity_id: cover.garage_door_1\n state: open\n for:\n minutes: 30\n - condition: state\n entity_id: cover.garage_door_2\n state: open\n for:\n minutes: 30\n - condition: state\n entity_id: cover.garage_door_3\n state: open\n for:\n minutes: 30\n - condition: state\n entity_id: binary_sensor.garage_ble_occupancy\n state: 'off'\n actions:\n - action: script.voice_announcement\n data:\n media_players: auto\n sound: police-whistle\n priority: high\n speech_message: '{{ expand(''cover.garage_doors'')|selectattr(''state'', ''eq'',\n ''open'')|map(attribute=''name'')|list|join('', '') }} has been open for a\n while but nobody is around so I''m automaticallly closing.'\n - action: script.general_notification\n data:\n title: Garage Doors Open!\n message: '{{ expand(''cover.garage_doors'')|selectattr(''state'', ''eq'', ''open'')|map(attribute=''name'')|list|join('',\n '') }} has been open for a while but nobody is around so I''m automaticallly\n closing.'\n devices: all\n priority: time-sensitive\n tag: garage-doors-open-home\n - action: cover.close_cover\n data: {}\n target:\n entity_id: cover.garage_doors\n - action: light.turn_off\n entity_id: light.garage_lights",
|
|
"config": [
|
|
{
|
|
"name": "bedtime",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.bedtime",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "cover garage doors",
|
|
"room": "garage",
|
|
"type": "cover",
|
|
"id": {
|
|
"entity_id": "cover.garage_doors",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "general notification script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.general_notification",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "voice announcement script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.voice_announcement",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "garage door 1",
|
|
"room": "garage",
|
|
"type": "cover",
|
|
"id": {
|
|
"entity_id": "cover.garage_door_1",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "garage door 2",
|
|
"room": "garage",
|
|
"type": "cover",
|
|
"id": {
|
|
"entity_id": "cover.garage_door_2",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "garage door 3",
|
|
"room": "garage",
|
|
"type": "cover",
|
|
"id": {
|
|
"entity_id": "cover.garage_door_3",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "garage occupied",
|
|
"room": "garage",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.garage_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "garage mode",
|
|
"room": "garage",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.garage",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "garage override",
|
|
"room": "garage",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.garage_override",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "garage ble occupancy",
|
|
"room": "garage",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.garage_ble_occupancy",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "script voice announcement",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.voice_announcement",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "cover garage door 2",
|
|
"room": "garage",
|
|
"type": "cover",
|
|
"id": {
|
|
"entity_id": "cover.garage_door_2",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Garage Lights",
|
|
"room": "Garage",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.garage_lights",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "garage_doors_lock_remotes",
|
|
"automation": "- id: garage_doors_lock_remotes\n alias: Garage Doors - Lock Remotes\n initial_state: true\n triggers:\n - trigger: state\n entity_id: input_boolean.bedtime\n to: 'on'\n for:\n minutes: 5\n - trigger: homeassistant\n event: start\n - trigger: event\n event_type: automation_reloaded\n conditions:\n - condition: state\n entity_id: input_boolean.bedtime\n state: 'on'\n actions:\n - action: lock.lock\n entity_id:\n - lock.garage_door_1_lock_remotes\n - lock.garage_door_2_lock_remotes\n - lock.garage_door_3_lock_remotes",
|
|
"config": [
|
|
{
|
|
"name": "bedtime",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.bedtime",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "garage door 1 lock remotes",
|
|
"room": "garage",
|
|
"type": "lock",
|
|
"id": {
|
|
"entity_id": "lock.garage_door_1_lock_remotes",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "garage door 2 lock remotes",
|
|
"room": "garage",
|
|
"type": "lock",
|
|
"id": {
|
|
"entity_id": "lock.garage_door_2_lock_remotes",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "garage door 3 lock remotes",
|
|
"room": "garage",
|
|
"type": "lock",
|
|
"id": {
|
|
"entity_id": "lock.garage_door_3_lock_remotes",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "garage_doors_unlock_remotes",
|
|
"automation": "- id: garage_doors_unlock_remotes\n alias: Garage Doors - Unlock Remotes\n initial_state: true\n triggers:\n - trigger: state\n entity_id: input_boolean.bedtime\n to: 'off'\n for:\n minutes: 5\n - trigger: state\n entity_id:\n - person.john_koht\n - person.cristina_falbo\n - person.mary_falbo\n - person.antoun_koht\n - person.sonia_koht\n - person.katia\n - person.joe_falbo\n to: home\n - trigger: homeassistant\n event: start\n - trigger: event\n event_type: automation_reloaded\n conditions:\n - condition: state\n entity_id:\n - lock.garage_door_1_lock_remotes\n - lock.garage_door_2_lock_remotes\n - lock.garage_door_3_lock_remotes\n match: any\n state: locked\n actions:\n - action: lock.unlock\n entity_id:\n - lock.garage_door_1_lock_remotes\n - lock.garage_door_2_lock_remotes\n - lock.garage_door_3_lock_remotes",
|
|
"config": [
|
|
{
|
|
"name": "bedtime",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.bedtime",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "person cristina falbo",
|
|
"room": null,
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.cristina_falbo",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "garage door 1 lock remotes",
|
|
"room": "garage",
|
|
"type": "lock",
|
|
"id": {
|
|
"entity_id": "lock.garage_door_1_lock_remotes",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "garage door 2 lock remotes",
|
|
"room": "garage",
|
|
"type": "lock",
|
|
"id": {
|
|
"entity_id": "lock.garage_door_2_lock_remotes",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "garage door 3 lock remotes",
|
|
"room": "garage",
|
|
"type": "lock",
|
|
"id": {
|
|
"entity_id": "lock.garage_door_3_lock_remotes",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "person john koht",
|
|
"room": null,
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.john_koht",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "person cristina falbo",
|
|
"room": null,
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.cristina_falbo",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "person antoun koht",
|
|
"room": null,
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.antoun_koht",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "person joe falbo",
|
|
"room": null,
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.joe_falbo",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "person katia",
|
|
"room": null,
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.katia",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "person mary falbo",
|
|
"room": null,
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.mary_falbo",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "person sonia koht",
|
|
"room": null,
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.sonia_koht",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "garage_door_2_open_upon_arrival",
|
|
"automation": "- id: garage_door_2_open_upon_arrival\n alias: Garage Door 2 - Open Upon Arrival\n initial_state: false\n trigger:\n - platform: state\n entity_id:\n - input_select.cristina_status_dropdown\n - input_select.john_status\n to: Just Arrived\n - platform: state\n entity_id: input_boolean.audi_home\n to: 'on'\n condition:\n - condition: or\n conditions:\n - condition: state\n entity_id: input_select.cristina_status_dropdown\n state: Just Arrived\n - condition: state\n entity_id: input_select.john_status\n state: Just Arrived\n - condition: and\n conditions:\n - condition: state\n entity_id: input_boolean.audi_home\n state: 'on'\n - condition: template\n value_template: '{{ (as_timestamp(now()) - as_timestamp(states.input_boolean.audi_home.last_updated))\n | int < 120 }}'\n - condition: state\n entity_id: cover.garage_door_2\n state: closed\n action:\n - service: notify.mobile_app_jk_2\n data:\n title: Garage Door 2\n message: Garage door three is opening upon somebody's arrival",
|
|
"config": [
|
|
{
|
|
"name": "john status",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.john_status",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "audi home",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.audi_home",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "cristina status dropdown",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.cristina_status_dropdown",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "garage door 2",
|
|
"room": "garage",
|
|
"type": "cover",
|
|
"id": {
|
|
"entity_id": "cover.garage_door_2",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "mobile app jk 2 notification",
|
|
"room": null,
|
|
"type": "notify",
|
|
"id": {
|
|
"entity_id": "notify.mobile_app_jk_2",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "cover garage door 2",
|
|
"room": "garage",
|
|
"type": "cover",
|
|
"id": {
|
|
"entity_id": "cover.garage_door_2",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "garage_door_3_open_upon_arrival",
|
|
"automation": "- id: garage_door_3_open_upon_arrival\n alias: Garage Door 3 - Open Upon Arrival\n initial_state: false\n triggers:\n - trigger: state\n entity_id:\n - input_select.john_status\n to: Just Arrived\n - trigger: state\n entity_id: input_boolean.bmw_home\n to: 'on'\n conditions:\n - condition: or\n conditions:\n - condition: state\n entity_id: input_select.cristina_status_dropdown\n state: Just Arrived\n - condition: state\n entity_id: input_select.john_status\n state: Just Arrived\n - condition: and\n conditions:\n - condition: state\n entity_id: input_boolean.bmw_home\n state: 'on'\n - condition: template\n value_template: '{{ (as_timestamp(now()) - as_timestamp(states.input_boolean.bmw_home.last_updated))\n | int < 120 }}'\n - condition: state\n entity_id: cover.garage_door_3\n state: closed\n actions:\n - action: cover.open_cover\n entity_id: cover.garage_door_3\n - action: script.general_notification\n data:\n title: Garage Door 3\n message: Garage door three is opening upon somebody's arrival\n devices: jk\n priority: active\n tag: garage-door-3-automation",
|
|
"config": [
|
|
{
|
|
"name": "john status",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.john_status",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "bmw home",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.bmw_home",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "cristina status dropdown",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.cristina_status_dropdown",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "general notification script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.general_notification",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "garage door 3",
|
|
"room": "garage",
|
|
"type": "cover",
|
|
"id": {
|
|
"entity_id": "cover.garage_door_3",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "garage_driveway_camera_detections_animal",
|
|
"automation": "- id: garage_driveway_camera_detections_animal\n alias: Garage Driveway Camera Detections - Animal\n mode: single\n trigger:\n - platform: state\n entity_id: binary_sensor.garage_driveway_camera_animal_detected\n to: 'on'\n variables:\n camera_name: Garage Driveway Camera\n nvr_id: '{{ config_entry_id(trigger.entity_id) }}'\n event_id: '{{ trigger.to_state.attributes.event_id }}'\n image_path: /api/unifiprotect/thumbnail/{{ nvr_id }}/{{ event_id }}\n proxy_camera: camera.camera_proxy_camera_garage_driveway_camera_high\n condition:\n - condition: template\n value_template: '{{ ( now().timestamp() - as_timestamp(state_attr(''automation.garage_driveway_camera_detections_animal'',''last_triggered''),\n 0) ) | int > 60 }}'\n - condition: state\n entity_id: input_boolean.camera_notifications\n state: 'on'\n action:\n - action: script.camera_detection_alert\n data:\n detection_type: animal\n camera_name: '{{ camera_name }}'\n image_path: '{{ image_path }}'\n proxy_camera: '{{ proxy_camera }}'",
|
|
"config": [
|
|
{
|
|
"name": "camera notifications",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.camera_notifications",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "garage driveway camera animal detected",
|
|
"room": "garage driveway",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.garage_driveway_camera_animal_detected",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "garage driveway camera proxy",
|
|
"room": "garage driveway",
|
|
"type": "camera",
|
|
"id": {
|
|
"entity_id": "camera.camera_proxy_camera_garage_driveway_camera_high",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "camera detection alert script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.camera_detection_alert",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "garage_driveway_camera_detections_person",
|
|
"automation": "- id: garage_driveway_camera_detections_person\n alias: Garage Driveway Camera Detections - Person\n mode: single\n triggers:\n - trigger: state\n entity_id: binary_sensor.garage_driveway_person_detected\n to: 'on'\n variables:\n camera_name: Garage Driveway Camera\n nvr_id: '{{ config_entry_id(trigger.entity_id) }}'\n event_id: '{{ trigger.to_state.attributes.event_id }}'\n image_path: /api/unifiprotect/thumbnail/{{ nvr_id }}/{{ event_id }}\n proxy_camera: camera.camera_proxy_camera_garage_driveway_camera_high\n conditions:\n - condition: template\n value_template: '{{ ( now().timestamp() - as_timestamp(state_attr(''automation.garage_driveway_camera_detections_person'',''last_triggered''),\n 0) ) | int > 60 }}'\n - condition: state\n entity_id: input_boolean.camera_notifications\n state: 'on'\n - condition: or\n conditions:\n - condition: state\n entity_id: input_boolean.garage_occupied\n state: 'off'\n - condition: state\n entity_id: cover.garage_doors\n state: closed\n - condition: state\n entity_id: binary_sensor.garage_ble_occupancy\n state: 'off'\n for:\n minutes: 2\n actions:\n - action: script.camera_detection_alert\n data:\n detection_type: person\n camera_name: '{{ camera_name }}'\n image_path: '{{ image_path }}'\n proxy_camera: '{{ proxy_camera }}'",
|
|
"config": [
|
|
{
|
|
"name": "camera notifications",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.camera_notifications",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "cover garage doors",
|
|
"room": "garage",
|
|
"type": "cover",
|
|
"id": {
|
|
"entity_id": "cover.garage_doors",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "garage driveway camera person detected",
|
|
"room": "garage driveway",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.garage_driveway_person_detected",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "garage driveway camera proxy",
|
|
"room": "garage driveway",
|
|
"type": "camera",
|
|
"id": {
|
|
"entity_id": "camera.camera_proxy_camera_garage_driveway_camera_high",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "garage occupied",
|
|
"room": "garage",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.garage_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "garage ble occupancy",
|
|
"room": "garage",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.garage_ble_occupancy",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "camera detection alert script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.camera_detection_alert",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "garage_driveway_camera_detections_vehicle",
|
|
"automation": "- id: garage_driveway_camera_detections_vehicle\n alias: Garage Driveway Camera Detections - Vehicle\n mode: single\n trigger:\n - platform: state\n entity_id: binary_sensor.garage_driveway_vehicle_detected\n to: 'on'\n variables:\n camera_name: Garage Driveway Camera\n nvr_id: '{{ config_entry_id(trigger.entity_id) }}'\n event_id: '{{ trigger.to_state.attributes.event_id }}'\n image_path: /api/unifiprotect/thumbnail/{{ nvr_id }}/{{ event_id }}\n proxy_camera: camera.camera_proxy_camera_garage_driveway_camera_high\n condition:\n - condition: template\n value_template: '{{ ( now().timestamp() - as_timestamp(state_attr(''automation.garage_driveway_camera_detections_vehicle'',''last_triggered''),\n 0) ) | int > 60 }}'\n - condition: state\n entity_id: input_boolean.camera_notifications\n state: 'on'\n action:\n - action: script.camera_detection_alert\n data:\n detection_type: vehicle\n camera_name: '{{ camera_name }}'\n image_path: '{{ image_path }}'\n proxy_camera: '{{ proxy_camera }}'",
|
|
"config": [
|
|
{
|
|
"name": "camera notifications",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.camera_notifications",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "garage driveway camera vehicle detected",
|
|
"room": "garage driveway",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.garage_driveway_vehicle_detected",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "garage driveway camera proxy",
|
|
"room": "garage driveway",
|
|
"type": "camera",
|
|
"id": {
|
|
"entity_id": "camera.camera_proxy_camera_garage_driveway_camera_high",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "camera detection alert script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.camera_detection_alert",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "garage_entry_door_lock_at_bedtime",
|
|
"automation": "- id: garage_entry_door_lock_at_bedtime\n alias: Garage Entry Door - Lock\n initial_state: true\n trigger:\n - platform: state\n entity_id: input_boolean.bedtime\n to: 'on'\n - platform: state\n entity_id: input_boolean.house_occupied\n to: 'off'\n condition:\n - condition: state\n entity_id: lock.garage_entry_door\n state: unlocked\n action:\n - service: lock.lock\n entity_id: lock.garage_entry_door",
|
|
"config": [
|
|
{
|
|
"name": "bedtime",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.bedtime",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "garage entry door lock",
|
|
"room": "garage",
|
|
"type": "lock",
|
|
"id": {
|
|
"entity_id": "lock.garage_entry_door",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "garage_entry_door_unlock_upon_arrival",
|
|
"automation": "- id: garage_entry_door_unlock_upon_arrival\n alias: Garage Entry Door - Unlock Upon Arrival\n initial_state: true\n trigger:\n - platform: state\n entity_id:\n - person.john_koht\n - person.cristina_falbo\n - person.mary_falbo\n - person.antoun_koht\n - person.sonia_koht\n - person.katia\n - person.joe_falbo\n to: home\n - platform: state\n entity_id: input_boolean.house_occupied\n to: 'on'\n condition:\n - condition: state\n entity_id: lock.garage_entry_door\n state: locked\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n action:\n - service: lock.unlock\n entity_id: lock.garage_entry_door",
|
|
"config": [
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "garage entry door lock",
|
|
"room": "garage",
|
|
"type": "lock",
|
|
"id": {
|
|
"entity_id": "lock.garage_entry_door",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "person cristina falbo",
|
|
"room": null,
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.cristina_falbo",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "person john koht",
|
|
"room": null,
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.john_koht",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "person cristina falbo",
|
|
"room": null,
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.cristina_falbo",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "person antoun koht",
|
|
"room": null,
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.antoun_koht",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "person joe falbo",
|
|
"room": null,
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.joe_falbo",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "person katia",
|
|
"room": null,
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.katia",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "person mary falbo",
|
|
"room": null,
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.mary_falbo",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "person sonia koht",
|
|
"room": null,
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.sonia_koht",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "garage_lights_motion_off",
|
|
"automation": "- id: garage_lights_motion_off\n initial_state: true\n alias: Garage lights motion off\n trigger:\n - platform: state\n entity_id: binary_sensor.garage_motion_sensor_motion\n to: 'off'\n for:\n minutes: 2\n - platform: state\n entity_id: binary_sensor.garage_motion_sensor_occupancy\n to: 'off'\n - platform: state\n entity_id: input_boolean.garage_occupied\n to: 'off'\n condition:\n - condition: state\n entity_id: input_boolean.garage_occupied\n state: 'off'\n - condition: state\n entity_id: binary_sensor.garage_motion_sensor_occupancy\n state: 'off'\n - condition: state\n entity_id: light.garage_lights\n state: 'on'\n action:\n - service: light.turn_off\n entity_id: light.garage_lights",
|
|
"config": [
|
|
{
|
|
"name": "garage motion sensor motion",
|
|
"room": "garage",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.garage_motion_sensor_motion",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "garage motion sensor occupancy",
|
|
"room": "garage",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.garage_motion_sensor_occupancy",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "garage occupied",
|
|
"room": "garage",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.garage_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Garage Lights",
|
|
"room": "Garage",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.garage_lights",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "garage_lights_motion_on",
|
|
"automation": "- id: garage_lights_motion_on\n initial_state: true\n alias: Garage lights Motion On\n trigger:\n - platform: state\n entity_id: binary_sensor.garage_motion_sensor_motion\n to: 'on'\n - platform: state\n entity_id: binary_sensor.interior_garage_door\n to: 'on'\n - platform: state\n entity_id: cover.garage_doors\n to: open\n condition:\n - condition: state\n entity_id: input_select.garage\n state: Auto\n - condition: state\n entity_id: input_boolean.lighting_automations\n state: 'on'\n - condition: state\n entity_id: input_boolean.garage_lighting_automations\n state: 'on'\n - condition: numeric_state\n entity_id: sensor.garage_motion_sensor_illuminance\n below: 100\n - condition: state\n entity_id: light.garage_lights\n state: 'off'\n action:\n - service: light.turn_on\n entity_id: light.garage_lights\n - service: input_boolean.turn_on\n entity_id: input_boolean.garage_lights_auto",
|
|
"config": [
|
|
{
|
|
"name": "cover garage doors",
|
|
"room": "garage",
|
|
"type": "cover",
|
|
"id": {
|
|
"entity_id": "cover.garage_doors",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "lighting automations",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.lighting_automations",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "garage motion sensor motion",
|
|
"room": "garage",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.garage_motion_sensor_motion",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "garage mode",
|
|
"room": "garage",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.garage",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "garage lighting automations",
|
|
"room": "garage",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.garage_lighting_automations",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "garage motion sensor illuminance",
|
|
"room": "garage",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.garage_motion_sensor_illuminance",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "garage lights auto",
|
|
"room": "garage",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.garage_lights_auto",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Interior Garage Door",
|
|
"room": "Garage",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.interior_garage_door",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Garage Lights",
|
|
"room": "Garage",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.garage_lights",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "garage_lights_off",
|
|
"automation": "- id: garage_lights_off\n initial_state: true\n alias: Garage lights off\n trigger:\n - platform: state\n entity_id: input_select.garage\n to: 'Off'\n - platform: state\n entity_id: input_select.garage\n to: Away\n - platform: state\n entity_id: input_boolean.garage_occupied\n to: 'off'\n - platform: state\n entity_id: input_boolean.lighting_automations\n to: 'on'\n condition:\n - condition: state\n entity_id: input_boolean.garage_occupied\n state: 'off'\n - condition: or\n conditions:\n - condition: state\n entity_id: input_select.garage\n state: 'Off'\n - condition: state\n entity_id: input_select.garage\n state: Away\n - condition: state\n entity_id: input_boolean.garage_occupied\n state: 'off'\n action:\n - service: light.turn_off\n entity_id: light.garage_lights",
|
|
"config": [
|
|
{
|
|
"name": "lighting automations",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.lighting_automations",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "garage occupied",
|
|
"room": "garage",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.garage_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "garage mode",
|
|
"room": "garage",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.garage",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Garage Lights",
|
|
"room": "Garage",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.garage_lights",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "garage_lights_to_off",
|
|
"automation": "- id: garage_lights_to_off\n initial_state: 'off'\n alias: Garage lights to off\n trigger:\n - platform: state\n entity_id: input_select.house\n to: 'Off'\n - platform: state\n entity_id: input_boolean.house_occupied\n to: 'off'\n - platform: state\n entity_id: input_boolean.bedtime\n to: 'on'\n - platform: state\n entity_id: light.garage_lights\n to: 'on'\n for:\n minutes: 30\n condition:\n - condition: state\n entity_id: input_boolean.lighting_automations\n state: 'on'\n - condition: state\n entity_id: light.garage_lights\n state: 'on'\n action:\n - service: light.turn_off\n entity_id: light.garage_lights",
|
|
"config": [
|
|
{
|
|
"name": "bedtime",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.bedtime",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "house status",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.house",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "lighting automations",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.lighting_automations",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Garage Lights",
|
|
"room": "Garage",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.garage_lights",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "garage_lights_turned_off",
|
|
"automation": "- id: garage_lights_turned_off\n initial_state: true\n alias: Garage lights Manually Turned Off\n trigger:\n - platform: state\n entity_id: light.garage_lights\n to: 'off'\n condition:\n - condition: state\n entity_id: input_boolean.garage_lights_auto\n state: 'on'\n action:\n - service: input_boolean.turn_off\n entity_id: input_boolean.garage_lights_auto\n - service: input_boolean.turn_off\n entity_id: input_boolean.garage_lighting_automations",
|
|
"config": [
|
|
{
|
|
"name": "garage lighting automations",
|
|
"room": "garage",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.garage_lighting_automations",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "garage lights auto",
|
|
"room": "garage",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.garage_lights_auto",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Garage Lights",
|
|
"room": "Garage",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.garage_lights",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "garage_mode_auto",
|
|
"automation": "- id: garage_mode_auto\n initial_state: true\n alias: Garage mode auto\n trigger:\n - platform: state\n entity_id: input_boolean.garage_occupied\n to: 'on'\n - platform: state\n entity_id: input_select.house\n to: Auto\n - platform: state\n entity_id: binary_sensor.garage_motion_sensor_occupancy\n to: 'on'\n condition:\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n - condition: template\n value_template: '{{ not is_state(''input_select.garage'',''Auto'') }}'\n - condition: state\n entity_id: input_boolean.bedtime\n state: 'off'\n action:\n - service: input_select.select_option\n data:\n entity_id: input_select.garage\n option: Auto",
|
|
"config": [
|
|
{
|
|
"name": "bedtime",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.bedtime",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "house status",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.house",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "garage motion sensor occupancy",
|
|
"room": "garage",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.garage_motion_sensor_occupancy",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "garage occupied",
|
|
"room": "garage",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.garage_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "garage mode",
|
|
"room": "garage",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.garage",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "garage_mode_away",
|
|
"automation": "- id: garage_mode_away\n initial_state: true\n alias: Garage mode away\n trigger:\n - platform: state\n entity_id: input_boolean.house_occupied\n to: 'off'\n - platform: state\n entity_id: input_select.house\n to: Away\n condition:\n - condition: template\n value_template: '{{ not is_state(''input_select.garage'',''Away'') }}'\n - condition: or\n conditions:\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'off'\n - condition: state\n entity_id: input_select.house\n state: Away\n action:\n - service: input_select.select_option\n data:\n entity_id: input_select.garage\n option: Away",
|
|
"config": [
|
|
{
|
|
"name": "house status",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.house",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "garage mode",
|
|
"room": "garage",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.garage",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "garage_mode_off",
|
|
"automation": "- id: garage_mode_off\n initial_state: true\n alias: Garage mode off\n trigger:\n - platform: state\n entity_id: input_select.house\n to: Bedtime\n condition:\n - condition: state\n entity_id: input_boolean.garage_occupied\n state: 'off'\n - condition: state\n entity_id: input_select.house\n state: Bedtime\n action:\n - service: input_select.select_option\n data:\n entity_id: input_select.garage\n option: 'Off'\n - service: automation.turn_on\n entity_id: automation.garage_doors_close_when_home",
|
|
"config": [
|
|
{
|
|
"name": "house status",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.house",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "garage occupied",
|
|
"room": "garage",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.garage_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "garage mode",
|
|
"room": "garage",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.garage",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Garage Doors Close When Home",
|
|
"room": "Garage",
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.garage_doors_close_when_home",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "garage_not_occupied",
|
|
"automation": "- id: garage_not_occupied\n initial_state: true\n alias: Garage not occupied\n triggers:\n - trigger: state\n entity_id: binary_sensor.garage_ble_occupancy\n to: 'off'\n for:\n minutes: 5\n - trigger: state\n entity_id: binary_sensor.garage_motion_sensor_occupancy\n to: 'off'\n - trigger: state\n entity_id: cover.garage_doors\n to: closed\n - trigger: state\n entity_id: cover.garage_doors\n to: open\n for:\n minutes: 15\n conditions:\n - condition: state\n entity_id: input_boolean.garage_occupied\n state: 'on'\n - condition: state\n entity_id: binary_sensor.garage_motion_sensor_occupancy\n state: 'off'\n - condition: state\n entity_id: binary_sensor.garage_ble_occupancy\n state: 'off'\n actions:\n - action: input_boolean.turn_off\n entity_id: input_boolean.garage_occupied\n - delay: 00:00:30\n - action: input_boolean.turn_on\n entity_id: input_boolean.garage_lighting_automations",
|
|
"config": [
|
|
{
|
|
"name": "cover garage doors",
|
|
"room": "garage",
|
|
"type": "cover",
|
|
"id": {
|
|
"entity_id": "cover.garage_doors",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "garage motion sensor occupancy",
|
|
"room": "garage",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.garage_motion_sensor_occupancy",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "garage occupied",
|
|
"room": "garage",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.garage_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "garage lighting automations",
|
|
"room": "garage",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.garage_lighting_automations",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "garage ble occupancy",
|
|
"room": "garage",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.garage_ble_occupancy",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "garage_occupied",
|
|
"automation": "- id: garage_occupied\n initial_state: true\n alias: Garage occupied\n triggers:\n - trigger: state\n entity_id: binary_sensor.garage_motion_sensor_motion\n to: 'on'\n - trigger: state\n entity_id: light.garage_lights\n to: 'on'\n - trigger: state\n entity_id: cover.garage_doors\n to: open\n - trigger: event\n event_type: automation_reloaded\n - trigger: homeassistant\n event: start\n conditions:\n - condition: state\n entity_id: input_boolean.garage_occupied\n state: 'off'\n - condition: or\n conditions:\n - condition: state\n entity_id: binary_sensor.garage_ble_occupancy\n state: 'off'\n for:\n minutes: 2\n - condition: state\n entity_id: binary_sensor.garage_motion_sensor_occupancy\n state: 'on'\n - condition: state\n entity_id: light.garage_lights\n state: 'on'\n - condition: state\n entity_id: cover.garage_doors\n state: open\n actions:\n - action: input_boolean.turn_on\n entity_id: input_boolean.garage_occupied",
|
|
"config": [
|
|
{
|
|
"name": "cover garage doors",
|
|
"room": "garage",
|
|
"type": "cover",
|
|
"id": {
|
|
"entity_id": "cover.garage_doors",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "garage motion sensor motion",
|
|
"room": "garage",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.garage_motion_sensor_motion",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "garage motion sensor occupancy",
|
|
"room": "garage",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.garage_motion_sensor_occupancy",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "garage occupied",
|
|
"room": "garage",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.garage_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "garage ble occupancy",
|
|
"room": "garage",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.garage_ble_occupancy",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Garage Lights",
|
|
"room": "Garage",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.garage_lights",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "garbage_day_is_today_reminder",
|
|
"automation": "- id: garbage_day_is_today_reminder\n alias: Garbage Day Is Today Reminder\n mode: single\n initial_state: false\n trigger:\n - platform: time\n at: 06:30:00\n - platform: state\n entity_id: binary_sensor.kitchen_motion_sensor_occupancy\n to: 'on'\n for:\n minutes: 15\n condition:\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n - condition: state\n entity_id: input_boolean.garbage_day\n state: 'on'\n - condition: time\n after: 06:00:00\n before: 09:00:00\n action:\n - wait_template: '{{ (as_timestamp(now()) - as_timestamp(states.binary_sensor.kitchen_motion_sensor_occupancy.last_changed))\n | int >= 900 }}'\n timeout: 00:15:00\n continue_on_timeout: false\n - wait_template: '{{ is_state(''binary_sensor.kitchen_motion_sensor_status'', ''on'')\n }}'\n timeout: 00:15:00\n continue_on_timeout: false\n - alias: Wait 2 seconds\n delay: 2\n - service: script.voice_announcement\n data:\n media_players: auto\n sound: message-alert\n speech_message: \"{{\\n [\\n \\\"Hey there, today is garbage day, make sure the\\\n \\ trash it out.\\\",\\n \\\"Garbage day! Don't forget to take the trash out.\\\"\\\n \\n ] | random\\n}}\"",
|
|
"config": [
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "kitchen motion sensor status",
|
|
"room": "kitchen",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.kitchen_motion_sensor_status",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "voice announcement script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.voice_announcement",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "script voice announcement",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.voice_announcement",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "binary sensor kitchen motion sensor status",
|
|
"room": "kitchen",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.kitchen_motion_sensor_status",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "binary sensor kitchen motion sensor occupancy",
|
|
"room": "kitchen",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.kitchen_motion_sensor_occupancy",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Garbage Day",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.garbage_day",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "garbage_day_is_tomorrow_reminder",
|
|
"automation": "- id: garbage_day_is_tomorrow_reminder\n alias: Garbage Day Is Tomorrow Reminder\n mode: single\n trigger:\n - platform: time\n at: '17:30:00'\n - platform: time\n at: '20:00:00'\n - platform: state\n entity_id: input_boolean.house_occupied\n to: 'on'\n for:\n minutes: 15\n condition:\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n - condition: state\n entity_id: binary_sensor.tomorrow_is_garbage_day\n state: 'on'\n - condition: time\n after: '17:00:00'\n action:\n - wait_template: \"{{ \\n is_state('binary_sensor.kitchen_motion_sensor_status',\\\n \\ 'on')\\n or\\n is_state('binary_sensor.family_room_motion_sensor', 'on')\\n\\\n }}\"\n timeout: 00:05:00\n - alias: Wait 2 seconds\n delay: 2\n - service: script.voice_announcement\n data:\n media_players: auto\n sound: message-alert\n priority: high\n speech_message: \"{{\\n [\\n \\\"Tomorrow is garbage day. Don't forget to take\\\n \\ out the trash.\\\",\\n \\\"Hey fam, don't forget that tomorrow is garbage\\\n \\ day.\\\"\\n ] | random\\n}}\"\n - service: script.general_notification\n data:\n message: Tomorrow is garbage day reminder!\n title: Garbage Day\n devices: jk\n priority: time-sensitive\n tag: garbage-day",
|
|
"config": [
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "kitchen motion sensor status",
|
|
"room": "kitchen",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.kitchen_motion_sensor_status",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "family room motion sensor",
|
|
"room": "family room",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.family_room_motion_sensor",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "general notification script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.general_notification",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "voice announcement script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.voice_announcement",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "family room motion sensor",
|
|
"room": "family room",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.family_room_motion_sensor",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "tomorrow is garbage day",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.tomorrow_is_garbage_day",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "script voice announcement",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.voice_announcement",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "binary sensor kitchen motion sensor status",
|
|
"room": "kitchen",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.kitchen_motion_sensor_status",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "garbage_day_off",
|
|
"automation": "- id: garbage_day_off\n alias: Garbage Day Off\n mode: single\n trigger:\n - platform: calendar\n event: end\n entity_id: calendar.garbage_day\n condition:\n - condition: state\n entity_id: input_boolean.garbage_day\n state: 'on'\n action:\n - service: input_boolean.turn_off\n entity_id: input_boolean.garbage_day\n - service: automation.turn_off\n entity_id: automation.garbage_day_is_today_reminder",
|
|
"config": [
|
|
{
|
|
"name": "garbage day calendar",
|
|
"room": null,
|
|
"type": "calendar",
|
|
"id": {
|
|
"entity_id": "calendar.garbage_day",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Garbage Day is Today Reminder",
|
|
"room": null,
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.garbage_day_is_today_reminder",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Garbage Day",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.garbage_day",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "garbage_day_on",
|
|
"automation": "- id: garbage_day_on\n alias: Garbage Day On\n mode: single\n trigger:\n - platform: calendar\n event: start\n entity_id: calendar.garbage_day\n condition:\n - condition: state\n entity_id: input_boolean.garbage_day\n state: 'off'\n action:\n - service: input_boolean.turn_on\n entity_id: input_boolean.garbage_day\n - service: automation.turn_on\n entity_id: automation.garbage_day_is_today_reminder",
|
|
"config": [
|
|
{
|
|
"name": "garbage day calendar",
|
|
"room": null,
|
|
"type": "calendar",
|
|
"id": {
|
|
"entity_id": "calendar.garbage_day",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Garbage Day is Today Reminder",
|
|
"room": null,
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.garbage_day_is_today_reminder",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Garbage Day",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.garbage_day",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "notifications_activate_important_only",
|
|
"automation": "- id: notifications_activate_important_only\n alias: Notifications - Activate Important Only\n mode: single\n triggers:\n - trigger: state\n entity_id: input_boolean.bedtime\n to: 'on'\n - trigger: state\n entity_id: input_boolean.entertainment_mode\n to: 'on'\n - trigger: state\n entity_id: input_boolean.house_occupied\n to: 'off'\n condition:\n - condition: state\n entity_id: input_select.notification_level\n state: All\n action:\n - action: input_select.select_option\n data:\n entity_id: input_select.notification_level\n option: Important",
|
|
"config": [
|
|
{
|
|
"name": "bedtime",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.bedtime",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "entertainment mode",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.entertainment_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "notification level",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.notification_level",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "gianlucas_bedroom_mode_auto",
|
|
"automation": "- id: gianlucas_bedroom_mode_auto\n initial_state: true\n alias: Gianluca's Bedroom - Mode Auto\n triggers:\n - trigger: state\n entity_id: input_boolean.gianlucas_room_occupied\n to: 'on'\n - trigger: state\n entity_id: input_select.house\n to: Auto\n - trigger: state\n entity_id: input_boolean.house_occupied\n to: 'on'\n - trigger: state\n entity_id: input_boolean.gianluca_in_bed\n to: 'off'\n for:\n minutes: 10\n - trigger: state\n entity_id: input_boolean.bedtime\n to: 'off'\n conditions:\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n - condition: template\n value_template: '{{ not is_state(''input_select.gianlucas_bedroom'',''Auto'')\n }}'\n - condition: state\n entity_id: input_boolean.bedtime\n state: 'off'\n - condition: state\n entity_id: input_select.house\n state:\n - Auto\n - Quiet\n - condition: state\n entity_id: input_boolean.gianlucas_room_occupied\n state: 'off'\n - condition: state\n entity_id: input_boolean.gianluca_in_bed\n state: 'off'\n actions:\n - action: input_select.select_option\n data:\n entity_id: input_select.gianlucas_bedroom\n option: Auto",
|
|
"config": [
|
|
{
|
|
"name": "bedtime",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.bedtime",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "house status",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.house",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "gianlucas room occupied",
|
|
"room": "gianlucas bedroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.gianlucas_room_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "gianlucas bedroom mode",
|
|
"room": "gianlucas bedroom",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.gianlucas_bedroom",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "gianluca in bed",
|
|
"room": "gianlucas bedroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.gianluca_in_bed",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "gianlucas_bedroom_mode_bedtime",
|
|
"automation": "- id: gianlucas_bedroom_mode_bedtime\n initial_state: true\n alias: Gianluca's Bedroom - Mode Bedtime\n triggers:\n - trigger: state\n entity_id: input_boolean.gianluca_in_bed\n to: 'on'\n conditions:\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n - condition: template\n value_template: '{{ not is_state(''input_select.gianlucas_bedroom'',''Bedtime'')\n }}'\n action:\n - action: input_select.select_option\n data:\n entity_id: input_select.gianlucas_bedroom\n option: Bedtime",
|
|
"config": [
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "gianlucas bedroom mode",
|
|
"room": "gianlucas bedroom",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.gianlucas_bedroom",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "gianluca in bed",
|
|
"room": "gianlucas bedroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.gianluca_in_bed",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "gianlucas_bedroom_mode_off",
|
|
"automation": "- id: gianlucas_bedroom_mode_off\n initial_state: true\n alias: Gianluca's Bedroom - Mode Off\n triggers:\n - trigger: state\n entity_id: input_boolean.house_occupied\n to: 'off'\n - trigger: state\n entity_id: input_select.house\n to: Away\n - trigger: homeassistant\n event: start\n - trigger: event\n event_type: automation_reloaded\n conditions:\n - condition: template\n value_template: '{{ not is_state(''input_select.gianlucas_bedroom'',''Off'') }}'\n - condition: or\n conditions:\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'off'\n - condition: state\n entity_id: input_select.house\n state: Away\n actions:\n - action: input_select.select_option\n data:\n entity_id: input_select.gianlucas_bedroom\n option: 'Off'",
|
|
"config": [
|
|
{
|
|
"name": "house status",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.house",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "gianlucas bedroom mode",
|
|
"room": "gianlucas bedroom",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.gianlucas_bedroom",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "gianlucas_room_not_occupied",
|
|
"automation": "- id: gianlucas_room_not_occupied\n initial_state: true\n alias: Gianluca's room not occupied\n triggers:\n - trigger: state\n entity_id: binary_sensor.gianlucas_door_sensor_status\n to: 'on'\n for:\n minutes: 5\n - trigger: state\n entity_id: light.gianluca_bedroom_lights\n to: 'off'\n for:\n minutes: 3\n - trigger: state\n entity_id: binary_sensor.gianluca_bed_occupied\n to: 'off'\n for:\n minutes: 5\n condition:\n - condition: state\n entity_id: input_boolean.gianlucas_room_occupied\n state: 'on'\n - condition: and\n conditions:\n - condition: state\n entity_id: binary_sensor.gianlucas_door_sensor_status\n state: 'on'\n - condition: state\n entity_id: light.gianluca_bedroom_lights\n state: 'off'\n - condition: state\n entity_id: binary_sensor.gianluca_bed_occupied\n state: 'off'\n action:\n - action: input_boolean.turn_off\n entity_id: input_boolean.gianlucas_room_occupied",
|
|
"config": [
|
|
{
|
|
"name": "gianlucas room occupied",
|
|
"room": "gianlucas bedroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.gianlucas_room_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "gianlucas door sensor status",
|
|
"room": "gianlucas bedroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.gianlucas_door_sensor_status",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "gianluca bedroom lights",
|
|
"room": "gianlucas bedroom",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.gianluca_bedroom_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "gianluca bed occupied",
|
|
"room": "gianlucas bedroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.gianluca_bed_occupied",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "gianlucas_room_occupied",
|
|
"automation": "- id: gianlucas_room_occupied\n initial_state: true\n alias: Gianluca's room occupied\n triggers:\n - trigger: state\n entity_id: binary_sensor.gianlucas_door_sensor_status\n to: 'off'\n - trigger: state\n entity_id: light.gianluca_bedroom_lights\n to: 'on'\n - trigger: state\n entity_id: binary_sensor.gianluca_bed_occupied\n to: 'on'\n conditions:\n - condition: state\n entity_id: input_boolean.gianlucas_room_occupied\n state: 'off'\n - condition: or\n conditions:\n - condition: state\n entity_id: binary_sensor.gianlucas_door_sensor_status\n state: 'off'\n - condition: state\n entity_id: light.gianluca_bedroom_lights\n state: 'on'\n - condition: state\n entity_id: binary_sensor.gianluca_bed_occupied\n state: 'on'\n actions:\n - action: input_boolean.turn_on\n entity_id: input_boolean.gianlucas_room_occupied",
|
|
"config": [
|
|
{
|
|
"name": "gianlucas room occupied",
|
|
"room": "gianlucas bedroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.gianlucas_room_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "gianlucas door sensor status",
|
|
"room": "gianlucas bedroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.gianlucas_door_sensor_status",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "gianluca bedroom lights",
|
|
"room": "gianlucas bedroom",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.gianluca_bedroom_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "gianluca bed occupied",
|
|
"room": "gianlucas bedroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.gianluca_bed_occupied",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "gianluca_bedroom_turn_off_purifier",
|
|
"automation": "- id: gianluca_bedroom_turn_off_purifier\n alias: Gianluca's Bedroom Air Quality - Turn off Purifier\n mode: single\n initial_state: true\n triggers:\n - trigger: state\n entity_id: input_boolean.house_occupied\n to: 'off'\n - trigger: state\n entity_id: input_boolean.gianlucas_room_occupied\n to: 'off'\n for:\n minutes: 30\n actions:\n - action: fan.turn_off\n target:\n entity_id: fan.gianlucas_bedroom_air_purifier",
|
|
"config": [
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "gianlucas room occupied",
|
|
"room": "gianlucas bedroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.gianlucas_room_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "gianlucas bedroom air purifier",
|
|
"room": "gianlucas bedroom",
|
|
"type": "fan",
|
|
"id": {
|
|
"entity_id": "fan.gianlucas_bedroom_air_purifier",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "gianluca_bed_awake",
|
|
"automation": "- id: gianluca_bed_awake\n alias: Gianluca Bed - Awake\n mode: single\n triggers:\n - trigger: state\n entity_id: input_select.gianluca_sleep_state\n to: Just Got Up\n for:\n minutes: 5\n action:\n - action: input_select.select_option\n data:\n entity_id: input_select.gianluca_sleep_state\n option: Awake\n - action: input_boolean.turn_off\n entity_id: input_boolean.gianluca_in_bed",
|
|
"config": [
|
|
{
|
|
"name": "gianluca in bed",
|
|
"room": "gianlucas bedroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.gianluca_in_bed",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "gianluca sleep state",
|
|
"room": "gianlucas bedroom",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.gianluca_sleep_state",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "gianluca_bed_just_got_up",
|
|
"automation": "- id: gianluca_bed_just_got_up\n alias: Gianluca Bed - Just Got Up\n mode: single\n triggers:\n - trigger: state\n entity_id: binary_sensor.gianluca_bed_occupied\n to: 'off'\n action:\n - action: input_select.select_option\n data:\n entity_id: input_select.gianluca_sleep_state\n option: Just Got Up",
|
|
"config": [
|
|
{
|
|
"name": "gianluca bed occupied",
|
|
"room": "gianlucas bedroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.gianluca_bed_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "gianluca sleep state",
|
|
"room": "gianlucas bedroom",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.gianluca_sleep_state",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "gianluca_bed_just_laid_down",
|
|
"automation": "- id: gianluca_bed_just_laid_down\n alias: Gianluca Bed - Just Laid Down\n mode: single\n triggers:\n - trigger: state\n entity_id: binary_sensor.gianluca_bed_occupied\n to: 'on'\n conditions:\n - condition: template\n value_template: '{{ not is_state(''input_select.gianluca_sleep_state'',''Sleep'')\n }}'\n action:\n - action: input_select.select_option\n data:\n entity_id: input_select.gianluca_sleep_state\n option: Just Laid Down",
|
|
"config": [
|
|
{
|
|
"name": "gianluca bed occupied",
|
|
"room": "gianlucas bedroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.gianluca_bed_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "gianluca sleep state",
|
|
"room": "gianlucas bedroom",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.gianluca_sleep_state",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "gianluca_bed_sleep",
|
|
"automation": "- id: gianluca_bed_sleep\n alias: Gianluca Bed - Sleep\n mode: single\n triggers:\n - trigger: state\n entity_id: input_select.gianluca_sleep_state\n to: Just Laid Down\n for:\n minutes: 5\n action:\n - action: input_select.select_option\n data:\n entity_id: input_select.gianluca_sleep_state\n option: Sleep\n - action: input_boolean.turn_on\n entity_id: input_boolean.gianluca_in_bed",
|
|
"config": [
|
|
{
|
|
"name": "gianluca in bed",
|
|
"room": "gianlucas bedroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.gianluca_in_bed",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "gianluca sleep state",
|
|
"room": "gianlucas bedroom",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.gianluca_sleep_state",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "gianluca_birthday_countdown_reminder",
|
|
"automation": "- id: gianluca_birthday_countdown_reminder\n alias: Gianluca Birthday Countdown Reminder\n mode: single\n initial_state: false\n trigger:\n - platform: time\n at: 07:05:00\n - platform: time\n at: 07:35:00\n - platform: time\n at: 08:05:00\n - platform: time\n at: 08:35:00\n - platform: time\n at: '18:05:00'\n condition:\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n - condition: state\n entity_id: input_boolean.gianluca_countdown_announced\n state: 'off'\n - condition: time\n after: 07:00:00\n action:\n - wait_template: \"{{ \\n is_state('binary_sensor.kitchen_motion_sensor_status',\\\n \\ 'on')\\n or\\n is_state('binary_sensor.family_room_motion_sensor', 'on')\\n\\\n }}\"\n timeout: 00:05:00\n - alias: Wait 2 seconds\n delay: 2\n - service: input_boolean.turn_on\n entity_id: input_boolean.gianluca_countdown_announced\n - choose:\n - conditions:\n - condition: template\n value_template: '{{ states.sensor.gianluca_days_to_birthday.state | int ==\n 0 }}'\n sequence:\n - service: script.voice_announcement\n data:\n speech_message: Hey, Gianluca! Guess what? Today's your birthday! Happy\n Birthday!!!\n media_players: auto\n sound: success-trumpets\n priority: high\n - conditions:\n - condition: template\n value_template: '{{ states.sensor.gianluca_days_to_birthday.state | int ==\n 1 }}'\n sequence:\n - service: script.voice_announcement\n data:\n speech_message: Gianluca! Guess what tomorrow is? You're birthday!!! Are\n you super excited to celebrate?\n media_players: auto\n sound: games-sfx\n priority: high\n default:\n - service: script.voice_announcement\n data:\n speech_message: \"{{\\n [\\n \\\"Hey Gianluca! Guess what? There's \\\" ~ states.sensor.gianluca_days_to_birthday.state\\\n \\ ~ \\\" days until your birthday!\\\",\\n \\\"Gianluca! I'm so excited! You're\\\n \\ birthday is in \\\" ~ states.sensor.gianluca_days_to_birthday.state ~ \\\"\\\n \\ days! How exciting is that?\\\"\\n ] | random\\n}}\"\n media_players: auto\n sound: games-sfx\n priority: high",
|
|
"config": [
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "kitchen motion sensor status",
|
|
"room": "kitchen",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.kitchen_motion_sensor_status",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "family room motion sensor",
|
|
"room": "family room",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.family_room_motion_sensor",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "voice announcement script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.voice_announcement",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "family room motion sensor",
|
|
"room": "family room",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.family_room_motion_sensor",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "gianluca days to birthday",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.gianluca_days_to_birthday",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "gianluca countdown announced",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.gianluca_countdown_announced",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "script voice announcement",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.voice_announcement",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "binary sensor kitchen motion sensor status",
|
|
"room": "kitchen",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.kitchen_motion_sensor_status",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "gianluca_birthday_daily_reset",
|
|
"automation": "- id: gianluca_birthday_daily_reset\n alias: Gianluca Birthday Daily Reset\n mode: single\n initial_state: false\n trigger:\n - platform: time\n at: 00:00:05\n condition:\n - condition: state\n entity_id: input_boolean.gianluca_countdown_to_birthday\n state: 'on'\n action:\n - service: input_boolean.turn_off\n entity_id: input_boolean.gianluca_countdown_announced",
|
|
"config": [
|
|
{
|
|
"name": "gianluca countdown to birthday",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.gianluca_countdown_to_birthday",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "gianluca countdown announced",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.gianluca_countdown_announced",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "gianluca_countdown_to_birthday_turn_off",
|
|
"automation": "- id: gianluca_countdown_to_birthday_turn_off\n alias: Gianluca Countdown to Birthday - Turn Off\n mode: single\n initial_state: false\n trigger:\n - platform: time\n at: 00:00:01\n - platform: event\n event_type: automation_reloaded\n - platform: homeassistant\n event: start\n condition:\n - condition: numeric_state\n entity_id: sensor.gianluca_days_to_birthday\n above: 15\n below: 0\n action:\n - service: input_boolean.turn_off\n entity_id: input_boolean.gianluca_countdown_to_birthday\n - service: automation.turn_off\n entity_id:\n - automation.gianluca_countdown_to_birthday_turn_off\n - automation.gianluca_birthday_countdown_reminder\n - automation.gianluca_birthday_daily_reset\n - service: automation.turn_on\n entity_id: automation.gianluca_countdown_to_birthday_turn_on",
|
|
"config": [
|
|
{
|
|
"name": "gianluca days to birthday",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.gianluca_days_to_birthday",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "gianluca countdown to birthday",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.gianluca_countdown_to_birthday",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Gianluca Birthday Countdown Reminder",
|
|
"room": null,
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.gianluca_birthday_countdown_reminder",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Gianluca Birthday Daily Reset",
|
|
"room": null,
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.gianluca_birthday_daily_reset",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Gianluca Countdown to Birthday Turn Off",
|
|
"room": null,
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.gianluca_countdown_to_birthday_turn_off",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Gianluca Countdown to Birthday Turn On",
|
|
"room": null,
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.gianluca_countdown_to_birthday_turn_on",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "gianluca_countdown_to_birthday_turn_on",
|
|
"automation": "- id: gianluca_countdown_to_birthday_turn_on\n alias: Gianluca Countdown to Birthday - Turn On\n mode: single\n initial_state: true\n trigger:\n - platform: time\n at: 00:00:01\n - platform: event\n event_type: automation_reloaded\n - platform: homeassistant\n event: start\n condition:\n - condition: numeric_state\n entity_id: sensor.gianluca_days_to_birthday\n below: 16\n action:\n - service: input_boolean.turn_on\n entity_id: input_boolean.gianluca_countdown_to_birthday\n - service: automation.turn_on\n entity_id:\n - automation.gianluca_countdown_to_birthday_turn_off\n - automation.gianluca_birthday_countdown_reminder\n - automation.gianluca_birthday_daily_reset\n - service: automation.turn_off\n entity_id: automation.gianluca_countdown_to_birthday_turn_on",
|
|
"config": [
|
|
{
|
|
"name": "gianluca days to birthday",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.gianluca_days_to_birthday",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "gianluca countdown to birthday",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.gianluca_countdown_to_birthday",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Gianluca Birthday Countdown Reminder",
|
|
"room": null,
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.gianluca_birthday_countdown_reminder",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Gianluca Birthday Daily Reset",
|
|
"room": null,
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.gianluca_birthday_daily_reset",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Gianluca Countdown to Birthday Turn Off",
|
|
"room": null,
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.gianluca_countdown_to_birthday_turn_off",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Gianluca Countdown to Birthday Turn On",
|
|
"room": null,
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.gianluca_countdown_to_birthday_turn_on",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "gianluca_heater_off",
|
|
"automation": "- id: gianluca_heater_off\n alias: Gianluca heater off\n initial_state: 'on'\n trigger:\n - platform: state\n entity_id: binary_sensor.gianlucas_door_sensor_status\n to: 'on'\n for:\n minutes: 1\n - platform: template\n value_template: '{{ (states.sensor.gianluca_bedroom_awair_temperature.state |\n float) > 71.5 }}'\n - platform: template\n value_template: '{{ (states.sensor.gianlucas_door_sensor_temperature.state | float)\n > 72.7 }}'\n - platform: state\n entity_id: input_boolean.house_occupied\n to: 'off'\n - platform: state\n entity_id: input_boolean.gianlucas_room_occupied\n to: 'off'\n condition:\n - condition: or\n conditions:\n - condition: template\n value_template: '{{ (states.sensor.gianluca_bedroom_awair_temperature.state\n | float) >= 71.0 }}'\n - condition: template\n value_template: '{{ (states.sensor.gianlucas_door_sensor_temperature.state |\n float) >= 72.1 }}'\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'off'\n - condition: state\n entity_id: input_boolean.gianlucas_room_occupied\n state: 'off'\n - condition: state\n entity_id: light.hue_smart_plug_1\n state: 'on'\n action:\n - service: light.turn_off\n entity_id: light.hue_smart_plug_1",
|
|
"config": [
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "hue smart plug 1",
|
|
"room": null,
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.hue_smart_plug_1",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "gianlucas room occupied",
|
|
"room": "gianlucas bedroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.gianlucas_room_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "gianlucas door sensor status",
|
|
"room": "gianlucas bedroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.gianlucas_door_sensor_status",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "gianluca bedroom awair temperature",
|
|
"room": "gianlucas bedroom",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.gianluca_bedroom_awair_temperature",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "gianlucas door sensor temperature",
|
|
"room": "gianlucas bedroom",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.gianlucas_door_sensor_temperature",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "gianluca_heater_on",
|
|
"automation": "- id: gianluca_heater_on\n alias: Gianluca heater on\n initial_state: 'on'\n trigger:\n - platform: state\n entity_id: input_boolean.gianlucas_room_occupied\n to: 'on'\n - platform: state\n entity_id: group.gianlucas_room_lights\n to: 'off'\n - platform: numeric_state\n entity_id: sensor.gianluca_bedroom_awair_temperature\n below: 69\n - platform: template\n value_template: '{{ (states.sensor.gianlucas_door_sensor_temperature.state | float)\n < 69.5 }}'\n condition:\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n - condition: state\n entity_id: input_boolean.gianlucas_room_occupied\n state: 'on'\n - condition: or\n conditions:\n - condition: template\n value_template: '{{ (states.sensor.gianluca_bedroom_awair_temperature.state\n | float) <= 70 }}'\n - condition: template\n value_template: '{{ (states.sensor.gianlucas_door_sensor_temperature.state |\n float) <= 71.0 }}'\n action:\n - service: light.turn_on\n entity_id: light.hue_smart_plug_1",
|
|
"config": [
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "hue smart plug 1",
|
|
"room": null,
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.hue_smart_plug_1",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "gianlucas room occupied",
|
|
"room": "gianlucas bedroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.gianlucas_room_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "gianluca bedroom awair temperature",
|
|
"room": "gianlucas bedroom",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.gianluca_bedroom_awair_temperature",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "gianlucas door sensor temperature",
|
|
"room": "gianlucas bedroom",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.gianlucas_door_sensor_temperature",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "gianlucas room lights group",
|
|
"room": "gianlucas bedroom",
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "group.gianlucas_room_lights",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "gianluca_heater_turn_on_upon_arrival",
|
|
"automation": "- id: gianluca_heater_turn_on_upon_arrival\n alias: Gianluca Heater - Turn On Upon Arrival\n initial_state: true\n trigger:\n - platform: state\n entity_id: input_boolean.house_occupied\n to: 'on'\n - platform: state\n entity_id: group.family\n from: not_home\n to: home\n - platform: state\n entity_id:\n - person.cristina_falbo\n - person.john_koht\n to: Just Arrived\n condition:\n - condition: or\n conditions:\n - condition: template\n value_template: '{{ (as_timestamp(now()) - as_timestamp(states.input_boolean.house_occupied.last_updated))\n | int < 300 }}'\n - condition: and\n conditions:\n - condition: state\n entity_id: group.family\n state: home\n - condition: template\n value_template: '{{ (as_timestamp(now()) - as_timestamp(states.group.familiy.last_updated))\n | int < 300 }}'\n - condition: state\n entity_id:\n - person.cristina_falbo\n - person.john_koht\n state: Just Arrived\n - condition: template\n value_template: '{{ (states.sensor.gianluca_bedroom_awair_temperature.state |\n float) < 69.5 }}'\n - condition: time\n after: '18:30:00'\n action:\n - service: light.turn_on\n entity_id: light.hue_smart_plug_1",
|
|
"config": [
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "family group",
|
|
"room": "family",
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "group.family",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "hue smart plug 1",
|
|
"room": null,
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.hue_smart_plug_1",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "person cristina falbo",
|
|
"room": null,
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.cristina_falbo",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "gianluca bedroom awair temperature",
|
|
"room": "gianlucas bedroom",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.gianluca_bedroom_awair_temperature",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "person john koht",
|
|
"room": null,
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.john_koht",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "person cristina falbo",
|
|
"room": null,
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.cristina_falbo",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "gianluca_bedroom_lights_off",
|
|
"automation": "- id: gianluca_bedroom_lights_off\n initial_state: true\n alias: Gianluca Bedroom - Lights Off\n trigger:\n - platform: state\n entity_id: input_select.gianlucas_bedroom\n to: 'Off'\n - platform: state\n entity_id: input_boolean.gianlucas_room_occupied\n to: 'off'\n - platform: state\n entity_id: input_boolean.lighting_automations\n to: 'on'\n condition:\n - condition: state\n entity_id: input_boolean.gianlucas_room_occupied\n state: 'off'\n - condition: or\n conditions:\n - condition: state\n entity_id: input_select.gianlucas_bedroom\n state: 'Off'\n - condition: state\n entity_id: input_boolean.gianlucas_room_occupied\n state: 'off'\n action:\n - service: light.turn_off\n entity_id: light.gianluca_bedroom_lights",
|
|
"config": [
|
|
{
|
|
"name": "lighting automations",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.lighting_automations",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "gianlucas room occupied",
|
|
"room": "gianlucas bedroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.gianlucas_room_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "gianlucas bedroom mode",
|
|
"room": "gianlucas bedroom",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.gianlucas_bedroom",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "gianluca bedroom lights",
|
|
"room": "gianlucas bedroom",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.gianluca_bedroom_lights",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "gianluca_nap_time",
|
|
"automation": "- id: gianluca_nap_time\n alias: Gianluca nap time\n initial_state: 'off'\n trigger:\n - platform: state\n entity_id: input_boolean.gianlucas_room_occupied\n to: 'on'\n for:\n minutes: 3\n - platform: state\n entity_id: group.gianlucas_room_lights\n to: 'off'\n - platform: state\n entity_id: binary_sensor.gianlucas_door_sensor_status\n to: 'off'\n condition:\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n - condition: state\n entity_id: input_boolean.gianlucas_room_occupied\n state: 'on'\n - condition: state\n entity_id: binary_sensor.gianlucas_door_sensor_status\n state: 'off'\n - condition: state\n entity_id: input_boolean.quiet_mode\n state: 'off'\n action:\n - service: input_boolean.turn_on\n entity_id: input_boolean.quiet_mode\n - service: script.voice_announcement\n data:\n media_players: auto\n sound: harp-flourish\n priority: low\n speech_message: \"{{\\n [\\n \\\"Shhh...Gianluca is going to sleep.\\\",\\n \\\"\\\n Quiet time, Gianluca is going to nap!\\\",\\n \\\"Pardon the interruption but\\\n \\ Gianluca is going to sleep, please be quiet.\\\",\\n \\\"Attention! Quiet\\\n \\ mode has been enabled for Gianluca's nap.\\\"\\n ] | random\\n}}\"",
|
|
"config": [
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "quiet mode",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.quiet_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "voice announcement script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.voice_announcement",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "gianlucas room occupied",
|
|
"room": "gianlucas bedroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.gianlucas_room_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "gianlucas door sensor status",
|
|
"room": "gianlucas bedroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.gianlucas_door_sensor_status",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "gianlucas room lights group",
|
|
"room": "gianlucas bedroom",
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "group.gianlucas_room_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "script voice announcement",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.voice_announcement",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean quiet mode",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.quiet_mode",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "gianluca_nap_time_ended",
|
|
"automation": "- id: gianluca_nap_time_ended\n alias: Gianluca nap time ended\n initial_state: 'off'\n trigger:\n - platform: state\n entity_id: input_boolean.gianlucas_room_occupied\n to: 'off'\n - platform: state\n entity_id: group.gianlucas_room_lights\n to: 'on'\n condition:\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n - condition: state\n entity_id: binary_sensor.gianlucas_door_sensor_status\n state: 'on'\n - condition: state\n entity_id: input_boolean.gianlucas_room_occupied\n state: 'off'\n - condition: state\n entity_id: input_boolean.quiet_mode\n state: 'on'\n - condition: state\n entity_id: input_boolean.ninos_bedroom_occupied\n state: 'off'\n action:\n - service: input_boolean.turn_off\n entity_id: input_boolean.quiet_mode",
|
|
"config": [
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "quiet mode",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.quiet_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "gianlucas room occupied",
|
|
"room": "gianlucas bedroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.gianlucas_room_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "gianlucas door sensor status",
|
|
"room": "gianlucas bedroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.gianlucas_door_sensor_status",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "gianlucas room lights group",
|
|
"room": "gianlucas bedroom",
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "group.gianlucas_room_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "ninos bedroom occupied",
|
|
"room": "ninos bedroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.ninos_bedroom_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean quiet mode",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.quiet_mode",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "gianluca_bedroom_air_quality_detections",
|
|
"automation": "- id: gianluca_bedroom_air_quality_detections\n alias: Gianluca's Bedroom Air Quality Sensor Detections\n mode: single\n initial_state: true\n triggers:\n - trigger: state\n entity_id: sensor.gianluca_bedroom_air_quality\n - trigger: state\n entity_id: input_select.gianlucas_bedroom\n to: Bedtime\n - trigger: state\n entity_id: input_boolean.gianlucas_room_occupied\n conditions:\n - or:\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n - condition: state\n entity_id: input_boolean.almost_home\n state: 'on'\n variables:\n purifier: fan.gianlucas_bedroom_air_purifier\n aqi_state: '{{ states.sensor.gianluca_bedroom_air_quality.state }}'\n room_state: '{{ states.input_select.gianlucas_bedroom.state }}'\n actions:\n - action: script.air_quality_set_air_purifier_mode\n data:\n purifier: '{{ purifier }}'\n aqi_state: '{{ aqi_state }}'\n room_state: '{{ room_state }}'",
|
|
"config": [
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "gianlucas room occupied",
|
|
"room": "gianlucas bedroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.gianlucas_room_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "gianlucas bedroom mode",
|
|
"room": "gianlucas bedroom",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.gianlucas_bedroom",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "gianlucas bedroom air purifier",
|
|
"room": "gianlucas bedroom",
|
|
"type": "fan",
|
|
"id": {
|
|
"entity_id": "fan.gianlucas_bedroom_air_purifier",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "almost home",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.almost_home",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "gianluca bedroom air quality",
|
|
"room": "gianlucas bedroom",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.gianluca_bedroom_air_quality",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "air quality set air purifier mode script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.air_quality_set_air_purifier_mode",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "gianluca_room_temperature_alert",
|
|
"automation": "- id: gianluca_room_temperature_alert\n alias: Gianluca Room Temperature Alert\n initial_state: 'off'\n trigger:\n - platform: state\n entity_id: input_boolean.gianlucas_room_occupied\n to: 'on'\n for:\n minutes: 5\n - platform: numeric_state\n entity_id:\n - sensor.gianluca_bedroom_awair_temperature\n - sensor.gianlucas_door_sensor_temperature\n above: 78\n for:\n minutes: 1\n - platform: numeric_state\n entity_id:\n - sensor.gianluca_bedroom_awair_temperature\n - sensor.gianlucas_door_sensor_temperature\n below: 67\n for:\n minutes: 1\n condition:\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n - condition: state\n entity_id: input_boolean.gianlucas_room_occupied\n state: 'on'\n - condition: or\n conditions:\n - condition: numeric_state\n entity_id:\n - sensor.gianluca_bedroom_awair_temperature\n - sensor.gianlucas_door_sensor_temperature\n below: 67\n - condition: numeric_state\n entity_id:\n - sensor.gianluca_bedroom_awair_temperature\n - sensor.gianlucas_door_sensor_temperature\n above: 78\n action:\n - service: script.voice_announcement\n data:\n media_players: auto\n speech_message: \"{% set temp = states.sensor.gianluca_bedroom_awair_temperature.state\\\n \\ %} {% set door_temp = states.sensor.gianlucas_door_sensor_temperature.state\\\n \\ %} {% set low = temp if temp < door_temp else door_temp %} {% set high =\\\n \\ temp if temp > door_temp else door_temp %}\\n{% if (low | float) <= 67 %}\\n\\\n \\ \\\"Attention, Gianluca's room is too cold at {{low}} degrees!\\\"\\n{% else\\\n \\ %}\\n \\\"Attention, Gianluca's room is too hot at {{high}} degrees!\\\"\\n{%\\\n \\ endif %}\"",
|
|
"config": [
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "voice announcement script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.voice_announcement",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "gianlucas room occupied",
|
|
"room": "gianlucas bedroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.gianlucas_room_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "gianluca bedroom awair temperature",
|
|
"room": "gianlucas bedroom",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.gianluca_bedroom_awair_temperature",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "gianlucas door sensor temperature",
|
|
"room": "gianlucas bedroom",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.gianlucas_door_sensor_temperature",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "script voice announcement",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.voice_announcement",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "gianluca_school_day_off",
|
|
"automation": "- id: gianluca_school_day_off\n alias: Gianluca School Day Off\n mode: single\n trigger:\n - platform: time\n at: '23:59:00'\n condition:\n - condition: state\n entity_id: input_boolean.gianluca_school_day\n state: 'on'\n action:\n - service: input_boolean.turn_off\n entity_id: input_boolean.gianluca_school_day\n - service: automation.turn_off\n entity_id:\n - automation.gianluca_school_day_reminder\n - automation.gianluca_school_departure_reminder\n - automation.gianluca_school_pickup_reminder",
|
|
"config": [
|
|
{
|
|
"name": "gianluca school day",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.gianluca_school_day",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "gianluca school day reminder automation",
|
|
"room": null,
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.gianluca_school_day_reminder",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "gianluca school departure reminder automation",
|
|
"room": null,
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.gianluca_school_departure_reminder",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "gianluca school pickup reminder automation",
|
|
"room": null,
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.gianluca_school_pickup_reminder",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "gianluca_school_day_on",
|
|
"automation": "- id: gianluca_school_day_on\n alias: Gianluca School Day On\n mode: single\n trigger:\n - platform: time\n at: 00:00:01\n - platform: state\n entity_id: binary_sensor.gianluca_is_today_school_day\n to: 'on'\n - platform: event\n event_type: automation_reloaded\n - platform: homeassistant\n event: start\n condition:\n - condition: state\n entity_id: binary_sensor.gianluca_is_today_school_day\n state: 'on'\n action:\n - service: input_boolean.turn_on\n entity_id: input_boolean.gianluca_school_day\n - service: automation.turn_on\n entity_id:\n - automation.gianluca_school_day_reminder\n - automation.gianluca_school_departure_reminder\n - automation.gianluca_school_pickup_reminder",
|
|
"config": [
|
|
{
|
|
"name": "gianluca school day",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.gianluca_school_day",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "gianluca school day reminder automation",
|
|
"room": null,
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.gianluca_school_day_reminder",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "gianluca school departure reminder automation",
|
|
"room": null,
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.gianluca_school_departure_reminder",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "gianluca school pickup reminder automation",
|
|
"room": null,
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.gianluca_school_pickup_reminder",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "gianluca is today school day sensor",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.gianluca_is_today_school_day",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "gianluca_school_pickup_reminder",
|
|
"automation": "- id: gianluca_school_pickup_reminder\n alias: Gianluca School Pickup Reminder\n mode: single\n initial_state: true\n trigger:\n - platform: calendar\n event: end\n entity_id: calendar.gianluca_school\n offset: -00:20:00\n condition:\n - condition: state\n entity_id: input_boolean.gianluca_school_day\n state: 'on'\n - condition: template\n value_template: '{{ ''reminder'' not in (trigger.calendar_event.summary | lower)\n }}'\n action:\n - service: script.voice_announcement\n data:\n media_players: auto\n sound: school-bell-chime\n priority: high\n speech_message: \"{% set event = trigger.calendar_event.summary | lower %}\\n\\\n {% if \\\"school day\\\" in event %}\\n {% set label = \\\"school\\\" %}\\n{% else\\\n \\ %}\\n {% set label = event %}\\n{% endif %}\\n{{\\n [\\n label ~ \\\" is done!\\\n \\ Time to pick up Gianluca!\\\",\\n \\\"Hey there! It's time to pickup Gianluca\\\n \\ from \\\" ~ label,\\n \\\"Dont forget to pick up Gianluca from \\\" ~ label,\\n\\\n \\ \\\"Quick reminder that \\\" ~ label ~ \\\" is almost over, time to pick Gianluca\\\n \\ up.\\\"\\n ] | random\\n}}\"\n - service: notify.ios_family\n data:\n message: School will be over soon, it's time to pick up Gianluca from school.\n title: Gianluca's school is ending soon",
|
|
"config": [
|
|
{
|
|
"name": "voice announcement script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.voice_announcement",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "gianluca school day",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.gianluca_school_day",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "calendar gianluca school",
|
|
"room": null,
|
|
"type": "calendar",
|
|
"id": {
|
|
"entity_id": "calendar.gianluca_school",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "script voice announcement",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.voice_announcement",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "gianluca_school_reminder_notification",
|
|
"automation": "- id: gianluca_school_reminder_notification\n alias: Gianluca School Reminder Notification\n mode: single\n initial_state: true\n trigger:\n - platform: calendar\n event: start\n entity_id: calendar.gianluca_school\n condition:\n - condition: state\n entity_id: input_boolean.gianluca_school_day\n state: 'on'\n - condition: template\n value_template: '{{ ''reminder'' in trigger.calendar_event.summary }}'\n action:\n - service: script.voice_announcement\n data:\n media_players: auto\n sound: school-bell-chime\n speech_message: '{{states.calendar.gianluca_school.attributes.message}}'",
|
|
"config": [
|
|
{
|
|
"name": "voice announcement script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.voice_announcement",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "gianluca school day",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.gianluca_school_day",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "calendar gianluca school",
|
|
"room": null,
|
|
"type": "calendar",
|
|
"id": {
|
|
"entity_id": "calendar.gianluca_school",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "script voice announcement",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.voice_announcement",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "grocery_store_announcement",
|
|
"automation": "- id: grocery_store_announcement\n alias: Grocery Store Announcement\n mode: single\n trigger:\n - platform: state\n entity_id:\n - person.john_koht\n - person.cristina_falbo\n to:\n - Marianos\n - Heinen's Grocery Store\n - Costco\n - Costco Glenview\n - Costco Niles\n for:\n minutes: 5\n action:\n - service: script.voice_announcement\n data:\n media_players: auto\n sound: musical-flute\n speech_message: \"{% set person = \\\"\\\" %} {% set ent = trigger.entity_id %}\\n\\\n {% if ent == \\\"person.john_koht\\\" %}\\n {% set person = \\\"Baba\\\" %}\\n{% else\\\n \\ %}\\n {% set person = \\\"Mama\\\" %}\\n{% endif %}\\n{% set store = trigger.to_state.state\\\n \\ %}\\n\\\"Just a friendly reminder that {{person}} is at {{store}} in case you\\\n \\ need anything!\\\"\\n\"",
|
|
"config": [
|
|
{
|
|
"name": "person cristina falbo",
|
|
"room": null,
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.cristina_falbo",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "voice announcement script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.voice_announcement",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "person john koht",
|
|
"room": null,
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.john_koht",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "person cristina falbo",
|
|
"room": null,
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.cristina_falbo",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "script voice announcement",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.voice_announcement",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "guest_announce_arrival",
|
|
"automation": "- id: guest_announce_arrival\n alias: Guest Announce Arrival\n mode: queued\n initial_state: 'off'\n trigger:\n - platform: state\n entity_id: group.guests\n to: home\n condition:\n - condition: state\n entity_id: group.guests\n state: home\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n for:\n minutes: 5\n action:\n - delay: 00:02:00\n - service: notify.mobile_app_jk_2\n data:\n title: Guest Arrived!\n message: \"{% for entity in trigger.to_state.attributes.entity_id %}\\n {% if\\\n \\ states(entity) == 'home' %}\\n {{ state_attr(entity, 'friendly_name')\\\n \\ }} has arrived\\n {% endif %}\\n{% endfor %}\"",
|
|
"config": [
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "mobile app jk 2 notification",
|
|
"room": null,
|
|
"type": "notify",
|
|
"id": {
|
|
"entity_id": "notify.mobile_app_jk_2",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "group guests",
|
|
"room": null,
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "group.guests",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "guest_announce_departure",
|
|
"automation": "- id: guest_announce_departure\n alias: Guest Announce Departure\n mode: queued\n initial_state: 'off'\n trigger:\n - platform: state\n entity_id: group.guests\n to: not_home\n condition:\n - condition: state\n entity_id: group.guests\n state: not_home\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n for:\n minutes: 5\n - condition: template\n value_template: '{{ ( now().timestamp() - as_timestamp(state_attr(''script.voice_announcement'',''last_triggered''))\n ) | int > 90 }}'\n action:\n - service: group.set\n data:\n object_id: arriving\n add_entities: '{{ trigger.to_state.entity_id }}'\n - service: script.voice_announcement\n data:\n media_players: auto\n sound: chime\n speech_message: \"{% set person = expand('group.arriving')|map(attribute='name')|join('\\\n \\ and ') %} {% set peoplecount = expand('group.arriving') | count %} {% if\\\n \\ peoplecount == 1 %}\\n {% set is_are = ' is ' %}\\n{% else %}\\n {% set is_are\\\n \\ = ' are ' %}\\n{% endif %}\"\n - service: notify.mobile_app_jk_2\n data:\n title: Guest Arrived!\n message: \"{% for entity in trigger.to_state.attributes.entity_id %}\\n {% if\\\n \\ states(entity) == 'not_home' %}\\n {{ state_attr(entity, 'friendly_name')\\\n \\ }} has left\\n {% endif %}\\n{% endfor %}\"",
|
|
"config": [
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "voice announcement script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.voice_announcement",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "mobile app jk 2 notification",
|
|
"room": null,
|
|
"type": "notify",
|
|
"id": {
|
|
"entity_id": "notify.mobile_app_jk_2",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "group guests",
|
|
"room": null,
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "group.guests",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "script voice announcement",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.voice_announcement",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "group arriving",
|
|
"room": null,
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "group.arriving",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "guest_mode_off",
|
|
"automation": "- id: guest_mode_off\n initial_state: 'on'\n alias: Guest mode off\n trigger:\n - platform: state\n entity_id: group.guests\n from: home\n to: not_home\n for:\n seconds: 91\n - platform: homeassistant\n event: start\n condition:\n - condition: state\n entity_id: input_boolean.guest_mode\n state: 'on'\n - condition: state\n entity_id: group.guests\n state: not_home\n action:\n - service: input_boolean.turn_off\n entity_id: input_boolean.guest_mode\n - if:\n - condition: template\n value_template: '{{ ( now().timestamp() - as_timestamp(state_attr(''script.voice_announcement'',''last_triggered''))\n ) | int > 90 }}'\n then:\n - service: script.voice_announcement\n data:\n media_players: auto\n sound: chime\n speech_message: \"{{\\n [\\n \\\"Arrivederci guests! Guest mode disabled..\\\"\\\n ,\\n \\\"Guests are gone, it's just us now.\\\",\\n \\\"Pardon the interruption\\\n \\ but guest mode has been disabled.\\\",\\n \\\"Attention! Guest mode is disabled.\\\"\\\n \\n ] | random\\n}}\"\n - if:\n - condition: state\n entity_id: input_boolean.guest_mode_announced\n state: 'on'\n then:\n - service: input_boolean.turn_off\n entity_id: input_boolean.guest_mode_announced",
|
|
"config": [
|
|
{
|
|
"name": "guest mode announced",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.guest_mode_announced",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "guest mode",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.guest_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "voice announcement script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.voice_announcement",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "group guests",
|
|
"room": null,
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "group.guests",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "script voice announcement",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.voice_announcement",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "guest_mode_on",
|
|
"automation": "- id: guest_mode_on\n initial_state: 'on'\n alias: Guest mode on\n trigger:\n - platform: state\n entity_id: group.guests\n from: not_home\n to: home\n - platform: numeric_state\n entity_id: sensor.indoor_bluetooth_device_count\n above: 13\n for:\n minutes: 5\n - platform: homeassistant\n event: start\n condition:\n - condition: state\n entity_id: input_boolean.guest_mode\n state: 'off'\n - condition: or\n conditions:\n - condition: state\n entity_id: group.guests\n state: home\n - condition: numeric_state\n entity_id: sensor.indoor_bluetooth_device_count\n above: 13\n action:\n - service: input_boolean.turn_on\n entity_id: input_boolean.guest_mode\n - delay: 00:02:00\n - condition: state\n entity_id: input_boolean.guest_mode_announced\n state: 'off'\n - service: script.voice_announcement\n data:\n media_players: auto\n sound: chime\n speech_message: \"{{\\n [\\n \\\"Guest mode has been enabled.\\\",\\n \\\"Guests\\\n \\ have arrived, act accordingly.\\\",\\n \\\"You're not alone. Guest mode enabled.\\\"\\\n ,\\n \\\"Pardon the interruption, but you have guests.\\\",\\n \\\"Attention!\\\n \\ Guest mode has been enabled.\\\"\\n ] | random\\n}}\"",
|
|
"config": [
|
|
{
|
|
"name": "guest mode announced",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.guest_mode_announced",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "guest mode",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.guest_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "voice announcement script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.voice_announcement",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "indoor bluetooth device count",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.indoor_bluetooth_device_count",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "group guests",
|
|
"room": null,
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "group.guests",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "script voice announcement",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.voice_announcement",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "halloween_lights_turn_on",
|
|
"automation": "- id: halloween_lights_turn_on\n alias: Halloween Lights - Turn On\n mode: single\n trigger:\n - platform: homeassistant\n event: start\n - platform: time\n at: 08:00:00\n condition:\n - condition: state\n entity_id: input_boolean.halloween_season_active\n state: 'on'\n - condition: state\n entity_id:\n - switch.front_door_smart_plug_1\n - switch.front_door_smart_plug_2\n - switch.front_left_smart_plug_2\n state: 'off'\n action:\n - action: switch.turn_on\n entity_id:\n - switch.front_door_smart_plug_1\n - switch.front_door_smart_plug_2\n - switch.front_left_smart_plug_2",
|
|
"config": [
|
|
{
|
|
"name": "switch front door smart plug 1",
|
|
"room": "front door",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.front_door_smart_plug_1",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "switch front door smart plug 2",
|
|
"room": "front door",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.front_door_smart_plug_2",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "switch front left smart plug 2",
|
|
"room": "front left",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.front_left_smart_plug_2",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean halloween season active",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.halloween_season_active",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "halloween_lights_turn_off",
|
|
"automation": "- id: halloween_lights_turn_off\n alias: Halloween Lights - Turn Off\n mode: single\n trigger:\n - platform: homeassistant\n event: start\n - platform: time\n at: '22:00:00'\n - platform: state\n entity_id: input_boolean.bedtime\n to: 'on'\n condition:\n - condition: state\n entity_id:\n - switch.front_door_smart_plug_1\n - switch.front_door_smart_plug_2\n - switch.front_left_smart_plug_2\n state: 'on'\n action:\n - action: switch.turn_off\n entity_id:\n - switch.front_door_smart_plug_1\n - switch.front_door_smart_plug_2\n - switch.front_left_smart_plug_2",
|
|
"config": [
|
|
{
|
|
"name": "bedtime",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.bedtime",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "switch front door smart plug 1",
|
|
"room": "front door",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.front_door_smart_plug_1",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "switch front door smart plug 2",
|
|
"room": "front door",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.front_door_smart_plug_2",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "switch front left smart plug 2",
|
|
"room": "front left",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.front_left_smart_plug_2",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "hourly_dong",
|
|
"automation": "- id: hourly_dong\n alias: Hourly Dong\n mode: single\n trigger:\n - platform: time\n at: 07:00:00\n - platform: time\n at: 08:00:00\n - platform: time\n at: 09:00:00\n - platform: time\n at: '10:00:00'\n - platform: time\n at: '11:00:00'\n - platform: time\n at: '12:00:00'\n - platform: time\n at: '15:00:00'\n - platform: time\n at: '16:00:00'\n - platform: time\n at: '17:00:00'\n - platform: time\n at: '18:00:00'\n - platform: time\n at: '19:00:00'\n condition:\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n - condition: state\n entity_id: input_select.house\n state: Auto\n - condition: state\n entity_id: input_boolean.speech_notifications\n state: 'on'\n - condition: state\n entity_id: binary_sensor.announceable_rooms_occupied\n state: 'on'\n action:\n - alias: Sound File\n variables:\n media_players: \"{% set media_players = [] %} {# Check which rooms are occupied\\\n \\ and if speech notifications are turned #} {# on for them. If so, add them\\\n \\ to an array of announceable rooms #} {% if states.input_boolean.office_occupied.state\\\n \\ == \\\"on\\\" and states.input_boolean.office_speech_notifications.state ==\\\n \\ \\\"on\\\" %}\\n {% set media_players = media_players + [\\\"media_player.sonos_office\\\"\\\n ] %}\\n{% endif %}{% if states.input_boolean.family_room_occupied.state ==\\\n \\ \\\"on\\\" and states.input_boolean.family_room_speech_notifications.state ==\\\n \\ \\\"on\\\" %}\\n {% set media_players = media_players + [\\\"media_player.sonos_family_room\\\"\\\n ] %}\\n{% endif %}{% if states.input_boolean.kitchen_occupied.state == \\\"on\\\"\\\n \\ and states.input_boolean.kitchen_speech_notifications.state == \\\"on\\\" %}\\n\\\n \\ {% set media_players = media_players + [\\\"media_player.sonos_kitchen\\\"\\\n ] %}\\n{% endif %}{% if states.input_boolean.playroom_occupied.state == \\\"\\\n on\\\" %}\\n {% set media_players = media_players + [\\\"media_player.sonos_playroom\\\"\\\n ] %}\\n{% endif %}{% if states.input_boolean.dining_room_occupied.state ==\\\n \\ \\\"on\\\" %}\\n {% set media_players = media_players + [\\\"media_player.sonos_living_room\\\"\\\n ] %}\\n{% endif %} {{ media_players}}\"\n primary_player: '{{media_players | first}}'\n sound_file: /local/sounds/dong.mp3\n sound_file_length: 4\n sound_file_volume: \"{% if states.input_boolean.quiet_mode.state == \\\"on\\\" %}\\n\\\n \\ 25\\n{% elif now().strftime('%H')|int > 8 and now().strftime('%H')|int <\\\n \\ 20 %}\\n 50\\n{% else %}\\n 35\\n{% endif %}\"\n - service: script.announcement_engine\n data:\n sound_file: '{{sound_file}}'\n sound_length: '{{sound_file_length}}'\n sound_volume: '{{sound_file_volume}}'\n media_players: '{{ media_players}}'",
|
|
"config": [
|
|
{
|
|
"name": "house status",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.house",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "quiet mode",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.quiet_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "sonos office",
|
|
"room": "office",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.sonos_office",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "sonos family room",
|
|
"room": "family room",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.sonos_family_room",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "sonos kitchen",
|
|
"room": "kitchen",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.sonos_kitchen",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "sonos playroom",
|
|
"room": "playroom",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.sonos_playroom",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "dining room occupied",
|
|
"room": "dining room",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.dining_room_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "family room occupied",
|
|
"room": "family room",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.family_room_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "family room speech notifications",
|
|
"room": "family room",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.family_room_speech_notifications",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "kitchen occupied",
|
|
"room": "kitchen",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.kitchen_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "speech notifications",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.speech_notifications",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean office occupied",
|
|
"room": "office",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.office_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean office speech notifications",
|
|
"room": "office",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.office_speech_notifications",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean family room occupied",
|
|
"room": "family room",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.family_room_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean family room speech notifications",
|
|
"room": "family room",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.family_room_speech_notifications",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean kitchen occupied",
|
|
"room": "kitchen",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.kitchen_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean kitchen speech notifications",
|
|
"room": "kitchen",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.kitchen_speech_notifications",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean playroom occupied",
|
|
"room": "playroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.playroom_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean dining room occupied",
|
|
"room": "dining room",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.dining_room_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean quiet mode",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.quiet_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "script announcement engine",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.announcement_engine",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "binary sensor announceable rooms occupied",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.announceable_rooms_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "playroom media player",
|
|
"room": "playroom",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.sonos_playroom",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "house_mode_auto",
|
|
"automation": "- id: house_mode_auto\n alias: House mode auto\n initial_state: 'on'\n trigger:\n - platform: state\n entity_id: input_boolean.house_occupied\n to: 'on'\n - platform: state\n entity_id: input_boolean.bedtime\n to: 'off'\n - platform: state\n entity_id: input_boolean.quiet_mode\n to: 'off'\n condition:\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n - condition: state\n entity_id: input_boolean.bedtime\n state: 'off'\n action:\n - choose:\n - conditions:\n - condition: state\n entity_id: input_boolean.vacation_mode\n state: 'on'\n sequence:\n - action: input_select.select_option\n data:\n entity_id: input_select.house\n option: Vacation\n default:\n - action: input_select.select_option\n data:\n entity_id: input_select.house\n option: Auto\n - service: select.select_option\n data:\n entity_id: select.front_door_camera_doorbell_text\n option: WELCOME!\n - if:\n - alias: If speech notifications are off\n condition: state\n entity_id: input_boolean.speech_notifications\n state: 'off'\n then:\n - service: input_boolean.turn_on\n entity_id: input_boolean.speech_notifications",
|
|
"config": [
|
|
{
|
|
"name": "bedtime",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.bedtime",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "house status",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.house",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "quiet mode",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.quiet_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "vacation mode",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.vacation_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "speech notifications",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.speech_notifications",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean quiet mode",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.quiet_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "select front door camera doorbell text",
|
|
"room": "front door",
|
|
"type": "select",
|
|
"id": {
|
|
"entity_id": "select.front_door_camera_doorbell_text",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "house_mode_away",
|
|
"automation": "- id: house_mode_away\n alias: House mode away\n initial_state: 'on'\n trigger:\n - platform: state\n entity_id: input_boolean.house_occupied\n to: 'off'\n action:\n - service: input_select.select_option\n data:\n entity_id: input_select.house\n option: Away\n - service: select.select_option\n data:\n entity_id: select.front_door_camera_doorbell_text\n option: DO NOT DISTURB\n - service: script.general_notification\n data:\n title: Away Mode\n message: Nobody is home so away mode has been activated!\n devices: jk\n priority: passive\n tag: house-mode-away",
|
|
"config": [
|
|
{
|
|
"name": "house status",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.house",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "general notification script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.general_notification",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "select front door camera doorbell text",
|
|
"room": "front door",
|
|
"type": "select",
|
|
"id": {
|
|
"entity_id": "select.front_door_camera_doorbell_text",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "house_mode_bedtime",
|
|
"automation": "- id: house_mode_bedtime\n alias: House mode bedtime\n initial_state: 'on'\n trigger:\n - platform: state\n entity_id: input_boolean.bedtime\n to: 'on'\n action:\n - service: input_select.select_option\n data:\n entity_id: input_select.house\n option: Bedtime\n - service: select.select_option\n data:\n entity_id: select.front_door_camera_doorbell_text\n option: DO NOT DISTURB",
|
|
"config": [
|
|
{
|
|
"name": "bedtime",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.bedtime",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "house status",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.house",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "select front door camera doorbell text",
|
|
"room": "front door",
|
|
"type": "select",
|
|
"id": {
|
|
"entity_id": "select.front_door_camera_doorbell_text",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "house_mode_quiet",
|
|
"automation": "- id: house_mode_quiet\n alias: House mode quiet\n initial_state: 'on'\n trigger:\n - platform: state\n entity_id: input_boolean.quiet_mode\n to: 'on'\n condition:\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n action:\n - service: input_select.select_option\n data:\n entity_id: input_select.house\n option: Quiet\n - service: select.select_option\n data:\n entity_id: select.front_door_camera_doorbell_text\n option: SHHH…KIDS SLEEPING\n - if:\n - alias: It's an afternoon nap\n condition: time\n after: '12:00:00'\n before: '15:00:00'\n then:\n - service: input_boolean.turn_off\n entity_id: input_boolean.speech_notifications",
|
|
"config": [
|
|
{
|
|
"name": "house status",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.house",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "quiet mode",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.quiet_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "speech notifications",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.speech_notifications",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean quiet mode",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.quiet_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "select front door camera doorbell text",
|
|
"room": "front door",
|
|
"type": "select",
|
|
"id": {
|
|
"entity_id": "select.front_door_camera_doorbell_text",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "house_mode_quiet_off",
|
|
"automation": "- id: house_mode_quiet_off\n alias: House mode quiet off\n initial_state: 'off'\n trigger:\n - platform: state\n entity_id: input_boolean.quiet_mode\n to: 'off'\n condition:\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n action:\n - service: input_select.select_option\n data:\n entity_id: input_select.house\n option: Auto",
|
|
"config": [
|
|
{
|
|
"name": "house status",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.house",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "quiet mode",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.quiet_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean quiet mode",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.quiet_mode",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "house_mode_vacation",
|
|
"automation": "- id: house_mode_vacation\n alias: House Mode Vacation\n initial_state: 'on'\n trigger:\n - platform: state\n entity_id: input_boolean.vacation_mode\n to: 'on'\n - platform: state\n entity_id: input_boolean.house_occupied\n to: 'off'\n condition:\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'off'\n - condition: state\n entity_id: input_boolean.vacation_mode\n state: 'on'\n action:\n - service: input_select.select_option\n data:\n entity_id: input_select.house\n option: Vacation\n - service: select.select_option\n data:\n entity_id: select.front_door_camera_doorbell_text\n option: Please do not disturb!",
|
|
"config": [
|
|
{
|
|
"name": "house status",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.house",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "vacation mode",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.vacation_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "select front door camera doorbell text",
|
|
"room": "front door",
|
|
"type": "select",
|
|
"id": {
|
|
"entity_id": "select.front_door_camera_doorbell_text",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "house_not_occupied",
|
|
"automation": "- id: house_not_occupied\n alias: House not occupied\n initial_state: 'on'\n triggers:\n - trigger: state\n entity_id: group.all_people\n to: not_home\n - trigger: event\n event_type: automation_reloaded\n - trigger: homeassistant\n event: start\n conditions:\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n - condition: state\n entity_id: group.all_people\n state: not_home\n actions:\n - action: input_boolean.turn_off\n entity_id: input_boolean.house_occupied",
|
|
"config": [
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "all people group",
|
|
"room": null,
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "group.all_people",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "jido_announce_arrival",
|
|
"automation": "- id: jido_announce_arrival\n alias: Jido Presence - Announce Arrival\n mode: queued\n initial_state: true\n triggers:\n - trigger: state\n entity_id: person.antoun_koht\n from: not_home\n to: home\n conditions:\n - condition: state\n entity_id: person.antoun_koht\n state: home\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n for:\n minutes: 5\n actions:\n - action: script.person_announcement\n data:\n person: jido\n announcement_type: arrival\n - condition: state\n entity_id: input_boolean.guest_mode_announced\n state: 'off'\n - action: input_boolean.turn_on\n entity_id: input_boolean.guest_mode_announced",
|
|
"config": [
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "guest mode announced",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.guest_mode_announced",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "guest mode",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.guest_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "person antoun koht",
|
|
"room": null,
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.antoun_koht",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "script person announcement",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.person_announcement",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "jido_announce_departure",
|
|
"automation": "- id: jido_announce_departure\n alias: Jido Presence - Announce Departure\n mode: queued\n initial_state: true\n triggers:\n - trigger: state\n entity_id: person.antoun_koht\n from: home\n conditions:\n - condition: state\n entity_id: person.antoun_koht\n state: not_home\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n for:\n minutes: 5\n actions:\n - action: script.person_announcement\n data:\n person: jido\n announcement_type: departure",
|
|
"config": [
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "person antoun koht",
|
|
"room": null,
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.antoun_koht",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "script person announcement",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.person_announcement",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "jido_is_away",
|
|
"automation": "- id: jido_is_away\n alias: Jido Presence - Away\n initial_state: true\n triggers:\n - trigger: state\n entity_id: person.antoun_koht\n to: not_home\n - trigger: event\n event_type: automation_reloaded\n - trigger: homeassistant\n event: start\n conditions:\n - condition: not\n conditions:\n - condition: state\n entity_id: input_select.jido_status\n state: Just Left\n - or:\n - condition: state\n entity_id: person.antoun_koht\n state: not_home\n - condition: state\n entity_id: device_tracker.antoun_iphone_detect\n state: not_home\n actions:\n - action: input_boolean.turn_off\n entity_id: input_boolean.jido_home",
|
|
"config": [
|
|
{
|
|
"name": "person antoun koht",
|
|
"room": null,
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.antoun_koht",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "device tracker antoun iphone detect",
|
|
"room": null,
|
|
"type": "device_tracker",
|
|
"id": {
|
|
"entity_id": "device_tracker.antoun_iphone_detect",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean jido home",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.jido_home",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input select jido status",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.jido_status",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "jido_is_home",
|
|
"automation": "- id: jido_is_home\n initial_state: true\n alias: Jido Presence - Home\n triggers:\n - trigger: state\n entity_id: person.antoun_koht\n to: home\n - trigger: state\n entity_id: device_tracker.antoun_iphone_detect\n to: home\n - trigger: event\n event_type: automation_reloaded\n - trigger: homeassistant\n event: start\n conditions:\n - condition: state\n entity_id: person.antoun_koht\n state: home\n actions:\n - action: input_boolean.turn_on\n entity_id: input_boolean.jido_home",
|
|
"config": [
|
|
{
|
|
"name": "person antoun koht",
|
|
"room": null,
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.antoun_koht",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "device tracker antoun iphone detect",
|
|
"room": null,
|
|
"type": "device_tracker",
|
|
"id": {
|
|
"entity_id": "device_tracker.antoun_iphone_detect",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean jido home",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.jido_home",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "jido_presence_just_arrived",
|
|
"automation": "- id: jido_presence_just_arrived\n alias: Jido Presence - Just Arrived\n mode: single\n initial_state: true\n triggers:\n - trigger: state\n entity_id: input_boolean.jido_home\n to: 'on'\n actions:\n - action: input_select.select_option\n data:\n entity_id: input_select.jido_status\n option: '{{ ''Home'' if states.input_select.jido_status.state else ''Just Arrived''\n }}'",
|
|
"config": [
|
|
{
|
|
"name": "input boolean jido home",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.jido_home",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input select jido status",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.jido_status",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "jido_presence_home",
|
|
"automation": "- id: jido_presence_home\n alias: Jido Presence - Home\n mode: single\n initial_state: true\n triggers:\n - trigger: state\n entity_id: input_select.jido_status\n to: Just Arrived\n for:\n minutes: 5\n - trigger: state\n entity_id: input_select.jido_status\n from: Just Left\n to: Just Arrived\n actions:\n - action: input_select.select_option\n data:\n entity_id: input_select.jido_status\n option: Home",
|
|
"config": [
|
|
{
|
|
"name": "input select jido status",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.jido_status",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "jido_presence_just_left",
|
|
"automation": "- id: jido_presence_just_left\n alias: Jido Presence - Just Left\n mode: single\n initial_state: true\n triggers:\n - trigger: state\n entity_id: input_boolean.jido_home\n to: 'off'\n actions:\n - action: input_select.select_option\n data:\n entity_id: input_select.jido_status\n option: Just Left",
|
|
"config": [
|
|
{
|
|
"name": "input boolean jido home",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.jido_home",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input select jido status",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.jido_status",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "jido_presence_away",
|
|
"automation": "- id: jido_presence_away\n alias: Jido Presence - Away\n mode: single\n initial_state: true\n triggers:\n - trigger: state\n entity_id: input_select.jido_status\n to: Just Left\n for:\n minutes: 5\n actions:\n - action: input_select.select_option\n data:\n entity_id: input_select.jido_status\n option: Away",
|
|
"config": [
|
|
{
|
|
"name": "input select jido status",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.jido_status",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "joe_announce_arrival",
|
|
"automation": "- id: joe_announce_arrival\n alias: Joe Announce Arrival\n mode: queued\n initial_state: true\n triggers:\n - trigger: state\n entity_id: person.joe_falbo\n from: not_home\n to: home\n conditions:\n - condition: state\n entity_id: person.joe_falbo\n state: home\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n for:\n minutes: 5\n action:\n - action: script.person_announcement\n data:\n person: joe\n announcement_type: arrival",
|
|
"config": [
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "script person announcement",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.person_announcement",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "person joe falbo",
|
|
"room": null,
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.joe_falbo",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "joe_announce_departure",
|
|
"automation": "- id: joe_announce_departure\n alias: Joe Announce Departure\n mode: queued\n initial_state: true\n triggers:\n - trigger: state\n entity_id: input_boolean.joe_home\n to: 'off'\n conditions:\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n for:\n minutes: 5\n actions:\n - action: script.person_announcement\n data:\n person: joe\n announcement_type: departure",
|
|
"config": [
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "joe home",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.joe_home",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "script person announcement",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.person_announcement",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "joe_away",
|
|
"automation": "- id: joe_away\n alias: Joe away\n initial_state: 'on'\n trigger:\n - platform: state\n entity_id: binary_sensor.joe_presence\n to: 'off'\n - platform: state\n entity_id: person.joe_falbo\n to: not_home\n - platform: event\n event_type: automation_reloaded\n - platform: homeassistant\n event: start\n condition:\n - condition: not\n conditions:\n - condition: state\n entity_id: input_select.joe_status_dropdown\n state: Just Left\n - condition: or\n conditions:\n - condition: state\n entity_id: binary_sensor.joe_presence\n state: 'off'\n - condition: state\n entity_id: person.joe_falbo\n state: not_home\n action:\n - service: script.turn_on\n entity_id: script.joe_away",
|
|
"config": [
|
|
{
|
|
"name": "person joe falbo",
|
|
"room": null,
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.joe_falbo",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "binary sensor joe presence",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.joe_presence",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input select joe status dropdown",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.joe_status_dropdown",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "script joe away",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.joe_away",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Turn On",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.turn_on",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "joe_home",
|
|
"automation": "- id: joe_home\n initial_state: 'on'\n alias: Joe Home\n trigger:\n - platform: state\n entity_id: binary_sensor.joe_presence\n to: 'on'\n - platform: state\n entity_id: person.joe_falbo\n to: home\n - platform: event\n event_type: automation_reloaded\n - platform: homeassistant\n event: start\n condition:\n - condition: state\n entity_id: input_boolean.joe_home\n state: 'off'\n - condition: or\n conditions:\n - condition: state\n entity_id: binary_sensor.joe_presence\n state: 'on'\n - condition: state\n entity_id: person.joe_falbo\n state: home\n action:\n - service: script.turn_on\n entity_id: script.joe_home",
|
|
"config": [
|
|
{
|
|
"name": "joe home",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.joe_home",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "person joe falbo",
|
|
"room": null,
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.joe_falbo",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "binary sensor joe presence",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.joe_presence",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "script joe home",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.joe_home",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Turn On",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.turn_on",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "john_announce_arrival",
|
|
"automation": "- id: john_announce_arrival\n alias: John Announce Arrival\n mode: parallel\n initial_state: 'on'\n trigger:\n - platform: state\n entity_id: input_select.john_status\n from: Away\n to: Just Arrived\n - platform: state\n entity_id: input_select.john_status\n from: Extended Away\n to: Just Arrived\n condition:\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n for:\n minutes: 5\n action:\n - action: script.person_announcement\n data:\n person: john\n announcement_type: arrival",
|
|
"config": [
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "john status",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.john_status",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "script person announcement",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.person_announcement",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "john_announce_departure",
|
|
"automation": "- id: john_announce_departure\n alias: John Announce Departure\n mode: parallel\n initial_state: 'on'\n trigger:\n - platform: state\n entity_id: input_boolean.john_home\n to: 'off'\n condition:\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n for:\n minutes: 5\n action:\n - action: script.person_announcement\n data:\n person: john\n announcement_type: departure",
|
|
"config": [
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "john home",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.john_home",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "script person announcement",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.person_announcement",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "john_arrived_glenview_station",
|
|
"automation": "- id: john_arrived_glenview_station\n alias: John Arrived at Glenview Station\n initial_state: false\n trigger:\n - platform: zone\n entity_id: person.john_koht\n zone: zone.glenview_train_station\n event: enter\n condition:\n - condition: state\n entity_id: input_boolean.john_home\n state: 'off'\n - condition: time\n after: '12:00:00'\n - condition: state\n entity_id: input_boolean.john_commuting\n state: 'on'\n action:\n - service: automation.turn_off\n entity_id:\n - automation.john_departed_union_station\n - automation.john_passing_morton_grove_station\n - automation.john_arrived_at_glenview_station",
|
|
"config": [
|
|
{
|
|
"name": "john home",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.john_home",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "person john koht",
|
|
"room": null,
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.john_koht",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "zone glenview train station",
|
|
"room": null,
|
|
"type": "zone",
|
|
"id": {
|
|
"entity_id": "zone.glenview_train_station",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean john commuting",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.john_commuting",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "John Arrived at Glenview Station",
|
|
"room": null,
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.john_arrived_at_glenview_station",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "John Departed Union Station",
|
|
"room": null,
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.john_departed_union_station",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "John Passing Morton Grove Station",
|
|
"room": null,
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.john_passing_morton_grove_station",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "john_arrived_union_station",
|
|
"automation": "- id: john_arrived_union_station\n alias: John Arrived at Union Station\n initial_state: true\n trigger:\n - platform: zone\n entity_id: person.john_koht\n zone: zone.union_station\n event: enter\n condition:\n - condition: state\n entity_id: input_boolean.john_home\n state: 'off'\n - condition: state\n entity_id: person.john_koht\n state: Union Station\n - condition: time\n before: '12:00:00'\n action:\n - service: automation.turn_on\n entity_id:\n - automation.john_departed_union_station\n - automation.john_passing_morton_grove_station\n - automation.john_arrived_at_glenview_station\n - service: script.voice_announcement\n data:\n media_players: auto\n sound: arcade\n priority: normal\n speech_message: \"{{\\n [\\n \\\"Attention! Baba just arrived at Union Station.\\\"\\\n ,\\n \\\"Pardon the interruption, just wanted to let you know Baba's train\\\n \\ arrived downtown.\\\"\\n ] | random\\n}}\"",
|
|
"config": [
|
|
{
|
|
"name": "john home",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.john_home",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "voice announcement script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.voice_announcement",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "person john koht",
|
|
"room": null,
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.john_koht",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "script voice announcement",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.voice_announcement",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "zone union station",
|
|
"room": null,
|
|
"type": "zone",
|
|
"id": {
|
|
"entity_id": "zone.union_station",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "John Arrived at Glenview Station",
|
|
"room": null,
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.john_arrived_at_glenview_station",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "John Departed Union Station",
|
|
"room": null,
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.john_departed_union_station",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "John Passing Morton Grove Station",
|
|
"room": null,
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.john_passing_morton_grove_station",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "john_arrived_work",
|
|
"automation": "- id: john_arrived_work\n alias: John arrived at work\n initial_state: 'on'\n trigger:\n - platform: zone\n entity_id: person.john_koht\n zone: zone.john_s_work\n event: enter\n - platform: numeric_state\n entity_id: sensor.lpl_john_distance\n below: 0.25\n condition:\n - condition: state\n entity_id: input_boolean.john_home\n state: 'off'\n - condition: state\n entity_id: binary_sensor.workday_sensor\n state: 'on'\n - condition: time\n before: '10:30:00'\n - condition: state\n entity_id: person.john_koht\n state: John's Work\n action:\n - service: script.voice_announcement\n data:\n media_players: auto\n sound: one-chime\n speech_message: \"{{\\n [\\n \\\"Attention! Baba arrived at the office.\\\",\\n\\\n \\ \\\"Pardon the interruption, but Baba just go to work.\\\",\\n \\\"Just a\\\n \\ friendly note that Baba has arrived at the office.\\\"\\n ] | random\\n}}\"",
|
|
"config": [
|
|
{
|
|
"name": "john home",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.john_home",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "workday sensor",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.workday_sensor",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "voice announcement script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.voice_announcement",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "person john koht",
|
|
"room": null,
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.john_koht",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "script voice announcement",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.voice_announcement",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "sensor lpl john distance",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.lpl_john_distance",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "zone john's work",
|
|
"room": null,
|
|
"type": "zone",
|
|
"id": {
|
|
"entity_id": "zone.john_s_work",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "john_away",
|
|
"automation": "- id: john_away\n alias: John away\n initial_state: 'on'\n trigger:\n - platform: zone\n entity_id:\n - person.john_koht\n - device_tracker.jk_iphone_14\n zone: zone.home\n event: leave\n - platform: state\n entity_id: binary_sensor.john_presence\n to: 'off'\n - platform: state\n entity_id:\n - person.john_koht\n - device_tracker.jk_iphone_14\n to: not_home\n - platform: event\n event_type: automation_reloaded\n - platform: homeassistant\n event: start\n condition:\n - condition: template\n value_template: '{{ not is_state(''input_select.john_status'', ''Just Arrived'')\n }}'\n - condition: state\n entity_id: input_boolean.john_home\n state: 'on'\n - condition: or\n conditions:\n - condition: state\n entity_id: binary_sensor.john_presence\n state: 'off'\n - condition: state\n entity_id: person.john_koht\n state: not_home\n - condition: state\n entity_id: device_tracker.jk_iphone_14\n state: not_home\n action:\n - service: script.turn_on\n data:\n entity_id: script.john_away",
|
|
"config": [
|
|
{
|
|
"name": "john home",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.john_home",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "john status",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.john_status",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "person john koht",
|
|
"room": null,
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.john_koht",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "device tracker jk iphone 14",
|
|
"room": null,
|
|
"type": "device_tracker",
|
|
"id": {
|
|
"entity_id": "device_tracker.jk_iphone_14",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "binary sensor john presence",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.john_presence",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "John Away",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.john_away",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Turn On",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.turn_on",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "john_bed_awake",
|
|
"automation": "- id: john_bed_awake\n alias: John Bed - Awake\n mode: single\n trigger:\n - platform: state\n entity_id: input_select.john_sleep_state\n to: Just Got Up\n for:\n minutes: 5\n action:\n - service: input_select.select_option\n data:\n entity_id: input_select.john_sleep_state\n option: Awake",
|
|
"config": [
|
|
{
|
|
"name": "input select john sleep state",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.john_sleep_state",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "john_bed_just_got_up",
|
|
"automation": "- id: john_bed_just_got_up\n alias: John Bed - Just Got Up\n mode: single\n trigger:\n - platform: state\n entity_id: binary_sensor.john_bed_occupied\n to: 'off'\n action:\n - service: input_select.select_option\n data:\n entity_id: input_select.john_sleep_state\n option: Just Got Up",
|
|
"config": [
|
|
{
|
|
"name": "input select john sleep state",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.john_sleep_state",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "binary sensor john bed occupied",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.john_bed_occupied",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "john_bed_just_laid_down",
|
|
"automation": "- id: john_bed_just_laid_down\n alias: John Bed - Just Laid Down\n mode: single\n trigger:\n - platform: state\n entity_id: binary_sensor.john_bed_occupied\n to: 'on'\n condition:\n - condition: template\n value_template: '{{ not is_state(''input_select.john_sleep_state'',''Sleep'')\n }}'\n action:\n - service: input_select.select_option\n data:\n entity_id: input_select.john_sleep_state\n option: Just Laid Down",
|
|
"config": [
|
|
{
|
|
"name": "input select john sleep state",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.john_sleep_state",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "binary sensor john bed occupied",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.john_bed_occupied",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "john_bed_sleep",
|
|
"automation": "- id: john_bed_sleep\n alias: John Bed - Sleep\n mode: single\n trigger:\n - platform: state\n entity_id: input_select.john_sleep_state\n to: Just Laid Down\n for:\n minutes: 5\n action:\n - service: input_select.select_option\n data:\n entity_id: input_select.john_sleep_state\n option: Sleep",
|
|
"config": [
|
|
{
|
|
"name": "input select john sleep state",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.john_sleep_state",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "john_daily_report",
|
|
"automation": "- id: john_daily_report\n alias: John Daily Report\n mode: single\n triggers:\n - trigger: time\n at: 08:05:00\n condition:\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n - condition: state\n entity_id: person.john_koht\n state: home\n action:\n - wait_template: '{{ is_state(''binary_sensor.johns_macbook_pro_active'', ''on'')\n }}'\n timeout: 02:30:00\n continue_on_timeout: false\n - delay: 00:02:00\n - if:\n - condition: and\n conditions:\n - condition: state\n entity_id: input_boolean.john_dnd\n state: 'off'\n - condition: state\n entity_id: binary_sensor.john_laptop_audio_active\n state: 'off'\n then:\n - action: script.john_daily_update_announcement",
|
|
"config": [
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "person john koht",
|
|
"room": null,
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.john_koht",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "binary sensor johns macbook pro active",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.johns_macbook_pro_active",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "script john daily update announcement",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.john_daily_update_announcement",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "binary sensor john laptop audio active",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.john_laptop_audio_active",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean john dnd",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.john_dnd",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "john_departed_union_station",
|
|
"automation": "- id: john_departed_union_station\n alias: John Departed Union Station\n initial_state: false\n trigger:\n - platform: zone\n entity_id: person.john_koht\n zone: zone.union_station\n event: leave\n condition:\n - condition: state\n entity_id: input_boolean.john_home\n state: 'off'\n - condition: time\n after: '12:00:00'\n - condition: state\n entity_id: input_boolean.john_commuting\n state: 'on'\n action:\n - service: script.voice_announcement\n data:\n media_players: auto\n sound: arcade\n priority: normal\n speech_message: \"{{\\n [\\n \\\"Attention! Baba just left Union Station.\\\",\\n\\\n \\ \\\"Pardon the interruption, but Baba is on the train headed home.\\\",\\n\\\n \\ \\\"Just a friendly note that Baba's train has departed.\\\"\\n ] | random\\n\\\n }}\"",
|
|
"config": [
|
|
{
|
|
"name": "john home",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.john_home",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "voice announcement script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.voice_announcement",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "person john koht",
|
|
"room": null,
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.john_koht",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "script voice announcement",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.voice_announcement",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean john commuting",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.john_commuting",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "zone union station",
|
|
"room": null,
|
|
"type": "zone",
|
|
"id": {
|
|
"entity_id": "zone.union_station",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "john_departed_work",
|
|
"automation": "- id: john_departed_work\n alias: John has left the office\n initial_state: 'on'\n trigger:\n - platform: zone\n entity_id: person.john_koht\n zone: zone.john_s_work\n event: leave\n condition:\n - condition: state\n entity_id: input_boolean.john_home\n state: 'off'\n - condition: state\n entity_id: binary_sensor.workday_sensor\n state: 'on'\n - condition: time\n after: '15:00:00'\n - condition: state\n entity_id: sensor.lpl_john_direction_of_travel\n state: away_from\n action:\n - service: script.voice_announcement\n data:\n media_players: auto\n sound: chime\n speech_message: \"{{\\n [\\n \\\"Attention! Baba left the office.\\\",\\n \\\"\\\n Pardon the interruption, but Baba just left work.\\\",\\n \\\"Just a friendly\\\n \\ note that Baba is headed home from the office.\\\"\\n ] | random\\n}}\"",
|
|
"config": [
|
|
{
|
|
"name": "john home",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.john_home",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "workday sensor",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.workday_sensor",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "voice announcement script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.voice_announcement",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "person john koht",
|
|
"room": null,
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.john_koht",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "script voice announcement",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.voice_announcement",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "zone john's work",
|
|
"room": null,
|
|
"type": "zone",
|
|
"id": {
|
|
"entity_id": "zone.john_s_work",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "sensor lpl john direction of travel",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.lpl_john_direction_of_travel",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "john_dnd_off",
|
|
"automation": "- id: john_dnd_off\n initial_state: true\n alias: John DnD Off\n mode: queued\n triggers:\n - trigger: state\n entity_id: binary_sensor.john_laptop_camera_active\n to: 'off'\n for:\n seconds: 30\n - trigger: state\n entity_id: binary_sensor.john_laptop_audio_active\n to: 'off'\n for:\n seconds: 30\n conditions:\n - condition: state\n entity_id: binary_sensor.john_laptop_camera_active\n state: 'off'\n - condition: state\n entity_id: binary_sensor.john_laptop_audio_active\n state: 'off'\n - condition: state\n entity_id: input_boolean.john_dnd\n state: 'on'\n actions:\n - action: input_boolean.turn_off\n entity_id: input_boolean.john_dnd",
|
|
"config": [
|
|
{
|
|
"name": "binary sensor john laptop camera active",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.john_laptop_camera_active",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "binary sensor john laptop audio active",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.john_laptop_audio_active",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean john dnd",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.john_dnd",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "john_dnd_on",
|
|
"automation": "- id: john_dnd_on\n initial_state: true\n alias: John DnD On\n mode: queued\n triggers:\n - trigger: state\n entity_id: binary_sensor.john_laptop_camera_active\n to: 'on'\n for:\n seconds: 3\n - trigger: state\n entity_id: binary_sensor.john_laptop_audio_active\n to: 'on'\n for:\n seconds: 5\n conditions:\n - condition: or\n conditions:\n - condition: state\n entity_id: binary_sensor.john_laptop_camera_active\n state: 'on'\n - condition: state\n entity_id: binary_sensor.john_laptop_audio_active\n state: 'on'\n - condition: state\n entity_id: input_boolean.john_dnd\n state: 'off'\n actions:\n - action: input_boolean.turn_on\n entity_id: input_boolean.john_dnd\n - action: script.general_notification\n data:\n message: John's DnD mode has been turned on\n title: John DnD On!\n devices: jk\n priority: passive\n tag: john-dnd",
|
|
"config": [
|
|
{
|
|
"name": "general notification script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.general_notification",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "binary sensor john laptop camera active",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.john_laptop_camera_active",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "binary sensor john laptop audio active",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.john_laptop_audio_active",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean john dnd",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.john_dnd",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "john_extended_away",
|
|
"automation": "- id: john_extended_away\n alias: John - Extended Away\n mode: parallel\n initial_state: 'on'\n trigger:\n - platform: state\n entity_id: input_select.john_status\n to: Away\n for:\n hours: 24\n - platform: numeric_state\n entity_id: sensor.home_john_distance\n above: 200\n action:\n - service: input_select.select_option\n target:\n entity_id: input_select.john_status\n data:\n option: Extended Away",
|
|
"config": [
|
|
{
|
|
"name": "john status",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.john_status",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "sensor home john distance",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.home_john_distance",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "john_home",
|
|
"automation": "- id: john_home\n initial_state: 'on'\n alias: John Home\n trigger:\n - platform: state\n entity_id: binary_sensor.john_presence\n to: 'on'\n - platform: zone\n entity_id:\n - person.john_koht\n - device_tracker.jk_iphone_14\n zone: zone.home\n event: enter\n - platform: state\n entity_id:\n - person.john_koht\n - device_tracker.jk_iphone_14\n to: home\n - platform: event\n event_type: automation_reloaded\n - platform: homeassistant\n event: start\n condition:\n - condition: or\n conditions:\n - condition: state\n entity_id: binary_sensor.john_presence\n state: 'on'\n - condition: state\n entity_id: person.john_koht\n state: home\n - condition: state\n entity_id: device_tracker.jk_iphone_14\n state: home\n - condition: zone\n entity_id:\n - person.john_koht\n - device_tracker.jk_iphone_14\n zone: zone.home\n - condition: state\n entity_id: input_boolean.john_home\n state: 'off'\n action:\n - service: script.turn_on\n entity_id: script.john_home",
|
|
"config": [
|
|
{
|
|
"name": "john home",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.john_home",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "person john koht",
|
|
"room": null,
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.john_koht",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "device tracker jk iphone 14",
|
|
"room": null,
|
|
"type": "device_tracker",
|
|
"id": {
|
|
"entity_id": "device_tracker.jk_iphone_14",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "binary sensor john presence",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.john_presence",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "John Home",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.john_home",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Turn On",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.turn_on",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "john_in_bed",
|
|
"automation": "- id: john_in_bed\n alias: John in Bed\n initial_state: true\n trigger:\n - platform: state\n entity_id: binary_sensor.john_in_bed\n to: 'on'\n for:\n minutes: 1\n - platform: state\n entity_id: input_select.john_sleep_state\n to: Sleep\n - platform: state\n entity_id: input_select.john_sleep_state\n to: Just Laid Down\n condition:\n - condition: state\n entity_id: binary_sensor.john_in_bed\n state: 'on'\n - condition: or\n conditions:\n - condition: state\n entity_id: input_select.john_sleep_state\n state: Sleep\n - condition: state\n entity_id: input_select.john_sleep_state\n state: Just Laid Down\n - condition: state\n entity_id: input_boolean.john_home\n state: 'on'\n - condition: state\n entity_id: binary_sensor.bedtime\n state: 'on'\n action:\n - service: input_boolean.turn_on\n entity_id: input_boolean.john_is_in_bed\n - service: input_boolean.turn_off\n entity_id: input_boolean.john_is_awake",
|
|
"config": [
|
|
{
|
|
"name": "john home",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.john_home",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "john is awake",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.john_is_awake",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input select john sleep state",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.john_sleep_state",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "binary sensor john in bed",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.john_in_bed",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean john is in bed",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.john_is_in_bed",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "binary sensor bedtime",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.bedtime",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "john_in_bed",
|
|
"automation": "- id: john_in_bed\n alias: John in bed\n initial_state: 'on'\n trigger:\n - platform: state\n entity_id: binary_sensor.john_in_bed\n to: 'on'\n for:\n minutes: 1\n - platform: state\n entity_id: binary_sensor.bedtime\n to: 'on'\n - platform: state\n entity_id: binary_sensor.main_bedroom_door_sensor_status\n to: 'off'\n condition:\n - condition: state\n entity_id: binary_sensor.john_in_bed\n state: 'on'\n for:\n minutes: 1\n - condition: state\n entity_id: input_boolean.john_home\n state: 'on'\n - condition: state\n entity_id: binary_sensor.bedtime\n state: 'on'\n action:\n - service: input_boolean.turn_on\n entity_id: input_boolean.john_is_in_bed\n - service: input_boolean.turn_off\n entity_id: input_boolean.john_is_awake",
|
|
"config": [
|
|
{
|
|
"name": "john home",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.john_home",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "john is awake",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.john_is_awake",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "binary sensor john in bed",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.john_in_bed",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean john is in bed",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.john_is_in_bed",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "binary sensor bedtime",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.bedtime",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "binary sensor main bedroom door sensor status",
|
|
"room": "main bedroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.main_bedroom_door_sensor_status",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "john_is_commuting",
|
|
"automation": "- id: john_is_commuting\n alias: John is Commuting\n initial_state: true\n trigger:\n - platform: state\n entity_id: person.john_koht\n to:\n - Morton Grove Train Station\n - Union Station\n for:\n minutes: 2\n condition:\n - condition: state\n entity_id: input_boolean.john_home\n state: 'off'\n - condition: state\n entity_id: input_boolean.john_commuting\n state: 'off'\n action:\n - service: input_boolean.turn_on\n entity_id: input_boolean.john_commuting\n - service: automation.turn_on\n entity_id: automation.john_is_not_commuting",
|
|
"config": [
|
|
{
|
|
"name": "john home",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.john_home",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "person john koht",
|
|
"room": null,
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.john_koht",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean john commuting",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.john_commuting",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "John is Not Commuting",
|
|
"room": null,
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.john_is_not_commuting",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "john_is_not_commuting",
|
|
"automation": "- id: john_is_not_commuting\n alias: John is Not Commuting\n initial_state: false\n trigger:\n - platform: state\n entity_id: input_boolean.john_home\n to: 'on'\n condition:\n - condition: state\n entity_id: input_boolean.john_commuting\n state: 'on'\n action:\n - service: input_boolean.turn_off\n entity_id: input_boolean.john_commuting\n - service: automation.turn_off\n entity_id: automation.john_is_not_commuting",
|
|
"config": [
|
|
{
|
|
"name": "john home",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.john_home",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean john commuting",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.john_commuting",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "John is Not Commuting",
|
|
"room": null,
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.john_is_not_commuting",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "john_passing_morton_grove_station",
|
|
"automation": "- id: john_passing_morton_grove_station\n alias: John Passing Morton Grove Station\n initial_state: false\n trigger:\n - platform: zone\n entity_id: person.john_koht\n zone: zone.morton_grove_train_station\n event: enter\n condition:\n - condition: state\n entity_id: input_boolean.john_home\n state: 'off'\n - condition: time\n after: '12:00:00'\n - condition: state\n entity_id: input_boolean.john_commuting\n state: 'on'\n action:\n - service: script.voice_announcement\n data:\n speech_message: \"{{\\n [\\n \\\"Attention! Baba's train will arrive within five\\\n \\ minutes!\\\",\\n \\\"Pardon the interruption, but Baba's train is arriving\\\n \\ soon.\\\",\\n \\\"Just a friendly note that Baba's train is arriving shortly.\\\"\\\n \\n ] | random\\n}}\"\n media_players: auto\n sound: arcade\n priority: normal\n expires_in: 3",
|
|
"config": [
|
|
{
|
|
"name": "john home",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.john_home",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "voice announcement script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.voice_announcement",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "person john koht",
|
|
"room": null,
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.john_koht",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "script voice announcement",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.voice_announcement",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean john commuting",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.john_commuting",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "zone morton grove train station",
|
|
"room": null,
|
|
"type": "zone",
|
|
"id": {
|
|
"entity_id": "zone.morton_grove_train_station",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "john_personal_time_off",
|
|
"automation": "- id: john_personal_time_off\n initial_state: true\n alias: John Personal Time Off\n mode: queued\n trigger:\n - platform: calendar\n event: end\n entity_id: calendar.john_block\n - platform: calendar\n event: end\n entity_id: calendar.john_gsd\n - platform: calendar\n event: end\n entity_id: calendar.john_ooo\n - platform: time\n at: 00:00:00\n condition:\n - condition: state\n entity_id: input_boolean.john_personal_time\n state: 'on'\n action:\n - service: input_boolean.turn_off\n entity_id: input_boolean.john_personal_time\n - service: script.general_notification\n data:\n message: John personal time turned OFF\n title: John Personal Time\n devices: jk\n priority: passive\n tag: john-personal-time",
|
|
"config": [
|
|
{
|
|
"name": "general notification script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.general_notification",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "calendar john block",
|
|
"room": null,
|
|
"type": "calendar",
|
|
"id": {
|
|
"entity_id": "calendar.john_block",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "calendar john gsd",
|
|
"room": null,
|
|
"type": "calendar",
|
|
"id": {
|
|
"entity_id": "calendar.john_gsd",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "calendar john ooo",
|
|
"room": null,
|
|
"type": "calendar",
|
|
"id": {
|
|
"entity_id": "calendar.john_ooo",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean john personal time",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.john_personal_time",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "john_person_time_on",
|
|
"automation": "- id: john_person_time_on\n initial_state: true\n alias: John Personal Time On\n mode: queued\n trigger:\n - platform: calendar\n event: start\n entity_id: calendar.john_block\n offset: 00:00:05\n - platform: calendar\n event: start\n entity_id: calendar.john_gsd\n offset: 00:00:05\n - platform: calendar\n event: start\n entity_id: calendar.john_ooo\n offset: 00:00:05\n condition:\n - condition: state\n entity_id: input_boolean.john_personal_time\n state: 'off'\n action:\n - service: input_boolean.turn_on\n entity_id: input_boolean.john_personal_time\n - service: script.general_notification\n data:\n message: John personal time turned ON\n title: John Personal Time\n devices: jk\n priority: passive\n tag: john-personal-time",
|
|
"config": [
|
|
{
|
|
"name": "general notification script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.general_notification",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "calendar john block",
|
|
"room": null,
|
|
"type": "calendar",
|
|
"id": {
|
|
"entity_id": "calendar.john_block",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "calendar john gsd",
|
|
"room": null,
|
|
"type": "calendar",
|
|
"id": {
|
|
"entity_id": "calendar.john_gsd",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "calendar john ooo",
|
|
"room": null,
|
|
"type": "calendar",
|
|
"id": {
|
|
"entity_id": "calendar.john_ooo",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean john personal time",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.john_personal_time",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "john_wake_up",
|
|
"automation": "- id: john_wake_up\n alias: John wake up\n initial_state: true\n trigger:\n - platform: state\n entity_id: binary_sensor.john_in_bed\n to: 'off'\n - platform: state\n entity_id: binary_sensor.john_in_bed\n to: 'off'\n for:\n minutes: 3\n - platform: state\n entity_id: binary_sensor.main_bedroom_door_sensor_status\n to: 'on'\n - platform: state\n entity_id: input_select.john_sleep_state\n to: Just Got Up\n for:\n minutes: 2\n - platform: state\n entity_id: input_select.john_sleep_state\n to: Awake\n condition:\n - condition: state\n entity_id: binary_sensor.john_in_bed\n state: 'off'\n - condition: or\n conditions:\n - condition: state\n entity_id: input_select.john_sleep_state\n state: Awake\n - condition: state\n entity_id: input_select.john_sleep_state\n state: Just Got Up\n - condition: state\n entity_id: input_boolean.john_home\n state: 'on'\n - condition: state\n entity_id: input_boolean.john_is_in_bed\n state: 'on'\n action:\n - service: input_boolean.turn_off\n entity_id: input_boolean.john_is_in_bed\n - service: input_boolean.turn_on\n entity_id: input_boolean.john_is_awake",
|
|
"config": [
|
|
{
|
|
"name": "john home",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.john_home",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "john is awake",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.john_is_awake",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input select john sleep state",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.john_sleep_state",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "binary sensor john in bed",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.john_in_bed",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean john is in bed",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.john_is_in_bed",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "binary sensor main bedroom door sensor status",
|
|
"room": "main bedroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.main_bedroom_door_sensor_status",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "john_work_call_off",
|
|
"automation": "- id: john_work_call_off\n initial_state: true\n alias: John Work Call Off\n mode: queued\n trigger:\n - platform: calendar\n event: end\n entity_id: calendar.john_launchpadlab_com\n offset: 00:00:10\n - platform: state\n entity_id: binary_sensor.work_hours\n to: 'off'\n condition:\n - condition: state\n entity_id: input_boolean.john_work_call\n state: 'on'\n action:\n - service: input_boolean.turn_off\n entity_id: input_boolean.john_work_call\n - service: script.general_notification\n data:\n message: John's work call has been turned OFF\n title: John Work Call OFF\n devices: jk\n priority: passive\n tag: john-work-call",
|
|
"config": [
|
|
{
|
|
"name": "general notification script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.general_notification",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "calendar john launchpadlab com",
|
|
"room": null,
|
|
"type": "calendar",
|
|
"id": {
|
|
"entity_id": "calendar.john_launchpadlab_com",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean john work call",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.john_work_call",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Work Hours",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.work_hours",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "john_work_call_on",
|
|
"automation": "- id: john_work_call_on\n initial_state: true\n alias: John Work Call On\n mode: queued\n trigger:\n - platform: calendar\n event: start\n entity_id: calendar.john_launchpadlab_com\n condition:\n - condition: template\n value_template: '{% set summary = trigger.calendar_event.summary | lower %} {{\n false if \"gsd\" in summary or \"ooo\" in summary or \"block\" in summary else true\n }}'\n action:\n - service: input_boolean.turn_on\n entity_id: input_boolean.john_work_call\n - service: script.general_notification\n data:\n message: John's work call has been turned ON\n title: John Work Call ON\n devices: jk\n priority: passive\n tag: john-work-call\n - service: automation.turn_off\n entity_id: automation.john_work_call_off\n - delay: 00:01:00\n - service: automation.turn_on\n entity_id: automation.john_work_call_off",
|
|
"config": [
|
|
{
|
|
"name": "general notification script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.general_notification",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "calendar john launchpadlab com",
|
|
"room": null,
|
|
"type": "calendar",
|
|
"id": {
|
|
"entity_id": "calendar.john_launchpadlab_com",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean john work call",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.john_work_call",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "John Work Call Off",
|
|
"room": null,
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.john_work_call_off",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "jr_suite_air_quality_detections",
|
|
"automation": "- id: jr_suite_air_quality_detections\n alias: Jr. Suite Air Quality Sensor Detections\n mode: single\n initial_state: true\n triggers:\n - trigger: state\n entity_id: sensor.jr_suite_air_quality\n conditions:\n - or:\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n - condition: state\n entity_id: input_boolean.almost_home\n state: 'on'\n variables:\n purifier: fan.jr_suite_air_purifier\n aqi_state: '{{ states.sensor.jr_suite_air_quality.state }}'\n room_state: '{{ states.input_select.jr_suite.state }}'\n actions:\n - action: script.air_quality_set_air_purifier_mode\n data:\n purifier: '{{ purifier }}'\n aqi_state: '{{ aqi_state }}'\n room_state: '{{ room_state }}'",
|
|
"config": [
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "almost home",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.almost_home",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "air quality set air purifier mode script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.air_quality_set_air_purifier_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "sensor jr suite air quality",
|
|
"room": "jr suite",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.jr_suite_air_quality",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "fan jr suite air purifier",
|
|
"room": "jr suite",
|
|
"type": "fan",
|
|
"id": {
|
|
"entity_id": "fan.jr_suite_air_purifier",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input select jr suite",
|
|
"room": "jr suite",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.jr_suite",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "jr_suite_lights_off",
|
|
"automation": "- id: jr_suite_lights_off\n initial_state: true\n alias: Jr. Suite lights off\n trigger:\n - platform: state\n entity_id: input_select.jr_suite\n to: 'Off'\n - platform: state\n entity_id: input_boolean.lighting_automations\n to: 'on'\n condition:\n - condition: state\n entity_id: light.jr_suite_bedroom_main_lights\n state: 'on'\n - condition: state\n entity_id: input_select.jr_suite\n state: 'Off'\n action:\n - service: light.turn_off\n entity_id: light.jr_suite_bedroom_main_lights",
|
|
"config": [
|
|
{
|
|
"name": "lighting automations",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.lighting_automations",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input select jr suite",
|
|
"room": "jr suite",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.jr_suite",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "light jr suite bedroom main lights",
|
|
"room": "jr suite",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.jr_suite_bedroom_main_lights",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "jr_suite_mode_auto",
|
|
"automation": "- id: jr_suite_mode_auto\n initial_state: true\n alias: Jr. Suite mode Auto\n trigger:\n - platform: state\n entity_id: input_select.house\n to: Auto\n - platform: state\n entity_id: input_boolean.house_occupied\n to: 'on'\n condition:\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n - condition: template\n value_template: '{{ not is_state(''input_select.jr_suite'',''Auto'') }}'\n - condition: state\n entity_id: input_boolean.bedtime\n state: 'off'\n - condition: state\n entity_id: input_select.house\n state: Auto\n action:\n - service: input_select.select_option\n data:\n entity_id: input_select.jr_suite\n option: Auto",
|
|
"config": [
|
|
{
|
|
"name": "bedtime",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.bedtime",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "house status",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.house",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input select jr suite",
|
|
"room": "jr suite",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.jr_suite",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "jr_suite_mode_off",
|
|
"automation": "- id: jr_suite_mode_off\n initial_state: true\n alias: Jr. Suite mode off\n trigger:\n - platform: state\n entity_id: input_boolean.house_occupied\n to: 'off'\n - platform: state\n entity_id: input_select.house\n to: Away\n - platform: state\n entity_id: input_boolean.bedtime\n to: 'on'\n - platform: homeassistant\n event: start\n - platform: event\n event_type: automation_reloaded\n condition:\n - condition: template\n value_template: '{{ not is_state(''input_select.jr_suite'',''Off'') }}'\n - condition: or\n conditions:\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'off'\n - condition: state\n entity_id: input_select.house\n state: Away\n - condition: state\n entity_id: input_boolean.bedtime\n state: 'on'\n action:\n - service: input_select.select_option\n data:\n entity_id: input_select.jr_suite\n option: 'Off'",
|
|
"config": [
|
|
{
|
|
"name": "bedtime",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.bedtime",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "house status",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.house",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input select jr suite",
|
|
"room": "jr suite",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.jr_suite",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "jr_suite_turn_off_purifier",
|
|
"automation": "- id: jr_suite_turn_off_purifier\n alias: Jr. Suite Air Quality - Turn off Purifier\n mode: single\n initial_state: true\n triggers:\n - trigger: state\n entity_id: input_boolean.house_occupied\n to: 'off'\n - trigger: state\n entity_id: input_select.jr_suite\n to: 'Off'\n actions:\n - action: fan.turn_off\n target:\n entity_id: fan.jr_suite_air_purifier",
|
|
"config": [
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "fan jr suite air purifier",
|
|
"room": "jr suite",
|
|
"type": "fan",
|
|
"id": {
|
|
"entity_id": "fan.jr_suite_air_purifier",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input select jr suite",
|
|
"room": "jr suite",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.jr_suite",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "katie_announce_arrival",
|
|
"automation": "- id: katie_announce_arrival\n alias: Katia Announce Arrival\n mode: queued\n initial_state: true\n trigger:\n - platform: state\n entity_id: person.katia\n from: not_home\n to: home\n condition:\n - condition: state\n entity_id: person.katia\n state: home\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n for:\n minutes: 5\n action:\n - service: script.voice_announcement\n data:\n media_players: auto\n speech_message: \"{{\\n [\\n \\\"Guess who's here? It's Katia!\\\",\\n \\\"Ciao!\\\n \\ Katia is in the house!\\\",\\n \\\"Pardon the interruption but Katia is here!\\\"\\\n ,\\n \\\"Knock knock. Who's there? Katia is here!\\\"\\n ] | random\\n}}\"\n - condition: state\n entity_id: input_boolean.guest_mode_announced\n state: 'off'\n - service: input_boolean.turn_on\n entity_id: input_boolean.guest_mode_announced",
|
|
"config": [
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "guest mode announced",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.guest_mode_announced",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "guest mode",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.guest_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "voice announcement script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.voice_announcement",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "script voice announcement",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.voice_announcement",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "person katia",
|
|
"room": null,
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.katia",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "katia_announce_departure",
|
|
"automation": "- id: katia_announce_departure\n alias: Katia Announce Departure\n mode: queued\n initial_state: true\n trigger:\n - platform: state\n entity_id: person.katia\n from: home\n to: not_home\n condition:\n - condition: state\n entity_id: person.katia\n state: not_home\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n for:\n minutes: 5\n action:\n - service: script.voice_announcement\n data:\n media_players: auto\n speech_message: \"{{\\n [\\n \\\"Katia has left the house!\\\",\\n \\\"Arrivederci,\\\n \\ Katia! See you next time!\\\",\\n \\\"Ciao! Katia just left!\\\",\\n \\\"Pardon\\\n \\ the interruption but Katia just left\\\",\\n ] | random\\n}}\"",
|
|
"config": [
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "voice announcement script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.voice_announcement",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "script voice announcement",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.voice_announcement",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "person katia",
|
|
"room": null,
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.katia",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "katie_bluetooth_detected_not_home",
|
|
"automation": "- id: katie_bluetooth_detected_not_home\n alias: Katia Bluetooth Detected Not Home\n mode: queued\n initial_state: false\n trigger:\n - platform: template\n value_template: '{{ states.sensor.katia_room_presence.state == ''not_home''}}'\n for:\n minutes: 10\n condition:\n - condition: template\n value_template: '{{ states.sensor.katia_room_presence.state == ''not_home''}}'\n - condition: state\n entity_id: person.katia\n state: home\n action:\n - service: device_tracker.see\n data:\n dev_id: katias_iphone\n location_name: not_home",
|
|
"config": [
|
|
{
|
|
"name": "person katia",
|
|
"room": null,
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.katia",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "sensor katia room presence",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.katia_room_presence",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "katia_is_away",
|
|
"automation": "- id: katia_is_away\n alias: Katia Is Away\n initial_state: true\n triggers:\n - trigger: state\n entity_id: person.katia\n to: not_home\n - trigger: state\n entity_id: binary_sensor.katia_presence\n to: 'off'\n - trigger: event\n event_type: automation_reloaded\n - trigger: homeassistant\n event: start\n conditions:\n - condition: not\n conditions:\n - condition: state\n entity_id: input_select.katia_status\n state: Just Left\n - or:\n - condition: state\n entity_id: person.katia\n state: not_home\n - condition: state\n entity_id: binary_sensor.katia_presence\n state: 'off'\n actions:\n - action: input_boolean.turn_off\n entity_id: input_boolean.katia_home",
|
|
"config": [
|
|
{
|
|
"name": "katia home",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.katia_home",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "person katia",
|
|
"room": null,
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.katia",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input select katia status",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.katia_status",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "binary sensor katia presence",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.katia_presence",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "katia_is_home",
|
|
"automation": "- id: katia_is_home\n initial_state: true\n alias: Katia is Home\n triggers:\n - trigger: state\n entity_id: person.katia\n to: home\n - trigger: state\n entity_id: binary_sensor.katia_presence\n to: 'on'\n - trigger: event\n event_type: automation_reloaded\n - trigger: homeassistant\n event: start\n conditions:\n - condition: state\n entity_id: input_boolean.katia_home\n state: 'off'\n - or:\n - condition: state\n entity_id: person.katia\n state: home\n - condition: state\n entity_id: binary_sensor.katia_presence\n state: 'on'\n actions:\n - action: input_boolean.turn_on\n entity_id: input_boolean.katia_home",
|
|
"config": [
|
|
{
|
|
"name": "katia home",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.katia_home",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "person katia",
|
|
"room": null,
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.katia",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "binary sensor katia presence",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.katia_presence",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "katia_open_garage_upon_arrival",
|
|
"automation": "- id: katia_open_garage_upon_arrival\n alias: Katia Open Garage Upon Arrival\n mode: queued\n initial_state: false\n trigger:\n - platform: state\n entity_id: input_boolean.katia_home\n to: 'on'\n for:\n seconds: 3\n condition:\n - condition: state\n entity_id: person.katia\n state: home\n - condition: state\n entity_id: input_select.katia_status\n state: Just Arrived\n - condition: template\n value_template: '{{ (as_timestamp(now()) - as_timestamp(states.binary_sensor.garage_driveway_camera_motion.last_updated))\n | int < 60 }}'\n - condition: state\n entity_id: cover.garage_doors\n state: closed\n action:\n - service: cover.open_cover\n entity_id: cover.garage_door_2",
|
|
"config": [
|
|
{
|
|
"name": "katia home",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.katia_home",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "cover garage doors",
|
|
"room": "garage",
|
|
"type": "cover",
|
|
"id": {
|
|
"entity_id": "cover.garage_doors",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "garage door 2",
|
|
"room": "garage",
|
|
"type": "cover",
|
|
"id": {
|
|
"entity_id": "cover.garage_door_2",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "person katia",
|
|
"room": null,
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.katia",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input select katia status",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.katia_status",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "binary sensor garage driveway camera motion",
|
|
"room": "garage driveway",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.garage_driveway_camera_motion",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "cover garage door 2",
|
|
"room": "garage",
|
|
"type": "cover",
|
|
"id": {
|
|
"entity_id": "cover.garage_door_2",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "katie_bluetooth_detected_home",
|
|
"automation": "- id: katie_bluetooth_detected_home\n alias: Katia Bluetooth Detected Home\n mode: queued\n initial_state: true\n trigger:\n - platform: template\n value_template: '{{ states.sensor.katia_room_presence.state != ''not_home''}}'\n condition:\n - condition: template\n value_template: '{{ states.sensor.katia_room_presence.state != ''not_home''}}'\n - condition: state\n entity_id: person.katia\n state: not_home\n action:\n - service: device_tracker.see\n data:\n dev_id: katias_iphone\n location_name: home",
|
|
"config": [
|
|
{
|
|
"name": "person katia",
|
|
"room": null,
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.katia",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "sensor katia room presence",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.katia_room_presence",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "kids_activity_tomorrow_reminder",
|
|
"automation": "- id: kids_activity_tomorrow_reminder\n alias: Kids Activity Tomorrow Reminder\n mode: single\n trigger:\n - platform: time\n at: '17:30:00'\n - platform: time\n at: '20:00:00'\n condition:\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n - condition: state\n entity_id: binary_sensor.kids_activity_tomorrow\n state: 'on'\n - condition: time\n after: '17:00:00'\n action:\n - wait_template: \"{{ \\n is_state('binary_sensor.kitchen_motion_sensor_status',\\\n \\ 'on')\\n or\\n is_state('binary_sensor.family_room_motion_sensor', 'on')\\n\\\n }}\"\n timeout: 00:05:00\n - alias: Wait 2 seconds\n delay: 2\n - service: script.voice_announcement\n data:\n media_players: auto\n sound: flute-cell-phone-alert\n priority: normal\n speech_message: \"{% set time = states.calendar.kohbocal.attributes.start_time\\\n \\ | as_datetime | as_local %} {% set time = time.timestamp() | timestamp_custom('%-I:%M\\\n \\ %p') %}\\n{{ \\n [\\n \\\"Hey fam, quick calendar reminder for tomorrow:\\\n \\ \\\" ~ states.calendar.kohbocal.attributes.message ~ \\\" at \\\" ~ time,\\n \\\n \\ \\\"Just a quick reminder that \\\" ~ states.calendar.kohbocal.attributes.message\\\n \\ ~ \\\" is tomorrow at \\\" ~ time,\\n \\\"Heads up for tomorrow: \\\" ~ states.calendar.kohbocal.attributes.message\\\n \\ ~ \\\" at \\\" ~ time\\n ] | random\\n}}\"\n - service: script.general_notification\n data:\n message: '{% set time = states.calendar.kohbocal.attributes.start_time | as_datetime\n | as_local %} {% set time = time.timestamp() | timestamp_custom(''%-I:%M %p'')\n %} \"Tomorrow is {{states.calendar.kohbocal.attributes.message}} at {{time}}\"'\n title: Kids Activity Reminder\n devices: jk\n priority: active\n tag: kids-activity-reminder",
|
|
"config": [
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "calendar kohbocal",
|
|
"room": null,
|
|
"type": "calendar",
|
|
"id": {
|
|
"entity_id": "calendar.kohbocal",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "kitchen motion sensor status",
|
|
"room": "kitchen",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.kitchen_motion_sensor_status",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "family room motion sensor",
|
|
"room": "family room",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.family_room_motion_sensor",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "general notification script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.general_notification",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "voice announcement script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.voice_announcement",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "family room motion sensor",
|
|
"room": "family room",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.family_room_motion_sensor",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "script voice announcement",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.voice_announcement",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "binary sensor kids activity tomorrow",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.kids_activity_tomorrow",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "binary sensor kitchen motion sensor status",
|
|
"room": "kitchen",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.kitchen_motion_sensor_status",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "kids_activity_upcoming_reminder",
|
|
"automation": "- id: kids_activity_upcoming_reminder\n alias: Kids Activity Upcoming Reminder\n mode: single\n trigger:\n - platform: calendar\n event: start\n entity_id: calendar.kohbocal\n offset: -01:00:00\n condition:\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n action:\n - service: script.voice_announcement\n data:\n media_players: auto\n sound: flute-cell-phone-alert\n priority: normal\n speech_message: \"{{ \\n [\\n \\\"Hey fam, \\\" ~ states.calendar.kohbocal.attributes.message\\\n \\ ~ \\\" is in one hour.\\\",\\n \\\"Just a quick reminder that \\\" ~ states.calendar.kohbocal.attributes.message\\\n \\ ~ \\\" is in one hour.\\\",\\n \\\"Pardon the interruption, I just wanted to\\\n \\ remind you that \\\" ~ states.calendar.kohbocal.attributes.message ~ \\\" is\\\n \\ in one hour.\\\"\\n ] | random\\n}}\"",
|
|
"config": [
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "calendar kohbocal",
|
|
"room": null,
|
|
"type": "calendar",
|
|
"id": {
|
|
"entity_id": "calendar.kohbocal",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "voice announcement script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.voice_announcement",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "script voice announcement",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.voice_announcement",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "kitchen_air_quality_detections",
|
|
"automation": "- id: kitchen_air_quality_detections\n alias: Kitchen Air Quality Sensor Detections\n mode: single\n initial_state: true\n triggers:\n - trigger: state\n entity_id: sensor.kitchen_air_quality\n - trigger: state\n entity_id: input_boolean.kitchen_occupied\n conditions:\n - or:\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n - condition: state\n entity_id: input_boolean.almost_home\n state: 'on'\n variables:\n purifier: fan.kitchen_air_purifier\n aqi_state: '{{ states.sensor.kitchen_air_quality.state }}'\n room_state: '{{ states.input_select.kitchen.state }}'\n actions:\n - action: script.air_quality_set_air_purifier_mode\n data:\n purifier: '{{ purifier }}'\n aqi_state: '{{ aqi_state }}'\n room_state: '{{ room_state }}'",
|
|
"config": [
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "kitchen occupied",
|
|
"room": "kitchen",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.kitchen_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "almost home",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.almost_home",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "air quality set air purifier mode script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.air_quality_set_air_purifier_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean kitchen occupied",
|
|
"room": "kitchen",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.kitchen_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "sensor kitchen air quality",
|
|
"room": "kitchen",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.kitchen_air_quality",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "fan kitchen air purifier",
|
|
"room": "kitchen",
|
|
"type": "fan",
|
|
"id": {
|
|
"entity_id": "fan.kitchen_air_purifier",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input select kitchen",
|
|
"room": "kitchen",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.kitchen",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "kitchen_fridge_door_left_open",
|
|
"automation": "- id: kitchen_fridge_door_left_open\n initial_state: true\n alias: Kitchen Fridge Door Left Open\n trigger:\n - platform: state\n entity_id: binary_sensor.kitchen_fridge_door_status\n to: 'on'\n for:\n minutes: 2\n condition:\n - condition: state\n entity_id: binary_sensor.kitchen_fridge_door_status\n state: 'on'\n action:\n - alias: Repeat until the fridge door is closed\n repeat:\n sequence:\n - service: script.voice_announcement\n data:\n media_players: auto\n sound: police-whistle\n speech_message: Fridge is open\n - delay: 00:01:00\n until:\n - condition: state\n entity_id: binary_sensor.kitchen_fridge_door_status\n state: 'off'",
|
|
"config": [
|
|
{
|
|
"name": "voice announcement script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.voice_announcement",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "script voice announcement",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.voice_announcement",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "binary sensor kitchen fridge door status",
|
|
"room": "kitchen",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.kitchen_fridge_door_status",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "kitchen_lights_day_off",
|
|
"automation": "- id: kitchen_lights_day_off\n initial_state: true\n alias: Kitchen Lights Day Off\n trigger:\n - platform: numeric_state\n entity_id: sensor.kitchen_illuminance\n above: 450\n for:\n minutes: 10\n - platform: numeric_state\n entity_id: sensor.kitchen_illuminance\n above: 500\n for:\n minutes: 5\n - platform: numeric_state\n entity_id: sensor.kitchen_illuminance\n above: 600\n for:\n minutes: 3\n - platform: state\n entity_id: input_boolean.bad_weather\n to: 'off'\n condition:\n - condition: state\n entity_id: input_boolean.lighting_automations\n state: 'on'\n - condition: state\n entity_id: input_boolean.kitchen_lighting_automations\n state: 'on'\n - condition: state\n entity_id: input_select.kitchen\n state: Auto\n - condition: state\n entity_id: input_boolean.bad_weather\n state: 'off'\n - condition: state\n entity_id: input_boolean.kitchen_lights_auto\n state: 'on'\n - condition: state\n entity_id: sun.sun\n state: above_horizon\n - condition: and\n conditions:\n - condition: numeric_state\n entity_id: sensor.kitchen_motion_sensor_table_illuminance\n above: 450\n - condition: numeric_state\n entity_id: sensor.kitchen_motion_sensor_main_illuminance\n above: 450\n - condition: state\n entity_id: light.kitchen_lights\n state: 'on'\n action:\n - service: light.turn_off\n entity_id: light.kitchen_lights\n - service: input_boolean.turn_off\n entity_id: input_boolean.kitchen_lights_auto",
|
|
"config": [
|
|
{
|
|
"name": "bad weather",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.bad_weather",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "sun sun",
|
|
"room": null,
|
|
"type": "sun",
|
|
"id": {
|
|
"entity_id": "sun.sun",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "lighting automations",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.lighting_automations",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input select kitchen",
|
|
"room": "kitchen",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.kitchen",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "sensor kitchen illuminance",
|
|
"room": "kitchen",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.kitchen_illuminance",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean kitchen lighting automations",
|
|
"room": "kitchen",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.kitchen_lighting_automations",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean kitchen lights auto",
|
|
"room": "kitchen",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.kitchen_lights_auto",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "sensor kitchen motion sensor table illuminance",
|
|
"room": "kitchen",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.kitchen_motion_sensor_table_illuminance",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "sensor kitchen motion sensor main illuminance",
|
|
"room": "kitchen",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.kitchen_motion_sensor_main_illuminance",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "light kitchen lights",
|
|
"room": "kitchen",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.kitchen_lights",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "kitchen_lights_day_on",
|
|
"automation": "- id: kitchen_lights_day_on\n initial_state: true\n alias: Kitchen Lights Day On\n trigger:\n - platform: numeric_state\n entity_id: sensor.kitchen_illuminance\n below: 150\n for:\n minutes: 2\n - platform: numeric_state\n entity_id: sensor.kitchen_illuminance\n below: 125\n for:\n minutes: 5\n - platform: numeric_state\n entity_id: sensor.kitchen_illuminance\n below: 100\n for:\n minutes: 10\n - platform: state\n entity_id: input_boolean.bad_weather\n to: 'on'\n - platform: state\n entity_id: input_boolean.lighting_automations\n to: 'on'\n - platform: state\n entity_id: input_boolean.kitchen_lighting_automations\n to: 'on'\n condition:\n - condition: state\n entity_id: input_boolean.lighting_automations\n state: 'on'\n - condition: state\n entity_id: input_boolean.kitchen_lighting_automations\n state: 'on'\n - condition: state\n entity_id: input_select.kitchen\n state: Auto\n - condition: state\n entity_id: input_boolean.kitchen_occupied\n state: 'on'\n - condition: state\n entity_id: sun.sun\n state: above_horizon\n - condition: numeric_state\n entity_id: sensor.kitchen_motion_sensor_main_illuminance\n below: 150\n - condition: state\n entity_id: light.kitchen_lights\n state: 'off'\n action:\n - service: light.turn_on\n entity_id: light.kitchen_lights\n data:\n transition: 5\n - service: input_boolean.turn_on\n entity_id: input_boolean.kitchen_lights_auto",
|
|
"config": [
|
|
{
|
|
"name": "bad weather",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.bad_weather",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "sun sun",
|
|
"room": null,
|
|
"type": "sun",
|
|
"id": {
|
|
"entity_id": "sun.sun",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "lighting automations",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.lighting_automations",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "kitchen occupied",
|
|
"room": "kitchen",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.kitchen_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean kitchen occupied",
|
|
"room": "kitchen",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.kitchen_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input select kitchen",
|
|
"room": "kitchen",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.kitchen",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "sensor kitchen illuminance",
|
|
"room": "kitchen",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.kitchen_illuminance",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean kitchen lighting automations",
|
|
"room": "kitchen",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.kitchen_lighting_automations",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean kitchen lights auto",
|
|
"room": "kitchen",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.kitchen_lights_auto",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "sensor kitchen motion sensor main illuminance",
|
|
"room": "kitchen",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.kitchen_motion_sensor_main_illuminance",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "light kitchen lights",
|
|
"room": "kitchen",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.kitchen_lights",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "kitchen_lights_dim_motion_off",
|
|
"automation": "- id: kitchen_lights_dim_motion_off\n initial_state: false\n alias: Kitchen Lights Dim Motion Off\n trigger:\n - platform: state\n entity_id: binary_sensor.kitchen_motion_sensor_status\n to: 'off'\n for:\n minutes: 3\n - platform: state\n entity_id: input_boolean.kitchen_occupied\n to: 'off'\n condition:\n - condition: state\n entity_id: input_boolean.lighting_automations\n state: 'on'\n - condition: state\n entity_id: input_select.kitchen\n state: Dim\n - condition: or\n conditions:\n - condition: state\n entity_id: input_boolean.kitchen_lights_auto\n state: 'on'\n - condition: state\n entity_id: input_boolean.kitchen_occupied\n state: 'off'\n - condition: state\n entity_id: binary_sensor.kitchen_motion_sensor_status\n state: 'off'\n action:\n - service: light.turn_off\n entity_id: light.kitchen_lights\n data:\n brightness_pct: 5\n transition: 1\n - service: automation.turn_off\n entity_id: automation.kitchen_lights_dim_motion_off",
|
|
"config": [
|
|
{
|
|
"name": "kitchen motion sensor status",
|
|
"room": "kitchen",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.kitchen_motion_sensor_status",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "lighting automations",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.lighting_automations",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "kitchen occupied",
|
|
"room": "kitchen",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.kitchen_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean kitchen occupied",
|
|
"room": "kitchen",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.kitchen_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input select kitchen",
|
|
"room": "kitchen",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.kitchen",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean kitchen lights auto",
|
|
"room": "kitchen",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.kitchen_lights_auto",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "light kitchen lights",
|
|
"room": "kitchen",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.kitchen_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "binary sensor kitchen motion sensor status",
|
|
"room": "kitchen",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.kitchen_motion_sensor_status",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Kitchen Lights Dim Motion Off",
|
|
"room": "Kitchen",
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.kitchen_lights_dim_motion_off",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "kitchen_lights_dim_motion_on",
|
|
"automation": "- id: kitchen_lights_dim_motion_on\n initial_state: false\n alias: Kitchen Lights Dim Motion On\n trigger:\n - platform: state\n entity_id: binary_sensor.kitchen_motion_sensor_status\n to: 'on'\n condition:\n - condition: state\n entity_id: input_boolean.lighting_automations\n state: 'on'\n - condition: state\n entity_id: input_boolean.kitchen_lighting_automations\n state: 'on'\n - condition: state\n entity_id: input_select.kitchen\n state: Dim\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n - condition: state\n entity_id:\n - light.kitchen_main_light_switch\n - light.kitchen_table_light_switch\n state: 'off'\n action:\n - service: light.turn_on\n entity_id: light.kitchen_lights\n data:\n brightness_pct: 40\n transition: 0.5\n - service: automation.turn_on\n entity_id: automation.kitchen_lights_dim_motion_off\n - service: input_boolean.turn_on\n entity_id: input_boolean.kitchen_lights_auto",
|
|
"config": [
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "kitchen main light switch",
|
|
"room": "kitchen",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.kitchen_main_light_switch",
|
|
"device_id": "59ca60e52d36629d4f1c5cca974d0cfa"
|
|
}
|
|
},
|
|
{
|
|
"name": "kitchen motion sensor status",
|
|
"room": "kitchen",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.kitchen_motion_sensor_status",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "lighting automations",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.lighting_automations",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input select kitchen",
|
|
"room": "kitchen",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.kitchen",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean kitchen lighting automations",
|
|
"room": "kitchen",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.kitchen_lighting_automations",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean kitchen lights auto",
|
|
"room": "kitchen",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.kitchen_lights_auto",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "light kitchen lights",
|
|
"room": "kitchen",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.kitchen_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "light kitchen table light switch",
|
|
"room": "kitchen",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.kitchen_table_light_switch",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "binary sensor kitchen motion sensor status",
|
|
"room": "kitchen",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.kitchen_motion_sensor_status",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Kitchen Lights Dim Motion Off",
|
|
"room": "Kitchen",
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.kitchen_lights_dim_motion_off",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "kitchen_lights_manually_turned_on",
|
|
"automation": "- id: kitchen_lights_manually_turned_on\n initial_state: true\n alias: Kitchen lights Manually Turned On\n trigger:\n - platform: state\n entity_id: light.kitchen_lights\n to: 'on'\n condition:\n - condition: template\n value_template: '{{ trigger.to_state.context.parent_id == none }}'\n action:\n - service: input_boolean.turn_off\n entity_id: input_boolean.kitchen_lights_auto\n - service: input_boolean.turn_off\n entity_id: input_boolean.kitchen_lighting_automations\n - service: script.general_notification\n data:\n title: Kitchen Lights\n message: The kitchen lights have been manually turned ON. The parent id is {{trigger.to_state.context.parent_id}}\n and the user_id is {{trigger.to_state.context.user_id}}.\n devices: jk\n priority: passive\n tag: kitchen-lighting-automation",
|
|
"config": [
|
|
{
|
|
"name": "general notification script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.general_notification",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean kitchen lighting automations",
|
|
"room": "kitchen",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.kitchen_lighting_automations",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean kitchen lights auto",
|
|
"room": "kitchen",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.kitchen_lights_auto",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "light kitchen lights",
|
|
"room": "kitchen",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.kitchen_lights",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "kitchen_lights_motion_on",
|
|
"automation": "- id: kitchen_lights_motion_on\n initial_state: true\n alias: Kitchen Lights Motion On\n trigger:\n - platform: state\n entity_id: binary_sensor.kitchen_motion_sensor_status\n to: 'on'\n condition:\n - condition: state\n entity_id: input_boolean.lighting_automations\n state: 'on'\n - condition: state\n entity_id: input_boolean.kitchen_lighting_automations\n state: 'on'\n - condition: or\n conditions:\n - condition: state\n entity_id: input_select.kitchen\n state: Auto\n - condition: state\n entity_id: input_select.kitchen\n state: Dim\n - condition: or\n conditions:\n - condition: state\n entity_id: light.kitchen_main_light_switch\n state: 'off'\n - condition: state\n entity_id: light.kitchen_table_light_switch\n state: 'off'\n - condition: or\n conditions:\n - condition: numeric_state\n entity_id: sensor.kitchen_motion_sensor_main_illuminance\n below: 150\n - condition: numeric_state\n entity_id: sensor.kitchen_motion_sensor_table_illuminance\n below: 150\n action:\n - choose:\n - conditions:\n - condition: state\n entity_id: input_select.kitchen\n state: Auto\n sequence:\n - service: light.turn_on\n entity_id: light.kitchen_lights\n data:\n transition: 5\n - conditions:\n - condition: state\n entity_id: input_select.kitchen\n state: Dim\n sequence:\n - service: light.turn_on\n entity_id: light.kitchen_lights\n data:\n brightness_pct: 35\n transition: 1\n - service: input_boolean.turn_on\n entity_id: input_boolean.kitchen_lights_auto",
|
|
"config": [
|
|
{
|
|
"name": "kitchen main light switch",
|
|
"room": "kitchen",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.kitchen_main_light_switch",
|
|
"device_id": "59ca60e52d36629d4f1c5cca974d0cfa"
|
|
}
|
|
},
|
|
{
|
|
"name": "kitchen motion sensor status",
|
|
"room": "kitchen",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.kitchen_motion_sensor_status",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "lighting automations",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.lighting_automations",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input select kitchen",
|
|
"room": "kitchen",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.kitchen",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean kitchen lighting automations",
|
|
"room": "kitchen",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.kitchen_lighting_automations",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean kitchen lights auto",
|
|
"room": "kitchen",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.kitchen_lights_auto",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "sensor kitchen motion sensor table illuminance",
|
|
"room": "kitchen",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.kitchen_motion_sensor_table_illuminance",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "sensor kitchen motion sensor main illuminance",
|
|
"room": "kitchen",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.kitchen_motion_sensor_main_illuminance",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "light kitchen lights",
|
|
"room": "kitchen",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.kitchen_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "light kitchen table light switch",
|
|
"room": "kitchen",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.kitchen_table_light_switch",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "binary sensor kitchen motion sensor status",
|
|
"room": "kitchen",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.kitchen_motion_sensor_status",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "kitchen_lights_sleep_mode_off",
|
|
"automation": "- id: kitchen_lights_sleep_mode_off\n initial_state: false\n alias: Kitchen Lights Sleep Mode Off\n trigger:\n - platform: sun\n event: sunrise\n offset: 00:15:00\n - platform: time\n at: 07:00:00\n condition:\n - condition: state\n entity_id: input_boolean.lighting_automations\n state: 'on'\n - condition: or\n conditions:\n - condition: sun\n after: sunrise\n - condition: time\n after: 07:00:00\n action:\n - service: switch.turn_off\n entity_id: switch.adaptive_lighting_sleep_mode_kitchen\n - service: automation.turn_off\n entity_id: automation.kitchen_lights_sleep_mode_off",
|
|
"config": [
|
|
{
|
|
"name": "lighting automations",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.lighting_automations",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "switch adaptive lighting sleep mode kitchen",
|
|
"room": "kitchen",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.adaptive_lighting_sleep_mode_kitchen",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Kitchen Lights Sleep Mode Off",
|
|
"room": "Kitchen",
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.kitchen_lights_sleep_mode_off",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "kitchen_lights_sleep_mode_on",
|
|
"automation": "- id: kitchen_lights_sleep_mode_on\n initial_state: true\n alias: Kitchen Lights Sleep Mode On\n trigger:\n - platform: state\n entity_id: input_boolean.bedtime\n to: 'on'\n - platform: time\n at: '23:00:00'\n - platform: time\n at: 03:00:00\n condition:\n - condition: state\n entity_id: input_boolean.lighting_automations\n state: 'on'\n - condition: sun\n after: sunset\n - condition: state\n entity_id: input_boolean.dark_outside\n state: 'on'\n - condition: time\n after: '20:00:00'\n action:\n - service: switch.turn_on\n entity_id: switch.adaptive_lighting_sleep_mode_kitchen\n - service: automation.turn_on\n entity_id: automation.kitchen_lights_sleep_mode_off",
|
|
"config": [
|
|
{
|
|
"name": "bedtime",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.bedtime",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "dark outside",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.dark_outside",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "lighting automations",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.lighting_automations",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "switch adaptive lighting sleep mode kitchen",
|
|
"room": "kitchen",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.adaptive_lighting_sleep_mode_kitchen",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Kitchen Lights Sleep Mode Off",
|
|
"room": "Kitchen",
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.kitchen_lights_sleep_mode_off",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "kitchen_lights_to_away",
|
|
"automation": "- id: kitchen_lights_to_away\n initial_state: true\n alias: Kitchen lights to away\n trigger:\n - platform: state\n entity_id: input_select.kitchen\n to: Away\n - platform: state\n entity_id: input_select.house\n to: Away\n condition:\n - condition: state\n entity_id: input_boolean.lighting_automations\n state: 'on'\n - condition: or\n conditions:\n - condition: state\n entity_id: input_select.kitchen\n state: Away\n - condition: and\n conditions:\n - condition: state\n entity_id: input_select.kitchen\n state: Auto\n - condition: state\n entity_id: input_select.house\n state: Away\n - condition: state\n entity_id: light.kitchen_lights\n state: 'on'\n action:\n - service: light.turn_off\n entity_id: light.kitchen_lights",
|
|
"config": [
|
|
{
|
|
"name": "house status",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.house",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "lighting automations",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.lighting_automations",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input select kitchen",
|
|
"room": "kitchen",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.kitchen",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "light kitchen lights",
|
|
"room": "kitchen",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.kitchen_lights",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "kitchen_lights_to_dim",
|
|
"automation": "- id: kitchen_lights_to_dim\n initial_state: false\n alias: Kitchen lights to Dim\n trigger:\n - platform: state\n entity_id: input_select.kitchen\n to: Dim\n - platform: state\n entity_id: input_select.house\n to: Dim\n condition:\n - condition: state\n entity_id: input_boolean.lighting_automations\n state: 'on'\n - condition: state\n entity_id: input_select.kitchen\n state: Dim\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n action:\n - service: light.turn_on\n entity_id: light.kitchen_lights\n data:\n brightness_pct: 5\n transition: 0.5",
|
|
"config": [
|
|
{
|
|
"name": "house status",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.house",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "lighting automations",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.lighting_automations",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input select kitchen",
|
|
"room": "kitchen",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.kitchen",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "light kitchen lights",
|
|
"room": "kitchen",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.kitchen_lights",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "kitchen_lights_to_off",
|
|
"automation": "- id: kitchen_lights_to_off\n initial_state: true\n alias: Kitchen Lights to off\n trigger:\n - platform: state\n entity_id: input_select.kitchen\n to: 'Off'\n - platform: state\n entity_id: input_boolean.kitchen_occupied\n to: 'off'\n - platform: state\n entity_id: input_boolean.kitchen_occupied\n to: 'off'\n for:\n minutes: 2\n - platform: state\n entity_id: input_boolean.lighting_automations\n to: 'on'\n condition:\n - condition: state\n entity_id: input_boolean.lighting_automations\n state: 'on'\n - condition: or\n conditions:\n - condition: state\n entity_id: input_boolean.kitchen_lighting_automations\n state: 'on'\n - condition: and\n conditions:\n - condition: state\n entity_id: input_boolean.kitchen_lighting_automations\n state: 'off'\n - condition: template\n value_template: '{{ trigger.entity_id == ''input_boolean.kitchen_occupied''\n }}'\n - condition: or\n conditions:\n - condition: state\n entity_id: input_select.kitchen\n state: 'Off'\n - condition: state\n entity_id: input_boolean.kitchen_occupied\n state: 'off'\n - condition: state\n entity_id: light.kitchen_lights\n state: 'on'\n action:\n - service: light.turn_off\n entity_id: light.kitchen_lights\n - service: input_boolean.turn_off\n entity_id: input_boolean.kitchen_lights_auto",
|
|
"config": [
|
|
{
|
|
"name": "lighting automations",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.lighting_automations",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "kitchen occupied",
|
|
"room": "kitchen",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.kitchen_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean kitchen occupied",
|
|
"room": "kitchen",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.kitchen_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input select kitchen",
|
|
"room": "kitchen",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.kitchen",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean kitchen lighting automations",
|
|
"room": "kitchen",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.kitchen_lighting_automations",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean kitchen lights auto",
|
|
"room": "kitchen",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.kitchen_lights_auto",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "light kitchen lights",
|
|
"room": "kitchen",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.kitchen_lights",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "kitchen_lights_manually_turned_off",
|
|
"automation": "- id: kitchen_lights_manually_turned_off\n initial_state: true\n alias: Kitchen lights Manually Turned Off\n trigger:\n - platform: state\n entity_id: light.kitchen_lights\n to: 'off'\n condition:\n - condition: state\n entity_id: input_boolean.kitchen_lights_auto\n state: 'on'\n - condition: template\n value_template: '{{ trigger.to_state.context.parent_id == none }}'\n action:\n - service: input_boolean.turn_off\n entity_id: input_boolean.kitchen_lights_auto\n - service: input_boolean.turn_off\n entity_id: input_boolean.kitchen_lighting_automations\n - service: script.general_notification\n data:\n title: Kitchen Lights\n message: The kitchen lights have been turned off. The parent id is {{trigger.to_state.context.parent_id}}\n and the user_id is {{trigger.to_state.context.user_id}}.\n devices: jk\n priority: passive\n tag: kitchen-lighting-automation",
|
|
"config": [
|
|
{
|
|
"name": "general notification script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.general_notification",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean kitchen lighting automations",
|
|
"room": "kitchen",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.kitchen_lighting_automations",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean kitchen lights auto",
|
|
"room": "kitchen",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.kitchen_lights_auto",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "light kitchen lights",
|
|
"room": "kitchen",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.kitchen_lights",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "kitchen_mode_auto",
|
|
"automation": "- id: kitchen_mode_auto\n initial_state: true\n alias: Kitchen mode Auto\n trigger:\n - platform: state\n entity_id: input_boolean.kitchen_occupied\n to: 'on'\n - platform: state\n entity_id: input_select.house\n to: Auto\n - platform: state\n entity_id: input_boolean.house_occupied\n to: 'on'\n condition:\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n - condition: template\n value_template: '{{ not is_state(''input_select.kitchen'',''Auto'') }}'\n - condition: state\n entity_id: input_boolean.bedtime\n state: 'off'\n - condition: state\n entity_id: input_select.house\n state: Auto\n action:\n - service: input_select.select_option\n data:\n entity_id: input_select.kitchen\n option: Auto",
|
|
"config": [
|
|
{
|
|
"name": "bedtime",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.bedtime",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "house status",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.house",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "kitchen occupied",
|
|
"room": "kitchen",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.kitchen_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean kitchen occupied",
|
|
"room": "kitchen",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.kitchen_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input select kitchen",
|
|
"room": "kitchen",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.kitchen",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "kitchen_mode_dim",
|
|
"automation": "- id: kitchen_mode_dim\n initial_state: true\n alias: Kitchen Mode Dim\n trigger:\n - platform: state\n entity_id: binary_sensor.evening_chill\n to: 'on'\n - platform: state\n entity_id: media_player.sony_bravia_tv\n to: playing\n - platform: state\n entity_id: light.family_room_main_lights\n to: 'off'\n - platform: state\n entity_id: input_boolean.kitchen_occupied\n to: 'off'\n condition:\n - condition: state\n entity_id: input_boolean.lighting_automations\n state: 'on'\n - condition: state\n entity_id: input_boolean.kitchen_lighting_automations\n state: 'on'\n - condition: state\n entity_id: input_boolean.guest_mode\n state: 'off'\n - condition: state\n entity_id: sun.sun\n state: below_horizon\n - condition: state\n entity_id: binary_sensor.evening_chill\n state: 'on'\n - condition: template\n value_template: '{{ not is_state(''input_select.kitchen'',''Dim'') }}'\n - condition: state\n entity_id: input_boolean.kitchen_occupied\n state: 'off'\n - condition: state\n entity_id: media_player.sony_bravia_tv\n state: playing\n - condition: state\n entity_id: light.family_room_main_lights\n state: 'off'\n action:\n - service: input_select.select_option\n data:\n entity_id: input_select.kitchen\n option: Dim",
|
|
"config": [
|
|
{
|
|
"name": "sony bravia tv",
|
|
"room": null,
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.sony_bravia_tv",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "family room main lights",
|
|
"room": "family room",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.family_room_main_lights",
|
|
"device_id": "44fcccda63e4e38e416babd3f3e1fded"
|
|
}
|
|
},
|
|
{
|
|
"name": "sun sun",
|
|
"room": null,
|
|
"type": "sun",
|
|
"id": {
|
|
"entity_id": "sun.sun",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "guest mode",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.guest_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "lighting automations",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.lighting_automations",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "kitchen occupied",
|
|
"room": "kitchen",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.kitchen_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean kitchen occupied",
|
|
"room": "kitchen",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.kitchen_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input select kitchen",
|
|
"room": "kitchen",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.kitchen",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean kitchen lighting automations",
|
|
"room": "kitchen",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.kitchen_lighting_automations",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "binary sensor evening chill",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.evening_chill",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "kitchen_mode_off",
|
|
"automation": "- id: kitchen_mode_off\n initial_state: true\n alias: Kitchen mode off\n trigger:\n - platform: state\n entity_id: input_boolean.house_occupied\n to: 'off'\n - platform: state\n entity_id: input_select.house\n to: Away\n - platform: state\n entity_id: input_boolean.bedtime\n to: 'on'\n - platform: homeassistant\n event: start\n - platform: event\n event_type: automation_reloaded\n condition:\n - condition: template\n value_template: '{{ not is_state(''input_select.kitchen'',''Off'') }}'\n - condition: or\n conditions:\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'off'\n - condition: state\n entity_id: input_select.house\n state: Away\n - condition: state\n entity_id: input_boolean.bedtime\n state: 'on'\n action:\n - service: input_select.select_option\n data:\n entity_id: input_select.kitchen\n option: 'Off'",
|
|
"config": [
|
|
{
|
|
"name": "bedtime",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.bedtime",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "house status",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.house",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input select kitchen",
|
|
"room": "kitchen",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.kitchen",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "kitchen_not_occupied",
|
|
"automation": "- id: kitchen_not_occupied\n initial_state: true\n alias: Kitchen not occupied\n triggers:\n - trigger: state\n entity_id: binary_sensor.kitchen_ble_occupancy\n to: 'off'\n for:\n minutes: 2\n - trigger: state\n entity_id: binary_sensor.kitchen_motion_sensor_status\n to: 'off'\n for:\n minutes: 5\n - trigger: state\n entity_id: binary_sensor.kitchen_motion_sensor_occupancy\n to: 'off'\n - trigger: state\n entity_id: binary_sensor.kitchen_motion_sensor_occupancy\n to: 'off'\n for:\n minutes: 5\n - trigger: state\n entity_id: binary_sensor.kitchen_presence_sensor\n to: 'off'\n conditions:\n - condition: state\n entity_id: input_boolean.kitchen_occupied\n state: 'on'\n - condition: state\n entity_id: binary_sensor.kitchen_presence_sensor\n state: 'off'\n - condition: state\n entity_id: binary_sensor.kitchen_motion_sensor_occupancy\n state: 'off'\n for:\n minutes: 5\n - condition: state\n entity_id: binary_sensor.kitchen_ble_occupancy\n state: 'off'\n actions:\n - action: input_boolean.turn_off\n entity_id: input_boolean.kitchen_occupied\n - alias: Wait 2 seconds\n delay: 2\n - action: input_boolean.turn_on\n entity_id: input_boolean.kitchen_lighting_automations",
|
|
"config": [
|
|
{
|
|
"name": "kitchen motion sensor status",
|
|
"room": "kitchen",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.kitchen_motion_sensor_status",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "kitchen occupied",
|
|
"room": "kitchen",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.kitchen_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean kitchen occupied",
|
|
"room": "kitchen",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.kitchen_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean kitchen lighting automations",
|
|
"room": "kitchen",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.kitchen_lighting_automations",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "binary sensor kitchen motion sensor status",
|
|
"room": "kitchen",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.kitchen_motion_sensor_status",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "binary sensor kitchen motion sensor occupancy",
|
|
"room": "kitchen",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.kitchen_motion_sensor_occupancy",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "binary sensor kitchen ble occupancy",
|
|
"room": "kitchen",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.kitchen_ble_occupancy",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "binary sensor kitchen presence sensor",
|
|
"room": "kitchen",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.kitchen_presence_sensor",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "kitchen_occupied",
|
|
"automation": "- id: kitchen_occupied\n initial_state: true\n alias: Kitchen occupied\n trigger:\n - platform: state\n entity_id: binary_sensor.kitchen_motion_sensor_status\n to: 'on'\n - platform: state\n entity_id: binary_sensor.kitchen_motion_sensor_occupancy\n to: 'on'\n - platform: state\n entity_id: light.kitchen_lights\n to: 'on'\n - platform: state\n entity_id: binary_sensor.kitchen_presence_sensor\n to: 'on'\n condition:\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n - condition: state\n entity_id: input_boolean.kitchen_occupied\n state: 'off'\n - condition: or\n conditions:\n - condition: state\n entity_id: binary_sensor.kitchen_ble_occupancy\n state: 'on'\n - condition: state\n entity_id: binary_sensor.kitchen_motion_sensor_occupancy\n state: 'on'\n - condition: state\n entity_id: binary_sensor.kitchen_presence_sensor\n state: 'on'\n action:\n - service: input_boolean.turn_on\n entity_id: input_boolean.kitchen_occupied",
|
|
"config": [
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "kitchen motion sensor status",
|
|
"room": "kitchen",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.kitchen_motion_sensor_status",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "kitchen occupied",
|
|
"room": "kitchen",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.kitchen_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean kitchen occupied",
|
|
"room": "kitchen",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.kitchen_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "light kitchen lights",
|
|
"room": "kitchen",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.kitchen_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "binary sensor kitchen motion sensor status",
|
|
"room": "kitchen",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.kitchen_motion_sensor_status",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "binary sensor kitchen motion sensor occupancy",
|
|
"room": "kitchen",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.kitchen_motion_sensor_occupancy",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "binary sensor kitchen ble occupancy",
|
|
"room": "kitchen",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.kitchen_ble_occupancy",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "binary sensor kitchen presence sensor",
|
|
"room": "kitchen",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.kitchen_presence_sensor",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "kitchen_speech_notifications_off",
|
|
"automation": "- id: kitchen_speech_notifications_off\n initial_state: true\n alias: Kitchen Speech Notifications Off\n trigger:\n - platform: state\n entity_id: input_boolean.kitchen_occupied\n to: 'off'\n action:\n - service: input_boolean.turn_off\n entity_id: input_boolean.kitchen_speech_notifications",
|
|
"config": [
|
|
{
|
|
"name": "kitchen occupied",
|
|
"room": "kitchen",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.kitchen_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean kitchen occupied",
|
|
"room": "kitchen",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.kitchen_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean kitchen speech notifications",
|
|
"room": "kitchen",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.kitchen_speech_notifications",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "kitchen_speech_notifications_on",
|
|
"automation": "- id: kitchen_speech_notifications_on\n initial_state: true\n alias: Kitchen Speech Notifications On\n trigger:\n - platform: state\n entity_id: input_boolean.kitchen_occupied\n to: 'on'\n - platform: state\n entity_id: input_select.kitchen\n to: Auto\n condition:\n - condition: state\n entity_id: input_boolean.kitchen_occupied\n state: 'on'\n - condition: or\n conditions:\n - condition: state\n entity_id: input_select.kitchen\n state: Auto\n - condition: state\n entity_id: input_select.kitchen\n state: Dim\n action:\n - service: input_boolean.turn_on\n entity_id: input_boolean.kitchen_speech_notifications",
|
|
"config": [
|
|
{
|
|
"name": "kitchen occupied",
|
|
"room": "kitchen",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.kitchen_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean kitchen occupied",
|
|
"room": "kitchen",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.kitchen_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean kitchen speech notifications",
|
|
"room": "kitchen",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.kitchen_speech_notifications",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input select kitchen",
|
|
"room": "kitchen",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.kitchen",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "kitchen_turn_off_purifier",
|
|
"automation": "- id: kitchen_turn_off_purifier\n alias: Kitchen Air Quality - Turn off Purifier\n mode: single\n initial_state: true\n triggers:\n - trigger: state\n entity_id: input_boolean.house_occupied\n to: 'off'\n - trigger: state\n entity_id: input_select.kitchen\n to: 'Off'\n actions:\n - action: fan.turn_off\n target:\n entity_id: fan.kitchen_air_purifier",
|
|
"config": [
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "fan kitchen air purifier",
|
|
"room": "kitchen",
|
|
"type": "fan",
|
|
"id": {
|
|
"entity_id": "fan.kitchen_air_purifier",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input select kitchen",
|
|
"room": "kitchen",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.kitchen",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "late_night_reminders",
|
|
"automation": "- id: late_night_reminders\n alias: Late Night Reminders\n mode: restart\n trigger:\n - platform: time\n at: '21:00:00'\n - platform: state\n entity_id: media_player.sony_bravia_tv\n to: 'off'\n condition:\n - condition: time\n after: '21:00:00'\n - condition: or\n conditions:\n - condition: state\n entity_id: binary_sensor.kitchen_motion_sensor_main_motion_detection\n state: 'on'\n - condition: and\n conditions:\n - condition: state\n entity_id: media_player.sony_bravia_tv\n state: 'off'\n - condition: template\n value_template: '{{ (as_timestamp(now()) - as_timestamp(states.media_player.sony_bravia_tv.last_updated))\n | int < 360 }}'\n action:\n - wait_template: '{{ is_state(''binary_sensor.kitchen_motion_sensor_main_motion_detection'',\n ''on'') }}'\n timeout: 00:05:00\n - alias: Wait 5 seconds\n delay: 5\n - service: media_player.volume_set\n data:\n entity_id: media_player.john_s_echo_show\n volume_level: 0.25\n - service: notify.alexa_media\n data:\n data:\n type: tts\n target: media_player.john_s_echo_show\n message: Hey there! Just wanted to remind you to run the dishwasher. Goodnight!",
|
|
"config": [
|
|
{
|
|
"name": "john's echo show",
|
|
"room": "john",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.john_s_echo_show",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "sony bravia tv",
|
|
"room": null,
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.sony_bravia_tv",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "binary sensor kitchen motion sensor main motion detection",
|
|
"room": "kitchen",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.kitchen_motion_sensor_main_motion_detection",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "notify alexa media",
|
|
"room": null,
|
|
"type": "notify",
|
|
"id": {
|
|
"entity_id": "notify.alexa_media",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "laundry_room_lights_motion_on",
|
|
"automation": "- id: laundry_room_lights_motion_on\n initial_state: true\n alias: Laundry Room lights Motion On\n trigger:\n - platform: state\n entity_id: binary_sensor.laundry_room_motion_sensor_motion\n to: 'on'\n condition:\n - condition: state\n entity_id: input_select.laundry_room\n state: Auto\n - condition: state\n entity_id: input_boolean.lighting_automations\n state: 'on'\n - condition: numeric_state\n entity_id: sensor.laundry_room_motion_sensor_illuminance\n below: 40\n - condition: state\n entity_id: light.laundry_room_main_lights\n state: 'off'\n action:\n - service: light.turn_on\n entity_id: light.laundry_room_main_lights\n - service: input_boolean.turn_on\n entity_id: input_boolean.laundry_room_lights_auto",
|
|
"config": [
|
|
{
|
|
"name": "lighting automations",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.lighting_automations",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "binary sensor laundry room motion sensor motion",
|
|
"room": "laundry room",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.laundry_room_motion_sensor_motion",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input select laundry room",
|
|
"room": "laundry room",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.laundry_room",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "sensor laundry room motion sensor illuminance",
|
|
"room": "laundry room",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.laundry_room_motion_sensor_illuminance",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "light laundry room main lights",
|
|
"room": "laundry room",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.laundry_room_main_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean laundry room lights auto",
|
|
"room": "laundry room",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.laundry_room_lights_auto",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "laundry_room_lights_off",
|
|
"automation": "- id: laundry_room_lights_off\n initial_state: true\n alias: Laundry Room lights off\n trigger:\n - platform: state\n entity_id: input_select.laundry_room\n to: 'Off'\n - platform: state\n entity_id: input_boolean.laundry_room_occupied\n to: 'off'\n - platform: state\n entity_id: input_boolean.lighting_automations\n to: 'on'\n condition:\n - condition: state\n entity_id: light.laundry_room_main_lights\n state: 'on'\n - condition: or\n conditions:\n - condition: state\n entity_id: input_select.laundry_room\n state: 'Off'\n - condition: state\n entity_id: input_boolean.laundry_room_occupied\n state: 'off'\n action:\n - service: light.turn_off\n entity_id: light.laundry_room_main_lights\n - service: input_boolean.turn_off\n entity_id: input_boolean.laundry_room_lights_auto",
|
|
"config": [
|
|
{
|
|
"name": "lighting automations",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.lighting_automations",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input select laundry room",
|
|
"room": "laundry room",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.laundry_room",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "light laundry room main lights",
|
|
"room": "laundry room",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.laundry_room_main_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean laundry room lights auto",
|
|
"room": "laundry room",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.laundry_room_lights_auto",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean laundry room occupied",
|
|
"room": "laundry room",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.laundry_room_occupied",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "laundry_room_mode_auto",
|
|
"automation": "- id: laundry_room_mode_auto\n initial_state: true\n alias: Laundry Room mode Auto\n trigger:\n - platform: state\n entity_id: input_boolean.laundry_room_occupied\n to: 'on'\n - platform: state\n entity_id: input_select.house\n to: Auto\n - platform: state\n entity_id: input_boolean.house_occupied\n to: 'on'\n condition:\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n - condition: template\n value_template: '{{ not is_state(''input_select.laundry_room'',''Auto'') }}'\n - condition: state\n entity_id: input_boolean.bedtime\n state: 'off'\n - condition: state\n entity_id: input_select.house\n state: Auto\n action:\n - service: input_select.select_option\n data:\n entity_id: input_select.laundry_room\n option: Auto",
|
|
"config": [
|
|
{
|
|
"name": "bedtime",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.bedtime",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "house status",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.house",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input select laundry room",
|
|
"room": "laundry room",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.laundry_room",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean laundry room occupied",
|
|
"room": "laundry room",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.laundry_room_occupied",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "laundry_room_mode_off",
|
|
"automation": "- id: laundry_room_mode_off\n initial_state: true\n alias: Laundry Room mode off\n trigger:\n - platform: state\n entity_id: input_boolean.house_occupied\n to: 'off'\n - platform: state\n entity_id: input_select.house\n to: Away\n - platform: state\n entity_id: input_boolean.bedtime\n to: 'on'\n - platform: homeassistant\n event: start\n - platform: event\n event_type: automation_reloaded\n condition:\n - condition: template\n value_template: '{{ not is_state(''input_select.laundry_room'',''Off'') }}'\n - condition: or\n conditions:\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'off'\n - condition: state\n entity_id: input_select.house\n state: Away\n - condition: state\n entity_id: input_boolean.bedtime\n state: 'on'\n action:\n - service: input_select.select_option\n data:\n entity_id: input_select.laundry_room\n option: 'Off'",
|
|
"config": [
|
|
{
|
|
"name": "bedtime",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.bedtime",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "house status",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.house",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input select laundry room",
|
|
"room": "laundry room",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.laundry_room",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "laundry_room_not_occupied",
|
|
"automation": "- id: laundry_room_not_occupied\n initial_state: true\n alias: Laundry Room not occupied\n trigger:\n - platform: state\n entity_id: binary_sensor.laundry_room_motion_sensor_motion\n to: 'off'\n for:\n minutes: 3\n - platform: state\n entity_id: binary_sensor.laundry_room_motion_sensor_motion\n to: 'off'\n for:\n minutes: 5\n - platform: state\n entity_id: binary_sensor.laundry_room_motion_sensor_occupancy\n to: 'off'\n condition:\n - condition: state\n entity_id: input_boolean.laundry_room_occupied\n state: 'on'\n - condition: state\n entity_id: binary_sensor.laundry_room_motion_sensor_motion\n state: 'off'\n - condition: template\n value_template: '{{ expand(''group.room_presence_devices'')|selectattr(''state'',\n ''eq'', ''mudroom'')|map(attribute=''name'')|list | length == 0 }}'\n action:\n - service: input_boolean.turn_off\n entity_id: input_boolean.laundry_room_occupied\n - alias: Wait 2 seconds\n delay: 2\n - service: input_boolean.turn_on\n entity_id: input_boolean.laundry_room_lighting_automations",
|
|
"config": [
|
|
{
|
|
"name": "room presence devices group",
|
|
"room": null,
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "group.room_presence_devices",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "binary sensor laundry room motion sensor motion",
|
|
"room": "laundry room",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.laundry_room_motion_sensor_motion",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean laundry room occupied",
|
|
"room": "laundry room",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.laundry_room_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "binary sensor laundry room motion sensor occupancy",
|
|
"room": "laundry room",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.laundry_room_motion_sensor_occupancy",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean laundry room lighting automations",
|
|
"room": "laundry room",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.laundry_room_lighting_automations",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "laundry_room_occupied",
|
|
"automation": "- id: laundry_room_occupied\n initial_state: true\n alias: Laundry Room occupied\n trigger:\n - platform: state\n entity_id: binary_sensor.laundry_room_motion_sensor_motion\n to: 'on'\n - platform: state\n entity_id: switch.laundry_room_main_lights\n to: 'on'\n - platform: event\n event_type: automation_reloaded\n - platform: homeassistant\n event: start\n condition:\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n - condition: state\n entity_id: input_boolean.laundry_room_occupied\n state: 'off'\n - condition: or\n conditions:\n - condition: state\n entity_id: binary_sensor.laundry_room_motion_sensor_occupancy\n state: 'on'\n - condition: state\n entity_id: binary_sensor.laundry_room_motion_sensor_motion\n state: 'on'\n action:\n - service: input_boolean.turn_on\n entity_id: input_boolean.laundry_room_occupied",
|
|
"config": [
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "binary sensor laundry room motion sensor motion",
|
|
"room": "laundry room",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.laundry_room_motion_sensor_motion",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean laundry room occupied",
|
|
"room": "laundry room",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.laundry_room_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "switch laundry room main lights",
|
|
"room": "laundry room",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.laundry_room_main_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "binary sensor laundry room motion sensor occupancy",
|
|
"room": "laundry room",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.laundry_room_motion_sensor_occupancy",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "main_bathroom_bedtime_motion_on",
|
|
"automation": "- id: main_bathroom_bedtime_motion_on\n initial_state: true\n alias: Main Bathroom Bedtime Motion On\n trigger:\n - platform: state\n entity_id: binary_sensor.main_bathroom_motion_sensor_status\n to: 'on'\n condition:\n - condition: state\n entity_id: input_boolean.lighting_automations\n state: 'on'\n - condition: state\n entity_id: input_boolean.main_bathroom_lighting_automations\n state: 'on'\n - condition: state\n entity_id: input_select.main_bathroom\n state: Bedtime\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n - condition: numeric_state\n entity_id: sensor.main_bathroom_motion_sensor_illuminance\n below: 15\n action:\n - service: light.turn_on\n entity_id: light.main_bathroom_vanity_lights\n data:\n brightness_pct: 5\n transition: 0.5\n - service: input_boolean.turn_on\n entity_id: input_boolean.main_bathroom_lights_auto",
|
|
"config": [
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "lighting automations",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.lighting_automations",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "binary sensor main bathroom motion sensor status",
|
|
"room": "main bathroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.main_bathroom_motion_sensor_status",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean main bathroom lighting automations",
|
|
"room": "main bathroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.main_bathroom_lighting_automations",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input select main bathroom",
|
|
"room": "main bathroom",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.main_bathroom",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "sensor main bathroom motion sensor illuminance",
|
|
"room": "main bathroom",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.main_bathroom_motion_sensor_illuminance",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "light main bathroom vanity lights",
|
|
"room": "main bathroom",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.main_bathroom_vanity_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean main bathroom lights auto",
|
|
"room": "main bathroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.main_bathroom_lights_auto",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "main_bathroom_lights_motion_on",
|
|
"automation": "- id: main_bathroom_lights_motion_on\n initial_state: true\n alias: Main bathroom lights motion on\n trigger:\n - platform: state\n entity_id: binary_sensor.main_bathroom_motion_sensor_status\n to: 'on'\n condition:\n - condition: state\n entity_id: input_boolean.lighting_automations\n state: 'on'\n - condition: state\n entity_id: input_boolean.main_bathroom_lighting_automations\n state: 'on'\n - condition: state\n entity_id: input_select.main_bathroom\n state: Auto\n - condition: numeric_state\n entity_id: sensor.main_bathroom_motion_sensor_illuminance\n below: 80\n - condition: state\n entity_id: light.main_bathroom_main_lights\n state: 'off'\n action:\n - service: light.turn_on\n entity_id: light.main_bathroom_main_lights\n - service: input_boolean.turn_on\n entity_id: input_boolean.main_bathroom_lights_auto",
|
|
"config": [
|
|
{
|
|
"name": "lighting automations",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.lighting_automations",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "binary sensor main bathroom motion sensor status",
|
|
"room": "main bathroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.main_bathroom_motion_sensor_status",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean main bathroom lighting automations",
|
|
"room": "main bathroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.main_bathroom_lighting_automations",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input select main bathroom",
|
|
"room": "main bathroom",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.main_bathroom",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "sensor main bathroom motion sensor illuminance",
|
|
"room": "main bathroom",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.main_bathroom_motion_sensor_illuminance",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean main bathroom lights auto",
|
|
"room": "main bathroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.main_bathroom_lights_auto",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "main bathroom main lights",
|
|
"room": "main bathroom",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.main_bathroom_main_lights",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "main_bathroom_lights_off",
|
|
"automation": "- id: main_bathroom_lights_off\n initial_state: true\n alias: Main Bathroom - Lights Off\n trigger:\n - platform: state\n entity_id: input_select.main_bathroom\n to: 'Off'\n - platform: state\n entity_id: input_boolean.main_bathroom_occupied\n to: 'off'\n condition:\n - condition: state\n entity_id: input_boolean.lighting_automations\n state: 'on'\n - condition: state\n entity_id: input_boolean.main_bathroom_lighting_automations\n state: 'on'\n - condition: state\n entity_id: input_boolean.main_bathroom_occupied\n state: 'off'\n - condition: state\n entity_id: light.main_bathroom_lights\n state: 'on'\n action:\n - service: light.turn_off\n entity_id: light.main_bathroom_lights",
|
|
"config": [
|
|
{
|
|
"name": "lighting automations",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.lighting_automations",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean main bathroom lighting automations",
|
|
"room": "main bathroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.main_bathroom_lighting_automations",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input select main bathroom",
|
|
"room": "main bathroom",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.main_bathroom",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "main bathroom lights",
|
|
"room": "main bathroom",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.main_bathroom_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "main bathroom occupied",
|
|
"room": "main bathroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.main_bathroom_occupied",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "main_bathroom_lights_turned_off",
|
|
"automation": "- id: main_bathroom_lights_turned_off\n initial_state: true\n alias: Main Bathroom lights Manually Turned Off\n trigger:\n - platform: state\n entity_id: light.main_bathroom_main_lights\n to: 'off'\n condition:\n - condition: state\n entity_id: input_boolean.main_bathroom_lights_auto\n state: 'on'\n action:\n - service: input_boolean.turn_off\n entity_id: input_boolean.main_bathroom_lights_auto",
|
|
"config": [
|
|
{
|
|
"name": "input boolean main bathroom lights auto",
|
|
"room": "main bathroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.main_bathroom_lights_auto",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "main bathroom main lights",
|
|
"room": "main bathroom",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.main_bathroom_main_lights",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "main_bathroom_mode_auto",
|
|
"automation": "- id: main_bathroom_mode_auto\n initial_state: true\n alias: Main Bathroom mode auto\n triggers:\n - trigger: state\n entity_id: input_select.house\n to: Auto\n - trigger: state\n entity_id: input_boolean.main_bathroom_occupied\n to: 'off'\n - trigger: state\n entity_id: input_select.main_bathroom\n to: Wake\n for:\n minutes: 5\n - trigger: state\n entity_id: input_select.main_bedroom\n to: Wake\n - trigger: state\n entity_id: input_select.main_bedroom\n to: Auto\n - trigger: time\n at: 00:07:00\n - trigger: state\n entity_id: binary_sensor.bedtime\n to: 'off'\n conditions:\n - condition: template\n value_template: '{{ not is_state(''input_select.main_bathroom'',''Auto'') }}'\n - condition: state\n entity_id: input_boolean.bedtime\n state: 'off'\n - condition: template\n value_template: '{{ not is_state(''input_select.main_bedroom'',''Bedtime'') }}'\n actions:\n - action: input_select.select_option\n data:\n entity_id: input_select.main_bathroom\n option: Auto\n - action: automation.turn_off\n entity_id: automation.main_bathroom_bedtime_motion_on\n - action: automation.turn_on\n entity_id: automation.main_bathroom_lights_motion_on\n - action: switch.turn_off\n entity_id:\n - switch.adaptive_lighting_sleep_mode_main_bathroom\n - switch.adaptive_lighting_sleep_mode_main_bathroom_toilet",
|
|
"config": [
|
|
{
|
|
"name": "bedtime",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.bedtime",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "house status",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.house",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "main bedroom mode",
|
|
"room": "main bedroom",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.main_bedroom",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "binary sensor bedtime",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.bedtime",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input select main bathroom",
|
|
"room": "main bathroom",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.main_bathroom",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "main bathroom occupied",
|
|
"room": "main bathroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.main_bathroom_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "switch adaptive lighting sleep mode main bathroom",
|
|
"room": "main bathroom",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.adaptive_lighting_sleep_mode_main_bathroom",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "switch adaptive lighting sleep mode main bathroom toilet",
|
|
"room": "main bathroom",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.adaptive_lighting_sleep_mode_main_bathroom_toilet",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Main Bathroom Bedtime Motion On",
|
|
"room": "Main Bathroom",
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.main_bathroom_bedtime_motion_on",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Main Bathroom Lights Motion On",
|
|
"room": "Main Bathroom",
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.main_bathroom_lights_motion_on",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "main_bathroom_mode_bedtime",
|
|
"automation": "- id: main_bathroom_mode_bedtime\n initial_state: true\n alias: Main Bathroom mode bedtime\n triggers:\n - trigger: state\n entity_id: input_boolean.bedtime\n to: 'on'\n - trigger: state\n entity_id: binary_sensor.bedtime\n to: 'on'\n - trigger: state\n entity_id: input_select.main_bedroom\n to: Bedtime\n conditions:\n - condition: template\n value_template: '{{ not is_state(''input_select.main_bathroom'',''Bedtime'') }}'\n - condition: or\n conditions:\n - condition: state\n entity_id: input_boolean.bedtime\n state: 'on'\n - condition: state\n entity_id: input_select.main_bedroom\n state: Bedtime\n action:\n - action: input_select.select_option\n data:\n entity_id: input_select.main_bathroom\n option: Bedtime\n - choose:\n - conditions:\n - condition: state\n entity_id: input_boolean.main_bathroom_occupied\n state: 'on'\n sequence:\n - wait_for_trigger:\n - trigger: state\n entity_id: input_boolean.main_bathroom_occupied\n to: 'off'\n timeout:\n minutes: 10\n continue_on_timeout: true\n - action: script.turn_on\n entity_id: script.main_bathroom_activate_bedtime_lighting_mode\n default:\n - action: script.turn_on\n entity_id: script.main_bathroom_activate_bedtime_lighting_mode",
|
|
"config": [
|
|
{
|
|
"name": "bedtime",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.bedtime",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "main bedroom mode",
|
|
"room": "main bedroom",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.main_bedroom",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "binary sensor bedtime",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.bedtime",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input select main bathroom",
|
|
"room": "main bathroom",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.main_bathroom",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "main bathroom occupied",
|
|
"room": "main bathroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.main_bathroom_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Main Bathroom Activate Bedtime Lighting Mode",
|
|
"room": "Main Bathroom",
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.main_bathroom_activate_bedtime_lighting_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Turn On",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.turn_on",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "main_bathroom_mode_off",
|
|
"automation": "- id: main_bathroom_mode_off\n initial_state: true\n alias: Main Bathroom Mode Off\n trigger:\n - platform: state\n entity_id: input_boolean.house_occupied\n to: 'off'\n - platform: state\n entity_id: input_select.house\n to: Away\n - platform: homeassistant\n event: start\n - platform: event\n event_type: automation_reloaded\n condition:\n - condition: template\n value_template: '{{ not is_state(''input_select.main_bathroom'',''Off'') }}'\n - condition: or\n conditions:\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'off'\n - condition: state\n entity_id: input_select.house\n state: Away\n action:\n - service: input_select.select_option\n data:\n entity_id: input_select.main_bathroom\n option: 'Off'",
|
|
"config": [
|
|
{
|
|
"name": "house status",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.house",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input select main bathroom",
|
|
"room": "main bathroom",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.main_bathroom",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "main_bathroom_not_occupied",
|
|
"automation": "- id: main_bathroom_not_occupied\n initial_state: true\n alias: Main bathroom not occupied\n trigger:\n - platform: state\n entity_id: binary_sensor.main_bathroom_motion_sensor_occupancy\n to: 'off'\n - platform: template\n value_template: '{{ expand(''group.room_presence_devices'')|selectattr(''state'',\n ''eq'', ''main_bathroom'')|map(attribute=''name'')|list | length == 0 }}'\n for:\n minutes: 2\n - platform: state\n entity_id: input_boolean.main_bedroom_occupied\n to: 'off'\n - platform: state\n entity_id: input_boolean.main_bathroom_shower_occupied\n to: 'off'\n condition:\n - condition: state\n entity_id: input_boolean.main_bathroom_occupied\n state: 'on'\n - condition: state\n entity_id: binary_sensor.main_bathroom_motion_sensor_occupancy\n state: 'off'\n - condition: template\n value_template: '{{ expand(''group.room_presence_devices'')|selectattr(''state'',\n ''eq'', ''main_bathroom'')|map(attribute=''name'')|list | length == 0 }}'\n - condition: state\n entity_id: input_boolean.main_bathroom_shower_occupied\n state: 'off'\n action:\n - service: input_boolean.turn_off\n entity_id: input_boolean.main_bathroom_occupied\n - alias: Wait 2 seconds\n delay: 2\n - service: input_boolean.turn_on\n entity_id: input_boolean.main_bathroom_lighting_automations",
|
|
"config": [
|
|
{
|
|
"name": "room presence devices group",
|
|
"room": null,
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "group.room_presence_devices",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean main bathroom lighting automations",
|
|
"room": "main bathroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.main_bathroom_lighting_automations",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "main bathroom occupied",
|
|
"room": "main bathroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.main_bathroom_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "main bathroom motion sensor occupancy",
|
|
"room": "main bathroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.main_bathroom_motion_sensor_occupancy",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "main bathroom shower occupied",
|
|
"room": "main bathroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.main_bathroom_shower_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Main Bedroom Occupied",
|
|
"room": "Main Bedroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.main_bedroom_occupied",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "main_bathroom_occupied",
|
|
"automation": "- id: main_bathroom_occupied\n initial_state: true\n alias: Main bathroom occupied\n trigger:\n - platform: state\n entity_id: binary_sensor.main_bathroom_motion_sensor_status\n to: 'on'\n - platform: state\n entity_id: binary_sensor.main_bathroom_motion_sensor_occupancy\n to: 'on'\n - platform: state\n entity_id: binary_sensor.main_bathroom_door_sensor_status\n - platform: event\n event_type: automation_reloaded\n - platform: homeassistant\n event: start\n condition:\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n - condition: state\n entity_id: input_boolean.main_bathroom_occupied\n state: 'off'\n - condition: or\n conditions:\n - condition: template\n value_template: '{{ expand(''group.room_presence_devices'')|selectattr(''state'',\n ''eq'', ''main_bathroom'')|map(attribute=''name'')|list | length > 0 }}'\n - condition: state\n entity_id: binary_sensor.main_bathroom_motion_sensor_occupancy\n state: 'on'\n action:\n - service: input_boolean.turn_on\n entity_id: input_boolean.main_bathroom_occupied",
|
|
"config": [
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "room presence devices group",
|
|
"room": null,
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "group.room_presence_devices",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "binary sensor main bathroom motion sensor status",
|
|
"room": "main bathroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.main_bathroom_motion_sensor_status",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "main bathroom occupied",
|
|
"room": "main bathroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.main_bathroom_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "main bathroom motion sensor occupancy",
|
|
"room": "main bathroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.main_bathroom_motion_sensor_occupancy",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "main bathroom door sensor status",
|
|
"room": "main bathroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.main_bathroom_door_sensor_status",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "main_bathroom_shower_occupied",
|
|
"automation": "- id: main_bathroom_shower_occupied\n alias: Main Bathroom Shower Occupied\n mode: single\n trigger:\n - platform: numeric_state\n entity_id: sensor.main_bathroom_humidity\n above: 60\n - platform: template\n value_template: '{{ (states.sensor.main_bathroom_humidity.state | int) - (states.input_number.main_bathroom_initial_humidity.state\n | int) > 25 }}'\n - platform: template\n value_template: '{{ (states.sensor.main_bathroom_humidity.state | int) - (states.input_number.main_bathroom_initial_humidity.state\n | int) > 40 }}'\n condition:\n - condition: state\n entity_id: input_boolean.main_bathroom_occupied\n state: 'on'\n - condition: template\n value_template: '{{ (states.sensor.main_bathroom_humidity.state | int) - (states.input_number.main_bathroom_initial_humidity.state\n | int) > 25 }}'\n action:\n - service: input_boolean.turn_on\n entity_id: input_boolean.main_bathroom_shower_occupied",
|
|
"config": [
|
|
{
|
|
"name": "main bathroom occupied",
|
|
"room": "main bathroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.main_bathroom_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "main bathroom shower occupied",
|
|
"room": "main bathroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.main_bathroom_shower_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "main bathroom humidity",
|
|
"room": "main bathroom",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.main_bathroom_humidity",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "main bathroom initial humidity",
|
|
"room": "main bathroom",
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.main_bathroom_initial_humidity",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "main_bathroom_shower_not_occupied",
|
|
"automation": "- id: main_bathroom_shower_not_occupied\n alias: Main Bathroom Shower Not Occupied\n mode: single\n trigger:\n - platform: numeric_state\n entity_id: sensor.main_bathroom_humidity\n below: 85\n - platform: numeric_state\n entity_id: sensor.main_bathroom_humidity\n below: 75\n - platform: numeric_state\n entity_id: sensor.main_bathroom_humidity\n below: 65\n - platform: template\n value_template: '{{ (states.sensor.main_bathroom_humidity.state | int) - (states.input_number.main_bathroom_initial_humidity.state\n | int) < 23 }}'\n for:\n minutes: 4\n condition:\n - condition: template\n value_template: '{{ (states.sensor.main_bathroom_humidity.state | int) - (states.input_number.main_bathroom_initial_humidity.state\n | int) < 25 }}'\n - condition: state\n entity_id: input_boolean.main_bathroom_shower_occupied\n state: 'on'\n action:\n - service: input_boolean.turn_off\n entity_id: input_boolean.main_bathroom_shower_occupied",
|
|
"config": [
|
|
{
|
|
"name": "main bathroom shower occupied",
|
|
"room": "main bathroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.main_bathroom_shower_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "main bathroom humidity",
|
|
"room": "main bathroom",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.main_bathroom_humidity",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "main bathroom initial humidity",
|
|
"room": "main bathroom",
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.main_bathroom_initial_humidity",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "main_bathroom_set_initial_humidity",
|
|
"automation": "- id: main_bathroom_set_initial_humidity\n alias: Main bathroom Set Initial Humidity\n mode: single\n trigger:\n - platform: state\n entity_id: input_boolean.main_bathroom_occupied\n to: 'on'\n action:\n - service: input_number.set_value\n data:\n entity_id: input_number.main_bathroom_initial_humidity\n value: '{{ states.sensor.main_bathroom_humidity.state }}'",
|
|
"config": [
|
|
{
|
|
"name": "main bathroom occupied",
|
|
"room": "main bathroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.main_bathroom_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "main bathroom humidity",
|
|
"room": "main bathroom",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.main_bathroom_humidity",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "main bathroom initial humidity",
|
|
"room": "main bathroom",
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.main_bathroom_initial_humidity",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "main_bathroom_turn_off_outlets",
|
|
"automation": "- id: main_bathroom_turn_off_outlets\n initial_state: true\n alias: Main Bathroom - Turn Off Outlets\n trigger:\n - platform: state\n entity_id: input_select.main_bathroom\n to: 'Off'\n - platform: state\n entity_id: input_boolean.main_bathroom_occupied\n to: 'off'\n condition:\n - condition: state\n entity_id: input_boolean.main_bathroom_occupied\n state: 'off'\n - condition: or\n conditions:\n - condition: state\n entity_id: switch.smart_plug_12_switch\n state: 'on'\n - condition: state\n entity_id: switch.smart_plug_13_switch\n state: 'on'\n action:\n - service: switch.turn_off\n entity_id:\n - switch.smart_plug_12_switch\n - switch.smart_plug_13_switch",
|
|
"config": [
|
|
{
|
|
"name": "input select main bathroom",
|
|
"room": "main bathroom",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.main_bathroom",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "main bathroom occupied",
|
|
"room": "main bathroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.main_bathroom_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "switch smart plug 12",
|
|
"room": "main bathroom",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.smart_plug_12_switch",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "switch smart plug 13",
|
|
"room": "main bathroom",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.smart_plug_13_switch",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "main_bathroom_turn_on_outlets",
|
|
"automation": "- id: main_bathroom_turn_on_outlets\n initial_state: true\n alias: Main Bathroom - Turn On Outlets\n trigger:\n - platform: state\n entity_id: input_boolean.main_bathroom_occupied\n to: 'on'\n action:\n - service: switch.turn_on\n entity_id:\n - switch.smart_plug_12_switch\n - switch.smart_plug_13_switch",
|
|
"config": [
|
|
{
|
|
"name": "main bathroom occupied",
|
|
"room": "main bathroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.main_bathroom_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "switch smart plug 12",
|
|
"room": "main bathroom",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.smart_plug_12_switch",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "switch smart plug 13",
|
|
"room": "main bathroom",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.smart_plug_13_switch",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "main_bedroom_air_quality_detections",
|
|
"automation": "- id: main_bedroom_air_quality_detections\n alias: Main Bedroom Air Quality Sensor Detections\n mode: single\n initial_state: true\n triggers:\n - trigger: state\n entity_id: sensor.main_bedroom_air_quality\n - trigger: state\n entity_id: input_select.main_bedroom\n to: Bedtime\n - trigger: state\n entity_id: input_boolean.main_bedroom_occupied\n conditions:\n - or:\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n - condition: state\n entity_id: input_boolean.almost_home\n state: 'on'\n variables:\n purifier: fan.main_bedroom_air_purifier\n aqi_state: '{{ states.sensor.main_bedroom_air_quality.state }}'\n room_state: '{{ states.input_select.main_bedroom.state }}'\n actions:\n - action: script.air_quality_set_air_purifier_mode\n data:\n purifier: '{{ purifier }}'\n aqi_state: '{{ aqi_state }}'\n room_state: '{{ room_state }}'",
|
|
"config": [
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "main bedroom mode",
|
|
"room": "main bedroom",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.main_bedroom",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "almost home",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.almost_home",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "air quality set air purifier mode script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.air_quality_set_air_purifier_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "main bedroom air quality",
|
|
"room": "main bedroom",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.main_bedroom_air_quality",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "main bedroom air purifier",
|
|
"room": "main bedroom",
|
|
"type": "fan",
|
|
"id": {
|
|
"entity_id": "fan.main_bedroom_air_purifier",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Main Bedroom Occupied",
|
|
"room": "Main Bedroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.main_bedroom_occupied",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "main_bedroom_john_night_light",
|
|
"automation": "- id: main_bedroom_john_night_light\n initial_state: true\n alias: Main bedroom night light for John\n trigger:\n - platform: state\n entity_id: binary_sensor.main_bedroom_motion_sensor_entry_motion\n to: 'on'\n - platform: state\n entity_id: binary_sensor.main_bedroom_door_sensor_status\n to: 'off'\n - platform: state\n entity_id: binary_sensor.main_bedroom_door_sensor_status\n to: 'on'\n condition:\n - condition: state\n entity_id: input_boolean.john_home\n state: 'on'\n - condition: state\n entity_id: light.hue_ambiance_lamp_1\n state: 'off'\n - condition: or\n conditions:\n - condition: state\n entity_id: input_select.main_bedroom\n state: Auto\n - condition: state\n entity_id: input_select.main_bedroom\n state: Bedtime\n - condition: state\n entity_id: input_boolean.main_bedroom_occupied\n state: 'on'\n - condition: numeric_state\n entity_id: sensor.main_bedroom_motion_sensor_entry_illuminance\n below: 40\n - condition: state\n entity_id: light.main_bedroom_main_lights\n state: 'off'\n - condition: state\n entity_id: input_boolean.cristina_in_bed\n state: 'on'\n - condition: state\n entity_id: input_boolean.john_is_in_bed\n state: 'off'\n - condition: state\n entity_id: input_select.john_sleep_state\n state: Awake\n for:\n minutes: 10\n - condition: state\n entity_id: binary_sensor.bedtime\n state: 'on'\n - condition: time\n after: '20:00:00'\n before: 05:00:00\n action:\n - service: light.turn_on\n entity_id: light.hue_ambiance_lamp_1\n data:\n brightness_pct: 30\n transition: 0.5",
|
|
"config": [
|
|
{
|
|
"name": "john home",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.john_home",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "main bedroom mode",
|
|
"room": "main bedroom",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.main_bedroom",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "cristina in bed",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.cristina_in_bed",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input select john sleep state",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.john_sleep_state",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean john is in bed",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.john_is_in_bed",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "binary sensor bedtime",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.bedtime",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "binary sensor main bedroom door sensor status",
|
|
"room": "main bedroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.main_bedroom_door_sensor_status",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "main bedroom motion sensor entry motion",
|
|
"room": "main bedroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.main_bedroom_motion_sensor_entry_motion",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "hue ambiance lamp 1",
|
|
"room": "main bedroom",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.hue_ambiance_lamp_1",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "main bedroom motion sensor entry illuminance",
|
|
"room": "main bedroom",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.main_bedroom_motion_sensor_entry_illuminance",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "main bedroom main lights",
|
|
"room": "main bedroom",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.main_bedroom_main_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "main bedroom motion sensor",
|
|
"room": "main bedroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.main_bedroom_motion_sensor",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Main Bedroom Occupied",
|
|
"room": "Main Bedroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.main_bedroom_occupied",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "main_bedroom_john_night_light_off",
|
|
"automation": "- id: main_bedroom_john_night_light_off\n initial_state: true\n alias: Main bedroom night light for John - Turn Off\n triggers:\n - trigger: state\n entity_id: input_boolean.john_is_in_bed\n to: 'on'\n for:\n minutes: 10\n - trigger: state\n entity_id: input_boolean.bedtime\n to: 'on'\n for:\n minutes: 5\n - trigger: state\n entity_id: light.hue_ambiance_lamp_1\n to: 'on'\n for:\n minutes: 10\n conditions:\n - condition: state\n entity_id: input_boolean.lighting_automations\n state: 'on'\n - condition: or\n conditions:\n - condition: state\n entity_id: input_select.main_bedroom\n state: Auto\n - condition: state\n entity_id: input_select.main_bedroom\n state: Bedtime\n - condition: state\n entity_id: input_boolean.main_bedroom_occupied\n state: 'on'\n - condition: state\n entity_id: input_boolean.john_is_in_bed\n state: 'on'\n for:\n minutes: 10\n actions:\n - action: light.turn_off\n entity_id:\n - light.hue_ambiance_lamp_1\n - light.hue_ambiance_lamp_1_2",
|
|
"config": [
|
|
{
|
|
"name": "bedtime",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.bedtime",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "main bedroom mode",
|
|
"room": "main bedroom",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.main_bedroom",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "lighting automations",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.lighting_automations",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean john is in bed",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.john_is_in_bed",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "hue ambiance lamp 1",
|
|
"room": "main bedroom",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.hue_ambiance_lamp_1",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "hue ambiance lamp 1 2",
|
|
"room": "main bedroom",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.hue_ambiance_lamp_1_2",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Main Bedroom Occupied",
|
|
"room": "Main Bedroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.main_bedroom_occupied",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "main_bedroom_lights_day_on",
|
|
"automation": "- id: main_bedroom_lights_day_on\n initial_state: true\n alias: Main bedroom lights day on\n trigger:\n - platform: numeric_state\n entity_id:\n - sensor.main_bedroom_motion_sensor_entry_illuminance\n - sensor.main_bedroom_motion_sensor_back_illuminance\n below: 150\n for:\n minutes: 2\n - platform: numeric_state\n entity_id:\n - sensor.main_bedroom_motion_sensor_entry_illuminance\n - sensor.main_bedroom_motion_sensor_back_illuminance\n below: 100\n for:\n minutes: 5\n - platform: numeric_state\n entity_id:\n - sensor.main_bedroom_motion_sensor_entry_illuminance\n - sensor.main_bedroom_motion_sensor_back_illuminance\n below: 100\n for:\n minutes: 10\n - platform: state\n entity_id: input_boolean.bad_weather\n to: 'on'\n - platform: state\n entity_id: input_boolean.lighting_automations\n to: 'on'\n - platform: state\n entity_id: input_boolean.main_bedroom_lighting_automations\n to: 'on'\n condition:\n - condition: state\n entity_id: input_boolean.lighting_automations\n state: 'on'\n - condition: state\n entity_id: input_boolean.main_bedroom_lighting_automations\n state: 'on'\n - condition: state\n entity_id: input_select.main_bedroom\n state: Auto\n - condition: state\n entity_id: input_boolean.main_bedroom_occupied\n state: 'on'\n - condition: numeric_state\n entity_id: sensor.main_bedroom_motion_sensor_entry_illuminance\n below: 150\n - condition: state\n entity_id: light.main_bedroom_main_lights\n state: 'off'\n action:\n - service: light.turn_on\n target:\n entity_id: light.main_bedroom_main_lights\n data:\n transition: 5\n - service: input_boolean.turn_on\n entity_id: input_boolean.main_bedroom_lights_auto",
|
|
"config": [
|
|
{
|
|
"name": "bad weather",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.bad_weather",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "main bedroom mode",
|
|
"room": "main bedroom",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.main_bedroom",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "lighting automations",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.lighting_automations",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "main bedroom motion sensor entry illuminance",
|
|
"room": "main bedroom",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.main_bedroom_motion_sensor_entry_illuminance",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "main bedroom main lights",
|
|
"room": "main bedroom",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.main_bedroom_main_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "main bedroom motion sensor back illuminance",
|
|
"room": "main bedroom",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.main_bedroom_motion_sensor_back_illuminance",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "main bedroom lighting automations",
|
|
"room": "main bedroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.main_bedroom_lighting_automations",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "main bedroom lights auto",
|
|
"room": "main bedroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.main_bedroom_lights_auto",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Main Bedroom Occupied",
|
|
"room": "Main Bedroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.main_bedroom_occupied",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "main_bedroom_lights_motion_on",
|
|
"automation": "- id: main_bedroom_lights_motion_on\n initial_state: true\n alias: Main bedroom lights motion on\n trigger:\n - platform: state\n entity_id: binary_sensor.main_bedroom_motion_sensor\n to: 'on'\n condition:\n - condition: state\n entity_id: input_boolean.lighting_automations\n state: 'on'\n - condition: state\n entity_id: input_boolean.main_bedroom_lighting_automations\n state: 'on'\n - condition: state\n entity_id: input_select.main_bedroom\n state: Auto\n - condition: numeric_state\n entity_id: sensor.main_bedroom_motion_sensor_entry_illuminance\n below: 80\n - condition: state\n entity_id: light.main_bedroom_main_lights\n state: 'off'\n action:\n - service: light.turn_on\n target:\n entity_id: light.main_bedroom_main_lights\n data:\n transition: 5\n - service: input_boolean.turn_on\n entity_id: input_boolean.main_bedroom_lights_auto",
|
|
"config": [
|
|
{
|
|
"name": "main bedroom mode",
|
|
"room": "main bedroom",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.main_bedroom",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "lighting automations",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.lighting_automations",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "main bedroom motion sensor entry illuminance",
|
|
"room": "main bedroom",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.main_bedroom_motion_sensor_entry_illuminance",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "main bedroom main lights",
|
|
"room": "main bedroom",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.main_bedroom_main_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "main bedroom lighting automations",
|
|
"room": "main bedroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.main_bedroom_lighting_automations",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "main bedroom lights auto",
|
|
"room": "main bedroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.main_bedroom_lights_auto",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "main bedroom motion sensor",
|
|
"room": "main bedroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.main_bedroom_motion_sensor",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "main_bedroom_lights_off",
|
|
"automation": "- id: main_bedroom_lights_off\n initial_state: true\n alias: Main bedroom lights off\n trigger:\n - platform: state\n entity_id: input_select.main_bedroom\n to: 'Off'\n - platform: state\n entity_id: input_select.house\n to: 'Off'\n - platform: state\n entity_id: input_boolean.main_bedroom_occupied\n to: 'off'\n - platform: state\n entity_id: input_boolean.main_bedroom_lighting_automations\n from: 'off'\n to: 'on'\n condition:\n - condition: state\n entity_id: input_boolean.lighting_automations\n state: 'on'\n - condition: or\n conditions:\n - condition: state\n entity_id: input_boolean.main_bedroom_lighting_automations\n state: 'on'\n - condition: state\n entity_id: input_select.main_bedroom\n state: 'Off'\n - condition: or\n conditions:\n - condition: state\n entity_id: input_boolean.main_bedroom_occupied\n state: 'off'\n - condition: state\n entity_id:\n - input_boolean.john_is_in_bed\n - input_boolean.cristina_in_bed\n state: 'on'\n - condition: state\n entity_id: input_boolean.bedtime\n state: 'on'\n - condition: state\n entity_id: light.main_bedroom_lights\n state: 'on'\n action:\n - service: light.turn_off\n entity_id: light.main_bedroom_lights",
|
|
"config": [
|
|
{
|
|
"name": "bedtime",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.bedtime",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "house status",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.house",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "main bedroom mode",
|
|
"room": "main bedroom",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.main_bedroom",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "cristina in bed",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.cristina_in_bed",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "lighting automations",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.lighting_automations",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean john is in bed",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.john_is_in_bed",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "main bedroom lighting automations",
|
|
"room": "main bedroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.main_bedroom_lighting_automations",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "main bedroom lights",
|
|
"room": "main bedroom",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.main_bedroom_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Main Bedroom Occupied",
|
|
"room": "Main Bedroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.main_bedroom_occupied",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "main_bedroom_lights_turned_off",
|
|
"automation": "- id: main_bedroom_lights_turned_off\n initial_state: true\n alias: Main Bedroom lights Manually Turned Off\n trigger:\n - platform: state\n entity_id: light.main_bedroom_main_lights\n to: 'off'\n condition:\n - condition: state\n entity_id: input_boolean.main_bedroom_lights_auto\n state: 'on'\n action:\n - service: input_boolean.turn_off\n entity_id: input_boolean.main_bedroom_lights_auto\n - service: input_boolean.turn_off\n entity_id: input_boolean.main_bedroom_lighting_automations",
|
|
"config": [
|
|
{
|
|
"name": "main bedroom main lights",
|
|
"room": "main bedroom",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.main_bedroom_main_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "main bedroom lighting automations",
|
|
"room": "main bedroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.main_bedroom_lighting_automations",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "main bedroom lights auto",
|
|
"room": "main bedroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.main_bedroom_lights_auto",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "main_bedroom_music_off",
|
|
"automation": "- id: main_bedroom_music_off\n initial_state: true\n alias: Main Bedroom Music Off\n trigger:\n - platform: state\n entity_id: input_boolean.main_bedroom_occupied\n to: 'off'\n - platform: state\n entity_id: input_select.main_bedroom\n to: 'Off'\n condition:\n - condition: state\n entity_id: input_boolean.main_bedroom_occupied\n state: 'off'\n - condition: state\n entity_id: binary_sensor.main_bedroom_ble_occupancy\n state: 'off'\n - condition: state\n entity_id: media_player.sonos_main_bedroom\n state: playing\n action:\n - service: media_player.unjoin\n entity_id: media_player.sonos_main_bedroom\n - service: media_player.media_pause\n entity_id: media_player.sonos_main_bedroom",
|
|
"config": [
|
|
{
|
|
"name": "main bedroom mode",
|
|
"room": "main bedroom",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.main_bedroom",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "sonos main bedroom",
|
|
"room": "main bedroom",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.sonos_main_bedroom",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "main bedroom ble occupancy",
|
|
"room": "main bedroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.main_bedroom_ble_occupancy",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Main Bedroom Occupied",
|
|
"room": "Main Bedroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.main_bedroom_occupied",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "main_bedroom_media_player_unjoin",
|
|
"automation": "- id: main_bedroom_media_player_unjoin\n initial_state: true\n alias: Main Bedroom Media Player Unjoin\n trigger:\n - platform: state\n entity_id: input_boolean.main_bedroom_occupied\n to: 'off'\n - platform: state\n entity_id: input_select.main_bedroom\n to: 'Off'\n - platform: state\n entity_id: media_player.sonos_main_bedroom\n to: paused\n for:\n minutes: 10\n - platform: state\n entity_id: media_player.sonos_main_bedroom\n to: paused\n for:\n minutes: 30\n condition:\n - condition: state\n entity_id: input_boolean.main_bedroom_occupied\n state: 'off'\n - condition: state\n entity_id: binary_sensor.main_bedroom_ble_occupancy\n state: 'off'\n - condition: state\n entity_id: media_player.sonos_main_bedroom\n state: paused\n - condition: template\n value_template: '{{ states.media_player.sonos_main_bedroom.attributes.group_members\n | count > 1 }}'\n action:\n - service: media_player.unjoin\n entity_id: media_player.sonos_main_bedroom",
|
|
"config": [
|
|
{
|
|
"name": "main bedroom mode",
|
|
"room": "main bedroom",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.main_bedroom",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "sonos main bedroom",
|
|
"room": "main bedroom",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.sonos_main_bedroom",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "main bedroom ble occupancy",
|
|
"room": "main bedroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.main_bedroom_ble_occupancy",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Main Bedroom Occupied",
|
|
"room": "Main Bedroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.main_bedroom_occupied",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "main_bedroom_mode_auto",
|
|
"automation": "- id: main_bedroom_mode_auto\n initial_state: true\n alias: Main Bedroom mode auto\n trigger:\n - platform: state\n entity_id: input_select.house\n to: Auto\n id: house_auto\n - platform: state\n entity_id: input_boolean.main_bedroom_occupied\n to: 'off'\n id: main_bedroom_unoccupied\n - platform: state\n entity_id: input_select.main_bedroom\n to: Wake\n for:\n minutes: 10\n id: main_bedroom_wake\n conditions:\n - condition: state\n entity_id:\n - binary_sensor.john_bed_occupied\n - binary_sensor.cristina_bed_occupied\n state: 'off'\n actions:\n - choose:\n - conditions:\n - condition: trigger\n id: main_bedroom_unoccupied\n sequence:\n - if:\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n then:\n - action: script.main_bedroom_mode_turn_on_auto\n default:\n - action: script.main_bedroom_mode_turn_on_auto",
|
|
"config": [
|
|
{
|
|
"name": "house status",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.house",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "main bedroom mode",
|
|
"room": "main bedroom",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.main_bedroom",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "cristina bed occupied",
|
|
"room": "cristina",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.cristina_bed_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "binary sensor john bed occupied",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.john_bed_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Main Bedroom Occupied",
|
|
"room": "Main Bedroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.main_bedroom_occupied",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "main_bedroom_mode_bedtime",
|
|
"automation": "- id: main_bedroom_mode_bedtime\n initial_state: true\n alias: Main Bedroom mode bedtime\n triggers:\n - trigger: state\n entity_id: input_boolean.bedtime\n to: 'on'\n - trigger: state\n entity_id: binary_sensor.bedtime\n to: 'on'\n - trigger: state\n entity_id:\n - input_boolean.john_is_in_bed\n - input_boolean.cristina_in_bed\n to: 'on'\n - trigger: state\n entity_id:\n - input_select.john_sleep_state\n - input_select.cristina_sleep_state\n to: Just Laid Down\n - trigger: state\n entity_id: light.main_bedroom_main_lights\n to: 'off'\n conditions:\n - condition: state\n entity_id: input_boolean.main_bedroom_occupied\n state: 'on'\n - condition: template\n value_template: '{{ not is_state(''input_select.main_bedroom'',''Bedtime'') }}'\n - condition: state\n entity_id: light.main_bedroom_main_lights\n state: 'off'\n - condition: or\n conditions:\n - condition: state\n entity_id: input_boolean.bedtime\n state: 'on'\n - condition: state\n entity_id: input_boolean.john_is_in_bed\n state: 'on'\n - condition: state\n entity_id: input_boolean.cristina_in_bed\n state: 'on'\n - condition: state\n entity_id:\n - input_select.john_sleep_state\n - input_select.cristina_sleep_state\n state: Just Laid Down\n actions:\n - action: input_select.select_option\n data:\n entity_id: input_select.main_bedroom\n option: Bedtime\n - action: automation.turn_on\n entity_id:\n - automation.main_bedroom_john_night_light_off\n - automation.main_bedroom_night_light_for_john\n - action: switch.turn_on\n entity_id:\n - switch.adaptive_lighting_sleep_mode_main_bedroom\n - switch.adaptive_lighting_sleep_mode_main_bedroom_lamps",
|
|
"config": [
|
|
{
|
|
"name": "bedtime",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.bedtime",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "main bedroom mode",
|
|
"room": "main bedroom",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.main_bedroom",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "cristina sleep state",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.cristina_sleep_state",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "cristina in bed",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.cristina_in_bed",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input select john sleep state",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.john_sleep_state",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean john is in bed",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.john_is_in_bed",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "binary sensor bedtime",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.bedtime",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "main bedroom main lights",
|
|
"room": "main bedroom",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.main_bedroom_main_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "switch adaptive lighting sleep mode main bedroom",
|
|
"room": "main bedroom",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.adaptive_lighting_sleep_mode_main_bedroom",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "switch adaptive lighting sleep mode main bedroom lamps",
|
|
"room": "main bedroom",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.adaptive_lighting_sleep_mode_main_bedroom_lamps",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Main Bedroom John Night Light Off",
|
|
"room": "Main Bedroom",
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.main_bedroom_john_night_light_off",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Main Bedroom Night Light for John",
|
|
"room": "Main Bedroom",
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.main_bedroom_night_light_for_john",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Main Bedroom Occupied",
|
|
"room": "Main Bedroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.main_bedroom_occupied",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "main_bedroom_mode_off",
|
|
"automation": "- id: main_bedroom_mode_off\n initial_state: true\n alias: Main Bedroom Mode Off\n trigger:\n - platform: state\n entity_id: input_boolean.house_occupied\n to: 'off'\n - platform: state\n entity_id: input_select.house\n to: Away\n - platform: homeassistant\n event: start\n - platform: event\n event_type: automation_reloaded\n condition:\n - condition: template\n value_template: '{{ not is_state(''input_select.main_bedroom'',''Off'') }}'\n - condition: or\n conditions:\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'off'\n - condition: state\n entity_id: input_select.house\n state: Away\n action:\n - service: input_select.select_option\n data:\n entity_id: input_select.main_bedroom\n option: 'Off'",
|
|
"config": [
|
|
{
|
|
"name": "house status",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.house",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "main bedroom mode",
|
|
"room": "main bedroom",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.main_bedroom",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "main_bedroom_mode_awake",
|
|
"automation": "- id: main_bedroom_mode_awake\n alias: Main Bedroom mode awake\n initial_state: true\n trigger:\n - platform: state\n entity_id:\n - input_boolean.cristina_is_awake\n - input_boolean.john_is_awake\n to: 'on'\n - platform: state\n entity_id: light.main_bedroom_main_lights\n to: 'on'\n condition:\n - condition: state\n entity_id: input_select.main_bedroom\n state: Bedtime\n - condition: time\n after: 05:00:00\n before: 09:00:00\n - condition: and\n conditions:\n - condition: template\n value_template: '{{ states(''input_select.john_sleep_state'') not in (''Sleep'',\n ''Just Laid Down'') }}'\n - condition: template\n value_template: '{{ states(''input_select.cristina_sleep_state'') not in (''Sleep'',\n ''Just Laid Down'') }}'\n - condition: state\n entity_id: binary_sensor.main_bedroom_motion_sensor_occupancy\n state: 'on'\n - condition: or\n conditions:\n - condition: state\n entity_id: binary_sensor.main_bedroom_door_sensor_status\n state: 'on'\n - condition: state\n entity_id: light.main_bedroom_main_lights\n state: 'on'\n action:\n - service: input_select.select_option\n data:\n entity_id: input_select.main_bedroom\n option: Wake\n - service: automation.turn_off\n entity_id:\n - automation.main_bedroom_john_night_light_off\n - automation.main_bedroom_night_light_for_john\n - action: switch.turn_off\n entity_id:\n - switch.adaptive_lighting_sleep_mode_main_bedroom\n - switch.adaptive_lighting_sleep_mode_main_bedroom_lamps",
|
|
"config": [
|
|
{
|
|
"name": "cristina is awake",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.cristina_is_awake",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "john is awake",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.john_is_awake",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "main bedroom mode",
|
|
"room": "main bedroom",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.main_bedroom",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "cristina sleep state",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.cristina_sleep_state",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input select john sleep state",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.john_sleep_state",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "binary sensor main bedroom door sensor status",
|
|
"room": "main bedroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.main_bedroom_door_sensor_status",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "main bedroom main lights",
|
|
"room": "main bedroom",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.main_bedroom_main_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "main bedroom motion sensor",
|
|
"room": "main bedroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.main_bedroom_motion_sensor",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "main bedroom motion sensor occupancy",
|
|
"room": "main bedroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.main_bedroom_motion_sensor_occupancy",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "switch adaptive lighting sleep mode main bedroom",
|
|
"room": "main bedroom",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.adaptive_lighting_sleep_mode_main_bedroom",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "switch adaptive lighting sleep mode main bedroom lamps",
|
|
"room": "main bedroom",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.adaptive_lighting_sleep_mode_main_bedroom_lamps",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Main Bedroom John Night Light Off",
|
|
"room": "Main Bedroom",
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.main_bedroom_john_night_light_off",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Main Bedroom Night Light for John",
|
|
"room": "Main Bedroom",
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.main_bedroom_night_light_for_john",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "main_bedroom_not_occupied",
|
|
"automation": "- id: main_bedroom_not_occupied\n initial_state: true\n alias: Main bedroom not occupied\n triggers:\n - trigger: state\n entity_id: binary_sensor.main_bedroom_ble_occupancy\n to: 'off'\n for:\n minutes: 2\n - trigger: state\n entity_id: input_boolean.bedtime\n to: 'off'\n - trigger: state\n entity_id: binary_sensor.main_bedroom_motion_sensor\n to: 'off'\n for:\n minutes: 5\n - trigger: state\n entity_id: binary_sensor.main_bedroom_motion_sensor_occupancy\n to: 'off'\n - trigger: state\n entity_id: binary_sensor.main_bedroom_motion_sensor_occupancy\n to: 'off'\n for:\n minutes: 5\n - trigger: state\n entity_id: input_boolean.main_bathroom_occupied\n to: 'off'\n conditions:\n - condition: state\n entity_id: input_boolean.main_bedroom_occupied\n state: 'on'\n - condition: state\n entity_id: binary_sensor.main_bedroom_ble_occupancy\n state: 'off'\n - condition: state\n entity_id: input_boolean.main_bathroom_occupied\n state: 'off'\n - condition: state\n entity_id: input_boolean.bedtime\n state: 'off'\n - condition: state\n entity_id: binary_sensor.main_bedroom_motion_sensor_occupancy\n state: 'off'\n - and:\n - condition: state\n entity_id: input_boolean.john_is_in_bed\n state: 'off'\n - condition: state\n entity_id: input_boolean.cristina_in_bed\n state: 'off'\n - condition: or\n conditions:\n - condition: and\n conditions:\n - condition: template\n value_template: '{{ not is_state(''input_select.main_bedroom'',''Bedtime'')\n }}'\n - condition: time\n after: 05:00:00\n before: '23:59:59'\n - condition: and\n conditions:\n - condition: state\n entity_id: input_select.main_bedroom\n state: Bedtime\n - condition: time\n after: 06:00:00\n before: '21:00:00'\n action:\n - action: input_boolean.turn_off\n entity_id: input_boolean.main_bedroom_occupied\n - alias: Wait 2 seconds\n delay: 2\n - action: input_boolean.turn_on\n entity_id: input_boolean.main_bedroom_lighting_automations",
|
|
"config": [
|
|
{
|
|
"name": "bedtime",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.bedtime",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "main bedroom mode",
|
|
"room": "main bedroom",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.main_bedroom",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "cristina in bed",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.cristina_in_bed",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean john is in bed",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.john_is_in_bed",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "main bathroom occupied",
|
|
"room": "main bathroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.main_bathroom_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "main bedroom lighting automations",
|
|
"room": "main bedroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.main_bedroom_lighting_automations",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "main bedroom motion sensor",
|
|
"room": "main bedroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.main_bedroom_motion_sensor",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "main bedroom ble occupancy",
|
|
"room": "main bedroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.main_bedroom_ble_occupancy",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "main bedroom motion sensor occupancy",
|
|
"room": "main bedroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.main_bedroom_motion_sensor_occupancy",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Main Bedroom Occupied",
|
|
"room": "Main Bedroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.main_bedroom_occupied",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "main_bedroom_occupied",
|
|
"automation": "- id: main_bedroom_occupied\n initial_state: true\n alias: Main bedroom occupied\n trigger:\n - platform: state\n entity_id: binary_sensor.main_bedroom_motion_sensor\n to: 'on'\n - platform: state\n entity_id: binary_sensor.main_bedroom_motion_sensor_occupancy\n to: 'on'\n - platform: state\n entity_id: binary_sensor.main_bedroom_door_sensor_status\n to: 'off'\n - platform: state\n entity_id: light.main_bedroom_main_lights\n to: 'on'\n - platform: event\n event_type: automation_reloaded\n - platform: homeassistant\n event: start\n condition:\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n - condition: state\n entity_id: input_boolean.main_bedroom_occupied\n state: 'off'\n - condition: or\n conditions:\n - condition: state\n entity_id: binary_sensor.main_bedroom_ble_occupancy\n state: 'on'\n - condition: state\n entity_id: binary_sensor.main_bedroom_motion_sensor_occupancy\n state: 'on'\n action:\n - service: input_boolean.turn_on\n entity_id: input_boolean.main_bedroom_occupied",
|
|
"config": [
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "binary sensor main bedroom door sensor status",
|
|
"room": "main bedroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.main_bedroom_door_sensor_status",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "main bedroom main lights",
|
|
"room": "main bedroom",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.main_bedroom_main_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "main bedroom motion sensor",
|
|
"room": "main bedroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.main_bedroom_motion_sensor",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "main bedroom ble occupancy",
|
|
"room": "main bedroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.main_bedroom_ble_occupancy",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "main bedroom motion sensor occupancy",
|
|
"room": "main bedroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.main_bedroom_motion_sensor_occupancy",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Main Bedroom Occupied",
|
|
"room": "Main Bedroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.main_bedroom_occupied",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "main_bedroom_speech_notifications_off",
|
|
"automation": "- id: main_bedroom_speech_notifications_off\n initial_state: true\n alias: Main Bedroom Speech Notifications Off\n trigger:\n - platform: state\n entity_id: input_boolean.main_bedroom_occupied\n to: 'off'\n - platform: state\n entity_id: input_select.main_bedroom\n to: Bedtime\n condition:\n - condition: or\n conditions:\n - condition: state\n entity_id: input_boolean.main_bedroom_occupied\n state: 'off'\n - condition: state\n entity_id: input_select.main_bedroom\n state: Bedtime\n action:\n - service: input_boolean.turn_off\n entity_id: input_boolean.main_bedroom_speech_notifications",
|
|
"config": [
|
|
{
|
|
"name": "main bedroom mode",
|
|
"room": "main bedroom",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.main_bedroom",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "main bedroom speech notifications",
|
|
"room": "main bedroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.main_bedroom_speech_notifications",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Main Bedroom Occupied",
|
|
"room": "Main Bedroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.main_bedroom_occupied",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "main_bedroom_speech_notifications_on",
|
|
"automation": "- id: main_bedroom_speech_notifications_on\n initial_state: true\n alias: Main Bedroom Speech Notifications On\n trigger:\n - platform: state\n entity_id: input_boolean.main_bedroom_occupied\n to: 'on'\n - platform: state\n entity_id: input_select.main_bedroom\n to: Auto\n condition:\n - condition: state\n entity_id: input_boolean.main_bedroom_occupied\n state: 'on'\n - condition: or\n conditions:\n - condition: state\n entity_id: input_select.main_bedroom\n state: Auto\n - condition: state\n entity_id: input_select.main_bedroom\n state: Wake\n action:\n - service: input_boolean.turn_on\n entity_id: input_boolean.main_bedroom_speech_notifications",
|
|
"config": [
|
|
{
|
|
"name": "main bedroom mode",
|
|
"room": "main bedroom",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.main_bedroom",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "main bedroom speech notifications",
|
|
"room": "main bedroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.main_bedroom_speech_notifications",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Main Bedroom Occupied",
|
|
"room": "Main Bedroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.main_bedroom_occupied",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "main_bedroom_turn_off_purifier",
|
|
"automation": "- id: main_bedroom_turn_off_purifier\n alias: Main Bedroom Air Quality - Turn off Purifier\n mode: single\n initial_state: true\n triggers:\n - trigger: state\n entity_id: input_boolean.house_occupied\n to: 'off'\n - trigger: state\n entity_id: input_select.main_bedroom\n to: 'Off'\n - trigger: state\n entity_id: input_boolean.main_bedroom_occupied\n to: 'off'\n for:\n minutes: 30\n actions:\n - action: fan.turn_off\n target:\n entity_id: fan.main_bedroom_air_purifier",
|
|
"config": [
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "main bedroom mode",
|
|
"room": "main bedroom",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.main_bedroom",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "main bedroom air purifier",
|
|
"room": "main bedroom",
|
|
"type": "fan",
|
|
"id": {
|
|
"entity_id": "fan.main_bedroom_air_purifier",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Main Bedroom Occupied",
|
|
"room": "Main Bedroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.main_bedroom_occupied",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "main_floor_climate_activate_eco_when_energy_is_expensive",
|
|
"automation": "- id: main_floor_climate_activate_eco_when_energy_is_expensive\n alias: Main Floor Climate - Activate Eco When Energy is Expensive\n initial_state: true\n triggers:\n - trigger: state\n entity_id: binary_sensor.energy_prices_are_high\n to: 'on'\n conditions:\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n - condition: state\n entity_id: input_boolean.entertainment_mode\n state: 'off'\n - condition: state\n entity_id: binary_sensor.extreme_climate\n state: 'off'\n - condition: template\n value_template: '{{ states.climate.nest_main_floor.attributes.preset_mode == ''none''\n }}'\n actions:\n - action: script.main_floor_climate_to_eco\n data: {}",
|
|
"config": [
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "entertainment mode",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.entertainment_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "energy price",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.energy_price",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "nest main floor",
|
|
"room": "main floor",
|
|
"type": "climate",
|
|
"id": {
|
|
"entity_id": "climate.nest_main_floor",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "energy prices are high",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.energy_prices_are_high",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "extreme climate",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.extreme_climate",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Main Floor Climate to Eco",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.main_floor_climate_to_eco",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "main_floor_climate_resume",
|
|
"automation": "- id: main_floor_climate_resume\n alias: Main floor climate resume\n initial_state: 'on'\n trigger:\n - platform: state\n entity_id: input_boolean.house_occupied\n to: 'on'\n - platform: state\n entity_id:\n - input_boolean.john_is_in_bed\n - input_boolean.cristina_in_bed\n to: 'off'\n - platform: state\n entity_id: input_boolean.bedtime\n to: 'off'\n - platform: time\n at: 06:00:00\n condition:\n - condition: or\n conditions:\n - condition: state\n entity_id: input_boolean.bedtime\n state: 'off'\n - condition: time\n after: 06:00:00\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n - condition: template\n value_template: '{{ states.climate.nest_main_floor.attributes.preset_mode != ''none''\n }}'\n action:\n - service: script.main_floor_climate_to_resume\n data: {}",
|
|
"config": [
|
|
{
|
|
"name": "bedtime",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.bedtime",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "cristina in bed",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.cristina_in_bed",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean john is in bed",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.john_is_in_bed",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "nest main floor",
|
|
"room": "main floor",
|
|
"type": "climate",
|
|
"id": {
|
|
"entity_id": "climate.nest_main_floor",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Main Floor Climate to Resume",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.main_floor_climate_to_resume",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "main_floor_climate_resume_when_energy_prices_fall",
|
|
"automation": "- id: main_floor_climate_resume_when_energy_prices_fall\n alias: Main Floor Climate - Resume When Energy Prices Fall\n initial_state: true\n trigger:\n - platform: state\n entity_id: binary_sensor.energy_prices_are_high\n from: 'on'\n to: 'off'\n condition:\n - condition: template\n value_template: '{{ states.climate.nest_main_floor.attributes.preset_mode != ''none''\n }}'\n - condition: or\n conditions:\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n - condition: state\n entity_id: input_boolean.nearly_home\n state: 'on'\n action:\n - action: script.main_floor_climate_to_resume\n data: {}",
|
|
"config": [
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "energy price",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.energy_price",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "nest main floor",
|
|
"room": "main floor",
|
|
"type": "climate",
|
|
"id": {
|
|
"entity_id": "climate.nest_main_floor",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "energy prices are high",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.energy_prices_are_high",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "nearly home",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.nearly_home",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Main Floor Climate to Resume",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.main_floor_climate_to_resume",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "main_floor_climate_resume_when_nearly_home",
|
|
"automation": "- id: main_floor_climate_resume_when_nearly_home\n alias: Main Floor Climate Resume When Nearly Home\n initial_state: 'on'\n trigger:\n - platform: state\n entity_id: input_boolean.nearly_home\n to: 'on'\n condition:\n - condition: template\n value_template: '{{ states.climate.nest_main_floor.attributes.preset_mode != ''none''\n }}'\n action:\n - service: script.main_floor_climate_to_resume\n data: {}",
|
|
"config": [
|
|
{
|
|
"name": "nest main floor",
|
|
"room": "main floor",
|
|
"type": "climate",
|
|
"id": {
|
|
"entity_id": "climate.nest_main_floor",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "nearly home",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.nearly_home",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Main Floor Climate to Resume",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.main_floor_climate_to_resume",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "main_floor_climate_to_eco",
|
|
"automation": "- id: main_floor_climate_to_eco\n alias: Main floor climate to Eco\n initial_state: 'on'\n trigger:\n - platform: state\n entity_id: input_boolean.bedtime\n to: 'on'\n - platform: state\n entity_id: input_boolean.house_occupied\n to: 'off'\n for:\n minutes: 30\n - platform: state\n entity_id: input_boolean.house_occupied\n to: 'off'\n for:\n minutes: 60\n condition:\n - condition: state\n entity_id: input_boolean.guest_mode\n state: 'off'\n - condition: template\n value_template: '{{ states.climate.nest_main_floor.attributes.preset_mode == ''none''\n }}'\n action:\n - choose:\n - conditions:\n - condition: template\n value_template: '{{ trigger.entity_id == ''input_boolean.bedtime'' }}'\n - condition: time\n before: 04:00:00\n sequence:\n - service: script.main_floor_climate_to_eco\n data: {}\n default:\n - service: script.main_floor_climate_to_eco\n data: {}",
|
|
"config": [
|
|
{
|
|
"name": "bedtime",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.bedtime",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "guest mode",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.guest_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "nest main floor",
|
|
"room": "main floor",
|
|
"type": "climate",
|
|
"id": {
|
|
"entity_id": "climate.nest_main_floor",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Main Floor Climate to Eco",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.main_floor_climate_to_eco",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "main_level_dryer_complete",
|
|
"automation": "- id: main_level_dryer_complete\n alias: Main Level Dryer Complete\n initial_state: true\n trigger:\n - platform: state\n entity_id: input_select.main_level_dryer_status\n to: Clean\n condition:\n - condition: state\n entity_id: input_select.main_level_dryer_status\n state: Clean\n action:\n - service: script.voice_announcement\n data:\n media_players: auto\n sound: chirp\n priority: normal\n expires_in: 120\n speech_message: The main level dryer finished and is ready to be emptied.\n - service: script.general_notification\n data:\n message: The main level dryer is finished and ready to be emptied.\n title: Main Level Drying Machine\n devices: all\n priority: active\n tag: main-level-dryer\n - if:\n - alias: TV is ON\n condition: state\n entity_id: media_player.sony_bravia_tv\n state: 'on'\n then:\n - service: notify.family_room_sony_bravia_tv\n data:\n message: The main level dryer is finished and ready to be emptied.\n title: Laundry is complete!\n data:\n duration: 5\n position: bottom-right\n fontsize: large\n transparency: 25%\n interrupt: false\n color: black",
|
|
"config": [
|
|
{
|
|
"name": "sony bravia tv",
|
|
"room": null,
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.sony_bravia_tv",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "general notification script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.general_notification",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "voice announcement script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.voice_announcement",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "script voice announcement",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.voice_announcement",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "main level dryer status",
|
|
"room": "main level",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.main_level_dryer_status",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "main_level_dryer_power_button",
|
|
"automation": "- id: main_level_dryer_power_button\n alias: Main Level Dryer Power Button\n initial_state: true\n trigger:\n - platform: device\n device_id: 055647d59003c9dc03051ef8e575a427\n domain: zha\n type: remote_button_short_press\n subtype: remote_button_short_press\n condition:\n - condition: state\n entity_id: switch.main_level_drying_machine\n state: 'off'\n action:\n - service: switch.turn_on\n entity_id: switch.main_level_drying_machine",
|
|
"config": [
|
|
{
|
|
"name": "main level drying machine",
|
|
"room": "main level",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.main_level_drying_machine",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Unknown Device 055647d59003c9dc03051ef8e575a427",
|
|
"room": null,
|
|
"type": null,
|
|
"id": {
|
|
"entity_id": "055647d59003c9dc03051ef8e575a427",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "main_level_dryer_to_clean",
|
|
"automation": "- id: main_level_dryer_to_clean\n alias: Main Level Dryer to Clean\n initial_state: true\n trigger:\n - platform: state\n entity_id: input_select.main_level_dryer_status\n to: Finishing\n for:\n minutes: 5\n - platform: numeric_state\n entity_id: sensor.main_level_drying_machine_electric_consumption_w\n below: 50\n condition:\n - condition: state\n entity_id: input_select.main_level_dryer_status\n state: Finishing\n action:\n - service: input_select.select_option\n data:\n entity_id: input_select.main_level_dryer_status\n option: Clean",
|
|
"config": [
|
|
{
|
|
"name": "main level dryer status",
|
|
"room": "main level",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.main_level_dryer_status",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "main level drying machine electric consumption",
|
|
"room": "main level",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.main_level_drying_machine_electric_consumption_w",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "main_level_dryer_to_finished",
|
|
"automation": "- id: main_level_dryer_to_finished\n alias: Main Level Dryer to Finishing\n initial_state: true\n trigger:\n - platform: numeric_state\n entity_id: sensor.main_level_drying_machine_electric_consumption_w\n below: 150\n condition:\n - condition: state\n entity_id: input_select.main_level_dryer_status\n state: Running\n action:\n - service: input_select.select_option\n data:\n entity_id: input_select.main_level_dryer_status\n option: Finishing",
|
|
"config": [
|
|
{
|
|
"name": "main level dryer status",
|
|
"room": "main level",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.main_level_dryer_status",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "main level drying machine electric consumption",
|
|
"room": "main level",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.main_level_drying_machine_electric_consumption_w",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "main_level_dryer_to_idle",
|
|
"automation": "- id: main_level_dryer_to_idle\n alias: Main Level Dryer to Idle\n initial_state: true\n trigger:\n - platform: state\n entity_id: input_select.main_level_dryer_status\n to: Clean\n for:\n minutes: 5\n condition:\n - condition: or\n conditions:\n - condition: state\n entity_id: input_select.main_level_dryer_status\n state: Clean\n - condition: state\n entity_id: input_select.main_level_dryer_status\n state: Finishing\n action:\n - service: input_select.select_option\n data:\n entity_id: input_select.main_level_dryer_status\n option: Idle",
|
|
"config": [
|
|
{
|
|
"name": "main level dryer status",
|
|
"room": "main level",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.main_level_dryer_status",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "main_level_dryer_to_running",
|
|
"automation": "- id: main_level_dryer_to_running\n alias: Main Level Dryer to Running\n initial_state: true\n trigger:\n - platform: numeric_state\n entity_id: sensor.main_level_drying_machine_electric_consumption_w\n above: 10\n condition:\n condition: or\n conditions:\n - condition: state\n entity_id: input_select.main_level_dryer_status\n state: Idle\n - condition: state\n entity_id: input_select.main_level_dryer_status\n state: Clean\n - condition: state\n entity_id: input_select.main_level_dryer_status\n state: Finishing\n action:\n - service: input_select.select_option\n data:\n entity_id: input_select.main_level_dryer_status\n option: Running",
|
|
"config": [
|
|
{
|
|
"name": "main level dryer status",
|
|
"room": "main level",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.main_level_dryer_status",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "main level drying machine electric consumption",
|
|
"room": "main level",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.main_level_drying_machine_electric_consumption_w",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "main_level_washer_complete_alert",
|
|
"automation": "- id: main_level_washer_complete_alert\n alias: Main Level Washer Complete Alert\n initial_state: true\n trigger:\n - platform: state\n entity_id: input_select.main_level_washer_status\n to: Clean\n - platform: state\n entity_id: input_boolean.house_occupied\n to: 'on'\n for:\n minutes: 10\n - platform: time\n at: 08:01:00\n condition:\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n - condition: state\n entity_id: input_select.main_level_washer_status\n state: Clean\n - condition: template\n value_template: \"{% if states.automation.main_level_washer_complete_alert.attributes.last_triggered\\\n \\ is not none %}\\n {% if as_timestamp(now()) | int - as_timestamp(states.automation.main_level_washer_complete_alert.attributes.last_triggered)\\\n \\ | int > 3600 %}\\n true \\n {% else %}\\n false\\n {% endif %}\\n{% else\\\n \\ %}\\n false\\n{% endif %}\\n\"\n action:\n - service: script.voice_announcement\n data:\n media_players: auto\n sound: chirp\n priority: normal\n expires_in: 120\n speech_message: The main level washer finished and is ready to be emptied.\n - service: \"{% if (is_state(\\\"input_boolean.john_home\\\", \\\"on\\\")) and (is_state(\\\"\\\n input_boolean.cristina_home\\\", \\\"on\\\")) %}\\n notify.ios_family\\n{% elif is_state(\\\"\\\n input_boolean.john_home\\\", \\\"on\\\") %}\\n notify.mobile_app_jk_2\\n{% elif (is_state(\\\"\\\n input_boolean.cristina_home\\\", \\\"on\\\")) %}\\n notify.mobile_app_cfalb2\\n{% endif\\\n \\ %}\\n\"\n data:\n message: The main level washer is finished and is ready to be emptied.\n title: Main Level Washing Machine\n - if:\n - alias: TV is ON\n condition: state\n entity_id: media_player.sony_bravia_tv\n state: 'on'\n then:\n - service: notify.family_room_sony_bravia_tv\n data:\n message: The main level washer is finished and is ready to be emptied.\n title: Laundry is complete!\n data:\n duration: 5\n position: bottom-right\n fontsize: large\n transparency: 25%\n interrupt: false\n color: black",
|
|
"config": [
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "john home",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.john_home",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "sony bravia tv",
|
|
"room": null,
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.sony_bravia_tv",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "cristina home",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.cristina_home",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "voice announcement script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.voice_announcement",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "mobile app jk 2 notification",
|
|
"room": null,
|
|
"type": "notify",
|
|
"id": {
|
|
"entity_id": "notify.mobile_app_jk_2",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "script voice announcement",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.voice_announcement",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "main level washer status",
|
|
"room": "main level",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.main_level_washer_status",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "main_level_washer_to_clean",
|
|
"automation": "- id: main_level_washer_to_clean\n alias: Main Level Washer to Clean\n initial_state: true\n trigger:\n - platform: state\n entity_id: input_select.main_level_washer_status\n to: Finishing\n for:\n minutes: 1\n - platform: numeric_state\n entity_id: sensor.main_level_washing_machine_electric_consumption_w\n below: 20\n condition:\n - condition: state\n entity_id: input_select.main_level_washer_status\n state: Finishing\n - condition: numeric_state\n entity_id: sensor.main_level_washing_machine_electric_consumption_w\n below: 50\n action:\n - service: input_select.select_option\n data:\n entity_id: input_select.main_level_washer_status\n option: Clean",
|
|
"config": [
|
|
{
|
|
"name": "main level washer status",
|
|
"room": "main level",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.main_level_washer_status",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "main level washing machine electric consumption",
|
|
"room": "main level",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.main_level_washing_machine_electric_consumption_w",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "main_level_washer_to_finished",
|
|
"automation": "- id: main_level_washer_to_finished\n alias: Main Level Washer to Finished\n initial_state: true\n trigger:\n - platform: numeric_state\n entity_id: sensor.main_level_washing_machine_electric_consumption_w\n below: 20\n condition:\n - condition: state\n entity_id: input_select.main_level_washer_status\n state: Running\n action:\n - service: input_select.select_option\n data:\n entity_id: input_select.main_level_washer_status\n option: Finishing",
|
|
"config": [
|
|
{
|
|
"name": "main level washer status",
|
|
"room": "main level",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.main_level_washer_status",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "main level washing machine electric consumption",
|
|
"room": "main level",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.main_level_washing_machine_electric_consumption_w",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "main_level_washer_to_idle",
|
|
"automation": "- id: main_level_washer_to_idle\n alias: Upstairs washer to idle\n initial_state: true\n trigger:\n - platform: state\n entity_id: binary_sensor.main_level_washer_door_sensor_status\n to: 'on'\n condition:\n - condition: or\n conditions:\n - condition: state\n entity_id: input_select.main_level_washer_status\n state: Clean\n - condition: state\n entity_id: input_select.main_level_washer_status\n state: Finishing\n - condition: state\n entity_id: input_select.main_level_washer_status\n state: Running\n action:\n - service: input_select.select_option\n data:\n entity_id: input_select.main_level_washer_status\n option: Idle",
|
|
"config": [
|
|
{
|
|
"name": "main level washer status",
|
|
"room": "main level",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.main_level_washer_status",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "main level washer door sensor status",
|
|
"room": "main level",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.main_level_washer_door_sensor_status",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "main_level_washer_to_running",
|
|
"automation": "- id: main_level_washer_to_running\n alias: Main Level Washer to Running\n initial_state: true\n trigger:\n - platform: numeric_state\n entity_id: sensor.main_level_washing_machine_electric_consumption_w\n above: 10\n condition:\n condition: or\n conditions:\n - condition: state\n entity_id: input_select.main_level_washer_status\n state: Idle\n - condition: state\n entity_id: input_select.main_level_washer_status\n state: Clean\n - condition: state\n entity_id: input_select.main_level_washer_status\n state: Finishing\n action:\n - service: input_select.select_option\n data:\n entity_id: input_select.main_level_washer_status\n option: Running",
|
|
"config": [
|
|
{
|
|
"name": "main level washer status",
|
|
"room": "main level",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.main_level_washer_status",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "main level washing machine electric consumption",
|
|
"room": "main level",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.main_level_washing_machine_electric_consumption_w",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "morning_update",
|
|
"automation": "- id: morning_update\n alias: Morning Update\n mode: single\n triggers:\n - trigger: time\n at: 07:05:00\n condition:\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n action:\n - wait_template: '{{ is_state(''input_boolean.quiet_mode'', ''off'') }}'\n timeout: 00:45:00\n - wait_template: \"{{\\n states.binary_sensor.kitchen_motion_sensor_occupancy.state\\\n \\ == \\\"on\\\" and\\n (as_timestamp(now()) - as_timestamp(states.binary_sensor.kitchen_motion_sensor_occupancy.last_changed))\\\n \\ | int >= 600\\n}}\"\n timeout: 00:30:00\n continue_on_timeout: false\n - wait_template: '{{ is_state(''binary_sensor.kitchen_motion_sensor_status'', ''on'')\n }}'\n timeout: 00:30:00\n continue_on_timeout: false\n - alias: Wait 2 seconds\n delay: 2\n - action: script.morning_update_announcement",
|
|
"config": [
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "quiet mode",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.quiet_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "kitchen motion sensor status",
|
|
"room": "kitchen",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.kitchen_motion_sensor_status",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean quiet mode",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.quiet_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "binary sensor kitchen motion sensor status",
|
|
"room": "kitchen",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.kitchen_motion_sensor_status",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "binary sensor kitchen motion sensor occupancy",
|
|
"room": "kitchen",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.kitchen_motion_sensor_occupancy",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "mudroom_bathroom_fan_off",
|
|
"automation": "- id: mudroom_bathroom_fan_off\n initial_state: true\n alias: Mudroom Bathroom Fan Off\n trigger:\n - platform: state\n entity_id: input_select.mudroom_bathroom\n to: 'Off'\n - platform: state\n entity_id: input_boolean.mudroom_bathroom_occupied\n to: 'off'\n for:\n minutes: 5\n condition:\n - condition: state\n entity_id: fan.mudroom_bathroom_fan\n state: 'on'\n - condition: or\n conditions:\n - condition: state\n entity_id: input_select.mudroom_bathroom\n state: 'Off'\n - condition: state\n entity_id: input_boolean.mudroom_bathroom_occupied\n state: 'off'\n action:\n - service: fan.turn_off\n entity_id: fan.mudroom_bathroom_fan",
|
|
"config": [
|
|
{
|
|
"name": "mudroom bathroom fan",
|
|
"room": "mudroom bathroom",
|
|
"type": "fan",
|
|
"id": {
|
|
"entity_id": "fan.mudroom_bathroom_fan",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "mudroom bathroom mode",
|
|
"room": "mudroom bathroom",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.mudroom_bathroom",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "mudroom bathroom occupied",
|
|
"room": "mudroom bathroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.mudroom_bathroom_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "mudroom mode",
|
|
"room": "mudroom",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.mudroom",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "mudroom_bathroom_motion_on",
|
|
"automation": "- id: mudroom_bathroom_motion_on\n initial_state: true\n alias: Mudroom Bathroom Lights Motion On\n trigger:\n - platform: state\n entity_id: binary_sensor.mudroom_bathroom_motion\n to: 'on'\n condition:\n - condition: state\n entity_id: input_select.mudroom_bathroom\n state: Auto\n - condition: state\n entity_id: input_boolean.lighting_automations\n state: 'on'\n - condition: numeric_state\n entity_id: sensor.mudroom_bathroom_illuminance\n below: 200\n - condition: state\n entity_id: light.mudroom_bathroom_main_lights\n state: 'off'\n action:\n - service: light.turn_on\n entity_id: light.mudroom_bathroom_main_lights",
|
|
"config": [
|
|
{
|
|
"name": "lighting automations",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.lighting_automations",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "mudroom bathroom motion",
|
|
"room": "mudroom bathroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.mudroom_bathroom_motion",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "mudroom bathroom illuminance",
|
|
"room": "mudroom bathroom",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.mudroom_bathroom_illuminance",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "mudroom bathroom main lights",
|
|
"room": "mudroom bathroom",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.mudroom_bathroom_main_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "mudroom bathroom mode",
|
|
"room": "mudroom bathroom",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.mudroom_bathroom",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "mudroom mode",
|
|
"room": "mudroom",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.mudroom",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "mudroom_bathroom_lights_off",
|
|
"automation": "- id: mudroom_bathroom_lights_off\n initial_state: true\n alias: Mudroom Bathroom lights off\n trigger:\n - platform: state\n entity_id: input_boolean.mudroom_bathroom_occupied\n to: 'off'\n - platform: state\n entity_id: input_select.mudroom_bathroom\n to: 'Off'\n - platform: state\n entity_id: input_boolean.lighting_automations\n to: 'on'\n condition:\n - condition: state\n entity_id: light.mudroom_bathroom_main_lights\n state: 'on'\n - condition: or\n conditions:\n - condition: state\n entity_id: input_select.mudroom_bathroom\n state: 'Off'\n - condition: state\n entity_id: input_boolean.mudroom_bathroom_occupied\n state: 'off'\n action:\n - service: light.turn_off\n entity_id: light.mudroom_bathroom_main_lights",
|
|
"config": [
|
|
{
|
|
"name": "lighting automations",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.lighting_automations",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "mudroom bathroom main lights",
|
|
"room": "mudroom bathroom",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.mudroom_bathroom_main_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "mudroom bathroom mode",
|
|
"room": "mudroom bathroom",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.mudroom_bathroom",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "mudroom bathroom occupied",
|
|
"room": "mudroom bathroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.mudroom_bathroom_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "mudroom mode",
|
|
"room": "mudroom",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.mudroom",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "mudroom_bathroom_mode_auto",
|
|
"automation": "- id: mudroom_bathroom_mode_auto\n initial_state: true\n alias: Mudroom Bathroom Mode Auto\n trigger:\n - platform: state\n entity_id: input_select.house\n to: Auto\n - platform: state\n entity_id: input_boolean.house_occupied\n to: 'on'\n condition:\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n - condition: template\n value_template: '{{ not is_state(''input_select.mudroom_bathroom'',''Auto'') }}'\n - condition: state\n entity_id: input_boolean.bedtime\n state: 'off'\n - condition: state\n entity_id: input_select.house\n state: Auto\n action:\n - service: input_select.select_option\n data:\n entity_id: input_select.mudroom_bathroom\n option: Auto",
|
|
"config": [
|
|
{
|
|
"name": "bedtime",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.bedtime",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "house status",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.house",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "mudroom bathroom mode",
|
|
"room": "mudroom bathroom",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.mudroom_bathroom",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "mudroom mode",
|
|
"room": "mudroom",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.mudroom",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "mudroom_bathroom_mode_off",
|
|
"automation": "- id: mudroom_bathroom_mode_off\n initial_state: true\n alias: Mudroom Bathroom Mode Off\n trigger:\n - platform: state\n entity_id: input_boolean.house_occupied\n to: 'off'\n - platform: state\n entity_id: input_select.house\n to: Away\n - platform: state\n entity_id: input_boolean.bedtime\n to: 'on'\n - platform: homeassistant\n event: start\n - platform: event\n event_type: automation_reloaded\n condition:\n - condition: template\n value_template: '{{ not is_state(''input_select.mudroom_bathroom'',''Off'') }}'\n - condition: or\n conditions:\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'off'\n - condition: state\n entity_id: input_select.house\n state: Away\n - condition: state\n entity_id: input_boolean.bedtime\n state: 'on'\n action:\n - service: input_select.select_option\n data:\n entity_id: input_select.mudroom_bathroom\n option: 'Off'",
|
|
"config": [
|
|
{
|
|
"name": "bedtime",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.bedtime",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "house status",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.house",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "mudroom bathroom mode",
|
|
"room": "mudroom bathroom",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.mudroom_bathroom",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "mudroom mode",
|
|
"room": "mudroom",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.mudroom",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "mudroom_bathroom_not_occupied",
|
|
"automation": "- id: mudroom_bathroom_not_occupied\n initial_state: true\n alias: Mudroom Bathroom Not Occupied\n trigger:\n - platform: state\n entity_id: binary_sensor.mudroom_bathroom_motion\n to: 'off'\n for:\n minutes: 3\n - platform: state\n entity_id: binary_sensor.mudroom_bathroom_motion\n to: 'off'\n for:\n minutes: 5\n - platform: state\n entity_id: binary_sensor.mudroom_bathroom_motion\n to: 'off'\n for:\n minutes: 7\n - platform: state\n entity_id: binary_sensor.mudroom_bathroom_occupancy\n to: 'off'\n condition:\n - condition: state\n entity_id: input_boolean.mudroom_bathroom_occupied\n state: 'on'\n - condition: or\n conditions:\n - condition: and\n conditions:\n - condition: state\n entity_id: binary_sensor.mudroom_bathroom_motion\n state: 'off'\n - condition: template\n value_template: '{{ (as_timestamp(now()) - as_timestamp(states.binary_sensor.mudroom_bathroom_door.last_changed))\n | int < 180 }}'\n - condition: state\n entity_id: binary_sensor.mudroom_bathroom_occupancy\n state: 'off'\n - condition: and\n conditions:\n - condition: state\n entity_id: binary_sensor.mudroom_bathroom_motion\n state: 'off'\n for:\n minutes: 5\n - condition: state\n entity_id: binary_sensor.mudroom_bathroom_door\n state: 'on'\n action:\n - service: input_boolean.turn_off\n entity_id: input_boolean.mudroom_bathroom_occupied",
|
|
"config": [
|
|
{
|
|
"name": "mudroom bathroom motion",
|
|
"room": "mudroom bathroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.mudroom_bathroom_motion",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "mudroom bathroom occupied",
|
|
"room": "mudroom bathroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.mudroom_bathroom_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "mudroom bathroom occupancy",
|
|
"room": "mudroom bathroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.mudroom_bathroom_occupancy",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "mudroom bathroom door",
|
|
"room": "mudroom bathroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.mudroom_bathroom_door",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "mudroom_bathroom_occupied",
|
|
"automation": "- id: mudroom_bathroom_occupied\n initial_state: true\n alias: Mudroom Bathroom Occupied\n trigger:\n - platform: state\n entity_id: binary_sensor.mudroom_bathroom_motion\n to: 'on'\n - platform: state\n entity_id: light.mudroom_bathroom_main_lights\n to: 'on'\n condition:\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n - condition: state\n entity_id: input_boolean.mudroom_bathroom_occupied\n state: 'off'\n - condition: or\n conditions:\n - condition: state\n entity_id: binary_sensor.mudroom_bathroom_motion\n state: 'on'\n - condition: state\n entity_id: binary_sensor.mudroom_bathroom_door\n state: 'off'\n - condition: state\n entity_id: light.mudroom_bathroom_main_lights\n state: 'on'\n action:\n - service: input_boolean.turn_on\n entity_id: input_boolean.mudroom_bathroom_occupied",
|
|
"config": [
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "mudroom bathroom motion",
|
|
"room": "mudroom bathroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.mudroom_bathroom_motion",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "mudroom bathroom main lights",
|
|
"room": "mudroom bathroom",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.mudroom_bathroom_main_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "mudroom bathroom occupied",
|
|
"room": "mudroom bathroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.mudroom_bathroom_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "mudroom bathroom door",
|
|
"room": "mudroom bathroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.mudroom_bathroom_door",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "mudroom_lights_to_away",
|
|
"automation": "- id: mudroom_lights_to_away\n initial_state: 'on'\n alias: Mudroom lights to away\n trigger:\n - platform: state\n entity_id: input_select.mudroom\n to: Away\n - platform: state\n entity_id: input_select.house\n to: Away\n condition:\n - condition: state\n entity_id: input_boolean.lighting_automations\n state: 'on'\n - condition: or\n conditions:\n - condition: state\n entity_id: input_select.mudroom\n state: Away\n - condition: and\n conditions:\n - condition: state\n entity_id: input_select.mudroom\n state: Auto\n - condition: state\n entity_id: input_select.house\n state: Away\n - condition: state\n entity_id: light.mudroom_main_lights\n state: 'on'\n action:\n - service: light.turn_off\n entity_id: light.mudroom_main_lights",
|
|
"config": [
|
|
{
|
|
"name": "house status",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.house",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "lighting automations",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.lighting_automations",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "mudroom main lights",
|
|
"room": "mudroom",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.mudroom_main_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "mudroom mode",
|
|
"room": "mudroom",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.mudroom",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "mudroom_lights_to_dim",
|
|
"automation": "- id: mudroom_lights_to_dim\n initial_state: 'on'\n alias: Mudroom lights to dim\n trigger:\n - platform: state\n entity_id: binary_sensor.mudroom_motion_sensor_motion_detection\n to: 'on'\n condition:\n - condition: state\n entity_id: input_boolean.lighting_automations\n state: 'on'\n - condition: state\n entity_id: input_select.mudroom\n state: Night Motion\n - condition: state\n entity_id: light.mudroom_main_lights\n state: 'off'\n action:\n - service: light.turn_on\n entity_id: light.mudroom_main_lights\n data:\n brightness_pct: 30",
|
|
"config": [
|
|
{
|
|
"name": "lighting automations",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.lighting_automations",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "mudroom main lights",
|
|
"room": "mudroom",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.mudroom_main_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "mudroom motion sensor motion detection",
|
|
"room": "mudroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.mudroom_motion_sensor_motion_detection",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "mudroom mode",
|
|
"room": "mudroom",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.mudroom",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "mudroom_lights_to_off",
|
|
"automation": "- id: mudroom_lights_to_off\n initial_state: 'on'\n alias: Mudroom lights to off\n trigger:\n - platform: state\n entity_id: input_select.mudroom\n to: Away\n - platform: state\n entity_id: input_select.house\n to: 'Off'\n - platform: state\n entity_id: binary_sensor.mudroom_motion_sensor_motion_detection\n to: 'off'\n condition:\n - condition: state\n entity_id: input_boolean.lighting_automations\n state: 'on'\n - condition: state\n entity_id: light.mudroom_main_lights\n state: 'on'\n action:\n - service: light.turn_off\n entity_id: light.mudroom_main_lights",
|
|
"config": [
|
|
{
|
|
"name": "house status",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.house",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "lighting automations",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.lighting_automations",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "mudroom main lights",
|
|
"room": "mudroom",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.mudroom_main_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "mudroom motion sensor motion detection",
|
|
"room": "mudroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.mudroom_motion_sensor_motion_detection",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "mudroom mode",
|
|
"room": "mudroom",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.mudroom",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "mudroom_lights_to_on",
|
|
"automation": "- id: mudroom_lights_to_on\n initial_state: 'on'\n alias: Mudroom lights to on\n trigger:\n - platform: state\n entity_id: input_select.mudroom\n to: 'On'\n - platform: state\n entity_id: binary_sensor.mudroom_motion_sensor_motion_detection\n to: 'on'\n condition:\n - condition: state\n entity_id: input_boolean.lighting_automations\n state: 'on'\n - condition: or\n conditions:\n - condition: state\n entity_id: input_select.mudroom\n state: 'On'\n - condition: state\n entity_id: input_select.mudroom\n state: Motion\n - condition: state\n entity_id: light.mudroom_main_lights\n state: 'off'\n action:\n - service: light.turn_on\n entity_id: light.mudroom_main_lights",
|
|
"config": [
|
|
{
|
|
"name": "lighting automations",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.lighting_automations",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "mudroom main lights",
|
|
"room": "mudroom",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.mudroom_main_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "mudroom motion sensor motion detection",
|
|
"room": "mudroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.mudroom_motion_sensor_motion_detection",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "mudroom mode",
|
|
"room": "mudroom",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.mudroom",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "mudroom_mode_away",
|
|
"automation": "- id: mudroom_mode_away\n initial_state: 'on'\n alias: Mudroom mode away\n trigger:\n - platform: state\n entity_id: input_boolean.house_occupied\n to: 'off'\n condition:\n - condition: template\n value_template: '{{ not is_state(''input_select.mudroom'',''Away'') }}'\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'off'\n action:\n - service: input_select.select_option\n data:\n entity_id: input_select.mudroom\n option: Away",
|
|
"config": [
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "mudroom mode",
|
|
"room": "mudroom",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.mudroom",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "mudroom_mode_motion",
|
|
"automation": "- id: mudroom_mode_motion\n initial_state: 'on'\n alias: Mudroom mode motion\n trigger:\n - platform: state\n entity_id: binary_sensor.mudroom_motion_sensor_motion_detection\n to: 'off'\n for:\n minutes: 5\n - platform: state\n entity_id: input_select.house\n to: Auto\n condition:\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n - condition: state\n entity_id: input_boolean.bedtime\n state: 'off'\n - condition: or\n conditions:\n - condition: template\n value_template: '{{ is_state(''input_select.mudroom'',''On'') }}'\n - condition: template\n value_template: '{{ is_state(''input_select.mudroom'',''Night Motion'') }}'\n - condition: template\n value_template: '{{ not is_state(''input_select.mudroom'',''Motion'') }}'\n action:\n - service: input_select.select_option\n data:\n entity_id: input_select.mudroom\n option: Motion",
|
|
"config": [
|
|
{
|
|
"name": "bedtime",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.bedtime",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "house status",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.house",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "mudroom motion sensor motion detection",
|
|
"room": "mudroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.mudroom_motion_sensor_motion_detection",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "mudroom mode",
|
|
"room": "mudroom",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.mudroom",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "mudroom_mode_night_motion",
|
|
"automation": "- id: mudroom_mode_night_motion\n initial_state: 'on'\n alias: Mudroom mode night motion\n trigger:\n - platform: state\n entity_id: input_select.house\n to: Bedtime\n for:\n minutes: 10\n - platform: state\n entity_id: input_boolean.bedtime\n to: 'on'\n - platform: state\n entity_id: binary_sensor.bedtime\n to: 'on'\n condition:\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n - condition: state\n entity_id: input_boolean.bedtime\n state: 'on'\n - condition: state\n entity_id: binary_sensor.bedtime\n state: 'on'\n - condition: template\n value_template: '{{ not is_state(''input_select.mudroom'',''Night Motion'') }}'\n action:\n - service: input_select.select_option\n data:\n entity_id: input_select.mudroom\n option: Night Motion",
|
|
"config": [
|
|
{
|
|
"name": "bedtime",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.bedtime",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "house status",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.house",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "binary sensor bedtime",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.bedtime",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "mudroom mode",
|
|
"room": "mudroom",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.mudroom",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "mudroom_mode_on",
|
|
"automation": "- id: mudroom_mode_on\n initial_state: 'on'\n alias: Mudroom mode on\n trigger:\n - platform: state\n to: Just Arrived\n entity_id:\n - input_select.john_status\n - input_select.cristina_status_dropdown\n - platform: state\n entity_id: input_boolean.house_occupied\n to: 'on'\n condition:\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n action:\n - service: input_select.select_option\n data:\n entity_id: input_select.mudroom\n option: 'On'",
|
|
"config": [
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "john status",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.john_status",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "cristina status dropdown",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.cristina_status_dropdown",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "mudroom mode",
|
|
"room": "mudroom",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.mudroom",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "nearly_home_off",
|
|
"automation": "- id: nearly_home_off\n alias: Nearly Home - Turn Off\n initial_state: true\n trigger:\n - platform: state\n entity_id: group.family\n to: home\n - platform: state\n entity_id:\n - person.cristina_falbo\n - person.john_koht\n to: home\n - platform: state\n entity_id: input_boolean.house_occupied\n to: 'on'\n condition:\n - condition: state\n entity_id: group.family\n state: home\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n - condition: state\n entity_id: input_boolean.nearly_home\n state: 'on'\n action:\n - service: input_boolean.turn_off\n entity_id: input_boolean.nearly_home\n - service: automation.turn_off\n entity_id: automation.nearly_home_turn_off\n - service: script.general_notification\n data:\n title: Nearly Home Off\n message: Nearly Home turned off since you're home\n devices: jk\n priority: passive\n tag: nearly-home",
|
|
"config": [
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "family group",
|
|
"room": "family",
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "group.family",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "person cristina falbo",
|
|
"room": null,
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.cristina_falbo",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "general notification script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.general_notification",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "person john koht",
|
|
"room": null,
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.john_koht",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "person cristina falbo",
|
|
"room": null,
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.cristina_falbo",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "nearly home",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.nearly_home",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Nearly Home Turn Off",
|
|
"room": null,
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.nearly_home_turn_off",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "nearly_home_on",
|
|
"automation": "- id: nearly_home_on\n alias: Nearly Home - Turn On\n initial_state: true\n trigger:\n - platform: numeric_state\n entity_id:\n - sensor.home_nearest_distance\n below: 5\n above: 1\n condition:\n - condition: state\n entity_id: input_boolean.nearly_home\n state: 'off'\n - condition: state\n entity_id: group.family\n state: not_home\n for:\n minutes: 10\n - condition: state\n entity_id: sensor.home_nearest_direction_of_travel\n state: towards\n action:\n - service: input_boolean.turn_on\n entity_id: input_boolean.nearly_home\n - service: automation.turn_on\n entity_id: automation.nearly_home_turn_off\n - service: script.general_notification\n data:\n title: Nearly Home On\n message: Nearly home automation turned on\n devices: jk\n priority: passive\n tag: nearly-home",
|
|
"config": [
|
|
{
|
|
"name": "home nearest distance",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.home_nearest_distance",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "family group",
|
|
"room": "family",
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "group.family",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "general notification script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.general_notification",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "nearly home",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.nearly_home",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Nearly Home Turn Off",
|
|
"room": null,
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.nearly_home_turn_off",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Home Nearest Direction of Travel",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.home_nearest_direction_of_travel",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "neighborhood_event_tomorrow_reminder",
|
|
"automation": "- id: neighborhood_event_tomorrow_reminder\n alias: Kids Activity Tomorrow Reminder\n mode: single\n trigger:\n - platform: time\n at: '20:00:00'\n condition:\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n - condition: state\n entity_id: binary_sensor.neighborhood_event_tomorrow\n state: 'on'\n action:\n - wait_template: \"{{ \\n is_state('binary_sensor.kitchen_motion_sensor_status',\\\n \\ 'on')\\n or\\n is_state('binary_sensor.family_room_motion_sensor', 'on')\\n\\\n }}\"\n timeout: 00:05:00\n - alias: Wait 2 seconds\n delay: 2\n - service: script.voice_announcement\n data:\n media_players: auto\n sound: message-alert\n speech_message: \"{% set time = states.calendar.golf_acres.attributes.start_time\\\n \\ | as_datetime | as_local %} {% set time = time.timestamp() | timestamp_custom('%-I:%M\\\n \\ %p') %}\\n{{ \\n [\\n \\\"Hey fam! Neighborhood event tomorrow: \\\" ~ states.calendar.golf_acres.attributes.message\\\n \\ ~ \\\" at \\\" ~ time,\\n \\\"Just a quick reminder that \\\" ~ states.calendar.golf_acres.attributes.message\\\n \\ ~ \\\" is tomorrow at \\\" ~ time,\\n \\\"Heads up for tomorrow: \\\" ~ states.calendar.golf_acres.attributes.message\\\n \\ ~ \\\" at \\\" ~ time\\n ] | random\\n}}\"\n - service: script.general_notification\n data:\n message: '{% set time = states.calendar.golf_acres.attributes.start_time |\n as_datetime | as_local %} {% set time = time.timestamp() | timestamp_custom(''%-I:%M\n %p'') %} \"Tomorrow is {{states.calendar.golf_acres.attributes.message}} at\n {{time}}\"'\n title: Neighborhood Event Reminder\n devices: jk\n priority: active\n tag: neighborhood-event-reminder",
|
|
"config": [
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "kitchen motion sensor status",
|
|
"room": "kitchen",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.kitchen_motion_sensor_status",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "family room motion sensor",
|
|
"room": "family room",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.family_room_motion_sensor",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "general notification script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.general_notification",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "voice announcement script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.voice_announcement",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "family room motion sensor",
|
|
"room": "family room",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.family_room_motion_sensor",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "script voice announcement",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.voice_announcement",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "binary sensor kitchen motion sensor status",
|
|
"room": "kitchen",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.kitchen_motion_sensor_status",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "neighborhood event tomorrow",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.neighborhood_event_tomorrow",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "calendar golf acres",
|
|
"room": null,
|
|
"type": "calendar",
|
|
"id": {
|
|
"entity_id": "calendar.golf_acres",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "neighborhood_event_upcoming_reminder",
|
|
"automation": "- id: neighborhood_event_upcoming_reminder\n alias: Neighborhood Event Upcoming Reminder\n mode: single\n trigger:\n - platform: calendar\n event: start\n entity_id: calendar.golf_acres\n offset: -01:00:00\n condition:\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n action:\n - service: script.voice_announcement\n data:\n media_players: auto\n sound: success-trumpets\n speech_message: \"{{ \\n [\\n \\\"Hey fam, \\\" ~ states.calendar.golf_acres.attributes.message\\\n \\ ~ \\\" is in one hour.\\\",\\n \\\"Just a quick reminder that \\\" ~ states.calendar.golf_acres.attributes.message\\\n \\ ~ \\\" is in one hour.\\\",\\n \\\"Pardon the interruption, I just wanted to\\\n \\ remind you that \\\" ~ states.calendar.golf_acres.attributes.message ~ \\\"\\\n \\ is in one hour.\\\"\\n ] | random\\n}}\"",
|
|
"config": [
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "voice announcement script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.voice_announcement",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "script voice announcement",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.voice_announcement",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "calendar golf acres",
|
|
"room": null,
|
|
"type": "calendar",
|
|
"id": {
|
|
"entity_id": "calendar.golf_acres",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "enable_nino_bathroom_heater_automation",
|
|
"automation": "- id: enable_nino_bathroom_heater_automation\n alias: Enable Nino's Bathroom Heater Automation\n initial_state: false\n trigger:\n - platform: state\n entity_id: input_boolean.ninos_bedroom_occupied\n to: 'on'\n for:\n minutes: 30\n - platform: state\n entity_id: input_boolean.bedtime\n to: 'on'\n - platform: time\n at: 00:01:00\n - platform: event\n event_type: automation_reloaded\n - platform: homeassistant\n event: start\n condition:\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n - condition: state\n entity_id: input_boolean.ninos_bedroom_occupied\n state: 'on'\n - condition: time\n after: '18:00:00'\n - condition: state\n entity_id: automation.nino_s_bathroom_heater_on\n state: 'off'\n action:\n - service: automation.turn_on\n entity_id: automation.nino_s_bathroom_heater_on",
|
|
"config": [
|
|
{
|
|
"name": "bedtime",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.bedtime",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "ninos bedroom occupied",
|
|
"room": "ninos bedroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.ninos_bedroom_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Nino's Bathroom Heater On",
|
|
"room": "Nino's Bathroom",
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.nino_s_bathroom_heater_on",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "ninos_bathroom_heater_on",
|
|
"automation": "- id: ninos_bathroom_heater_on\n alias: Nino's Bathroom Heater On\n initial_state: false\n trigger:\n - platform: time\n at: 05:00:00\n - platform: state\n entity_id: binary_sensor.ninos_door_sensor_status\n to: 'on'\n - platform: template\n value_template: '{{ (states.sensor.aqara_weather_sensor_1_temperature.state |\n float) < 71.0 }}'\n - platform: template\n value_template: '{{ (states.sensor.aqara_weather_sensor_1_temperature.state |\n float) < 61.0 }}'\n condition:\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n - condition: or\n conditions:\n - condition: state\n entity_id: input_boolean.ninos_bedroom_occupied\n state: 'on'\n - condition: template\n value_template: '{{ (states.sensor.aqara_weather_sensor_1_temperature.state\n | float) < 65.0 }}'\n - condition: time\n after: 04:30:00\n - condition: template\n value_template: '{{ (states.sensor.aqara_weather_sensor_1_temperature.state |\n float) < 71.0 }}'\n - condition: state\n entity_id: switch.smart_plug_2_switch\n state: 'off'\n action:\n - service: switch.turn_on\n entity_id: switch.smart_plug_2_switch\n - service: automation.turn_off\n entity_id: automation.nino_s_bathroom_heater_on",
|
|
"config": [
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "ninos bedroom occupied",
|
|
"room": "ninos bedroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.ninos_bedroom_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "ninos door sensor status",
|
|
"room": "ninos bedroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.ninos_door_sensor_status",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "aqara weather sensor 1 temperature",
|
|
"room": "ninos bathroom",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.aqara_weather_sensor_1_temperature",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "smart plug 2 switch",
|
|
"room": "ninos bedroom",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.smart_plug_2_switch",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Nino's Bathroom Heater On",
|
|
"room": "Nino's Bathroom",
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.nino_s_bathroom_heater_on",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "ninos_bathroom_heater_off",
|
|
"automation": "- id: ninos_bathroom_heater_off\n alias: Nino's Bathroom Heater Off\n initial_state: true\n trigger:\n - platform: template\n value_template: '{{ (states.sensor.aqara_weather_sensor_1_temperature.state |\n float) > 73.5 }}'\n - platform: state\n entity_id: input_boolean.ninos_bedroom_occupied\n to: 'off'\n for:\n minutes: 20\n - platform: state\n entity_id: input_boolean.house_occupied\n to: 'off'\n - platform: state\n entity_id: switch.smart_plug_2_switch\n to: 'on'\n for:\n hours: 3\n condition:\n - condition: state\n entity_id: switch.smart_plug_2_switch\n state: 'on'\n action:\n - service: switch.turn_off\n entity_id: switch.smart_plug_2_switch",
|
|
"config": [
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "ninos bedroom occupied",
|
|
"room": "ninos bedroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.ninos_bedroom_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "aqara weather sensor 1 temperature",
|
|
"room": "ninos bathroom",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.aqara_weather_sensor_1_temperature",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "smart plug 2 switch",
|
|
"room": "ninos bedroom",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.smart_plug_2_switch",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "ninos_bathroom_heater_turn_on_upon_arrival",
|
|
"automation": "- id: ninos_bathroom_heater_turn_on_upon_arrival\n alias: Nino's Bathroom Heater - Turn On Upon Arrival\n initial_state: true\n trigger:\n - platform: state\n entity_id: input_boolean.house_occupied\n to: 'on'\n - platform: state\n entity_id: group.family\n from: not_home\n to: home\n - platform: state\n entity_id:\n - person.cristina_falbo\n - person.john_koht\n to: Just Arrived\n condition:\n - condition: or\n conditions:\n - condition: template\n value_template: '{{ (as_timestamp(now()) - as_timestamp(states.input_boolean.house_occupied.last_updated))\n | int < 300 }}'\n - condition: and\n conditions:\n - condition: state\n entity_id: group.family\n state: home\n - condition: template\n value_template: '{{ (as_timestamp(now()) - as_timestamp(states.group.familiy.last_updated))\n | int < 300 }}'\n - condition: state\n entity_id:\n - person.cristina_falbo\n - person.john_koht\n state: Just Arrived\n - condition: template\n value_template: '{{ (states.sensor.aqara_weather_sensor_1_temperature.state |\n float) < 71.5 }}'\n - condition: time\n after: '18:30:00'\n action:\n - service: switch.turn_on\n entity_id: switch.smart_plug_2_switch",
|
|
"config": [
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "family group",
|
|
"room": "family",
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "group.family",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "person cristina falbo",
|
|
"room": null,
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.cristina_falbo",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "person john koht",
|
|
"room": null,
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.john_koht",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "person cristina falbo",
|
|
"room": null,
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.cristina_falbo",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "aqara weather sensor 1 temperature",
|
|
"room": "ninos bathroom",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.aqara_weather_sensor_1_temperature",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "smart plug 2 switch",
|
|
"room": "ninos bedroom",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.smart_plug_2_switch",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "nino_bedroom_heater_on",
|
|
"automation": "- id: nino_bedroom_heater_on\n alias: Nino bedroom heater on\n initial_state: true\n trigger:\n - platform: state\n entity_id: input_boolean.ninos_bedroom_occupied\n to: 'on'\n for:\n minutes: 1\n - platform: numeric_state\n entity_id: sensor.nino_room_temperature\n below: 70\n for:\n minutes: 5\n - platform: template\n value_template: '{{ (states.sensor.nino_room_temperature.state | float) < 69.5\n }}'\n - platform: numeric_state\n entity_id: sensor.nino_room_temperature\n below: 69\n for:\n minutes: 5\n - platform: time\n at: '18:30:00'\n condition:\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n - condition: or\n conditions:\n - condition: state\n entity_id: input_boolean.ninos_bedroom_occupied\n state: 'on'\n - condition: time\n after: '18:30:00'\n - condition: template\n value_template: '{{ (states.sensor.nino_room_temperature.state | float) < 71.3\n }}'\n action:\n - service: switch.turn_on\n entity_id: switch.smart_plug_2_switch",
|
|
"config": [
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "ninos bedroom occupied",
|
|
"room": "ninos bedroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.ninos_bedroom_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "smart plug 2 switch",
|
|
"room": "ninos bedroom",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.smart_plug_2_switch",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "nino room temperature",
|
|
"room": "ninos bedroom",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.nino_room_temperature",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "nino_bedroom_heater_off",
|
|
"automation": "- id: nino_bedroom_heater_off\n alias: Nino bedroom heater off\n initial_state: true\n trigger:\n - platform: state\n entity_id: binary_sensor.ninos_door_sensor_status\n to: 'on'\n for:\n minutes: 10\n - platform: template\n value_template: '{{ (states.sensor.nino_room_temperature.state | float) > 70.15\n }}'\n - platform: numeric_state\n entity_id: sensor.nino_room_temperature\n above: 71\n - platform: numeric_state\n entity_id: sensor.nino_room_temperature\n above: 72\n - platform: template\n value_template: '{{ (states.sensor.nino_room_temperature.state | float) > 72.5\n }}'\n - platform: numeric_state\n entity_id: sensor.nino_room_temperature\n above: 73\n - platform: numeric_state\n entity_id: sensor.nino_room_temperature\n above: 74\n - platform: numeric_state\n entity_id: sensor.nino_room_temperature\n above: 75\n - platform: state\n entity_id: input_boolean.house_occupied\n to: 'off'\n - platform: state\n entity_id: input_boolean.ninos_bedroom_occupied\n to: 'off'\n condition:\n - condition: or\n conditions:\n - condition: template\n value_template: '{{ (states.sensor.nino_room_temperature.state | float) >= 72.0\n }}'\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'off'\n - condition: state\n entity_id: input_boolean.ninos_bedroom_occupied\n state: 'off'\n - condition: state\n entity_id: switch.smart_plug_2_switch\n state: 'on'\n action:\n - service: switch.turn_off\n entity_id: switch.smart_plug_2_switch",
|
|
"config": [
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "ninos bedroom occupied",
|
|
"room": "ninos bedroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.ninos_bedroom_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "ninos door sensor status",
|
|
"room": "ninos bedroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.ninos_door_sensor_status",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "smart plug 2 switch",
|
|
"room": "ninos bedroom",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.smart_plug_2_switch",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "nino room temperature",
|
|
"room": "ninos bedroom",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.nino_room_temperature",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "ninos_bedroom_heater_turn_on_upon_arrival",
|
|
"automation": "- id: ninos_bedroom_heater_turn_on_upon_arrival\n alias: Nino Bedroom Heater - Turn On Upon Arrival\n initial_state: true\n trigger:\n - platform: state\n entity_id: input_boolean.house_occupied\n to: 'on'\n - platform: state\n entity_id: group.family\n from: not_home\n to: home\n - platform: state\n entity_id:\n - person.cristina_falbo\n - person.john_koht\n to: Just Arrived\n condition:\n - condition: or\n conditions:\n - condition: template\n value_template: '{{ (as_timestamp(now()) - as_timestamp(states.input_boolean.house_occupied.last_updated))\n | int < 300 }}'\n - condition: and\n conditions:\n - condition: state\n entity_id: group.family\n state: home\n - condition: template\n value_template: '{{ (as_timestamp(now()) - as_timestamp(states.group.familiy.last_updated))\n | int < 300 }}'\n - condition: state\n entity_id:\n - person.cristina_falbo\n - person.john_koht\n state: Just Arrived\n - condition: template\n value_template: '{{ (states.sensor.nino_room_temperature.state | float) < 71.5\n }}'\n - condition: time\n after: '18:30:00'\n action:\n - service: switch.turn_on\n entity_id: switch.smart_plug_2_switch",
|
|
"config": [
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "family group",
|
|
"room": "family",
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "group.family",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "person cristina falbo",
|
|
"room": null,
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.cristina_falbo",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "person john koht",
|
|
"room": null,
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.john_koht",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "person cristina falbo",
|
|
"room": null,
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.cristina_falbo",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "smart plug 2 switch",
|
|
"room": "ninos bedroom",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.smart_plug_2_switch",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "nino room temperature",
|
|
"room": "ninos bedroom",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.nino_room_temperature",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "ninos_bedroom_lights_off",
|
|
"automation": "- id: ninos_bedroom_lights_off\n initial_state: true\n alias: Nino's Bedroom - Lights Off\n trigger:\n - platform: state\n entity_id: input_select.ninos_bedroom\n to: 'Off'\n - platform: state\n entity_id: input_boolean.ninos_bedroom_occupied\n to: 'off'\n - platform: state\n entity_id: input_boolean.lighting_automations\n to: 'on'\n condition:\n - condition: state\n entity_id: input_boolean.ninos_bedroom_occupied\n state: 'off'\n - condition: or\n conditions:\n - condition: state\n entity_id: input_select.ninos_bedroom\n state: 'Off'\n - condition: state\n entity_id: input_boolean.ninos_bedroom_occupied\n state: 'off'\n action:\n - service: light.turn_off\n entity_id:\n - light.ninos_bedroom_main_lights\n - light.nino_bedroom_lamp",
|
|
"config": [
|
|
{
|
|
"name": "lighting automations",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.lighting_automations",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "ninos bedroom occupied",
|
|
"room": "ninos bedroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.ninos_bedroom_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "ninos bedroom mode",
|
|
"room": "ninos bedroom",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.ninos_bedroom",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "ninos bedroom main lights",
|
|
"room": "ninos bedroom",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.ninos_bedroom_main_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "nino bedroom lamp",
|
|
"room": "ninos bedroom",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.nino_bedroom_lamp",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "ninos_bedroom_mode_auto",
|
|
"automation": "- id: ninos_bedroom_mode_auto\n initial_state: true\n alias: Nino's Bedroom - Mode Auto\n triggers:\n - trigger: state\n entity_id: input_boolean.ninos_bedroom_occupied\n to: 'off'\n - trigger: state\n entity_id: input_select.house\n to: Auto\n - trigger: state\n entity_id: input_boolean.house_occupied\n to: 'on'\n - trigger: state\n entity_id: input_boolean.nino_in_bed\n to: 'off'\n for:\n minutes: 10\n - trigger: state\n entity_id: input_boolean.bedtime\n to: 'off'\n conditions:\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n - condition: template\n value_template: '{{ not is_state(''input_select.ninos_bedroom'',''Auto'') }}'\n - condition: state\n entity_id: input_boolean.bedtime\n state: 'off'\n - condition: state\n entity_id: input_boolean.ninos_bedroom_occupied\n state: 'off'\n - condition: state\n entity_id: input_boolean.nino_in_bed\n state: 'off'\n actions:\n - action: input_select.select_option\n data:\n entity_id: input_select.ninos_bedroom\n option: Auto",
|
|
"config": [
|
|
{
|
|
"name": "bedtime",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.bedtime",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "house status",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.house",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "ninos bedroom occupied",
|
|
"room": "ninos bedroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.ninos_bedroom_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "ninos bedroom mode",
|
|
"room": "ninos bedroom",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.ninos_bedroom",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "nino in bed",
|
|
"room": "ninos bedroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.nino_in_bed",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "ninos_bedroom_mode_bedtime",
|
|
"automation": "- id: ninos_bedroom_mode_bedtime\n initial_state: true\n alias: Nino's Bedroom - Mode Bedtime\n triggers:\n - trigger: state\n entity_id: input_boolean.nino_in_bed\n to: 'on'\n conditions:\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n - condition: template\n value_template: '{{ not is_state(''input_select.ninos_bedroom'',''Bedtime'') }}'\n action:\n - action: input_select.select_option\n data:\n entity_id: input_select.ninos_bedroom\n option: Bedtime",
|
|
"config": [
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "ninos bedroom mode",
|
|
"room": "ninos bedroom",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.ninos_bedroom",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "nino in bed",
|
|
"room": "ninos bedroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.nino_in_bed",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "ninos_bedroom_mode_off",
|
|
"automation": "- id: ninos_bedroom_mode_off\n initial_state: true\n alias: Nino's Bedroom - Mode Off\n triggers:\n - trigger: state\n entity_id: input_boolean.house_occupied\n to: 'off'\n - trigger: state\n entity_id: input_select.house\n to: Away\n - trigger: homeassistant\n event: start\n - trigger: event\n event_type: automation_reloaded\n conditions:\n - condition: template\n value_template: '{{ not is_state(''input_select.ninos_bedroom'',''Off'') }}'\n - condition: or\n conditions:\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'off'\n - condition: state\n entity_id: input_select.house\n state: Away\n actions:\n - action: input_select.select_option\n data:\n entity_id: input_select.ninos_bedroom\n option: 'Off'",
|
|
"config": [
|
|
{
|
|
"name": "house status",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.house",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "ninos bedroom mode",
|
|
"room": "ninos bedroom",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.ninos_bedroom",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "ninos_bedroom_not_occupied",
|
|
"automation": "- id: ninos_bedroom_not_occupied\n initial_state: true\n alias: Nino's Bedroom - Not Occupied\n trigger:\n - platform: state\n entity_id: binary_sensor.ninos_door_sensor_status\n to: 'on'\n for:\n minutes: 5\n - platform: state\n entity_id: light.ninos_bedroom_main_lights\n to: 'off'\n for:\n minutes: 5\n - platform: state\n entity_id: binary_sensor.nino_bed_occupied\n to: 'off'\n for:\n minutes: 5\n condition:\n - condition: state\n entity_id: input_boolean.ninos_bedroom_occupied\n state: 'on'\n - condition: and\n conditions:\n - condition: state\n entity_id: binary_sensor.ninos_door_sensor_status\n state: 'on'\n - condition: state\n entity_id: light.ninos_bedroom_main_lights\n state: 'off'\n - condition: state\n entity_id: binary_sensor.nino_bed_occupied\n state: 'off'\n action:\n - service: input_boolean.turn_off\n entity_id: input_boolean.ninos_bedroom_occupied",
|
|
"config": [
|
|
{
|
|
"name": "ninos bedroom occupied",
|
|
"room": "ninos bedroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.ninos_bedroom_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "ninos bedroom main lights",
|
|
"room": "ninos bedroom",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.ninos_bedroom_main_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "ninos door sensor status",
|
|
"room": "ninos bedroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.ninos_door_sensor_status",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "nino bed occupied",
|
|
"room": "ninos bedroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.nino_bed_occupied",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "ninos_bedroom_occupied",
|
|
"automation": "- id: ninos_bedroom_occupied\n initial_state: true\n alias: Nino's Bedroom - Occupied\n trigger:\n - platform: state\n entity_id: binary_sensor.ninos_door_sensor_status\n to: 'off'\n - platform: state\n entity_id: light.ninos_bedroom_main_lights\n to: 'on'\n - platform: state\n entity_id: binary_sensor.nino_bed_occupied\n to: 'on'\n condition:\n - condition: state\n entity_id: input_boolean.ninos_bedroom_occupied\n state: 'off'\n - condition: or\n conditions:\n - condition: state\n entity_id: binary_sensor.ninos_door_sensor_status\n state: 'off'\n - condition: state\n entity_id: light.ninos_bedroom_main_lights\n state: 'on'\n - condition: state\n entity_id: binary_sensor.nino_bed_occupied\n state: 'on'\n action:\n - service: input_boolean.turn_on\n entity_id: input_boolean.ninos_bedroom_occupied",
|
|
"config": [
|
|
{
|
|
"name": "ninos bedroom occupied",
|
|
"room": "ninos bedroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.ninos_bedroom_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "ninos bedroom main lights",
|
|
"room": "ninos bedroom",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.ninos_bedroom_main_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "ninos door sensor status",
|
|
"room": "ninos bedroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.ninos_door_sensor_status",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "nino bed occupied",
|
|
"room": "ninos bedroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.nino_bed_occupied",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "nino_bedroom_air_quality_detections",
|
|
"automation": "- id: nino_bedroom_air_quality_detections\n alias: Nino's Bedroom Air Quality Sensor Detections\n mode: single\n initial_state: true\n triggers:\n - trigger: state\n entity_id: sensor.nino_bedroom_air_quality\n - trigger: state\n entity_id: input_select.ninos_bedroom\n to: Bedtime\n - trigger: state\n entity_id: input_boolean.ninos_bedroom_occupied\n conditions:\n - or:\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n - condition: state\n entity_id: input_boolean.almost_home\n state: 'on'\n variables:\n purifier: fan.ninos_bedroom_air_purifier\n aqi_state: '{{ states.sensor.nino_bedroom_air_quality.state }}'\n room_state: '{{ states.input_select.ninos_bedroom.state }}'\n actions:\n - action: script.air_quality_set_air_purifier_mode\n data:\n purifier: '{{ purifier }}'\n aqi_state: '{{ aqi_state }}'\n room_state: '{{ room_state }}'",
|
|
"config": [
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "almost home",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.almost_home",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "ninos bedroom occupied",
|
|
"room": "ninos bedroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.ninos_bedroom_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "air quality set air purifier mode script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.air_quality_set_air_purifier_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "ninos bedroom mode",
|
|
"room": "ninos bedroom",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.ninos_bedroom",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "nino bedroom air quality",
|
|
"room": "ninos bedroom",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.nino_bedroom_air_quality",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "ninos bedroom air purifier",
|
|
"room": "ninos bedroom",
|
|
"type": "fan",
|
|
"id": {
|
|
"entity_id": "fan.ninos_bedroom_air_purifier",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "nino_bedroom_turn_off_purifier",
|
|
"automation": "- id: nino_bedroom_turn_off_purifier\n alias: Nino's Bedroom Air Quality - Turn off Purifier\n mode: single\n initial_state: true\n triggers:\n - trigger: state\n entity_id: input_boolean.house_occupied\n to: 'off'\n - trigger: state\n entity_id: input_boolean.ninos_bedroom_occupied\n to: 'off'\n for:\n minutes: 30\n actions:\n - action: fan.turn_off\n target:\n entity_id: fan.ninos_bedroom_air_purifier",
|
|
"config": [
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "ninos bedroom occupied",
|
|
"room": "ninos bedroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.ninos_bedroom_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "ninos bedroom air purifier",
|
|
"room": "ninos bedroom",
|
|
"type": "fan",
|
|
"id": {
|
|
"entity_id": "fan.ninos_bedroom_air_purifier",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "nino_bed_awake",
|
|
"automation": "- id: nino_bed_awake\n alias: Nino Bed - Awake\n mode: single\n trigger:\n - platform: state\n entity_id: input_select.nino_sleep_state\n to: Just Got Up\n for:\n minutes: 5\n action:\n - service: input_select.select_option\n data:\n entity_id: input_select.nino_sleep_state\n option: Awake\n - service: input_boolean.turn_off\n entity_id: input_boolean.nino_in_bed",
|
|
"config": [
|
|
{
|
|
"name": "nino in bed",
|
|
"room": "ninos bedroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.nino_in_bed",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "nino sleep state",
|
|
"room": "ninos bedroom",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.nino_sleep_state",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "nino_bed_just_got_up",
|
|
"automation": "- id: nino_bed_just_got_up\n alias: Nino Bed - Just Got Up\n mode: single\n trigger:\n - platform: state\n entity_id: binary_sensor.nino_bed_occupied\n to: 'off'\n action:\n - service: input_select.select_option\n data:\n entity_id: input_select.nino_sleep_state\n option: Just Got Up",
|
|
"config": [
|
|
{
|
|
"name": "nino bed occupied",
|
|
"room": "ninos bedroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.nino_bed_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "nino sleep state",
|
|
"room": "ninos bedroom",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.nino_sleep_state",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "nino_bed_just_laid_down",
|
|
"automation": "- id: nino_bed_just_laid_down\n alias: Nino Bed - Just Laid Down\n mode: single\n trigger:\n - platform: state\n entity_id: binary_sensor.nino_bed_occupied\n to: 'on'\n condition:\n - condition: template\n value_template: '{{ not is_state(''input_select.nino_sleep_state'',''Sleep'')\n }}'\n action:\n - service: input_select.select_option\n data:\n entity_id: input_select.nino_sleep_state\n option: Just Laid Down",
|
|
"config": [
|
|
{
|
|
"name": "nino bed occupied",
|
|
"room": "ninos bedroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.nino_bed_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "nino sleep state",
|
|
"room": "ninos bedroom",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.nino_sleep_state",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "nino_bed_sleep",
|
|
"automation": "- id: nino_bed_sleep\n alias: Nino Bed - Sleep\n mode: single\n trigger:\n - platform: state\n entity_id: input_select.nino_sleep_state\n to: Just Laid Down\n for:\n minutes: 5\n action:\n - service: input_select.select_option\n data:\n entity_id: input_select.nino_sleep_state\n option: Sleep\n - service: input_boolean.turn_on\n entity_id: input_boolean.nino_in_bed",
|
|
"config": [
|
|
{
|
|
"name": "nino in bed",
|
|
"room": "ninos bedroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.nino_in_bed",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "nino sleep state",
|
|
"room": "ninos bedroom",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.nino_sleep_state",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "nino_countdown_to_birthday_turn_off",
|
|
"automation": "- id: nino_countdown_to_birthday_turn_off\n alias: Nino Countdown to Birthday - Turn Off\n mode: single\n initial_state: false\n triggers:\n - trigger: template\n value_template: '{{ now().month == 4 and now().day == 18 }}'\n actions:\n - action: input_boolean.turn_off\n entity_id: input_boolean.nino_countdown_to_birthday\n - action: automation.turn_off\n entity_id:\n - automation.nino_countdown_to_birthday_turn_off\n - automation.nino_birthday_countdown_reminder\n - automation.nino_birthday_daily_reset\n - action: automation.turn_on\n entity_id: automation.nino_countdown_to_birthday_turn_on",
|
|
"config": [
|
|
{
|
|
"name": "nino countdown to birthday",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.nino_countdown_to_birthday",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Nino Birthday Countdown Reminder",
|
|
"room": null,
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.nino_birthday_countdown_reminder",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Nino Birthday Daily Reset",
|
|
"room": null,
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.nino_birthday_daily_reset",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Nino Countdown to Birthday Turn Off",
|
|
"room": null,
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.nino_countdown_to_birthday_turn_off",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Nino Countdown to Birthday Turn On",
|
|
"room": null,
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.nino_countdown_to_birthday_turn_on",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "nino_countdown_to_birthday_turn_on",
|
|
"automation": "- id: nino_countdown_to_birthday_turn_on\n alias: Nino Countdown to Birthday - Turn On\n mode: single\n initial_state: true\n triggers:\n - trigger: template\n value_template: '{{ now().month == 4 and now().day == 2 }}'\n actions:\n - action: input_boolean.turn_on\n entity_id: input_boolean.nino_countdown_to_birthday\n - action: automation.turn_on\n entity_id:\n - automation.nino_countdown_to_birthday_turn_off\n - action: automation.turn_off\n entity_id: automation.nino_countdown_to_birthday_turn_on",
|
|
"config": [
|
|
{
|
|
"name": "nino countdown to birthday",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.nino_countdown_to_birthday",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Nino Countdown to Birthday Turn Off",
|
|
"room": null,
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.nino_countdown_to_birthday_turn_off",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Nino Countdown to Birthday Turn On",
|
|
"room": null,
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.nino_countdown_to_birthday_turn_on",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "nino_daily_medication_reminder",
|
|
"automation": "- id: nino_daily_medication_reminder\n alias: Nino Daily Medication Reminder\n trigger:\n - trigger: time\n at: 07:30:00\n - trigger: event\n event_type: timer.finished\n event_data:\n entity_id: timer.nino_daily_medication_timer\n - trigger: state\n entity_id: input_select.nino_sleep_state\n to: Awake\n for:\n hours: 1\n conditions:\n - condition: state\n entity_id: input_boolean.nino_daily_medication_taken\n state: 'off'\n - condition: state\n entity_id: timer.nino_daily_medication_timer\n state: idle\n - condition: state\n entity_id: input_select.nino_sleep_state\n state: Awake\n - condition: time\n after: 07:30:00\n before: '10:30:00'\n actions:\n - action: script.voice_announcement\n data:\n media_players: auto\n sound: chirp\n priority: high\n speech_message: \"{{\\n [\\n \\\"It's time for Nino to take his medication.\\\"\\\n ,\\n \\\"Nino, it's time to take your medication.\\\",\\n \\\"Don't forget to\\\n \\ give Nino his medication.\\\",\\n ] | random\\n}}\"\n - variables:\n action_taken: '{{ ''TAKEN_'' ~ context.id }}'\n action_snooze: '{{ ''SNOOZE_'' ~ context.id }}'\n - action: script.general_notification\n data:\n title: Nino's Daily Medication Reminder\n message: It's time for Nino to take his morning medication.\n devices: all\n priority: time-sensitive\n tag: nino-morning-medication\n actions:\n - action: '{{ action_taken }}'\n title: Medication Taken\n - action: '{{ action_snooze }}'\n title: Snooze 15 Minutes\n - wait_for_trigger:\n - trigger: event\n event_type: mobile_app_notification_action\n event_data:\n action: '{{ action_taken }}'\n - trigger: event\n event_type: mobile_app_notification_action\n event_data:\n action: '{{ action_snooze }}'\n - trigger: device\n device_id: d98b081e7991a6e9ce1672128dad93ae\n domain: zha\n type: remote_button_short_press\n subtype: turn_on\n event_data:\n action: '{{ action_taken }}'\n timeout:\n minutes: 15\n - if:\n - '{{ not wait.completed }}'\n then:\n - action: timer.start\n entity_id: timer.nino_daily_medication_timer\n else:\n - if:\n - condition: template\n value_template: '{{ wait.trigger.event.data.action == action_taken }}'\n then:\n - action: input_boolean.turn_on\n entity_id: input_boolean.nino_daily_medication_taken\n - action: timer.cancel\n entity_id: timer.nino_daily_medication_timer\n - action: automation.turn_off\n entity_id: automation.nino_daily_medication_reminder\n - if:\n - condition: template\n value_template: '{{ wait.trigger.event.data.action == action_snooze }}'\n then:\n - action: timer.start\n entity_id: timer.nino_daily_medication_timer",
|
|
"config": [
|
|
{
|
|
"name": "christmas shortcut button",
|
|
"room": null,
|
|
"type": "remote",
|
|
"id": {
|
|
"entity_id": null,
|
|
"device_id": "d98b081e7991a6e9ce1672128dad93ae"
|
|
}
|
|
},
|
|
{
|
|
"name": "general notification script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.general_notification",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "voice announcement script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.voice_announcement",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "script voice announcement",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.voice_announcement",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "nino sleep state",
|
|
"room": "ninos bedroom",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.nino_sleep_state",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "nino daily medication taken",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.nino_daily_medication_taken",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "nino daily medication timer",
|
|
"room": null,
|
|
"type": "timer",
|
|
"id": {
|
|
"entity_id": "timer.nino_daily_medication_timer",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Nino Daily Medication Reminder",
|
|
"room": null,
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.nino_daily_medication_reminder",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "nino_medication_reminder_reset",
|
|
"automation": "- id: nino_medication_reminder_reset\n alias: Nino Medication Reminder Reset\n trigger:\n - trigger: time\n at: 03:00:01\n actions:\n - action: input_boolean.turn_off\n entity_id: input_boolean.nino_daily_medication_taken\n - action: timer.cancel\n entity_id: timer.nino_daily_medication_timer\n - action: automation.turn_on\n entity_id: automation.nino_daily_medication_reminder",
|
|
"config": [
|
|
{
|
|
"name": "nino daily medication taken",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.nino_daily_medication_taken",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "nino daily medication timer",
|
|
"room": null,
|
|
"type": "timer",
|
|
"id": {
|
|
"entity_id": "timer.nino_daily_medication_timer",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Nino Daily Medication Reminder",
|
|
"room": null,
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.nino_daily_medication_reminder",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "nino_medication_reminder_shortcut_button",
|
|
"automation": "- id: nino_medication_reminder_shortcut_button\n alias: Nino Medication Reminder Shortcut Button\n initial_state: true\n triggers:\n - trigger: device\n device_id: d98b081e7991a6e9ce1672128dad93ae\n domain: zha\n type: remote_button_short_press\n subtype: turn_on\n conditions:\n - condition: state\n entity_id: input_boolean.nino_daily_medication_taken\n state: 'off'\n actions:\n - action: input_boolean.turn_on\n entity_id: input_boolean.nino_daily_medication_taken\n - action: timer.cancel\n entity_id: timer.nino_daily_medication_timer\n - action: automation.turn_off\n entity_id: automation.nino_daily_medication_reminder",
|
|
"config": [
|
|
{
|
|
"name": "christmas shortcut button",
|
|
"room": null,
|
|
"type": "remote",
|
|
"id": {
|
|
"entity_id": null,
|
|
"device_id": "d98b081e7991a6e9ce1672128dad93ae"
|
|
}
|
|
},
|
|
{
|
|
"name": "nino daily medication taken",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.nino_daily_medication_taken",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "nino daily medication timer",
|
|
"room": null,
|
|
"type": "timer",
|
|
"id": {
|
|
"entity_id": "timer.nino_daily_medication_timer",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Nino Daily Medication Reminder",
|
|
"room": null,
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.nino_daily_medication_reminder",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "nino_escape_monitor",
|
|
"automation": "- id: nino_escape_monitor\n alias: Nino Escape Monitor\n initial_state: true\n trigger:\n - platform: state\n entity_id: binary_sensor.ninos_door_sensor_status\n to: 'on'\n condition:\n - condition: template\n value_template: '{{ expand(''group.room_presence_devices'')|selectattr(''state'',\n ''in'', [''nino_bedroom''])|map(attribute=''name'')|list | length == 0 }}'\n - condition: or\n conditions:\n - condition: and\n conditions:\n - condition: state\n entity_id: input_boolean.bedtime\n state: 'off'\n - condition: template\n value_template: '{{ (as_timestamp(now()) - as_timestamp(states.input_boolean.ninos_bedroom_occupied.last_updated))\n | int > 900 }}'\n - condition: state\n entity_id: binary_sensor.ninos_door_sensor_status\n state: 'off'\n for:\n minutes: 10\n - condition: and\n conditions:\n - condition: state\n entity_id: input_boolean.bedtime\n state: 'on'\n - condition: state\n entity_id: binary_sensor.main_bedroom_door_sensor_status\n state: 'off'\n - condition: template\n value_template: '{{ (as_timestamp(now()) - as_timestamp(states.binary_sensor.main_bedroom_door_sensor_status.last_updated))\n | int > 90 }}'\n action:\n - service: notify.mobile_app_jk_2\n data:\n message: Nino is escaping!\n title: Nino Escape Monitor",
|
|
"config": [
|
|
{
|
|
"name": "bedtime",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.bedtime",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "room presence devices group",
|
|
"room": null,
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "group.room_presence_devices",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "mobile app jk 2 notification",
|
|
"room": null,
|
|
"type": "notify",
|
|
"id": {
|
|
"entity_id": "notify.mobile_app_jk_2",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "ninos bedroom occupied",
|
|
"room": "ninos bedroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.ninos_bedroom_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "binary sensor main bedroom door sensor status",
|
|
"room": "main bedroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.main_bedroom_door_sensor_status",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "ninos door sensor status",
|
|
"room": "ninos bedroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.ninos_door_sensor_status",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "nino_escape_monitor_turn_off",
|
|
"automation": "- id: nino_escape_monitor_turn_off\n alias: Nino Escape Monitor - Turn Off\n initial_state: true\n trigger:\n - platform: state\n entity_id: input_boolean.bedtime\n to: 'off'\n - platform: state\n entity_id: input_boolean.ninos_bedroom_occupied\n to: 'off'\n condition:\n - condition: state\n entity_id: input_boolean.ninos_bedroom_occupied\n state: 'off'\n - condition: state\n entity_id: input_boolean.bedtime\n state: 'off'\n action:\n - service: automation.turn_off\n entity_id: automation.nino_escape_monitor",
|
|
"config": [
|
|
{
|
|
"name": "bedtime",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.bedtime",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "ninos bedroom occupied",
|
|
"room": "ninos bedroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.ninos_bedroom_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Nino Escape Monitor",
|
|
"room": null,
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.nino_escape_monitor",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "nino_escape_monitor_turn_on",
|
|
"automation": "- id: nino_escape_monitor_turn_on\n alias: Nino Escape Monitor - Turn On\n initial_state: true\n trigger:\n - platform: state\n entity_id: input_boolean.bedtime\n to: 'on'\n - platform: state\n entity_id: binary_sensor.ninos_door_sensor_status\n to: 'off'\n for:\n minutes: 30\n condition:\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n - condition: state\n entity_id: binary_sensor.ninos_door_sensor_status\n state: 'off'\n action:\n - service: automation.turn_on\n entity_id: automation.nino_escape_monitor",
|
|
"config": [
|
|
{
|
|
"name": "bedtime",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.bedtime",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "ninos door sensor status",
|
|
"room": "ninos bedroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.ninos_door_sensor_status",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Nino Escape Monitor",
|
|
"room": null,
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.nino_escape_monitor",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "nino_nap_time",
|
|
"automation": "- id: nino_nap_time\n alias: Nino's nap time\n initial_state: 'off'\n trigger:\n - platform: state\n entity_id: input_boolean.ninos_bedroom_occupied\n to: 'on'\n for:\n minutes: 3\n - platform: state\n entity_id: light.ninos_bedroom_main_lights\n to: 'off'\n - platform: state\n entity_id: light.nino_bedroom_lamp\n to: 'on'\n condition:\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n - condition: state\n entity_id: input_boolean.ninos_bedroom_occupied\n state: 'on'\n - condition: state\n entity_id: binary_sensor.ninos_door_sensor_status\n state: 'off'\n - condition: state\n entity_id: input_boolean.quiet_mode\n state: 'off'\n - condition: time\n after: '17:00:00'\n action:\n - service: input_boolean.turn_on\n entity_id: input_boolean.quiet_mode\n - service: script.voice_announcement\n data:\n media_players: auto\n sound: harp-flourish\n speech_message: \"{{\\n [\\n \\\"Shhh...Nino is going to sleep.\\\",\\n \\\"Quiet\\\n \\ time, Nino is going to sleep!\\\",\\n \\\"Pardon the interruption but Nino\\\n \\ is going to sleep, please be quiet!\\\",\\n \\\"Attention! Quiet mode has\\\n \\ been enabled for Nino's nap.\\\"\\n ] | random\\n}}\"",
|
|
"config": [
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "quiet mode",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.quiet_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "voice announcement script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.voice_announcement",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "ninos bedroom occupied",
|
|
"room": "ninos bedroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.ninos_bedroom_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "script voice announcement",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.voice_announcement",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean quiet mode",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.quiet_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "ninos bedroom main lights",
|
|
"room": "ninos bedroom",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.ninos_bedroom_main_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "nino bedroom lamp",
|
|
"room": "ninos bedroom",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.nino_bedroom_lamp",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "ninos door sensor status",
|
|
"room": "ninos bedroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.ninos_door_sensor_status",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "nino_nap_time_ended",
|
|
"automation": "- id: nino_nap_time_ended\n alias: Nino's nap time ended\n initial_state: 'off'\n trigger:\n - platform: state\n entity_id: input_boolean.ninos_bedroom_occupied\n to: 'off'\n condition:\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n - condition: state\n entity_id: binary_sensor.ninos_door_sensor_status\n state: 'on'\n - condition: state\n entity_id: input_boolean.ninos_bedroom_occupied\n state: 'off'\n - condition: state\n entity_id: input_boolean.quiet_mode\n state: 'on'\n - condition: state\n entity_id: input_boolean.gianlucas_room_occupied\n state: 'off'\n action:\n - service: input_boolean.turn_off\n entity_id: input_boolean.quiet_mode",
|
|
"config": [
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "quiet mode",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.quiet_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "gianlucas room occupied",
|
|
"room": "gianlucas bedroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.gianlucas_room_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "ninos bedroom occupied",
|
|
"room": "ninos bedroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.ninos_bedroom_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean quiet mode",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.quiet_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "ninos door sensor status",
|
|
"room": "ninos bedroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.ninos_door_sensor_status",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "nino_nightlight_turn_off",
|
|
"automation": "- id: nino_nightlight_turn_off\n initial_state: true\n alias: Nino Nightlight - Turn Off\n trigger:\n - platform: state\n entity_id: input_boolean.ninos_bedroom_occupied\n to: 'off'\n for:\n hours: 1\n - platform: time\n at: 07:00:00\n condition:\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n - condition: state\n entity_id: light.nino_bedroom_lamp\n state: 'on'\n - condition: time\n after: 06:00:00\n action:\n - service: light.turn_off\n entity_id: light.nino_bedroom_lamp",
|
|
"config": [
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "ninos bedroom occupied",
|
|
"room": "ninos bedroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.ninos_bedroom_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "nino bedroom lamp",
|
|
"room": "ninos bedroom",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.nino_bedroom_lamp",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "nino_nightlight_turn_on",
|
|
"automation": "- id: nino_nightlight_turn_on\n initial_state: true\n alias: Nino Nightlight - Turn On\n trigger:\n - platform: state\n entity_id: input_boolean.ninos_bedroom_occupied\n to: 'on'\n for:\n hours: 1\n - platform: time\n at: '22:00:00'\n condition:\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n - condition: state\n entity_id: light.nino_bedroom_lamp\n state: 'on'\n - condition: time\n after: '19:00:00'\n action:\n - service: scene.turn_on\n target:\n entity_id: scene.ninos_room_nino_nightlight",
|
|
"config": [
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "ninos bedroom occupied",
|
|
"room": "ninos bedroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.ninos_bedroom_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "nino bedroom lamp",
|
|
"room": "ninos bedroom",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.nino_bedroom_lamp",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "scene ninos room nino nightlight",
|
|
"room": "ninos bedroom",
|
|
"type": "scene",
|
|
"id": {
|
|
"entity_id": "scene.ninos_room_nino_nightlight",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "nino_school_day_off",
|
|
"automation": "- id: nino_school_day_off\n alias: Nino School Day Off\n mode: single\n initial_state: false\n trigger:\n - platform: state\n entity_id: input_boolean.primary_school_day\n to: 'off'\n condition:\n - condition: state\n entity_id: input_boolean.nino_school_day\n state: 'on'\n action:\n - service: input_boolean.turn_off\n entity_id: input_boolean.nino_school_day\n - service: automation.turn_off\n entity_id:\n - automation.nino_school_pickup_reminder",
|
|
"config": [
|
|
{
|
|
"name": "nino school day",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.nino_school_day",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "primary school day",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.primary_school_day",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Nino School Pickup Reminder",
|
|
"room": null,
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.nino_school_pickup_reminder",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "nino_school_day_on",
|
|
"automation": "- id: nino_school_day_on\n alias: Nino School Day On\n mode: single\n initial_state: true\n trigger:\n - platform: state\n entity_id: input_boolean.primary_school_day\n to: 'on'\n action:\n - service: input_boolean.turn_on\n entity_id: input_boolean.nino_school_day\n - service: automation.turn_on\n entity_id:\n - automation.nino_school_pickup_reminder",
|
|
"config": [
|
|
{
|
|
"name": "nino school day",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.nino_school_day",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "primary school day",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.primary_school_day",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Nino School Pickup Reminder",
|
|
"room": null,
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.nino_school_pickup_reminder",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "nino_school_day_reminder",
|
|
"automation": "- id: nino_school_day_reminder\n alias: Nino School Day Reminder\n mode: single\n initial_state: false\n trigger:\n - platform: calendar\n event: start\n entity_id: calendar.ninos_school\n offset: -01:30:00\n condition:\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n - condition: state\n entity_id: input_boolean.nino_school_day\n state: 'on'\n - condition: template\n value_template: '{{ ''reminder'' not in (trigger.calendar_event.summary | lower)\n }}'\n action:\n - service: script.voice_announcement\n data:\n media_players: auto\n sound: school-bell-chime\n speech_message: \"{% set event = trigger.calendar_event.summary | lower %}\\n\\\n {% if \\\"school day\\\" in event %}\\n {{\\n [\\n \\\"Hey gang, it's time\\\n \\ to eat breakfast and get ready for school\\\",\\n \\\"Hey there, it's time\\\n \\ to get the kids breakfast ready. Today is a school day!\\\",\\n \\\"Just\\\n \\ at reminder that there's school today, so it's time for breakfast.\\\",\\n\\\n \\ ] | random\\n }}\\n{% else %}\\n {{\\n [\\n \\\"Hey gang, it's time\\\n \\ to eat breakfast and get ready for \\\" ~ event,\\n \\\"Hey there, it's\\\n \\ time to get the kids breakfast ready. Today is \\\" ~ event,\\n \\\"Just\\\n \\ at reminder that there's \\\" ~ event ~ \\\" today, so it's time for breakfast.\\\"\\\n ,\\n ] | random\\n }}\\n{% endif %}\"",
|
|
"config": [
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "voice announcement script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.voice_announcement",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "script voice announcement",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.voice_announcement",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "nino school day",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.nino_school_day",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "calendar ninos school",
|
|
"room": null,
|
|
"type": "calendar",
|
|
"id": {
|
|
"entity_id": "calendar.ninos_school",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "nino_school_departure_reminder",
|
|
"automation": "- id: nino_school_departure_reminder\n alias: Nino School Departure Reminder\n mode: single\n initial_state: false\n trigger:\n - platform: calendar\n event: start\n entity_id: calendar.ninos_school\n offset: -00:15:00\n condition:\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n - condition: state\n entity_id: input_boolean.nino_school_day\n state: 'on'\n - condition: template\n value_template: '{{ ''reminder'' not in (trigger.calendar_event.summary | lower)\n }}'\n action:\n - service: script.voice_announcement\n data:\n media_players: auto\n sound: school-bell\n priority: high\n expires_in: 5\n speech_message: \"{% set event = trigger.calendar_event.summary | lower %}\\n\\\n {% if \\\"giggle gang\\\" in event %}\\n {% set event_label = \\\"Giggle Gang\\\"\\\n \\ %}\\n{% elif \\\"little acorns\\\" in event %}\\n {% set event_label = \\\"Little\\\n \\ Acorns\\\" %}\\n{% else %}\\n {% set event_label = \\\"school\\\" %}\\n{% endif\\\n \\ %}\\n{{\\n [\\n event_label ~ \\\" starts soon. Time to pack up and head\\\n \\ out!\\\",\\n \\\"Hey gang, time to start heading over to \\\" ~ event_label,\\n\\\n \\ \\\"Pack it up, pack it in, time to drop Nino at \\\" ~ event_label\\n ]\\\n \\ | random\\n}}\"",
|
|
"config": [
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "voice announcement script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.voice_announcement",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "script voice announcement",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.voice_announcement",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "nino school day",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.nino_school_day",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "calendar ninos school",
|
|
"room": null,
|
|
"type": "calendar",
|
|
"id": {
|
|
"entity_id": "calendar.ninos_school",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "nino_school_pickup_reminder",
|
|
"automation": "- id: nino_school_pickup_reminder\n alias: Nino School Pickup Reminder\n mode: single\n initial_state: false\n trigger:\n - platform: time\n at: input_datetime.primary_school_pickup_reminder\n condition:\n - condition: state\n entity_id: input_boolean.nino_school_day\n state: 'on'\n action:\n - service: script.voice_announcement\n data:\n media_players: auto\n sound: school-bell-chime\n priority: normal\n speech_message: \"{{\\n [\\n \\\"School is done! Time to pick up Nino!\\\",\\n \\\n \\ \\\"Hey there! It's time to pickup Nino from school!\\\",\\n \\\"Dont forget\\\n \\ to pick up Nino from school!\\\",\\n \\\"Quick reminder that school is almost\\\n \\ over, time to pick Nino up.\\\" \\n ] | random\\n}}\"\n - service: script.general_notification\n data:\n title: Nino's school is ending soon\n message: School will be over soon, it's time to pick up Nino from school.\n devices: all\n priority: time-sensitive\n tag: nino_school_pikcup",
|
|
"config": [
|
|
{
|
|
"name": "general notification script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.general_notification",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "voice announcement script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.voice_announcement",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "script voice announcement",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.voice_announcement",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "nino school day",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.nino_school_day",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "primary school pickup reminder",
|
|
"room": null,
|
|
"type": "input_datetime",
|
|
"id": {
|
|
"entity_id": "input_datetime.primary_school_pickup_reminder",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "nino_school_reminder_notification",
|
|
"automation": "- id: nino_school_reminder_notification\n alias: Nino School Reminder Notification\n mode: single\n initial_state: false\n trigger:\n - platform: calendar\n event: start\n entity_id: calendar.nino_school_reminder\n condition:\n - condition: state\n entity_id: input_boolean.nino_school_day\n state: 'on'\n action:\n - service: script.voice_announcement\n data:\n media_players: auto\n sound: school-bell-chime\n speech_message: '{{states.calendar.nino_school_reminder.attributes.message}}'",
|
|
"config": [
|
|
{
|
|
"name": "voice announcement script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.voice_announcement",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "script voice announcement",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.voice_announcement",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "nino school day",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.nino_school_day",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "calendar nino school reminder",
|
|
"room": null,
|
|
"type": "calendar",
|
|
"id": {
|
|
"entity_id": "calendar.nino_school_reminder",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "nonna_announce_arrival",
|
|
"automation": "- id: nonna_announce_arrival\n alias: Nonna Announce Arrival\n mode: queued\n initial_state: true\n triggers:\n - trigger: state\n entity_id: person.mary_falbo\n from: not_home\n to: home\n conditions:\n - condition: state\n entity_id: person.mary_falbo\n state: home\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n for:\n minutes: 5\n actions:\n - action: script.person_announcement\n data:\n person: nonna\n announcement_type: arrival\n - condition: state\n entity_id: input_boolean.guest_mode_announced\n state: 'off'\n - action: input_boolean.turn_on\n entity_id: input_boolean.guest_mode_announced",
|
|
"config": [
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "guest mode announced",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.guest_mode_announced",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "guest mode",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.guest_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "script person announcement",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.person_announcement",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "person mary falbo",
|
|
"room": null,
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.mary_falbo",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "nonna_announce_departure",
|
|
"automation": "- id: nonna_announce_departure\n alias: Nonna Announce Departure\n mode: queued\n initial_state: true\n triggers:\n - trigger: state\n entity_id: person.mary_falbo\n from: home\n conditions:\n - condition: state\n entity_id: person.mary_falbo\n state: not_home\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n for:\n minutes: 5\n actions:\n - action: script.person_announcement\n data:\n person: nonna\n announcement_type: departure",
|
|
"config": [
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "script person announcement",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.person_announcement",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "person mary falbo",
|
|
"room": null,
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.mary_falbo",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "nonna_bluetooth_detected_home",
|
|
"automation": "- id: nonna_bluetooth_detected_home\n alias: Nonna Bluetooth Detected Home\n mode: queued\n initial_state: false\n trigger:\n - platform: template\n value_template: '{{ states.sensor.mary_room_presence.state != ''not_home''}}'\n action:\n - service: device_tracker.see\n data:\n dev_id: nonna_iphone_ble_device_tracker\n location_name: \"{% if not is_state('sensor.mary_room_presence', 'not_home')\\\n \\ %}\\n home\\n{% else %}\\n not_home\\n{% endif %}\"",
|
|
"config": [
|
|
{
|
|
"name": "mary room presence",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.mary_room_presence",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "nonna_is_away",
|
|
"automation": "- id: nonna_is_away\n alias: Nonna is Away\n initial_state: true\n triggers:\n - trigger: state\n entity_id: person.mary_falbo\n to: not_home\n - trigger: state\n entity_id: binary_sensor.nonna_presence\n to: 'off'\n - trigger: event\n event_type: automation_reloaded\n - trigger: homeassistant\n event: start\n conditions:\n - condition: not\n conditions:\n - condition: state\n entity_id: input_select.nonna_status\n state: Just Left\n - or:\n - condition: state\n entity_id: binary_sensor.nonna_presence\n state: 'off'\n - condition: state\n entity_id: person.mary_falbo\n state: 'off'\n actions:\n - action: input_boolean.turn_off\n entity_id: input_boolean.nonna_home",
|
|
"config": [
|
|
{
|
|
"name": "nonna home",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.nonna_home",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "person mary falbo",
|
|
"room": null,
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.mary_falbo",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "nonna status",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.nonna_status",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Nonna Presence",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.nonna_presence",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "nonna_is_home",
|
|
"automation": "- id: nonna_is_home\n initial_state: true\n alias: Nonna is Home\n triggers:\n - trigger: state\n entity_id: person.mary_falbo\n to: home\n - trigger: state\n entity_id: binary_sensor.nonna_presence\n to: 'on'\n - trigger: event\n event_type: automation_reloaded\n - trigger: homeassistant\n event: start\n conditions:\n - condition: state\n entity_id: input_boolean.nonna_home\n state: 'off'\n - or:\n - condition: state\n entity_id: binary_sensor.nonna_presence\n state: 'on'\n - condition: state\n entity_id: person.mary_falbo\n state: home\n actions:\n - action: input_boolean.turn_on\n entity_id: input_boolean.nonna_home",
|
|
"config": [
|
|
{
|
|
"name": "nonna home",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.nonna_home",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "person mary falbo",
|
|
"room": null,
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.mary_falbo",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Nonna Presence",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.nonna_presence",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "nonna_open_garage_upon_arrival",
|
|
"automation": "- id: nonna_open_garage_upon_arrival\n alias: Nonna Open Garage Upon Arrival\n mode: queued\n initial_state: false\n trigger:\n - platform: state\n entity_id: input_boolean.nonna_home\n to: 'on'\n for:\n seconds: 3\n condition:\n - condition: state\n entity_id: person.mary_falbo\n state: home\n - condition: state\n entity_id: input_select.nonna_status\n state: Just Arrived\n - condition: state\n entity_id: cover.garage_doors\n state: closed\n - condition: state\n entity_id: input_boolean.bedtime\n state: 'off'\n action:\n - alias: Wait for a person to be detected\n wait_for_trigger:\n - platform: state\n entity_id: binary_sensor.garage_driveway_person_detected\n to: 'on'\n timeout: 00:03:00\n continue_on_timeout: false\n - service: cover.open_cover\n entity_id: cover.garage_door_2",
|
|
"config": [
|
|
{
|
|
"name": "bedtime",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.bedtime",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "nonna home",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.nonna_home",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "cover garage doors",
|
|
"room": "garage",
|
|
"type": "cover",
|
|
"id": {
|
|
"entity_id": "cover.garage_doors",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "garage door 2",
|
|
"room": "garage",
|
|
"type": "cover",
|
|
"id": {
|
|
"entity_id": "cover.garage_door_2",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "garage driveway camera person detected",
|
|
"room": "garage driveway",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.garage_driveway_person_detected",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "cover garage door 2",
|
|
"room": "garage",
|
|
"type": "cover",
|
|
"id": {
|
|
"entity_id": "cover.garage_door_2",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "person mary falbo",
|
|
"room": null,
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.mary_falbo",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "nonna status",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.nonna_status",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "nws_alerts_update_event_id_history",
|
|
"automation": "- alias: NWS Alerts Update Event ID History\n id: nws_alerts_update_event_id_history\n initial_state: 'on'\n trigger:\n - platform: state\n entity_id: sensor.nws_alerts\n action:\n - delay:\n minutes: 5\n - repeat:\n sequence:\n - delay:\n seconds: 5\n - condition: template\n value_template: \"{% set ns = namespace(ids=[]) %} {% for x in range(0,states('sensor.nws_alerts')|int\\\n \\ ) %}\\n {% set id = state_attr('sensor.nws_alerts', 'Alerts')[x].ID %}\\n\\\n \\ {% set ns.ids = ns.ids + [id] %}\\n{% endfor -%} {% set current_id_list\\\n \\ = set(ns.ids) %} {% set history_id_list = set( (states.sensor.nws_alerts_event_ids.attributes.values()|\\\n \\ reject('match', 'nws_alerts_event_ids') | reject('match', 'None') | reject('match',\\\n \\ 'unknown'))|list ) %} {{ (current_id_list.difference(history_id_list)|list)\\\n \\ | count > 0 }}\\n\"\n - service: variable.update_sensor\n target:\n entity_id: sensor.nws_alerts_event_ids\n data:\n value: \"{% set ns = namespace(ids=[]) %} {% for x in range(0,states('sensor.nws_alerts')|int\\\n \\ ) %}\\n {% set id = state_attr('sensor.nws_alerts', 'Alerts')[x].ID\\\n \\ %}\\n {% set ns.ids = ns.ids + [id] %}\\n{% endfor -%} {% set current_id_list\\\n \\ = set(ns.ids) %} {% set history_id_list = set( (states.sensor.nws_alerts_event_ids.attributes.values()|\\\n \\ reject('match', 'nws_alerts_event_ids') | reject('match', 'None') |\\\n \\ reject('match', 'unknown'))|list ) %} {% if (current_id_list.difference(history_id_list)|list)[0]\\\n \\ is defined %}\\n {{ (current_id_list.difference(history_id_list)|list)[0]\\\n \\ }}\\n{% endif %}\\n\"\n - service: variable.update_sensor\n target:\n entity_id: sensor.nws_alerts_event_ids\n data:\n attributes:\n history_1: \"{% set ns = namespace(ids=[]) %} {% for x in range(0,states('sensor.nws_alerts')|int\\\n \\ ) %}\\n {% set id = state_attr('sensor.nws_alerts', 'Alerts')[x].ID\\\n \\ %}\\n {% set ns.ids = ns.ids + [id] %}\\n{% endfor -%} {% set current_id_list\\\n \\ = set(ns.ids) %} {% set history_id_list = set( (states.sensor.nws_alerts_event_ids.attributes.values()|\\\n \\ reject('match', 'nws_alerts_event_ids') | reject('match', 'None')\\\n \\ | reject('match', 'unknown'))|list ) %} {% if (current_id_list.difference(history_id_list)|list)[0]\\\n \\ is defined %}\\n {{ (current_id_list.difference(history_id_list)|list)[0]\\\n \\ }}\\n{% endif %}\\n\"\n history_2: '{{ state_attr(''sensor.nws_alerts_event_ids'', ''history_1'')\n }}'\n history_3: '{{ state_attr(''sensor.nws_alerts_event_ids'', ''history_2'')\n }}'\n history_4: '{{ state_attr(''sensor.nws_alerts_event_ids'', ''history_3'')\n }}'\n history_5: '{{ state_attr(''sensor.nws_alerts_event_ids'', ''history_4'')\n }}'\n history_6: '{{ state_attr(''sensor.nws_alerts_event_ids'', ''history_5'')\n }}'\n history_7: '{{ state_attr(''sensor.nws_alerts_event_ids'', ''history_6'')\n }}'\n history_8: '{{ state_attr(''sensor.nws_alerts_event_ids'', ''history_7'')\n }}'\n history_9: '{{ state_attr(''sensor.nws_alerts_event_ids'', ''history_8'')\n }}'\n history_10: '{{ state_attr(''sensor.nws_alerts_event_ids'', ''history_9'')\n }}'\n history_11: '{{ state_attr(''sensor.nws_alerts_event_ids'', ''history_10'')\n }}'\n history_12: '{{ state_attr(''sensor.nws_alerts_event_ids'', ''history_11'')\n }}'\n history_13: '{{ state_attr(''sensor.nws_alerts_event_ids'', ''history_12'')\n }}'\n history_14: '{{ state_attr(''sensor.nws_alerts_event_ids'', ''history_13'')\n }}'\n history_15: '{{ state_attr(''sensor.nws_alerts_event_ids'', ''history_14'')\n }}'\n until:\n - condition: template\n value_template: \"{% set ns = namespace(ids=[]) %} {% for x in range(0,states('sensor.nws_alerts')|int\\\n \\ ) %}\\n {% set id = state_attr('sensor.nws_alerts', 'Alerts')[x].ID %}\\n\\\n \\ {% set ns.ids = ns.ids + [id] %}\\n{% endfor -%} {% set current_id_list\\\n \\ = set(ns.ids) %} {% set history_id_list = set( (states.sensor.nws_alerts_event_ids.attributes.values()|\\\n \\ reject('match', 'nws_alerts_event_ids') | reject('match', 'None') | reject('match',\\\n \\ 'unknown'))|list ) %} {{ (current_id_list.difference(history_id_list)|list)\\\n \\ | count == 0}}\\n\"",
|
|
"config": [
|
|
{
|
|
"name": "sensor nws alerts",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.nws_alerts",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "nws alerts event ids",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.nws_alerts_event_ids",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "office_air_quality_detections",
|
|
"automation": "- id: office_air_quality_detections\n alias: Office Air Quality Sensor Detections\n mode: single\n initial_state: true\n triggers:\n - trigger: state\n entity_id: sensor.office_air_quality\n to: Hazardous\n for:\n minutes: 2\n - trigger: state\n entity_id: sensor.office_air_quality\n to: Unhealthy\n for:\n minutes: 3\n - trigger: state\n entity_id: sensor.office_air_quality\n to: Moderate\n for:\n minutes: 5\n - trigger: state\n entity_id: sensor.office_air_quality\n to: Acceptable\n - trigger: state\n entity_id: input_boolean.office_occupied\n conditions:\n - or:\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n - condition: state\n entity_id: input_boolean.almost_home\n state: 'on'\n variables:\n purifier: fan.office_air_purifier\n aqi_state: '{{ states.sensor.office_air_quality.state }}'\n room_state: '{{ states.input_select.office.state }}'\n actions:\n - action: script.air_quality_set_air_purifier_mode\n data:\n purifier: '{{ purifier }}'\n aqi_state: '{{ aqi_state }}'\n room_state: '{{ room_state }}'",
|
|
"config": [
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "almost home",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.almost_home",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "air quality set air purifier mode script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.air_quality_set_air_purifier_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean office occupied",
|
|
"room": "office",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.office_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "office air quality",
|
|
"room": "office",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.office_air_quality",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "office air purifier",
|
|
"room": "office",
|
|
"type": "fan",
|
|
"id": {
|
|
"entity_id": "fan.office_air_purifier",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "office mode",
|
|
"room": "office",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.office",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "office_camera_light_off",
|
|
"automation": "- id: office_camera_light_off\n initial_state: true\n alias: Office Camera Light Off\n trigger:\n - platform: state\n entity_id: binary_sensor.john_laptop_camera_active\n to: 'off'\n for:\n seconds: 4\n - platform: state\n entity_id: input_boolean.office_occupied\n to: 'off'\n - platform: state\n entity_id: binary_sensor.johns_macbook_pro_active\n to: 'off'\n condition:\n - condition: state\n entity_id: binary_sensor.john_laptop_camera_active\n state: 'off'\n - condition: state\n entity_id: light.office_el_gato_light\n state: 'on'\n action:\n - service: light.turn_off\n entity_id: light.office_el_gato_light",
|
|
"config": [
|
|
{
|
|
"name": "input boolean office occupied",
|
|
"room": "office",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.office_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "binary sensor johns macbook pro active",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.johns_macbook_pro_active",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "binary sensor john laptop camera active",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.john_laptop_camera_active",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "office el gato light",
|
|
"room": "office",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.office_el_gato_light",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "office_camera_light_on",
|
|
"automation": "- id: office_camera_light_on\n initial_state: true\n alias: Office Camera Light On\n trigger:\n - platform: state\n entity_id: binary_sensor.john_laptop_camera_active\n to: 'on'\n for:\n seconds: 2\n - platform: state\n entity_id: sensor.john_room_presence\n to: office\n condition:\n - condition: state\n entity_id: input_boolean.office_occupied\n state: 'on'\n - condition: state\n entity_id: binary_sensor.john_laptop_camera_active\n state: 'on'\n - condition: state\n entity_id: sensor.john_room_presence\n state: office\n - condition: state\n entity_id: light.office_el_gato_light\n state: 'off'\n action:\n - service: light.turn_on\n entity_id: light.office_el_gato_light",
|
|
"config": [
|
|
{
|
|
"name": "input boolean office occupied",
|
|
"room": "office",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.office_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "binary sensor john laptop camera active",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.john_laptop_camera_active",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "office el gato light",
|
|
"room": "office",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.office_el_gato_light",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "john room presence",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.john_room_presence",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "office_dnd_on",
|
|
"automation": "- id: office_dnd_on\n alias: Office DnD On\n mode: single\n trigger:\n - platform: state\n entity_id: input_boolean.john_dnd\n to: 'on'\n - platform: state\n entity_id: input_boolean.office_occupied\n to: 'on'\n - platform: state\n entity_id: sensor.john_room_presence\n to: office\n - platform: state\n entity_id: input_boolean.office_guest_mode\n to: 'on'\n condition:\n - condition: state\n entity_id: input_boolean.office_occupied\n state: 'on'\n - condition: or\n conditions:\n - condition: and\n conditions:\n - condition: state\n entity_id: input_boolean.john_dnd\n state: 'on'\n - condition: state\n entity_id: sensor.john_room_presence\n state: office\n - condition: state\n entity_id: input_boolean.office_guest_mode\n state: 'on'\n action:\n - service: input_boolean.turn_on\n entity_id: input_boolean.office_dnd",
|
|
"config": [
|
|
{
|
|
"name": "input boolean office occupied",
|
|
"room": "office",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.office_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean john dnd",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.john_dnd",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "office guest mode",
|
|
"room": "office",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.office_guest_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "office dnd",
|
|
"room": "office",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.office_dnd",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "john room presence",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.john_room_presence",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "office_dnd_off",
|
|
"automation": "- id: office_dnd_off\n alias: Office DnD Off\n mode: single\n trigger:\n - platform: state\n entity_id: input_boolean.john_dnd\n to: 'off'\n for:\n minutes: 2\n - platform: state\n entity_id: input_boolean.office_occupied\n to: 'off'\n - platform: state\n entity_id: input_boolean.office_guest_mode\n to: 'off'\n for:\n minutes: 2\n - platform: state\n entity_id: sensor.john_room_presence\n from: office\n condition:\n - condition: and\n conditions:\n - condition: or\n conditions:\n - condition: state\n entity_id: input_boolean.john_dnd\n state: 'off'\n - condition: template\n value_template: '{{ not is_state(''sensor.john_room_presence'',''office'')\n }}'\n - condition: state\n entity_id: input_boolean.office_guest_mode\n state: 'off'\n action:\n - service: input_boolean.turn_off\n entity_id: input_boolean.office_dnd",
|
|
"config": [
|
|
{
|
|
"name": "input boolean office occupied",
|
|
"room": "office",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.office_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean john dnd",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.john_dnd",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "office guest mode",
|
|
"room": "office",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.office_guest_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "office dnd",
|
|
"room": "office",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.office_dnd",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "john room presence",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.john_room_presence",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "office_dnd_light_off",
|
|
"automation": "- id: office_dnd_light_off\n initial_state: true\n alias: Office DnD Light Off\n trigger:\n - platform: state\n entity_id: input_select.office\n from: DnD\n condition:\n - condition: state\n entity_id: input_boolean.lighting_automations\n state: 'on'\n - condition: template\n value_template: '{{ not is_state(''input_select.office'',''DnD'') }}'\n action:\n - service: light.turn_off\n entity_id: light.hue_play_1",
|
|
"config": [
|
|
{
|
|
"name": "hue play 1",
|
|
"room": null,
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.hue_play_1",
|
|
"device_id": "cdddd3246291229c09cb7cc75ff1feb1"
|
|
}
|
|
},
|
|
{
|
|
"name": "lighting automations",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.lighting_automations",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "office mode",
|
|
"room": "office",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.office",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "office_dnd_light_on",
|
|
"automation": "- id: office_dnd_light_on\n initial_state: true\n alias: Office DnD Light On\n trigger:\n - platform: state\n entity_id: input_select.office\n to: DnD\n - platform: state\n entity_id: input_boolean.lighting_automations\n to: 'on'\n condition:\n - condition: state\n entity_id: input_boolean.lighting_automations\n state: 'on'\n - condition: state\n entity_id: input_boolean.office_occupied\n state: 'on'\n - condition: state\n entity_id: input_select.office\n state: DnD\n action:\n - service: hue.hue_activate_scene\n data:\n group_name: Office Signal\n scene_name: John DnD",
|
|
"config": [
|
|
{
|
|
"name": "lighting automations",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.lighting_automations",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean office occupied",
|
|
"room": "office",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.office_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "office mode",
|
|
"room": "office",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.office",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "office_echo_dnd_off",
|
|
"automation": "- id: office_echo_dnd_off\n initial_state: true\n alias: Office Echo DnD Off\n trigger:\n - platform: state\n entity_id: input_select.office\n to: Auto\n for:\n minutes: 5\n - platform: state\n entity_id: input_boolean.office_occupied\n to: 'off'\n condition:\n - condition: state\n entity_id: switch.john_s_echo_dot_do_not_disturb_switch\n state: 'on'\n action:\n - service: switch.turn_off\n entity_id: switch.john_s_echo_dot_do_not_disturb_switch",
|
|
"config": [
|
|
{
|
|
"name": "input boolean office occupied",
|
|
"room": "office",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.office_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "john's echo dot do not disturb switch",
|
|
"room": "office",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.john_s_echo_dot_do_not_disturb_switch",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "office mode",
|
|
"room": "office",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.office",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "office_echo_dnd_on",
|
|
"automation": "- id: office_echo_dnd_on\n initial_state: true\n alias: Office Echo DnD On\n trigger:\n - platform: state\n entity_id: input_select.office\n to: DnD\n - platform: state\n entity_id: input_boolean.office_occupied\n to: 'on'\n condition:\n - condition: state\n entity_id: input_boolean.office_occupied\n state: 'on'\n - condition: state\n entity_id: input_select.office\n state: DnD\n - condition: state\n entity_id: binary_sensor.johns_macbook_pro_active\n state: 'on'\n action:\n - service: switch.turn_on\n entity_id: switch.john_s_echo_dot_do_not_disturb_switch",
|
|
"config": [
|
|
{
|
|
"name": "input boolean office occupied",
|
|
"room": "office",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.office_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "binary sensor johns macbook pro active",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.johns_macbook_pro_active",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "john's echo dot do not disturb switch",
|
|
"room": "office",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.john_s_echo_dot_do_not_disturb_switch",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "office mode",
|
|
"room": "office",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.office",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "office_lighting_automation_off",
|
|
"automation": "- id: office_lighting_automation_off\n initial_state: false\n alias: Office Lighting Automation Off\n trigger:\n - platform: state\n entity_id: input_select.office\n to: DnD\n condition:\n - condition: state\n entity_id: input_boolean.office_lighting_automations\n state: 'on'\n - condition: state\n entity_id: input_boolean.office_occupied\n state: 'on'\n action:\n - service: input_boolean.turn_off\n entity_id: input_boolean.office_lighting_automations",
|
|
"config": [
|
|
{
|
|
"name": "input boolean office occupied",
|
|
"room": "office",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.office_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "office lighting automations",
|
|
"room": "office",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.office_lighting_automations",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "office mode",
|
|
"room": "office",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.office",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "office_lighting_automation_on",
|
|
"automation": "- id: office_lighting_automation_on\n initial_state: false\n alias: Office Lighting Automation On\n trigger:\n - platform: state\n entity_id: input_select.office\n from: DnD\n condition:\n - condition: state\n entity_id: input_boolean.office_lighting_automations\n state: 'on'\n - condition: state\n entity_id: input_boolean.office_occupied\n state: 'on'\n action:\n - service: input_boolean.turn_off\n entity_id: input_boolean.office_lighting_automations",
|
|
"config": [
|
|
{
|
|
"name": "input boolean office occupied",
|
|
"room": "office",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.office_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "office lighting automations",
|
|
"room": "office",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.office_lighting_automations",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "office mode",
|
|
"room": "office",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.office",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "office_lights_day_off",
|
|
"automation": "- id: office_lights_day_off\n initial_state: true\n alias: Office lights day off\n trigger:\n - platform: numeric_state\n entity_id: sensor.office_aqara_illuminance\n above: 151\n for:\n minutes: 10\n - platform: numeric_state\n entity_id: sensor.office_aqara_illuminance\n above: 250\n for:\n minutes: 5\n - platform: state\n entity_id: input_boolean.bad_weather\n to: 'off'\n condition:\n - condition: state\n entity_id: input_boolean.lighting_automations\n state: 'on'\n - condition: state\n entity_id: input_boolean.office_lighting_automations\n state: 'on'\n - condition: template\n value_template: '{{ not is_state(''input_select.office'',''DnD'') }}'\n - condition: state\n entity_id: input_boolean.bad_weather\n state: 'off'\n - condition: numeric_state\n entity_id: sensor.office_aqara_illuminance\n above: 151\n action:\n - service: light.turn_off\n entity_id: group.office_lights\n - service: input_boolean.turn_off\n entity_id: input_boolean.office_lights_auto",
|
|
"config": [
|
|
{
|
|
"name": "bad weather",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.bad_weather",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "lighting automations",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.lighting_automations",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "office lighting automations",
|
|
"room": "office",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.office_lighting_automations",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "office aqara illuminance",
|
|
"room": "office",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.office_aqara_illuminance",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "office lights auto",
|
|
"room": "office",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.office_lights_auto",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "office lights group",
|
|
"room": "office",
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "group.office_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "office mode",
|
|
"room": "office",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.office",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "office_lights_day_on",
|
|
"automation": "- id: office_lights_day_on\n initial_state: true\n alias: Office lights Day On\n trigger:\n - platform: numeric_state\n entity_id: sensor.office_aqara_illuminance\n below: 150\n for:\n minutes: 3\n - platform: numeric_state\n entity_id: sensor.office_aqara_illuminance\n below: 125\n for:\n minutes: 3\n - platform: numeric_state\n entity_id: sensor.office_aqara_illuminance\n below: 100\n for:\n minutes: 5\n - platform: state\n entity_id: input_boolean.bad_weather\n to: 'on'\n - platform: state\n entity_id: input_boolean.lighting_automations\n to: 'on'\n - platform: state\n entity_id: input_boolean.office_lighting_automations\n to: 'on'\n condition:\n - condition: state\n entity_id: input_boolean.lighting_automations\n state: 'on'\n - condition: state\n entity_id: input_boolean.office_lighting_automations\n state: 'on'\n - condition: state\n entity_id: input_boolean.office_occupied\n state: 'on'\n - condition: numeric_state\n entity_id: sensor.office_aqara_illuminance\n below: 150\n - condition: state\n entity_id: group.office_lights\n state: 'off'\n - condition: or\n conditions:\n - condition: state\n entity_id: input_select.office\n state: Auto\n - condition: state\n entity_id: input_select.office\n state: DnD\n action:\n - service: light.turn_on\n entity_id: group.office_lights\n - service: input_boolean.turn_on\n entity_id: input_boolean.office_lights_auto",
|
|
"config": [
|
|
{
|
|
"name": "bad weather",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.bad_weather",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "lighting automations",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.lighting_automations",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean office occupied",
|
|
"room": "office",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.office_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "office lighting automations",
|
|
"room": "office",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.office_lighting_automations",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "office aqara illuminance",
|
|
"room": "office",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.office_aqara_illuminance",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "office lights auto",
|
|
"room": "office",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.office_lights_auto",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "office lights group",
|
|
"room": "office",
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "group.office_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "office mode",
|
|
"room": "office",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.office",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "office_lights_motion_off",
|
|
"automation": "- id: office_lights_motion_off\n initial_state: false\n alias: Office lights motion off\n trigger:\n - platform: state\n entity_id: binary_sensor.office_aqara_motion_sensor\n to: 'off'\n for:\n minutes: 1\n condition:\n - condition: state\n entity_id: input_boolean.office_occupied\n state: 'off'\n - condition: state\n entity_id: binary_sensor.office_presence\n state: 'off'\n - condition: state\n entity_id: group.office_lights\n state: 'on'\n action:\n - service: light.turn_off\n entity_id: group.office_lights\n - service: automation.turn_off\n entity_id: automation.office_lights_motion_off\n - service: input_boolean.turn_off\n entity_id: input_boolean.office_lights_auto",
|
|
"config": [
|
|
{
|
|
"name": "input boolean office occupied",
|
|
"room": "office",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.office_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "office lights auto",
|
|
"room": "office",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.office_lights_auto",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "office aqara motion sensor",
|
|
"room": "office",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.office_aqara_motion_sensor",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "office presence",
|
|
"room": "office",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.office_presence",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "office lights group",
|
|
"room": "office",
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "group.office_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Office Lights Motion Off",
|
|
"room": "Office",
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.office_lights_motion_off",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "office_lights_motion_on",
|
|
"automation": "- id: office_lights_motion_on\n initial_state: true\n alias: Office lights Motion On\n trigger:\n - platform: state\n entity_id: binary_sensor.office_aqara_motion_sensor\n to: 'on'\n condition:\n - condition: state\n entity_id: input_select.office\n state: Auto\n - condition: state\n entity_id: input_boolean.lighting_automations\n state: 'on'\n - condition: state\n entity_id: input_boolean.office_lighting_automations\n state: 'on'\n - condition: numeric_state\n entity_id: sensor.office_aqara_illuminance\n below: 150\n - condition: state\n entity_id: group.office_lights\n state: 'off'\n action:\n - service: light.turn_on\n entity_id: group.office_lights\n - service: automation.turn_on\n entity_id: automation.office_lights_motion_off\n - service: input_boolean.turn_on\n entity_id: input_boolean.office_lights_auto",
|
|
"config": [
|
|
{
|
|
"name": "lighting automations",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.lighting_automations",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "office lighting automations",
|
|
"room": "office",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.office_lighting_automations",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "office aqara illuminance",
|
|
"room": "office",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.office_aqara_illuminance",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "office lights auto",
|
|
"room": "office",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.office_lights_auto",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "office aqara motion sensor",
|
|
"room": "office",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.office_aqara_motion_sensor",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "office lights group",
|
|
"room": "office",
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "group.office_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "office mode",
|
|
"room": "office",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.office",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Office Lights Motion Off",
|
|
"room": "Office",
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.office_lights_motion_off",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "office_lights_off",
|
|
"automation": "- id: office_lights_off\n initial_state: true\n alias: Office lights off\n trigger:\n - platform: state\n entity_id: input_select.office\n to: 'Off'\n - platform: state\n entity_id: input_boolean.office_occupied\n to: 'off'\n - platform: state\n entity_id: input_boolean.lighting_automations\n to: 'on'\n condition:\n - condition: state\n entity_id: input_boolean.office_occupied\n state: 'off'\n - condition: state\n entity_id: input_boolean.office_lighting_automations\n state: 'on'\n - condition: or\n conditions:\n - condition: state\n entity_id: input_select.office\n state: 'Off'\n - condition: state\n entity_id: input_boolean.office_occupied\n state: 'off'\n - condition: numeric_state\n entity_id: sensor.office_aqara_illuminance\n above: 151\n action:\n - service: light.turn_off\n entity_id: group.office_lights\n - service: input_boolean.turn_off\n entity_id: input_boolean.office_lights_auto",
|
|
"config": [
|
|
{
|
|
"name": "lighting automations",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.lighting_automations",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean office occupied",
|
|
"room": "office",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.office_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "office lighting automations",
|
|
"room": "office",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.office_lighting_automations",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "office aqara illuminance",
|
|
"room": "office",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.office_aqara_illuminance",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "office lights auto",
|
|
"room": "office",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.office_lights_auto",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "office lights group",
|
|
"room": "office",
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "group.office_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "office mode",
|
|
"room": "office",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.office",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "office_lights_on",
|
|
"automation": "- id: office_lights_on\n initial_state: true\n alias: Office lights On\n trigger:\n - platform: state\n entity_id: input_boolean.office_occupied\n to: 'on'\n - platform: sun\n event: sunset\n offset: 00:15:00\n condition:\n - condition: or\n conditions:\n - condition: state\n entity_id: input_select.office\n state: Auto\n - condition: state\n entity_id: input_select.office\n state: DnD\n - condition: state\n entity_id: input_boolean.office_occupied\n state: 'on'\n - condition: state\n entity_id: input_boolean.lighting_automations\n state: 'on'\n - condition: numeric_state\n entity_id: sensor.office_aqara_illuminance\n below: 150\n - condition: state\n entity_id: group.office_lights\n state: 'off'\n action:\n - service: light.turn_on\n entity_id: group.office_lights\n - service: input_boolean.turn_on\n entity_id: input_boolean.office_lights_auto",
|
|
"config": [
|
|
{
|
|
"name": "lighting automations",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.lighting_automations",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean office occupied",
|
|
"room": "office",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.office_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "office aqara illuminance",
|
|
"room": "office",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.office_aqara_illuminance",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "office lights auto",
|
|
"room": "office",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.office_lights_auto",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "office lights group",
|
|
"room": "office",
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "group.office_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "office mode",
|
|
"room": "office",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.office",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "office_lights_sleep_mode_off",
|
|
"automation": "- id: office_lights_sleep_mode_off\n initial_state: false\n alias: Office Lights Sleep Mode Off\n trigger:\n - platform: sun\n event: sunrise\n offset: -02:00:00\n - platform: time\n at: 06:00:01\n condition:\n - condition: state\n entity_id: input_boolean.lighting_automations\n state: 'on'\n - condition: or\n conditions:\n - condition: sun\n after: sunrise\n - condition: time\n after: 06:00:00\n action:\n - service: switch.turn_off\n entity_id: switch.adaptive_lighting_sleep_mode_office",
|
|
"config": [
|
|
{
|
|
"name": "lighting automations",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.lighting_automations",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "adaptive lighting sleep mode office",
|
|
"room": "office",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.adaptive_lighting_sleep_mode_office",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "office_lights_sleep_mode_on",
|
|
"automation": "- id: office_lights_sleep_mode_on\n initial_state: false\n alias: Office Lights Sleep Mode On\n trigger:\n - platform: sun\n event: sunset\n offset: 00:15:00\n - platform: time\n at: '20:00:01'\n - platform: state\n entity_id: input_boolean.dark_outside\n to: 'on'\n - platform: state\n entity_id: input_select.office\n from: DnD\n to: Auto\n condition:\n - condition: state\n entity_id: input_boolean.lighting_automations\n state: 'on'\n - condition: sun\n after: sunset\n - condition: state\n entity_id: input_boolean.dark_outside\n state: 'on'\n - condition: time\n after: '20:00:00'\n - condition: template\n value_template: '{{ not is_state(''input_select.office'',''DnD'') }}'\n action:\n - service: switch.turn_on\n entity_id: switch.adaptive_lighting_sleep_mode_office",
|
|
"config": [
|
|
{
|
|
"name": "dark outside",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.dark_outside",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "lighting automations",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.lighting_automations",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "adaptive lighting sleep mode office",
|
|
"room": "office",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.adaptive_lighting_sleep_mode_office",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "office mode",
|
|
"room": "office",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.office",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "office_lights_manually_turned_off",
|
|
"automation": "- id: office_lights_manually_turned_off\n initial_state: false\n alias: Office Lights Manually Turned Off\n trigger:\n - platform: state\n entity_id: group.office_lights\n to: 'off'\n condition:\n - condition: state\n entity_id: input_boolean.office_lights_auto\n state: 'on'\n action:\n - service: input_boolean.turn_off\n entity_id: input_boolean.office_lights_auto\n - service: input_boolean.turn_off\n entity_id: input_boolean.office_lighting_automations",
|
|
"config": [
|
|
{
|
|
"name": "office lighting automations",
|
|
"room": "office",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.office_lighting_automations",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "office lights auto",
|
|
"room": "office",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.office_lights_auto",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "office lights group",
|
|
"room": "office",
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "group.office_lights",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "office_mode_auto",
|
|
"automation": "- id: office_mode_auto\n initial_state: true\n alias: Office Mode Auto\n trigger:\n - platform: state\n entity_id: input_boolean.office_occupied\n to: 'on'\n - platform: state\n entity_id: input_select.house\n to: Auto\n - platform: state\n entity_id: input_boolean.office_dnd\n to: 'off'\n - platform: state\n entity_id: input_boolean.house_occupied\n to: 'on'\n condition:\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n - condition: template\n value_template: '{{ not is_state(''input_select.office'',''Auto'') }}'\n - condition: state\n entity_id: input_boolean.bedtime\n state: 'off'\n - condition: state\n entity_id: input_boolean.office_dnd\n state: 'off'\n action:\n - service: input_select.select_option\n data:\n entity_id: input_select.office\n option: Auto",
|
|
"config": [
|
|
{
|
|
"name": "bedtime",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.bedtime",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "house status",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.house",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean office occupied",
|
|
"room": "office",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.office_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "office dnd",
|
|
"room": "office",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.office_dnd",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "office mode",
|
|
"room": "office",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.office",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "office_mode_dnd",
|
|
"automation": "- id: office_mode_dnd\n initial_state: true\n alias: Office Mode DnD\n trigger:\n - platform: state\n entity_id: input_boolean.office_dnd\n to: 'on'\n condition:\n - condition: state\n entity_id: input_boolean.office_occupied\n state: 'on'\n - condition: template\n value_template: '{{ not is_state(''input_select.office'',''DnD'') }}'\n - condition: state\n entity_id: input_boolean.office_dnd\n state: 'on'\n action:\n - service: input_select.select_option\n data:\n entity_id: input_select.office\n option: DnD",
|
|
"config": [
|
|
{
|
|
"name": "input boolean office occupied",
|
|
"room": "office",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.office_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "office dnd",
|
|
"room": "office",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.office_dnd",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "office mode",
|
|
"room": "office",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.office",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "office_mode_dnd_off",
|
|
"automation": "- id: office_mode_dnd_off\n initial_state: false\n alias: Office Mode DnD Off\n trigger:\n - platform: state\n entity_id: input_boolean.office_occupied\n to: 'off'\n - platform: state\n entity_id: input_boolean.john_dnd\n to: 'off'\n for:\n minutes: 2\n condition:\n - condition: state\n entity_id: input_select.office\n state: DnD\n - condition: or\n conditions:\n - condition: state\n entity_id: input_boolean.john_dnd\n state: 'off'\n - condition: state\n entity_id: input_boolean.office_occupied\n state: 'off'\n - condition: state\n entity_id: input_boolean.bedtime\n state: 'off'\n action:\n - service: input_select.select_option\n data:\n entity_id: input_select.office\n option: Auto",
|
|
"config": [
|
|
{
|
|
"name": "bedtime",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.bedtime",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean office occupied",
|
|
"room": "office",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.office_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean john dnd",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.john_dnd",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "office mode",
|
|
"room": "office",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.office",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "office_mode_off",
|
|
"automation": "- id: office_mode_off\n initial_state: true\n alias: Office mode off\n triggers:\n - trigger: state\n entity_id: input_boolean.house_occupied\n to: 'off'\n - trigger: state\n entity_id: input_select.house\n to: Away\n - trigger: state\n entity_id: input_select.house\n to: Bedtime\n conditions:\n - condition: or\n conditions:\n - condition: state\n entity_id: input_boolean.office_occupied\n state: 'off'\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'off'\n - condition: state\n entity_id: input_select.house\n state: Away\n - condition: state\n entity_id: input_select.house\n state: Bedtime\n actions:\n - action: input_select.select_option\n data:\n entity_id: input_select.office\n option: 'Off'",
|
|
"config": [
|
|
{
|
|
"name": "house status",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.house",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean office occupied",
|
|
"room": "office",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.office_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "office mode",
|
|
"room": "office",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.office",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "office_music_clear_queue",
|
|
"automation": "- id: office_music_clear_queue\n initial_state: true\n alias: Office Music Clear Queue\n trigger:\n - trigger: time\n at: 01:00:00\n actions:\n - action: media_player.clear_playlist\n target:\n entity_id: media_player.sonos_office\n data: {}",
|
|
"config": [
|
|
{
|
|
"name": "sonos office",
|
|
"room": "office",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.sonos_office",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "office_music_off",
|
|
"automation": "- id: office_music_off\n initial_state: true\n alias: Office Music Off\n trigger:\n - platform: state\n entity_id: input_boolean.office_occupied\n to: 'off'\n - platform: state\n entity_id: input_select.office\n to: DnD\n - platform: state\n entity_id: input_select.office\n to: 'Off'\n - platform: state\n entity_id: binary_sensor.johns_macbook_pro_active\n to: 'off'\n condition:\n - condition: or\n conditions:\n - condition: state\n entity_id: input_boolean.office_occupied\n state: 'off'\n - condition: state\n entity_id: input_select.office\n state: DnD\n - condition: and\n conditions:\n - condition: template\n value_template: '{{ expand(''group.room_presence_devices'')|selectattr(''state'',\n ''eq'', ''office'')|map(attribute=''name'')|list | length == 0 }}'\n - condition: state\n entity_id: binary_sensor.office_aqara_motion_sensor\n state: 'off'\n for:\n minutes: 3\n - condition: state\n entity_id: media_player.sonos_office\n state: playing\n action:\n - service: media_player.unjoin\n entity_id: media_player.sonos_main_bedroom\n - service: media_player.media_pause\n entity_id: media_player.sonos_office\n - service: input_boolean.turn_on\n entity_id: input_boolean.office_music_playing",
|
|
"config": [
|
|
{
|
|
"name": "sonos office",
|
|
"room": "office",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.sonos_office",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "room presence devices group",
|
|
"room": null,
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "group.room_presence_devices",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean office occupied",
|
|
"room": "office",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.office_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "binary sensor johns macbook pro active",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.johns_macbook_pro_active",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "sonos main bedroom",
|
|
"room": "main bedroom",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.sonos_main_bedroom",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "office aqara motion sensor",
|
|
"room": "office",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.office_aqara_motion_sensor",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "office mode",
|
|
"room": "office",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.office",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "office music playing",
|
|
"room": "office",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.office_music_playing",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "office_music_on",
|
|
"automation": "- id: office_music_on\n initial_state: false\n alias: Office Music On\n trigger:\n - platform: state\n entity_id: input_boolean.office_occupied\n to: 'on'\n for:\n minutes: 3\n seconds: 10\n condition:\n - condition: state\n entity_id: input_boolean.office_occupied\n state: 'on'\n - condition: state\n entity_id: sensor.john_room_presence\n state: office\n - condition: state\n entity_id: media_player.sonos_office\n state:\n - paused\n - idle\n - 'off'\n - condition: time\n after: 08:01:00\n before: '22:00:00'\n - condition: template\n value_template: '{{ not is_state(''input_select.office'',''DnD'') }}'\n - condition: state\n entity_id: binary_sensor.johns_macbook_pro_active\n state: 'on'\n action:\n - service: sonos.play_queue\n entity_id: media_player.sonos_office\n - service: input_boolean.turn_off\n entity_id: input_boolean.office_music_playing",
|
|
"config": [
|
|
{
|
|
"name": "sonos office",
|
|
"room": "office",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.sonos_office",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean office occupied",
|
|
"room": "office",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.office_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "binary sensor johns macbook pro active",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.johns_macbook_pro_active",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "office mode",
|
|
"room": "office",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.office",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "john room presence",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.john_room_presence",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "office music playing",
|
|
"room": "office",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.office_music_playing",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "office_music_resume",
|
|
"automation": "- id: office_music_resume\n initial_state: true\n alias: Office music resume\n triggers:\n - trigger: state\n entity_id: input_boolean.office_occupied\n to: 'on'\n for:\n minutes: 3\n seconds: 10\n id: office_occupied\n - trigger: state\n entity_id: input_select.office\n from: DnD\n for:\n minutes: 2\n id: dnd_off\n - trigger: state\n entity_id: binary_sensor.johns_macbook_pro_active\n to: 'on'\n for:\n minutes: 2\n id: laptop_active\n - trigger: state\n entity_id: input_select.john_focus_mode\n id: focus_changed\n conditions:\n - condition: state\n entity_id: input_boolean.office_occupied\n state: 'on'\n - condition: state\n entity_id: sensor.john_room_presence\n state: office\n - condition: or\n conditions:\n - condition: trigger\n id: focus_changed\n - condition: state\n entity_id: media_player.sonos_office\n state:\n - paused\n - idle\n - 'off'\n - condition: time\n after: 08:01:00\n before: '23:45:00'\n - condition: template\n value_template: '{{ not is_state(''input_select.office'',''DnD'') }}'\n - condition: state\n entity_id: binary_sensor.johns_macbook_pro_active\n state: 'on'\n action:\n - action: sonos.get_queue\n target:\n entity_id: media_player.sonos_office\n response_variable: queue_items\n - choose:\n - conditions:\n - condition: or\n conditions:\n - condition: trigger\n id: focus_changed\n - condition: template\n value_template: '{{ queue_items[''media_player.sonos_office''] | length\n == 0 }}'\n sequence:\n - variables:\n playlists: '{{ states(''sensor.john_focus_mode_playlist'') }}'\n - if:\n - condition: template\n value_template: '{{ playlists is sequence }}'\n then:\n - repeat:\n sequence:\n - variables:\n media_content_type: \"{% if repeat.item | contains('playlist') %}\\n\\\n \\ playlist\\n{% else %}\\n music\\n{% endif %}\"\n enqueue_mode: \"{% if repeat.index == 1 %}\\n replace\\n{% else %}\\n\\\n \\ add\\n{% endif %}\"\n - action: media_player.play_media\n target:\n entity_id: media_player.sonos_office\n data:\n media_content_type: '{{ media_content_type }}'\n media_content_id: '{{ repeat.item }}'\n enqueue: '{{ enqueue_mode }}'\n for_each: '{{ playlists }}'\n - action: media_player.shuffle_set\n target:\n entity_id: media_player.sonos_office\n data:\n shuffle: true\n default:\n - if:\n - condition: state\n entity_id: media_player.sonos_office\n state: paused\n then:\n - action: media_player.media_play\n entity_id: media_player.sonos_office\n else:\n - action: sonos.play_queue\n entity_id: media_player.sonos_office\n - action: input_boolean.turn_off\n entity_id: input_boolean.office_music_playing",
|
|
"config": [
|
|
{
|
|
"name": "sonos office",
|
|
"room": "office",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.sonos_office",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean office occupied",
|
|
"room": "office",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.office_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "binary sensor johns macbook pro active",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.johns_macbook_pro_active",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "office mode",
|
|
"room": "office",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.office",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "john room presence",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.john_room_presence",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "office music playing",
|
|
"room": "office",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.office_music_playing",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "john focus mode",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.john_focus_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "john focus mode playlist",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.john_focus_mode_playlist",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "office_not_occupied",
|
|
"automation": "- id: office_not_occupied\n initial_state: true\n alias: Office not occupied\n trigger:\n - platform: state\n entity_id: binary_sensor.office_presence\n to: 'off'\n for:\n minutes: 2\n - platform: template\n value_template: '{{ expand(''group.room_presence_devices'')|selectattr(''state'',\n ''eq'', ''office'')|map(attribute=''name'')|list | length == 0 }}'\n for:\n minutes: 2\n - platform: state\n entity_id: binary_sensor.office_aqara_motion_sensor\n to: 'off'\n for:\n minutes: 3\n - platform: state\n entity_id: binary_sensor.office_aqara_occupancy\n to: 'off'\n - platform: state\n entity_id: input_boolean.house_occupied\n to: 'off'\n - platform: event\n event_type: automation_reloaded\n - platform: homeassistant\n event: start\n condition:\n - condition: state\n entity_id: input_boolean.office_occupied\n state: 'on'\n - condition: state\n entity_id: binary_sensor.office_presence\n state: 'off'\n - condition: state\n entity_id: input_boolean.office_guest_mode\n state: 'off'\n action:\n - service: input_boolean.turn_off\n entity_id: input_boolean.office_occupied\n - alias: Wait 2 seconds\n delay: 2\n - service: input_boolean.turn_on\n entity_id: input_boolean.office_lighting_automations",
|
|
"config": [
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "room presence devices group",
|
|
"room": null,
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "group.room_presence_devices",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean office occupied",
|
|
"room": "office",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.office_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "office guest mode",
|
|
"room": "office",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.office_guest_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "office lighting automations",
|
|
"room": "office",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.office_lighting_automations",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "office aqara motion sensor",
|
|
"room": "office",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.office_aqara_motion_sensor",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "office presence",
|
|
"room": "office",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.office_presence",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "office aqara occupancy",
|
|
"room": "office",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.office_aqara_occupancy",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "office_occupied",
|
|
"automation": "- id: office_occupied\n initial_state: true\n alias: Office occupied\n trigger:\n - platform: state\n entity_id: binary_sensor.office_presence\n to: 'on'\n - platform: state\n entity_id: binary_sensor.office_aqara_occupancy\n to: 'on'\n - platform: state\n entity_id: binary_sensor.office_aqara_motion_sensor\n to: 'on'\n - platform: state\n entity_id: group.office_lights\n to: 'on'\n - platform: state\n entity_id: input_boolean.office_guest_mode\n to: 'on'\n - platform: event\n event_type: automation_reloaded\n - platform: homeassistant\n event: start\n condition:\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n - condition: state\n entity_id: input_boolean.office_occupied\n state: 'off'\n - condition: state\n entity_id: binary_sensor.office_aqara_motion_sensor\n state: 'on'\n - condition: state\n entity_id: binary_sensor.office_presence\n state: 'on'\n action:\n - service: input_boolean.turn_on\n entity_id: input_boolean.office_occupied",
|
|
"config": [
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean office occupied",
|
|
"room": "office",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.office_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "office guest mode",
|
|
"room": "office",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.office_guest_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "office aqara motion sensor",
|
|
"room": "office",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.office_aqara_motion_sensor",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "office presence",
|
|
"room": "office",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.office_presence",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "office lights group",
|
|
"room": "office",
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "group.office_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "office aqara occupancy",
|
|
"room": "office",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.office_aqara_occupancy",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "office_speech_notifications_off",
|
|
"automation": "- id: office_speech_notifications_off\n initial_state: true\n alias: Office Speech Notifications Off\n trigger:\n - platform: state\n entity_id: input_boolean.office_occupied\n to: 'off'\n - platform: state\n entity_id: input_select.office\n to: DnD\n condition:\n - condition: or\n conditions:\n - condition: state\n entity_id: input_boolean.office_occupied\n state: 'off'\n - condition: state\n entity_id: input_select.office\n state: DnD\n action:\n - service: input_boolean.turn_off\n entity_id: input_boolean.office_speech_notifications",
|
|
"config": [
|
|
{
|
|
"name": "input boolean office occupied",
|
|
"room": "office",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.office_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean office speech notifications",
|
|
"room": "office",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.office_speech_notifications",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "office mode",
|
|
"room": "office",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.office",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "office_speech_notifications_on",
|
|
"automation": "- id: office_speech_notifications_on\n initial_state: true\n alias: Office Speech Notifications On\n trigger:\n - platform: state\n entity_id: input_boolean.office_occupied\n to: 'on'\n - platform: state\n entity_id: input_select.office\n from: DnD\n for:\n minutes: 2\n condition:\n - condition: state\n entity_id: input_boolean.office_occupied\n state: 'on'\n - condition: state\n entity_id: input_select.office\n state: Auto\n action:\n - service: input_boolean.turn_on\n entity_id: input_boolean.office_speech_notifications",
|
|
"config": [
|
|
{
|
|
"name": "input boolean office occupied",
|
|
"room": "office",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.office_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean office speech notifications",
|
|
"room": "office",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.office_speech_notifications",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "office mode",
|
|
"room": "office",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.office",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "office_treadmill_off",
|
|
"automation": "- id: office_treadmill_off\n alias: Office - Treadmill Off\n mode: single\n initial_state: false\n trigger:\n - platform: time\n at: 00:00:01\n - platform: state\n entity_id: input_boolean.bedtime\n to: 'on'\n condition:\n - condition: state\n entity_id: switch.smart_plug_11_switch\n state: 'on'\n action:\n - service: switch.turn_off\n entity_id: switch.smart_plug_11_switch",
|
|
"config": [
|
|
{
|
|
"name": "bedtime",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.bedtime",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "smart plug 11 switch",
|
|
"room": "office",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.smart_plug_11_switch",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "office_treadmill_on",
|
|
"automation": "- id: office_treadmill_on\n alias: Office - Treadmill On\n mode: single\n initial_state: false\n trigger:\n - platform: state\n entity_id: input_boolean.office_occupied\n to: 'on'\n condition:\n - condition: state\n entity_id: switch.smart_plug_11_switch\n state: 'off'\n action:\n - service: switch.turn_on\n entity_id: switch.smart_plug_11_switch",
|
|
"config": [
|
|
{
|
|
"name": "input boolean office occupied",
|
|
"room": "office",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.office_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "smart plug 11 switch",
|
|
"room": "office",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.smart_plug_11_switch",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "office_turn_off_purifier",
|
|
"automation": "- id: office_turn_off_purifier\n alias: Office Air Quality - Turn off Purifier\n mode: single\n initial_state: true\n triggers:\n - trigger: state\n entity_id: input_boolean.house_occupied\n to: 'off'\n actions:\n - action: fan.turn_off\n target:\n entity_id: fan.office_air_purifier",
|
|
"config": [
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "office air purifier",
|
|
"room": "office",
|
|
"type": "fan",
|
|
"id": {
|
|
"entity_id": "fan.office_air_purifier",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "turn_on_exterior_lights",
|
|
"automation": "- id: turn_on_exterior_lights\n alias: Turn On Exterior Lights\n mode: single\n trigger:\n - platform: state\n entity_id: input_boolean.exterior_house_lights\n to: 'on'\n action:\n - service: light.turn_on\n entity_id: light.exterior_lights",
|
|
"config": [
|
|
{
|
|
"name": "exterior house lights",
|
|
"room": "exterior",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.exterior_house_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "exterior lights",
|
|
"room": "exterior",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.exterior_lights",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "turn_off_exterior_lights",
|
|
"automation": "- id: turn_off_exterior_lights\n alias: Turn Off Exterior Lights\n mode: single\n trigger:\n - platform: state\n entity_id: input_boolean.exterior_house_lights\n to: 'off'\n action:\n - service: light.turn_off\n entity_id: light.exterior_lights",
|
|
"config": [
|
|
{
|
|
"name": "exterior house lights",
|
|
"room": "exterior",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.exterior_house_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "exterior lights",
|
|
"room": "exterior",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.exterior_lights",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "turn_on_exterior_flood_lights",
|
|
"automation": "- id: turn_on_exterior_flood_lights\n alias: Turn On Exterior Flood Lights\n mode: single\n trigger:\n - platform: state\n entity_id: input_boolean.exterior_flood_lights\n to: 'on'\n action:\n - service: light.turn_on\n entity_id: light.exterior_flood_lights",
|
|
"config": [
|
|
{
|
|
"name": "exterior flood lights",
|
|
"room": "exterior",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.exterior_flood_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "exterior flood lights entity",
|
|
"room": "exterior",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.exterior_flood_lights",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "turn_off_exterior_flood_lights",
|
|
"automation": "- id: turn_off_exterior_flood_lights\n alias: Turn Off Exterior Flood Lights\n mode: single\n trigger:\n - platform: state\n entity_id: input_boolean.exterior_flood_lights\n to: 'off'\n action:\n - service: light.turn_off\n entity_id: light.exterior_flood_lights",
|
|
"config": [
|
|
{
|
|
"name": "exterior flood lights",
|
|
"room": "exterior",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.exterior_flood_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "exterior flood lights entity",
|
|
"room": "exterior",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.exterior_flood_lights",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "turn_on_exterior_accent_lights",
|
|
"automation": "- id: turn_on_exterior_accent_lights\n alias: Turn On Exterior Accent Lights\n mode: single\n trigger:\n - platform: state\n entity_id: input_boolean.exterior_accent_lights\n to: 'on'\n action:\n - service: light.turn_on\n entity_id: light.exterior_accent_lights",
|
|
"config": [
|
|
{
|
|
"name": "exterior accent lights",
|
|
"room": "exterior",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.exterior_accent_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "exterior accent lights entity",
|
|
"room": "exterior",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.exterior_accent_lights",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "turn_off_exterior_accent_lights",
|
|
"automation": "- id: turn_off_exterior_accent_lights\n alias: Turn Off Exterior Accent Lights\n mode: single\n trigger:\n - platform: state\n entity_id: input_boolean.exterior_accent_lights\n to: 'off'\n action:\n - service: light.turn_off\n entity_id: light.exterior_accent_lights",
|
|
"config": [
|
|
{
|
|
"name": "exterior accent lights",
|
|
"room": "exterior",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.exterior_accent_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "exterior accent lights entity",
|
|
"room": "exterior",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.exterior_accent_lights",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "activate_exterior_lighting_at_sunset",
|
|
"automation": "- id: activate_exterior_lighting_at_sunset\n alias: Activate Exterior Lighting at Sunset\n mode: single\n trigger:\n - platform: sun\n event: sunset\n offset: 00:15:00\n - platform: state\n entity_id: input_boolean.dark_outside\n to: 'on'\n - platform: numeric_state\n entity_id: sensor.sun_elevation\n below: 4\n - platform: event\n event_type: automation_reloaded\n - platform: homeassistant\n event: start\n condition:\n - condition: or\n conditions:\n - condition: state\n entity_id: input_boolean.exterior_house_lights\n state: 'off'\n - condition: state\n entity_id: input_boolean.exterior_flood_lights\n state: 'off'\n - condition: state\n entity_id: input_boolean.exterior_accent_lights\n state: 'off'\n - condition: or\n conditions:\n - condition: sun\n after: sunset\n - condition: numeric_state\n entity_id: sensor.sun_elevation\n below: 5\n - condition: state\n entity_id: input_boolean.dark_outside\n state: 'on'\n action:\n - service: input_boolean.turn_on\n entity_id: input_boolean.exterior_house_lights\n - service: input_boolean.turn_on\n entity_id: input_boolean.exterior_flood_lights\n - service: input_boolean.turn_on\n entity_id: input_boolean.exterior_accent_lights\n - service: script.voice_announcement\n data:\n media_players: auto\n sound: chime\n speech_message: The sun has set so I'm turning on the exterior lights.",
|
|
"config": [
|
|
{
|
|
"name": "dark outside",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.dark_outside",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "voice announcement script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.voice_announcement",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "script voice announcement",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.voice_announcement",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "exterior house lights",
|
|
"room": "exterior",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.exterior_house_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "exterior flood lights",
|
|
"room": "exterior",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.exterior_flood_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "exterior accent lights",
|
|
"room": "exterior",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.exterior_accent_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "sun elevation",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.sun_elevation",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "activate_exterior_lighting_due_to_weather",
|
|
"automation": "- id: activate_exterior_lighting_due_to_weather\n alias: Activate Exterior Lighting Due to Weather\n mode: single\n trigger:\n - platform: state\n entity_id: input_boolean.bad_weather\n to: 'on'\n - platform: state\n entity_id: input_boolean.bad_weather\n to: 'on'\n for:\n minutes: 5\n - platform: state\n entity_id: input_boolean.bad_weather\n to: 'on'\n for:\n minutes: 15\n - platform: numeric_state\n entity_id: sensor.tempest_illuminance\n below: 38\n for:\n minutes: 5\n - platform: event\n event_type: automation_reloaded\n - platform: homeassistant\n event: start\n condition:\n - condition: state\n entity_id: input_boolean.exterior_house_lights\n state: 'off'\n - condition: not\n conditions:\n - condition: sun\n after: sunset\n after_offset: -00:10:00\n - condition: or\n conditions:\n - condition: and\n conditions:\n - condition: state\n entity_id: input_boolean.bad_weather\n state: 'on'\n - condition: numeric_state\n entity_id: sensor.tempest_illuminance\n below: 45\n - condition: numeric_state\n entity_id: sensor.tempest_illuminance\n below: 35\n action:\n - service: input_boolean.turn_on\n entity_id: input_boolean.exterior_house_lights\n - service: script.voice_announcement\n data:\n media_players: auto\n sound: chime\n speech_message: The weather is looking a little dark, I'm turning on the exterior\n lights.",
|
|
"config": [
|
|
{
|
|
"name": "tempest illuminance",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.tempest_illuminance",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "bad weather",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.bad_weather",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "voice announcement script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.voice_announcement",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "script voice announcement",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.voice_announcement",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "exterior house lights",
|
|
"room": "exterior",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.exterior_house_lights",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "deactivate_exterior_lighting_at_sunrise",
|
|
"automation": "- id: deactivate_exterior_lighting_at_sunrise\n alias: Deactivate Exterior Lighting at Sunrise\n mode: single\n trigger:\n - platform: sun\n event: sunrise\n - platform: state\n entity_id: input_boolean.dark_outside\n to: 'off'\n - platform: event\n event_type: automation_reloaded\n - platform: homeassistant\n event: start\n condition:\n - condition: state\n entity_id: input_boolean.exterior_house_lights\n state: 'on'\n - condition: or\n conditions:\n - condition: sun\n after: sunrise\n before: sunset\n - condition: state\n entity_id: input_boolean.dark_outside\n state: 'off'\n action:\n - service: input_boolean.turn_off\n entity_id: input_boolean.exterior_house_lights\n - service: input_boolean.turn_off\n entity_id: input_boolean.exterior_flood_lights\n - service: input_boolean.turn_off\n entity_id: input_boolean.exterior_accent_lights\n - service: script.voice_announcement\n data:\n media_players: auto\n sound: chime\n speech_message: The sun is up so I'm turning off the exterior lights.",
|
|
"config": [
|
|
{
|
|
"name": "dark outside",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.dark_outside",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "voice announcement script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.voice_announcement",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "script voice announcement",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.voice_announcement",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "exterior house lights",
|
|
"room": "exterior",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.exterior_house_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "exterior flood lights",
|
|
"room": "exterior",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.exterior_flood_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "exterior accent lights",
|
|
"room": "exterior",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.exterior_accent_lights",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "deactivate_exterior_lighting_due_to_weather",
|
|
"automation": "- id: deactivate_exterior_lighting_due_to_weather\n alias: Deactivate Exterior Lighting Due to Weather\n mode: single\n trigger:\n - platform: state\n entity_id: input_boolean.bad_weather\n to: 'off'\n for:\n minutes: 5\n - platform: state\n entity_id: input_boolean.bad_weather\n to: 'off'\n for:\n minutes: 15\n - platform: numeric_state\n entity_id: sensor.tempest_illuminance\n above: 150\n for:\n minutes: 3\n - platform: event\n event_type: automation_reloaded\n - platform: homeassistant\n event: start\n condition:\n - condition: state\n entity_id: input_boolean.exterior_house_lights\n state: 'on'\n - condition: numeric_state\n entity_id: sensor.tempest_illuminance\n above: 50\n - condition: state\n entity_id: sun.sun\n state: above_horizon\n - condition: or\n conditions:\n - condition: state\n entity_id: input_boolean.bad_weather\n state: 'off'\n - condition: numeric_state\n entity_id: sensor.tempest_illuminance\n above: 150\n action:\n - service: input_boolean.turn_off\n entity_id: input_boolean.exterior_house_lights\n - service: script.voice_announcement\n data:\n media_players: auto\n sound: chime\n speech_message: The weather has improved so I'm turning off the exterior lights.",
|
|
"config": [
|
|
{
|
|
"name": "tempest illuminance",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.tempest_illuminance",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "bad weather",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.bad_weather",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "sun sun",
|
|
"room": null,
|
|
"type": "sun",
|
|
"id": {
|
|
"entity_id": "sun.sun",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "voice announcement script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.voice_announcement",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "script voice announcement",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.voice_announcement",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "exterior house lights",
|
|
"room": "exterior",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.exterior_house_lights",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "deactivate_accent_lighting_at_bedtime",
|
|
"automation": "- id: deactivate_accent_lighting_at_bedtime\n alias: Deactivate Exterior Accent Lighting at Bedtime\n mode: single\n trigger:\n - platform: state\n entity_id: input_boolean.bedtime\n to: 'on'\n condition:\n - condition: state\n entity_id: input_boolean.exterior_accent_lights\n state: 'on'\n - condition: state\n entity_id: input_boolean.bedtime\n state: 'on'\n action:\n - service: input_boolean.turn_off\n entity_id: input_boolean.exterior_accent_lights",
|
|
"config": [
|
|
{
|
|
"name": "bedtime",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.bedtime",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "exterior accent lights",
|
|
"room": "exterior",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.exterior_accent_lights",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "garage_lights_accidentally_turned_off_fix",
|
|
"automation": "- id: garage_lights_accidentally_turned_off_fix\n alias: Garage Lights Accidentally Turned Off Fix\n mode: single\n trigger:\n - platform: state\n entity_id: light.exterior_garage_sconces\n to: 'off'\n condition:\n - condition: state\n entity_id: input_boolean.exterior_house_lights\n state: 'on'\n action:\n - service: light.turn_on\n entity_id: light.exterior_garage_sconces",
|
|
"config": [
|
|
{
|
|
"name": "exterior house lights",
|
|
"room": "exterior",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.exterior_house_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "exterior garage sconces",
|
|
"room": "exterior",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.exterior_garage_sconces",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "garage_lights_accidentally_turned_on_fix",
|
|
"automation": "- id: garage_lights_accidentally_turned_on_fix\n alias: Garage Lights Accidentally Turned On Fix\n mode: single\n trigger:\n - platform: state\n entity_id: light.exterior_garage_sconces\n to: 'on'\n condition:\n - condition: state\n entity_id: input_boolean.exterior_house_lights\n state: 'off'\n action:\n - service: light.turn_off\n entity_id: light.exterior_garage_sconces",
|
|
"config": [
|
|
{
|
|
"name": "exterior house lights",
|
|
"room": "exterior",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.exterior_house_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "exterior garage sconces",
|
|
"room": "exterior",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.exterior_garage_sconces",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "house_occupied",
|
|
"automation": "- id: house_occupied\n alias: House occupied\n initial_state: 'on'\n triggers:\n - trigger: state\n entity_id:\n - sensor.john_person\n - sensor.cristina_person\n - sensor.nonna_person\n - sensor.tayta_person\n - sensor.jido_person\n - sensor.katia_person\n - sensor.joe_person\n - sensor.sylvia_person\n - sensor.alex_person\n to: home\n - trigger: event\n event_type: automation_reloaded\n - trigger: homeassistant\n event: start\n conditions:\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'off'\n - condition: template\n value_template: '{{ state_attr(trigger.entity_id, ''unlock_privilege'') == \"on\"\n }}\n\n '\n - condition: state\n entity_id: group.all_people\n state: home\n actions:\n - action: input_boolean.turn_on\n entity_id: input_boolean.house_occupied",
|
|
"config": [
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "john person",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.john_person",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "cristina person",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.cristina_person",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "nonna person",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.nonna_person",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "tayta person",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.tayta_person",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "jido person",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.jido_person",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "katia person",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.katia_person",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "joe person",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.joe_person",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "alex person",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.alex_person",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "all people group",
|
|
"room": null,
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "group.all_people",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "sylvia person",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.sylvia_person",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "people_reloaded_when_just_arrived",
|
|
"automation": "- id: people_reloaded_when_just_arrived\n alias: People reloaded when just arrived\n initial_state: 'on'\n trigger:\n - platform: event\n event_type: automation_reloaded\n - platform: homeassistant\n event: start\n action:\n - choose:\n conditions:\n - condition: state\n entity_id: input_select.cristina_status_dropdown\n state: Just Arrived\n sequence:\n - service: input_select.select_option\n data:\n entity_id: input_select.cristina_status_dropdown\n option: Home\n - choose:\n conditions:\n - condition: state\n entity_id: input_select.john_status\n state: Just Arrived\n sequence:\n - service: input_select.select_option\n data:\n entity_id: input_select.john_status\n option: Home\n - choose:\n conditions:\n - condition: state\n entity_id: input_select.joe_status_dropdown\n state: Just Arrived\n sequence:\n - service: input_select.select_option\n data:\n entity_id: input_select.joe_status_dropdown\n option: Home",
|
|
"config": [
|
|
{
|
|
"name": "john status",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.john_status",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "cristina status dropdown",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.cristina_status_dropdown",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input select joe status dropdown",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.joe_status_dropdown",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "people_reloaded_when_just_left",
|
|
"automation": "- id: people_reloaded_when_just_left\n alias: People reloaded when just left\n initial_state: 'on'\n trigger:\n - platform: event\n event_type: automation_reloaded\n - platform: homeassistant\n event: start\n action:\n - choose:\n conditions:\n - condition: state\n entity_id: input_select.cristina_status_dropdown\n state: Just Left\n sequence:\n - service: input_select.select_option\n data:\n entity_id: input_select.cristina_falbo_status_dropdown\n option: Away\n - choose:\n conditions:\n - condition: state\n entity_id: input_select.john_status\n state: Just Left\n sequence:\n - service: input_select.select_option\n data:\n entity_id: input_select.john_status\n option: Away\n - choose:\n conditions:\n - condition: state\n entity_id: input_select.joe_status_dropdown\n state: Just Left\n sequence:\n - service: input_select.select_option\n data:\n entity_id: input_select.joe_status_dropdown\n option: Away",
|
|
"config": [
|
|
{
|
|
"name": "john status",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.john_status",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "cristina status dropdown",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.cristina_status_dropdown",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input select joe status dropdown",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.joe_status_dropdown",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "cristina falbo status dropdown",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.cristina_falbo_status_dropdown",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "people_status_arrived",
|
|
"automation": "- id: people_status_arrived\n alias: Mark person as just arrived\n mode: parallel\n initial_state: 'on'\n trigger:\n - platform: state\n entity_id:\n - input_boolean.john_home\n - input_boolean.cristina_home\n - input_boolean.joe_home\n - input_boolean.nonna_home\n - input_boolean.katia_home\n - input_boolean.sylvia_home\n to: 'on'\n action:\n - service: input_select.select_option\n data:\n entity_id: \"{% if trigger.entity_id == 'input_boolean.john_home' %}\\n input_select.john_status\\n\\\n {% elif trigger.entity_id == 'input_boolean.cristina_home' %}\\n input_select.cristina_status_dropdown\\n\\\n {% elif trigger.entity_id == 'input_boolean.joe_home' %}\\n input_select.joe_status_dropdown\\n\\\n {% elif trigger.entity_id == 'input_boolean.nonna_home' %}\\n input_select.nonna_status\\n\\\n {% elif trigger.entity_id == 'input_boolean.katia_home' %}\\n input_select.katia_status\\n\\\n {% elif trigger.entity_id == 'input_boolean.sylvia_home' %}\\n input_select.sylvia_status\\n\\\n {% endif %}\\n\"\n option: \"{% if trigger.entity_id == 'input_boolean.cristina_home' %}\\n {% if\\\n \\ states.input_select.cristina_status_dropdown.state == 'Just Left' %}\\n \\\n \\ Home\\n {% else %}\\n Just Arrived\\n {% endif %}\\n{% elif trigger.entity_id\\\n \\ == 'input_boolean.john_home' %}\\n {% if states.input_select.john_status.state\\\n \\ == 'Just Left' %}\\n Home\\n {% else %}\\n Just Arrived\\n {% endif\\\n \\ %}\\n{% elif trigger.entity_id == 'input_boolean.joe_home' %}\\n {% if states.input_select.joe_status_dropdown.state\\\n \\ == 'Just Left' %}\\n Home\\n {% else %}\\n Just Arrived\\n {% endif\\\n \\ %}\\n{% elif trigger.entity_id == 'input_boolean.nonna_home' %}\\n {% if\\\n \\ states.input_select.nonna_status.state == 'Just Left' %}\\n Home\\n {%\\\n \\ else %}\\n Just Arrived\\n {% endif %}\\n{% elif trigger.entity_id == 'input_boolean.katia_home'\\\n \\ %}\\n {% if states.input_select.katia_status.state == 'Just Left' %}\\n \\\n \\ Home\\n {% else %}\\n Just Arrived\\n {% endif %}\\n{% elif trigger.entity_id\\\n \\ == 'input_boolean.sylvia_home' %}\\n {% if states.input_select.sylvia_status.state\\\n \\ == 'Just Left' %}\\n Home\\n {% else %}\\n Just Arrived\\n {% endif\\\n \\ %}\\n{% endif %}\\n\"",
|
|
"config": [
|
|
{
|
|
"name": "john home",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.john_home",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "john status",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.john_status",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "cristina home",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.cristina_home",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "joe home",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.joe_home",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "nonna home",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.nonna_home",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "katia home",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.katia_home",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "sylvia home",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.sylvia_home",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "cristina status dropdown",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.cristina_status_dropdown",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input select joe status dropdown",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.joe_status_dropdown",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input select katia status",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.katia_status",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "nonna status",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.nonna_status",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "sylvia status",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.sylvia_status",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "people_status_away",
|
|
"automation": "- id: people_status_away\n alias: Mark person as away\n mode: parallel\n initial_state: 'on'\n triggers:\n - trigger: state\n entity_id:\n - input_select.cristina_status_dropdown\n - input_select.john_status\n - input_select.joe_status_dropdown\n - input_select.nonna_status\n - input_select.katia_status\n - input_select.sylvia_status\n to: Just Left\n for:\n minutes: 5\n actions:\n - action: input_select.select_option\n data:\n entity_id: \"{% if trigger.entity_id == 'input_select.cristina_status_dropdown'\\\n \\ %}\\n input_select.cristina_status_dropdown\\n{% elif trigger.entity_id ==\\\n \\ 'input_select.john_status' %}\\n input_select.john_status\\n{% elif trigger.entity_id\\\n \\ == 'input_select.joe_status_dropdown' %}\\n input_select.joe_status_dropdown\\n\\\n {% elif trigger.entity_id == 'input_select.nonna_status' %}\\n input_select.nonna_status\\n\\\n {% elif trigger.entity_id == 'input_select.katia_status' %}\\n input_select.katia_status\\n\\\n {% elif trigger.entity_id == 'input_select.sylvia_status' %}\\n input_select.sylvia_status\\n\\\n {% endif %}\\n\"\n option: Away",
|
|
"config": [
|
|
{
|
|
"name": "john status",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.john_status",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "cristina status dropdown",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.cristina_status_dropdown",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input select joe status dropdown",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.joe_status_dropdown",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input select katia status",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.katia_status",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "nonna status",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.nonna_status",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "sylvia status",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.sylvia_status",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "people_status_extended_away",
|
|
"automation": "- id: people_status_extended_away\n alias: Mark person as extended away\n mode: parallel\n initial_state: 'on'\n triggers:\n - trigger: state\n entity_id: input_select.john_status\n to: Away\n for:\n hours: 24\n - trigger: state\n entity_id: input_select.cristina_status_dropdown\n to: Away\n for:\n hours: 24\n actions:\n - action: input_select.select_option\n data_template:\n entity_id: \"{% if trigger.entity_id == 'input_select.john_status' %}\\n input_select.john_status\\n\\\n {% elif trigger.entity_id == 'input_select.cristina_status_dropdown' %}\\n\\\n \\ input_select.cristina_status_dropdown\\n{% endif %}\\n\"\n option: Extended Away",
|
|
"config": [
|
|
{
|
|
"name": "john status",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.john_status",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "cristina status dropdown",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.cristina_status_dropdown",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "people_status_home",
|
|
"automation": "- id: people_status_home\n alias: Mark person as home\n mode: parallel\n initial_state: 'on'\n trigger:\n - platform: state\n entity_id:\n - input_select.cristina_status_dropdown\n - input_select.john_status\n - input_select.joe_status_dropdown\n - input_select.nonna_status\n - input_select.katia_status\n - input_select.sylvia_status\n to: Just Arrived\n for:\n minutes: 5\n - platform: state\n entity_id:\n - input_select.cristina_status_dropdown\n - input_select.john_status\n - input_select.joe_status_dropdown\n - input_select.nonna_status\n - input_select.katia_status\n from: Just Left\n to: Just Arrived\n action:\n - service: input_select.select_option\n data:\n entity_id: \"{% if trigger.entity_id == 'input_select.cristina_status_dropdown'\\\n \\ %}\\n input_select.cristina_status_dropdown\\n{% elif trigger.entity_id ==\\\n \\ 'input_select.john_status' %}\\n input_select.john_status\\n{% elif trigger.entity_id\\\n \\ == 'input_select.joe_status_dropdown' %}\\n input_select.joe_status_dropdown\\n\\\n {% elif trigger.entity_id == 'input_select.nonna_status' %}\\n input_select.nonna_status\\n\\\n {% elif trigger.entity_id == 'input_select.katia_status' %}\\n input_select.katia_status\\n\\\n {% elif trigger.entity_id == 'input_select.sylvia_status' %}\\n input_select.sylvia_status\\n\\\n {% endif %}\\n\"\n option: Home",
|
|
"config": [
|
|
{
|
|
"name": "john status",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.john_status",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "cristina status dropdown",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.cristina_status_dropdown",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input select joe status dropdown",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.joe_status_dropdown",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input select katia status",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.katia_status",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "nonna status",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.nonna_status",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "sylvia status",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.sylvia_status",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "people_status_left",
|
|
"automation": "- id: people_status_left\n alias: Mark person as just left\n mode: parallel\n initial_state: 'on'\n trigger:\n - platform: state\n entity_id:\n - input_boolean.cristina_home\n - input_boolean.john_home\n - input_boolean.joe_home\n - input_boolean.nonna_home\n - input_boolean.katia_home\n - input_boolean.sylvia_home\n to: 'off'\n action:\n - service: input_select.select_option\n data:\n entity_id: \"{% if trigger.entity_id == 'input_boolean.cristina_home' %}\\n input_select.cristina_status_dropdown\\n\\\n {% elif trigger.entity_id == 'input_boolean.john_home' %}\\n input_select.john_status\\n\\\n {% elif trigger.entity_id == 'input_boolean.joe_home' %}\\n input_select.joe_status_dropdown\\n\\\n {% elif trigger.entity_id == 'input_boolean.nonna_home' %}\\n input_select.nonna_status\\n\\\n {% elif trigger.entity_id == 'input_boolean.katia_home' %}\\n input_select.katia_status\\n\\\n {% elif trigger.entity_id == 'input_boolean.sylvia_home' %}\\n input_select.sylvia_status\\n\\\n {% endif %}\\n\"\n option: Just Left",
|
|
"config": [
|
|
{
|
|
"name": "john home",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.john_home",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "john status",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.john_status",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "cristina home",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.cristina_home",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "joe home",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.joe_home",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "nonna home",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.nonna_home",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "katia home",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.katia_home",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "sylvia home",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.sylvia_home",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "cristina status dropdown",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.cristina_status_dropdown",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input select joe status dropdown",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.joe_status_dropdown",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input select katia status",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.katia_status",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "nonna status",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.nonna_status",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "sylvia status",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.sylvia_status",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "cristina_phone_plugged_in",
|
|
"automation": "- id: cristina_phone_plugged_in\n alias: Cristina's phone is plugged in\n mode: single\n trigger:\n - platform: state\n entity_id: sensor.cfalb2_battery_level\n to: Charging\n - platform: state\n entity_id: sensor.cfalb2_battery_level\n to: Full\n condition:\n - condition: state\n entity_id: input_boolean.cristina_phone_plugged_in\n state: 'off'\n - condition: or\n conditions:\n - condition: state\n entity_id: sensor.cfalb2_battery_level\n state: Charging\n - condition: state\n entity_id: sensor.cfalb2_battery_level\n state: Full\n action:\n - service: input_boolean.turn_on\n entity_id: input_boolean.cristina_phone_plugged_in",
|
|
"config": [
|
|
{
|
|
"name": "cfalb2 battery level",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.cfalb2_battery_level",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "cristina phone plugged in",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.cristina_phone_plugged_in",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "cristina_phone_unplugged",
|
|
"automation": "- id: cristina_phone_unplugged\n alias: Cristina's phone is unplugged\n mode: single\n trigger:\n - platform: state\n entity_id: sensor.cfalb2_battery_level\n to: Not Charging\n condition:\n - condition: state\n entity_id: sensor.cfalb2_battery_level\n state: Not Charging\n action:\n - service: input_boolean.turn_off\n entity_id: input_boolean.cristina_phone_plugged_in",
|
|
"config": [
|
|
{
|
|
"name": "cfalb2 battery level",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.cfalb2_battery_level",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "cristina phone plugged in",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.cristina_phone_plugged_in",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "john_phone_plugged_in",
|
|
"automation": "- id: john_phone_plugged_in\n alias: John's phone is plugged in\n mode: single\n trigger:\n - platform: state\n entity_id: sensor.jk_iphone_14_battery_state\n to: Charging\n - platform: state\n entity_id: sensor.jk_iphone_14_battery_state\n to: Full\n condition:\n - condition: state\n entity_id: input_boolean.john_phone_plugged_in\n state: 'off'\n - condition: or\n conditions:\n - condition: state\n entity_id: sensor.jk_iphone_14_battery_state\n state: Charging\n - condition: state\n entity_id: sensor.jk_iphone_14_battery_state\n state: Full\n action:\n - service: input_boolean.turn_on\n entity_id: input_boolean.john_phone_plugged_in",
|
|
"config": [
|
|
{
|
|
"name": "jk iphone 14 battery state",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.jk_iphone_14_battery_state",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "john phone plugged in",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.john_phone_plugged_in",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "john_phone_unplugged",
|
|
"automation": "- id: john_phone_unplugged\n alias: John's phone is unplugged\n mode: single\n trigger:\n - platform: state\n entity_id: sensor.jk_iphone_14_battery_state\n to: Not Charging\n condition:\n - condition: state\n entity_id: sensor.jk_iphone_14_battery_state\n state: Not Charging\n action:\n - service: input_boolean.turn_off\n entity_id: input_boolean.john_phone_plugged_in",
|
|
"config": [
|
|
{
|
|
"name": "jk iphone 14 battery state",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.jk_iphone_14_battery_state",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "john phone plugged in",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.john_phone_plugged_in",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "playroom_activate_party_time",
|
|
"automation": "- id: playroom_activate_party_time\n initial_state: true\n alias: Playroom - Activate Party Time\n mode: single\n trigger:\n - platform: event\n event_type: zwave_js_value_notification\n event_data:\n device_id: cd626e869b9ddd77c680a7c1b1bd9bfc\n condition:\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n - condition: state\n entity_id: input_boolean.playroom_occupied\n state: 'on'\n action:\n - if:\n - alias: Party mode is already enabled\n condition: state\n entity_id: input_boolean.playroom_party_time_boolean\n state: 'on'\n then:\n - alias: Skip to the next track\n service: media_player.media_next_track\n target:\n entity_id: media_player.sonos_playroom\n else:\n - service: media_player.play_media\n target:\n entity_id: media_player.sonos_playroom\n data:\n media_content_type: playlist\n media_content_id: spotify:playlist:0DSw040Fn3W2uodatu4Fdn\n extra:\n volume: 60\n - service: scene.turn_on\n target:\n entity_id: scene.playroom_osaka\n - service: input_boolean.turn_on\n target:\n entity_id: input_boolean.playroom_party_time_boolean\n - service: script.general_notification\n data:\n title: Playroom Party Time\n message: Playroom party time has been turned on!\n devices: jk\n priority: time-sensitive\n tag: playroom-party-time",
|
|
"config": [
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "sonos playroom",
|
|
"room": "playroom",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.sonos_playroom",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "playroom button test device",
|
|
"room": "playroom",
|
|
"type": null,
|
|
"id": {
|
|
"entity_id": null,
|
|
"device_id": "cd626e869b9ddd77c680a7c1b1bd9bfc"
|
|
}
|
|
},
|
|
{
|
|
"name": "general notification script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.general_notification",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean playroom occupied",
|
|
"room": "playroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.playroom_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "playroom party time boolean",
|
|
"room": "playroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.playroom_party_time_boolean",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "playroom osaka scene",
|
|
"room": "playroom",
|
|
"type": "scene",
|
|
"id": {
|
|
"entity_id": "scene.playroom_osaka",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "playroom media player",
|
|
"room": "playroom",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.sonos_playroom",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "playroom_deactivate_party_time",
|
|
"automation": "- id: playroom_deactivate_party_time\n initial_state: true\n alias: Playroom - Deactivate Party Time\n mode: single\n trigger:\n - platform: event\n event_type: zwave_js_value_notification\n event_data:\n device_id: cd626e869b9ddd77c680a7c1b1bd9bfc\n value: KeyReleased\n condition:\n - condition: state\n entity_id: input_boolean.playroom_party_time_boolean\n state: 'on'\n action:\n - service: media_player.media_pause\n entity_id: media_player.sonos_playroom\n - service: scene.turn_off\n target:\n entity_id: scene.playroom_osaka\n - service: input_boolean.turn_on\n target:\n entity_id: input_boolean.playroom_party_time_boolean\n - service: script.general_notification\n data:\n title: Playroom Party Time Off\n message: Playroom party time has been turned OFF!\n devices: jk\n priority: time-sensitive\n tag: playroom-party-time",
|
|
"config": [
|
|
{
|
|
"name": "sonos playroom",
|
|
"room": "playroom",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.sonos_playroom",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "playroom button test device",
|
|
"room": "playroom",
|
|
"type": null,
|
|
"id": {
|
|
"entity_id": null,
|
|
"device_id": "cd626e869b9ddd77c680a7c1b1bd9bfc"
|
|
}
|
|
},
|
|
{
|
|
"name": "general notification script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.general_notification",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "playroom party time boolean",
|
|
"room": "playroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.playroom_party_time_boolean",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "playroom osaka scene",
|
|
"room": "playroom",
|
|
"type": "scene",
|
|
"id": {
|
|
"entity_id": "scene.playroom_osaka",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "playroom media player",
|
|
"room": "playroom",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.sonos_playroom",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "playroom_lights_day_off",
|
|
"automation": "- id: playroom_lights_day_off\n initial_state: true\n alias: Playroom lights day off\n trigger:\n - platform: numeric_state\n entity_id:\n - sensor.playroom_motion_sensor_illuminance\n - sensor.playroom_entry_motion_sensor_illuminance\n above: 115\n for:\n minutes: 3\n - platform: state\n entity_id: input_boolean.bad_weather\n to: 'off'\n condition:\n - condition: state\n entity_id: input_boolean.lighting_automations\n state: 'on'\n - condition: state\n entity_id: input_boolean.playroom_lighting_automations\n state: 'on'\n - condition: state\n entity_id: input_select.playroom\n state: Auto\n - condition: state\n entity_id: input_boolean.bad_weather\n state: 'off'\n - condition: state\n entity_id: input_boolean.playroom_lights_auto\n state: 'on'\n - condition: state\n entity_id: sun.sun\n state: above_horizon\n - condition: numeric_state\n entity_id:\n - sensor.playroom_motion_sensor_illuminance\n - sensor.playroom_entry_motion_sensor_illuminance\n above: 115\n - condition: state\n entity_id: light.playroom_lights\n state: 'on'\n action:\n - service: light.turn_off\n entity_id: group.playroom_lights",
|
|
"config": [
|
|
{
|
|
"name": "playroom lights",
|
|
"room": "playroom",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.playroom_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "bad weather",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.bad_weather",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "sun sun",
|
|
"room": null,
|
|
"type": "sun",
|
|
"id": {
|
|
"entity_id": "sun.sun",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "lighting automations",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.lighting_automations",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "playroom motion sensor illuminance",
|
|
"room": "playroom",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.playroom_motion_sensor_illuminance",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "playroom entry motion sensor illuminance",
|
|
"room": "playroom",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.playroom_entry_motion_sensor_illuminance",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "playroom lighting automations",
|
|
"room": "playroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.playroom_lighting_automations",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "playroom lights auto",
|
|
"room": "playroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.playroom_lights_auto",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "playroom lights group",
|
|
"room": "playroom",
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "group.playroom_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "playroom mode",
|
|
"room": "playroom",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.playroom",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "playroom_lights_day_on",
|
|
"automation": "- id: playroom_lights_day_on\n initial_state: true\n alias: Playroom lights Day On\n trigger:\n - platform: numeric_state\n entity_id:\n - sensor.playroom_motion_sensor_illuminance\n - sensor.playroom_entry_motion_sensor_illuminance\n below: 100\n for:\n minutes: 5\n - platform: numeric_state\n entity_id:\n - sensor.playroom_motion_sensor_illuminance\n - sensor.playroom_entry_motion_sensor_illuminance\n below: 75\n for:\n minutes: 2\n - platform: numeric_state\n entity_id:\n - sensor.playroom_motion_sensor_illuminance\n - sensor.playroom_entry_motion_sensor_illuminance\n below: 25\n for:\n minutes: 1\n - platform: state\n entity_id: input_boolean.bad_weather\n to: 'on'\n - platform: state\n entity_id: input_boolean.lighting_automations\n to: 'on'\n - platform: state\n entity_id: input_boolean.playroom_lighting_automations\n to: 'on'\n condition:\n - condition: state\n entity_id: input_boolean.lighting_automations\n state: 'on'\n - condition: state\n entity_id: input_boolean.playroom_lighting_automations\n state: 'on'\n - condition: state\n entity_id: input_boolean.playroom_occupied\n state: 'on'\n - condition: or\n conditions:\n - condition: numeric_state\n entity_id: sensor.playroom_entry_motion_sensor_illuminance\n below: 100\n - condition: numeric_state\n entity_id: sensor.playroom_motion_sensor_illuminance\n below: 100\n - condition: state\n entity_id: group.playroom_lights\n state: 'off'\n - condition: state\n entity_id: input_select.playroom\n state: Auto\n action:\n - service: light.turn_on\n entity_id: group.playroom_lights",
|
|
"config": [
|
|
{
|
|
"name": "bad weather",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.bad_weather",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "lighting automations",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.lighting_automations",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean playroom occupied",
|
|
"room": "playroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.playroom_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "playroom motion sensor illuminance",
|
|
"room": "playroom",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.playroom_motion_sensor_illuminance",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "playroom entry motion sensor illuminance",
|
|
"room": "playroom",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.playroom_entry_motion_sensor_illuminance",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "playroom lighting automations",
|
|
"room": "playroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.playroom_lighting_automations",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "playroom lights group",
|
|
"room": "playroom",
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "group.playroom_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "playroom mode",
|
|
"room": "playroom",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.playroom",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "playroom_lights_motion_off",
|
|
"automation": "- id: playroom_lights_motion_off\n initial_state: false\n alias: Playroom lights motion off\n trigger:\n - platform: state\n entity_id: binary_sensor.playroom_motion\n to: 'off'\n for:\n minutes: 2\n - platform: state\n entity_id: binary_sensor.playroom_occupancy\n to: 'off'\n condition:\n - condition: state\n entity_id: input_boolean.playroom_occupied\n state: 'off'\n - condition: state\n entity_id: group.playroom_lights\n state: 'on'\n action:\n - service: light.turn_off\n entity_id: group.playroom_lights\n - service: automation.turn_off\n entity_id: automation.playroom_lights_motion_off",
|
|
"config": [
|
|
{
|
|
"name": "input boolean playroom occupied",
|
|
"room": "playroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.playroom_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "playroom lights group",
|
|
"room": "playroom",
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "group.playroom_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "playroom motion",
|
|
"room": "playroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.playroom_motion",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "playroom occupancy",
|
|
"room": "playroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.playroom_occupancy",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Playroom Lights Motion Off",
|
|
"room": "Playroom",
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.playroom_lights_motion_off",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "playroom_lights_motion_on",
|
|
"automation": "- id: playroom_lights_motion_on\n initial_state: true\n alias: Playroom lights Motion On\n trigger:\n - platform: state\n entity_id: binary_sensor.playroom_entry_motion_sensor_motion\n to: 'on'\n condition:\n - condition: state\n entity_id: input_select.playroom\n state: Auto\n - condition: state\n entity_id: input_boolean.lighting_automations\n state: 'on'\n - condition: state\n entity_id: input_boolean.playroom_lighting_automations\n state: 'on'\n - condition: or\n conditions:\n - condition: numeric_state\n entity_id: sensor.playroom_entry_motion_sensor_illuminance\n below: 75\n - condition: numeric_state\n entity_id: sensor.playroom_motion_sensor_illuminance\n below: 75\n - condition: state\n entity_id: group.playroom_lights\n state: 'off'\n action:\n - service: light.turn_on\n entity_id: group.playroom_lights\n - service: input_boolean.turn_on\n entity_id: input_boolean.playroom_lights_auto",
|
|
"config": [
|
|
{
|
|
"name": "lighting automations",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.lighting_automations",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "playroom motion sensor illuminance",
|
|
"room": "playroom",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.playroom_motion_sensor_illuminance",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "playroom entry motion sensor illuminance",
|
|
"room": "playroom",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.playroom_entry_motion_sensor_illuminance",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "playroom lighting automations",
|
|
"room": "playroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.playroom_lighting_automations",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "playroom lights auto",
|
|
"room": "playroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.playroom_lights_auto",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "playroom lights group",
|
|
"room": "playroom",
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "group.playroom_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "playroom mode",
|
|
"room": "playroom",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.playroom",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "playroom entry motion sensor motion",
|
|
"room": "playroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.playroom_entry_motion_sensor_motion",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "playroom_lights_off",
|
|
"automation": "- id: playroom_lights_off\n initial_state: false\n alias: Playroom lights off\n trigger:\n - trigger: state\n entity_id: input_select.playroom\n to: 'Off'\n - trigger: state\n entity_id: input_boolean.playroom_occupied\n to: 'off'\n - trigger: state\n entity_id: input_boolean.lighting_automations\n to: 'on'\n condition:\n - condition: state\n entity_id: input_boolean.playroom_occupied\n state: 'off'\n - condition: or\n conditions:\n - condition: state\n entity_id: input_select.playroom\n state: 'Off'\n - condition: state\n entity_id: input_boolean.playroom_occupied\n state: 'off'\n action:\n - action: light.turn_off\n entity_id: group.playroom_lights\n - if:\n - condition: state\n entity_id: switch.christmas_playroom_lights\n state: 'on'\n then:\n - action: switch.turn_off\n entity_id: swtich.christmas_playroom_lights",
|
|
"config": [
|
|
{
|
|
"name": "lighting automations",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.lighting_automations",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean playroom occupied",
|
|
"room": "playroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.playroom_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "playroom lights group",
|
|
"room": "playroom",
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "group.playroom_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "playroom mode",
|
|
"room": "playroom",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.playroom",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "christmas playroom lights",
|
|
"room": "playroom",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.christmas_playroom_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Christmas Playroom Lights",
|
|
"room": "Playroom",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "swtich.christmas_playroom_lights",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "playroom_lights_to_off",
|
|
"automation": "- id: playroom_lights_to_off\n initial_state: true\n alias: Playroom Lights to Off\n trigger:\n - platform: state\n entity_id: input_select.playroom\n to: 'Off'\n - platform: state\n entity_id: input_boolean.playroom_occupied\n to: 'off'\n - platform: state\n entity_id: input_boolean.lighting_automations\n to: 'on'\n condition:\n - condition: state\n entity_id: input_boolean.lighting_automations\n state: 'on'\n - condition: state\n entity_id: input_boolean.playroom_lighting_automations\n state: 'on'\n - condition: or\n conditions:\n - condition: state\n entity_id: input_select.playroom\n state: 'Off'\n - condition: state\n entity_id: input_boolean.playroom_occupied\n state: 'off'\n - condition: state\n entity_id: light.playroom_lights\n state: 'on'\n action:\n - service: light.turn_off\n entity_id: light.playroom_lights\n - service: input_boolean.turn_off\n entity_id: input_boolean.playroom_lights_auto",
|
|
"config": [
|
|
{
|
|
"name": "playroom lights",
|
|
"room": "playroom",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.playroom_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "lighting automations",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.lighting_automations",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean playroom occupied",
|
|
"room": "playroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.playroom_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "playroom lighting automations",
|
|
"room": "playroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.playroom_lighting_automations",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "playroom lights auto",
|
|
"room": "playroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.playroom_lights_auto",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "playroom mode",
|
|
"room": "playroom",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.playroom",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "playroom_lights_manually_turned_off",
|
|
"automation": "- id: playroom_lights_manually_turned_off\n initial_state: true\n alias: Playroom Lights Manually Turned Off\n trigger:\n - platform: state\n entity_id: light.playroom_lights\n to: 'off'\n condition:\n - condition: state\n entity_id: input_boolean.playroom_lights_auto\n state: 'on'\n - condition: template\n value_template: '{{ trigger.to_state.context.parent_id == none }}'\n action:\n - service: input_boolean.turn_off\n entity_id: input_boolean.playroom_lights_auto\n - service: input_boolean.turn_off\n entity_id: input_boolean.playroom_lighting_automations\n - service: script.general_notification\n data:\n title: Playroom Lights\n message: The playroom lights have been turned off. The parent id is {{trigger.to_state.context.parent_id}}\n and the user_id is {{trigger.to_state.context.user_id}}.\n devices: jk\n priority: passive\n tag: playroom-lighting-automation",
|
|
"config": [
|
|
{
|
|
"name": "playroom lights",
|
|
"room": "playroom",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.playroom_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "general notification script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.general_notification",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "playroom lighting automations",
|
|
"room": "playroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.playroom_lighting_automations",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "playroom lights auto",
|
|
"room": "playroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.playroom_lights_auto",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "playroom_media_player_unjoin",
|
|
"automation": "- id: playroom_media_player_unjoin\n initial_state: true\n alias: Playroom Media Player Unjoin\n trigger:\n - platform: state\n entity_id: input_boolean.playroom_occupied\n to: 'off'\n - platform: state\n entity_id: input_select.playroom\n to: 'Off'\n - platform: state\n entity_id: media_player.sonos_playroom\n to: paused\n for:\n minutes: 10\n - platform: state\n entity_id: media_player.sonos_playroom\n to: paused\n for:\n minutes: 30\n condition:\n - condition: state\n entity_id: input_boolean.playroom_occupied\n state: 'off'\n - condition: template\n value_template: '{{ expand(''group.room_presence_devices'')|selectattr(''state'',\n ''eq'', ''playroom'')|map(attribute=''name'')|list | length == 0 }}'\n - condition: state\n entity_id: media_player.sonos_playroom\n state: paused\n - condition: template\n value_template: '{{ states.media_player.sonos_playroom.attributes.group_members\n | count > 1 }}'\n action:\n - service: media_player.unjoin\n entity_id: media_player.sonos_playroom",
|
|
"config": [
|
|
{
|
|
"name": "sonos playroom",
|
|
"room": "playroom",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.sonos_playroom",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "room presence devices group",
|
|
"room": null,
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "group.room_presence_devices",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean playroom occupied",
|
|
"room": "playroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.playroom_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "playroom mode",
|
|
"room": "playroom",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.playroom",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "playroom media player",
|
|
"room": "playroom",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.sonos_playroom",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "playroom_mode_auto",
|
|
"automation": "- id: playroom_mode_auto\n initial_state: true\n alias: Playroom mode auto\n trigger:\n - platform: state\n entity_id: input_boolean.playroom_occupied\n to: 'on'\n - platform: state\n entity_id: input_select.house\n to: Auto\n - platform: state\n entity_id: input_boolean.house_occupied\n to: 'on'\n condition:\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n - condition: template\n value_template: '{{ not is_state(''input_select.playroom'',''Auto'') }}'\n - condition: state\n entity_id: input_boolean.bedtime\n state: 'off'\n - condition: state\n entity_id: input_select.house\n state: Auto\n action:\n - service: input_select.select_option\n data:\n entity_id: input_select.playroom\n option: Auto",
|
|
"config": [
|
|
{
|
|
"name": "bedtime",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.bedtime",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "house status",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.house",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean playroom occupied",
|
|
"room": "playroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.playroom_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "playroom mode",
|
|
"room": "playroom",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.playroom",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "playroom_mode_off",
|
|
"automation": "- id: playroom_mode_off\n initial_state: true\n alias: Playroom mode off\n trigger:\n - platform: state\n entity_id: input_boolean.house_occupied\n to: 'off'\n - platform: state\n entity_id: input_select.house\n to: Away\n - platform: state\n entity_id: input_boolean.bedtime\n to: 'on'\n - platform: homeassistant\n event: start\n - platform: event\n event_type: automation_reloaded\n condition:\n - condition: template\n value_template: '{{ not is_state(''input_select.playroom'',''Off'') }}'\n - condition: or\n conditions:\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'off'\n - condition: state\n entity_id: input_select.house\n state: Away\n - condition: state\n entity_id: input_boolean.bedtime\n state: 'on'\n action:\n - service: input_select.select_option\n data:\n entity_id: input_select.playroom\n option: 'Off'",
|
|
"config": [
|
|
{
|
|
"name": "bedtime",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.bedtime",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "house status",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.house",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "playroom mode",
|
|
"room": "playroom",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.playroom",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "playroom_music_off",
|
|
"automation": "- id: playroom_music_off\n initial_state: true\n alias: Playroom Music Off\n trigger:\n - platform: state\n entity_id: input_boolean.playroom_occupied\n to: 'off'\n - platform: state\n entity_id: input_select.playroom\n to: 'Off'\n condition:\n - condition: state\n entity_id: input_boolean.playroom_occupied\n state: 'off'\n - condition: template\n value_template: '{{ expand(''group.room_presence_devices'')|selectattr(''state'',\n ''eq'', ''playroom'')|map(attribute=''name'')|list | length == 0 }}'\n - condition: state\n entity_id: media_player.sonos_playroom\n state: playing\n action:\n - service: media_player.unjoin\n entity_id: media_player.sonos_playroom\n - service: media_player.media_pause\n entity_id: media_player.sonos_playroom",
|
|
"config": [
|
|
{
|
|
"name": "sonos playroom",
|
|
"room": "playroom",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.sonos_playroom",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "room presence devices group",
|
|
"room": null,
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "group.room_presence_devices",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean playroom occupied",
|
|
"room": "playroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.playroom_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "playroom mode",
|
|
"room": "playroom",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.playroom",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "playroom media player",
|
|
"room": "playroom",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.sonos_playroom",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "playroom_not_occupied",
|
|
"automation": "- id: playroom_not_occupied\n initial_state: true\n alias: Playroom not occupied\n trigger:\n - platform: template\n value_template: '{{ expand(''group.room_presence_devices'')|selectattr(''state'',\n ''eq'', ''playroom'')|map(attribute=''name'')|list | length == 0 }}'\n for:\n minutes: 2\n - platform: state\n entity_id: binary_sensor.playroom_occupancy\n to: 'off'\n - platform: state\n entity_id: binary_sensor.playroom_occupancy\n to: 'off'\n for:\n minutes: 5\n - platform: state\n entity_id: binary_sensor.playroom_occupancy\n to: 'off'\n for:\n minutes: 10\n - platform: state\n entity_id: binary_sensor.playroom_motion\n to: 'off'\n for:\n minutes: 5\n - platform: state\n entity_id: binary_sensor.playroom_presence_sensor\n to: 'off'\n condition:\n - condition: state\n entity_id: input_boolean.playroom_occupied\n state: 'on'\n - condition: state\n entity_id: binary_sensor.playroom_entry_motion_sensor_motion\n state: 'off'\n - condition: state\n entity_id: binary_sensor.playroom_presence_sensor\n state: 'off'\n - condition: template\n value_template: '{{ expand(''group.room_presence_devices'')|selectattr(''state'',\n ''eq'', ''playroom'')|map(attribute=''name'')|list | length == 0 }}'\n - condition: state\n entity_id: binary_sensor.playroom_motion\n state: 'off'\n for:\n minutes: 10\n action:\n - service: input_boolean.turn_off\n entity_id: input_boolean.playroom_occupied\n - alias: Wait 2 seconds\n delay: 2\n - service: input_boolean.turn_on\n entity_id: input_boolean.playroom_lighting_automations",
|
|
"config": [
|
|
{
|
|
"name": "room presence devices group",
|
|
"room": null,
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "group.room_presence_devices",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean playroom occupied",
|
|
"room": "playroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.playroom_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "playroom lighting automations",
|
|
"room": "playroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.playroom_lighting_automations",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "playroom motion",
|
|
"room": "playroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.playroom_motion",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "playroom occupancy",
|
|
"room": "playroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.playroom_occupancy",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "playroom entry motion sensor motion",
|
|
"room": "playroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.playroom_entry_motion_sensor_motion",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "playroom presence sensor",
|
|
"room": "playroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.playroom_presence_sensor",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "playroom_occupied",
|
|
"automation": "- id: playroom_occupied\n initial_state: true\n alias: Playroom occupied\n trigger:\n - platform: state\n entity_id: binary_sensor.playroom_entry_motion_sensor_motion\n to: 'on'\n - platform: state\n entity_id: group.playroom_lights\n to: 'on'\n - platform: state\n entity_id: binary_sensor.playroom_presence_sensor\n to: 'on'\n - platform: event\n event_type: automation_reloaded\n - platform: homeassistant\n event: start\n condition:\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n - condition: state\n entity_id: input_boolean.playroom_occupied\n state: 'off'\n - condition: or\n conditions:\n - condition: template\n value_template: '{{ expand(''group.room_presence_devices'')|selectattr(''state'',\n ''eq'', ''playroom'')|map(attribute=''name'')|list | length > 0 }}'\n - condition: state\n entity_id: binary_sensor.playroom_occupancy\n state: 'on'\n - condition: state\n entity_id: binary_sensor.playroom_motion\n state: 'on'\n - condition: state\n entity_id: binary_sensor.playroom_presence_sensor\n state: 'on'\n action:\n - service: input_boolean.turn_on\n entity_id: input_boolean.playroom_occupied",
|
|
"config": [
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "room presence devices group",
|
|
"room": null,
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "group.room_presence_devices",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean playroom occupied",
|
|
"room": "playroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.playroom_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "playroom lights group",
|
|
"room": "playroom",
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "group.playroom_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "playroom motion",
|
|
"room": "playroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.playroom_motion",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "playroom occupancy",
|
|
"room": "playroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.playroom_occupancy",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "playroom entry motion sensor motion",
|
|
"room": "playroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.playroom_entry_motion_sensor_motion",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "playroom presence sensor",
|
|
"room": "playroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.playroom_presence_sensor",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "pool_mode_auto",
|
|
"automation": "- id: pool_mode_auto\n initial_state: true\n alias: Pool Mode Auto\n trigger:\n - platform: state\n entity_id: input_select.house\n to: Auto\n - platform: state\n entity_id: input_boolean.house_occupied\n to: 'on'\n condition:\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n - condition: template\n value_template: '{{ not is_state(''input_select.pool'',''Auto'') }}'\n - condition: state\n entity_id: input_boolean.bedtime\n state: 'off'\n - condition: state\n entity_id: input_select.house\n state: Auto\n action:\n - service: input_select.select_option\n data:\n entity_id: input_select.pool\n option: Auto",
|
|
"config": [
|
|
{
|
|
"name": "bedtime",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.bedtime",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "house status",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.house",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "pool mode",
|
|
"room": "pool",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.pool",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "pool_mode_off",
|
|
"automation": "- id: pool_mode_off\n initial_state: true\n alias: Pool Mode Off\n trigger:\n - platform: state\n entity_id: input_boolean.house_occupied\n to: 'off'\n - platform: state\n entity_id: input_boolean.bedtime\n to: 'on'\n - platform: homeassistant\n event: start\n - platform: event\n event_type: automation_reloaded\n condition:\n - condition: template\n value_template: '{{ not is_state(''input_select.pool'',''Off'') }}'\n - condition: or\n conditions:\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'off'\n - condition: state\n entity_id: input_boolean.bedtime\n state: 'on'\n action:\n - service: input_select.select_option\n data:\n entity_id: input_select.pool\n option: 'Off'",
|
|
"config": [
|
|
{
|
|
"name": "bedtime",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.bedtime",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "pool mode",
|
|
"room": "pool",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.pool",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "pool_motion_restart_timer",
|
|
"automation": "- id: pool_motion_restart_timer\n initial_state: true\n alias: Pool Motion - Restart Timer\n mode: single\n trigger:\n - platform: state\n entity_id:\n - binary_sensor.pool_motion_east_entry_occupancy\n - binary_sensor.pool_motion_west_occupancy\n to: 'on'\n condition:\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n - condition: state\n entity_id: input_boolean.bedtime\n state: 'off'\n - condition: state\n entity_id: input_select.pool\n state: Auto\n action:\n - service: timer.start\n entity_id: timer.pool_occupancy",
|
|
"config": [
|
|
{
|
|
"name": "bedtime",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.bedtime",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "pool mode",
|
|
"room": "pool",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.pool",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "timer pool occupancy",
|
|
"room": "pool",
|
|
"type": "timer",
|
|
"id": {
|
|
"entity_id": "timer.pool_occupancy",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "pool motion east entry occupancy",
|
|
"room": "pool",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.pool_motion_east_entry_occupancy",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "pool motion west occupancy",
|
|
"room": "pool",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.pool_motion_west_occupancy",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "pool_not_occupied",
|
|
"automation": "- id: pool_not_occupied\n initial_state: true\n alias: Pool Not Occupied\n trigger:\n - platform: state\n entity_id: timer.pool_occupancy\n to: idle\n - platform: template\n value_template: '{{ expand(''group.room_presence_devices'')|selectattr(''state'',\n ''eq'', ''gazebo'')|map(attribute=''name'')|list | length == 0 }}'\n for:\n minutes: 2\n - platform: state\n entity_id: binary_sensor.pool_main_gate_opening\n to: 'off'\n condition:\n - condition: state\n entity_id: input_boolean.pool_occupied\n state: 'on'\n - condition: state\n entity_id: binary_sensor.pool_motion_sensor_status\n state: 'off'\n - condition: state\n entity_id: timer.pool_occupancy\n state: idle\n - condition: template\n value_template: '{{ expand(''group.room_presence_devices'')|selectattr(''state'',\n ''eq'', ''gazebo'')|map(attribute=''name'')|list | length == 0 }}'\n action:\n - service: input_boolean.turn_off\n entity_id: input_boolean.pool_occupied",
|
|
"config": [
|
|
{
|
|
"name": "room presence devices group",
|
|
"room": null,
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "group.room_presence_devices",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "pool occupied",
|
|
"room": "pool",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.pool_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "timer pool occupancy",
|
|
"room": "pool",
|
|
"type": "timer",
|
|
"id": {
|
|
"entity_id": "timer.pool_occupancy",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "pool motion sensor status",
|
|
"room": "pool",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.pool_motion_sensor_status",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "pool main gate opening",
|
|
"room": "pool",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.pool_main_gate_opening",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "pool_occupied",
|
|
"automation": "- id: pool_occupied\n initial_state: true\n alias: Pool Occupied\n trigger:\n - platform: state\n entity_id: binary_sensor.pool_motion_sensor_status\n to: 'on'\n - platform: state\n entity_id: binary_sensor.pool_main_gate_opening\n - platform: event\n event_type: automation_reloaded\n - platform: homeassistant\n event: start\n condition:\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n - condition: state\n entity_id: input_boolean.pool_occupied\n state: 'off'\n - condition: or\n conditions:\n - condition: template\n value_template: '{{ expand(''group.room_presence_devices'')|selectattr(''state'',\n ''eq'', ''gazebo'')|map(attribute=''name'')|list | length > 0 }}'\n - condition: state\n entity_id: timer.pool_occupancy\n state: active\n action:\n - service: input_boolean.turn_on\n entity_id: input_boolean.pool_occupied",
|
|
"config": [
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "room presence devices group",
|
|
"room": null,
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "group.room_presence_devices",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "pool occupied",
|
|
"room": "pool",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.pool_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "timer pool occupancy",
|
|
"room": "pool",
|
|
"type": "timer",
|
|
"id": {
|
|
"entity_id": "timer.pool_occupancy",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "pool motion sensor status",
|
|
"room": "pool",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.pool_motion_sensor_status",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "pool main gate opening",
|
|
"room": "pool",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.pool_main_gate_opening",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "powder_room_fan_off",
|
|
"automation": "- id: powder_room_fan_off\n initial_state: true\n alias: Powder Room Fan Off\n trigger:\n - platform: state\n entity_id: input_select.powder_room\n to: 'Off'\n - platform: state\n entity_id: input_boolean.powder_room_occupied\n to: 'off'\n for:\n minutes: 5\n condition:\n - condition: state\n entity_id: fan.powder_room_fan\n state: 'on'\n - condition: or\n conditions:\n - condition: state\n entity_id: input_select.powder_room\n state: 'Off'\n - condition: state\n entity_id: input_boolean.powder_room_occupied\n state: 'off'\n action:\n - service: fan.turn_off\n entity_id: fan.powder_room_fan",
|
|
"config": [
|
|
{
|
|
"name": "powder room fan",
|
|
"room": "powder room",
|
|
"type": "fan",
|
|
"id": {
|
|
"entity_id": "fan.powder_room_fan",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "powder room mode",
|
|
"room": "powder room",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.powder_room",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "powder room occupied",
|
|
"room": "powder room",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.powder_room_occupied",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "powder_room_lights_off",
|
|
"automation": "- id: powder_room_lights_off\n initial_state: true\n alias: Powder Room lights off\n trigger:\n - platform: state\n entity_id: input_select.powder_room\n to: 'Off'\n - platform: state\n entity_id: input_boolean.lighting_automations\n to: 'on'\n condition:\n - condition: state\n entity_id: light.powder_room_main_lights\n state: 'on'\n - condition: state\n entity_id: input_select.powder_room\n state: 'Off'\n action:\n - service: light.turn_off\n entity_id: light.powder_room_main_lights",
|
|
"config": [
|
|
{
|
|
"name": "lighting automations",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.lighting_automations",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "powder room main lights",
|
|
"room": "powder room",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.powder_room_main_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "powder room mode",
|
|
"room": "powder room",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.powder_room",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "powder_room_mode_auto",
|
|
"automation": "- id: powder_room_mode_auto\n initial_state: true\n alias: Powder Room mode Auto\n trigger:\n - platform: state\n entity_id: input_select.house\n to: Auto\n - platform: state\n entity_id: input_boolean.house_occupied\n to: 'on'\n condition:\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n - condition: template\n value_template: '{{ not is_state(''input_select.powder_room'',''Auto'') }}'\n - condition: state\n entity_id: input_boolean.bedtime\n state: 'off'\n - condition: state\n entity_id: input_select.house\n state: Auto\n action:\n - service: input_select.select_option\n data:\n entity_id: input_select.powder_room\n option: Auto",
|
|
"config": [
|
|
{
|
|
"name": "bedtime",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.bedtime",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "house status",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.house",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "powder room mode",
|
|
"room": "powder room",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.powder_room",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "powder_room_mode_off",
|
|
"automation": "- id: powder_room_mode_off\n initial_state: true\n alias: Powder Room mode off\n trigger:\n - platform: state\n entity_id: input_boolean.house_occupied\n to: 'off'\n - platform: state\n entity_id: input_select.house\n to: Away\n - platform: state\n entity_id: input_boolean.bedtime\n to: 'on'\n - platform: homeassistant\n event: start\n - platform: event\n event_type: automation_reloaded\n condition:\n - condition: template\n value_template: '{{ not is_state(''input_select.powder_room'',''Off'') }}'\n - condition: or\n conditions:\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'off'\n - condition: state\n entity_id: input_select.house\n state: Away\n - condition: state\n entity_id: input_boolean.bedtime\n state: 'on'\n action:\n - service: input_select.select_option\n data:\n entity_id: input_select.powder_room\n option: 'Off'",
|
|
"config": [
|
|
{
|
|
"name": "bedtime",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.bedtime",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "house status",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.house",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "powder room mode",
|
|
"room": "powder room",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.powder_room",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "powder_room_not_occupied",
|
|
"automation": "- id: powder_room_not_occupied\n initial_state: true\n alias: Powder Room Not Occupied\n trigger:\n - platform: state\n entity_id: binary_sensor.powder_room_door\n to: 'on'\n - platform: state\n entity_id: binary_sensor.powder_room_door\n to: 'on'\n for:\n minutes: 5\n - platform: state\n entity_id: light.powder_room_main_lights\n to: 'off'\n - platform: state\n entity_id: light.powder_room_main_lights\n to: 'off'\n for:\n minutes: 5\n condition:\n - condition: state\n entity_id: input_boolean.powder_room_occupied\n state: 'on'\n - condition: or\n conditions:\n - condition: and\n conditions:\n - condition: state\n entity_id: binary_sensor.powder_room_door\n state: 'on'\n - condition: state\n entity_id: light.powder_room_main_lights\n state: 'on'\n - condition: or\n conditions:\n - condition: state\n entity_id: binary_sensor.powder_room_door\n state: 'on'\n for:\n minutes: 5\n - condition: state\n entity_id: light.powder_room_main_lights\n state: 'on'\n for:\n minutes: 5\n action:\n - service: input_boolean.turn_off\n entity_id: input_boolean.powder_room_occupied",
|
|
"config": [
|
|
{
|
|
"name": "powder room main lights",
|
|
"room": "powder room",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.powder_room_main_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "powder room occupied",
|
|
"room": "powder room",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.powder_room_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "powder room door",
|
|
"room": "powder room",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.powder_room_door",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "powder_room_occupied",
|
|
"automation": "- id: powder_room_occupied\n initial_state: true\n alias: Powder Room Occupied\n trigger:\n - platform: state\n entity_id: binary_sensor.powder_room_door\n to: 'off'\n - platform: state\n entity_id: light.powder_room_main_lights\n to: 'on'\n condition:\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n - condition: state\n entity_id: input_boolean.powder_room_occupied\n state: 'off'\n - condition: or\n conditions:\n - condition: state\n entity_id: binary_sensor.powder_room_door\n state: 'off'\n - condition: state\n entity_id: light.powder_room_main_lights\n state: 'on'\n action:\n - service: input_boolean.turn_on\n entity_id: input_boolean.powder_room_occupied",
|
|
"config": [
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "powder room main lights",
|
|
"room": "powder room",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.powder_room_main_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "powder room occupied",
|
|
"room": "powder room",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.powder_room_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "powder room door",
|
|
"room": "powder room",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.powder_room_door",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "primary_school_day_off",
|
|
"automation": "- id: primary_school_day_off\n alias: Primary School Day Off\n mode: single\n initial_state: false\n trigger:\n - platform: time\n at: '23:59:00'\n condition:\n - condition: state\n entity_id: input_boolean.primary_school_day\n state: 'on'\n action:\n - service: input_boolean.turn_off\n entity_id: input_boolean.primary_school_day\n - service: automation.turn_on\n entity_id:\n - automation.school_day_reminder\n - if:\n - condition: time\n weekday:\n - wed\n - condition: state\n entity_id: input_boolean.district_late_start_wednesday\n state: 'on'\n then:\n - service: input_boolean.turn_off\n entity_id: input_boolean.district_late_start_wednesday",
|
|
"config": [
|
|
{
|
|
"name": "school day reminder automation",
|
|
"room": null,
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.school_day_reminder",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "primary school day",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.primary_school_day",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "district late start wednesday",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.district_late_start_wednesday",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "primary_school_day_on",
|
|
"automation": "- id: primary_school_day_on\n alias: Primary School Day On\n mode: single\n initial_state: false\n trigger:\n - platform: time\n at: 02:00:01\n - platform: event\n event_type: automation_reloaded\n - platform: homeassistant\n event: start\n condition:\n - condition: state\n entity_id: input_boolean.district_school_year_active\n state: 'on'\n - condition: state\n entity_id: binary_sensor.school_day\n state: 'on'\n - condition: state\n entity_id: binary_sensor.primary_school_closed\n state: 'off'\n action:\n - service: input_boolean.turn_on\n entity_id: input_boolean.primary_school_day\n - service: automation.turn_on\n entity_id:\n - automation.school_day_reminder\n - if:\n - condition: time\n weekday:\n - wed\n then:\n - service: input_boolean.turn_on\n entity_id: input_boolean.district_late_start_wednesday",
|
|
"config": [
|
|
{
|
|
"name": "district school year active",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.district_school_year_active",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "school day reminder automation",
|
|
"room": null,
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.school_day_reminder",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "primary school day",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.primary_school_day",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "district late start wednesday",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.district_late_start_wednesday",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "school day",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.school_day",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "primary school closed",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.primary_school_closed",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "announcement_queue_processor",
|
|
"automation": "- id: announcement_queue_processor\n alias: Announcement Queue - Processor\n mode: single\n initial_state: true\n trigger:\n - trigger: state\n entity_id: sensor.announcement_queue\n - trigger: state\n entity_id: input_boolean.announcement_queue_running\n to: 'off'\n - trigger: mqtt\n topic: home/announcement_queue/state\n - trigger: state\n entity_id: input_boolean.house_occupied\n to: 'on'\n for:\n minutes: 5\n condition:\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n - condition: template\n value_template: '{% set q = state_attr(''sensor.announcement_queue'', ''queue'')\n %} {{ q is iterable and q | length > 0 }}\n\n '\n - condition: state\n entity_id: input_boolean.announcement_queue_running\n state: 'off'\n - condition: template\n value_template: \"{% set q = state_attr('sensor.announcement_queue', 'queue') %}\\\n \\ {% if q is iterable and q | length > 0 %}\\n {% set next_msg = q[0] %}\\n \\\n \\ {% if next_msg.priority == 'critical' %}\\n true\\n {% else %}\\n {{ states('binary_sensor.announceable_rooms_occupied')\\\n \\ == 'on' }}\\n {% endif %}\\n{% else %}\\n false\\n{% endif %}\\n\"\n action:\n - action: input_boolean.turn_on\n entity_id: input_boolean.announcement_queue_running\n - variables:\n raw_queue: '{{ state_attr(''sensor.announcement_queue'', ''queue'') }}'\n queue: \"{% if raw_queue is iterable %}\\n {# Filter out expired messages and\\\n \\ apply priority rules #}\\n {% set now_iso = now().isoformat() %}\\n {% set\\\n \\ valid_msgs = namespace(list=[]) %}\\n {% for msg in raw_queue %}\\n {%\\\n \\ if msg is mapping %}\\n {% set expires_at = msg.get('expires_at') %}\\n\\\n \\ {% set priority = msg.get('priority', 'normal') %}\\n {# Keep message\\\n \\ if not expired - we process all priorities when occupied #}\\n {% if\\\n \\ not expires_at or expires_at > now_iso %}\\n {% set valid_msgs.list\\\n \\ = valid_msgs.list + [msg] %}\\n {% endif %}\\n {% endif %}\\n {% endfor\\\n \\ %}\\n {{ valid_msgs.list }}\\n{% else %}\\n [] \\n{% endif %}\"\n next: '{{ queue[0] if queue | length > 0 else {} }}'\n updated: '{{ queue[1:] if queue | length > 1 else [] }}'\n payload_json: '{{ {\"queue\": updated} | to_json }}'\n - choose:\n - conditions:\n - condition: template\n value_template: '{{ queue | length > 0 and (next.get(''speech_message'') is\n string or next.get(''sound_file'') is string) }}'\n sequence:\n - alias: Broadcast the announcement\n continue_on_error: true\n action: script.announcement_engine\n data:\n speech_message: '{{ next.speech_message }}'\n sound_file: '{{ next.sound_file }}'\n sound_length: '{{ next.sound_length }}'\n sound_volume: '{{ next.sound_volume }}'\n speech_volume: '{{ next.speech_volume }}'\n media_players: '{{ next.media_players }}'\n - action: mqtt.publish\n data:\n topic: home/announcement_queue/data\n payload: '{{ payload_json }}'\n retain: true\n - action: mqtt.publish\n data:\n topic: home/announcement_queue/state\n payload: queue\n retain: true\n - delay: 00:00:03\n - action: input_boolean.turn_off\n entity_id: input_boolean.announcement_queue_running",
|
|
"config": [
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "announcement queue",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.announcement_queue",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "script announcement engine",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.announcement_engine",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "binary sensor announceable rooms occupied",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.announceable_rooms_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "announcement queue running",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.announcement_queue_running",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "announcement_queue_cleanup",
|
|
"automation": "- id: announcement_queue_cleanup\n alias: Announcement Queue - Cleanup on Empty House\n mode: single\n trigger:\n - trigger: state\n entity_id: input_boolean.house_occupied\n to: 'off'\n action:\n - variables:\n raw_queue: '{{ state_attr(''sensor.announcement_queue'', ''queue'') }}'\n cleaned_queue: \"{% if raw_queue is iterable %}\\n {# When house becomes empty:\\\n \\ #}\\n {# 1. Keep only critical and high priority messages #}\\n {# 2. Remove\\\n \\ expired messages #}\\n {% set now_iso = now().isoformat() %}\\n {% set valid_msgs\\\n \\ = namespace(list=[]) %}\\n {% for msg in raw_queue %}\\n {% set expires_at\\\n \\ = msg.get('expires_at') %}\\n {% set priority = msg.get('priority', 'normal')\\\n \\ %}\\n {% if (not expires_at or expires_at > now_iso) and\\n (priority\\\n \\ in ['critical', 'high']) %}\\n {% set valid_msgs.list = valid_msgs.list\\\n \\ + [msg] %}\\n {% endif %}\\n {% endfor %}\\n {{ valid_msgs.list }}\\n{%\\\n \\ else %}\\n []\\n{% endif %}\"\n payload_json: '{{ {\"queue\": cleaned_queue} | to_json }}'\n - action: system_log.write\n data:\n level: warning\n message: 'Queue cleaned due to empty house. Remaining messages: {{ cleaned_queue\n | length }}\n\n '\n - action: mqtt.publish\n data:\n topic: home/announcement_queue/data\n payload: '{{ payload_json }}'\n retain: true\n - action: mqtt.publish\n data:\n topic: home/announcement_queue/state\n payload: queue\n retain: true",
|
|
"config": [
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "announcement queue",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.announcement_queue",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "quiet_mode_turn_off",
|
|
"automation": "- id: quiet_mode_turn_off\n initial_state: true\n alias: Quiet Mode - Turn Off\n triggers:\n - trigger: state\n entity_id: binary_sensor.everybody_awake\n to: 'on'\n conditions:\n - condition: state\n entity_id: input_boolean.quiet_mode\n state: 'on'\n - condition: and\n conditions:\n - condition: state\n entity_id: binary_sensor.nino_bed_occupied\n state: 'off'\n - condition: state\n entity_id: binary_sensor.gianluca_bed_occupied\n state: 'off'\n - condition: state\n entity_id: binary_sensor.john_bed_occupied\n state: 'off'\n - condition: state\n entity_id: binary_sensor.cristina_bed_occupied\n state: 'off'\n actions:\n - action: input_boolean.turn_off\n entity_id: input_boolean.quiet_mode",
|
|
"config": [
|
|
{
|
|
"name": "quiet mode",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.quiet_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "cristina bed occupied",
|
|
"room": "cristina",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.cristina_bed_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "gianluca bed occupied",
|
|
"room": "gianlucas bedroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.gianluca_bed_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean quiet mode",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.quiet_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "binary sensor john bed occupied",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.john_bed_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "nino bed occupied",
|
|
"room": "ninos bedroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.nino_bed_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "everybody awake",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.everybody_awake",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "quiet_mode_turn_on",
|
|
"automation": "- id: quiet_mode_turn_on\n initial_state: true\n alias: Quiet Mode - Turn On\n triggers:\n - trigger: state\n entity_id: binary_sensor.somebody_in_bed\n to: 'on'\n conditions:\n - condition: state\n entity_id: input_boolean.quiet_mode\n state: 'off'\n actions:\n - action: input_boolean.turn_on\n entity_id: input_boolean.quiet_mode\n - action: script.voice_announcement\n data:\n media_players: auto\n sound: harp-flourish\n speech_message: \"{% set who = \\\"\\\" %} {% if states.input_boolean.gianluca_in_bed.state\\\n \\ == \\\"on\\\" %}\\n {% set who = \\\"Gianluca\\\" %}\\n{% elif states.input_boolean.nino_in_bed.state\\\n \\ == \\\"on\\\" %}\\n {% set who = \\\"Nino\\\" %}\\n{% elif states.input_boolean.john_is_in_bed.state\\\n \\ == \\\"on\\\" %}\\n {% set who = \\\"John\\\" %}\\n{% elif states.input_boolean.cristina_in_bed.state\\\n \\ == \\\"on\\\" %}\\n {% set who = \\\"Cristina\\\" %}\\n{% endif %}\\n{{\\n [\\n \\\n \\ \\\"Shhh...\\\" ~ who ~ \\\" is going to sleep.\\\",\\n \\\"Quiet time, \\\" ~ who\\\n \\ ~ \\\" is going to sleep!\\\",\\n \\\"Pardon the interruption but \\\" ~ who ~\\\n \\ \\\" is going to sleep, please be quiet!\\\",\\n \\\"Attention! Quiet mode has\\\n \\ been enabled for \\\" ~ who ~ \\\"'s nap.\\\"\\n ] | random\\n}}\"",
|
|
"config": [
|
|
{
|
|
"name": "quiet mode",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.quiet_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "cristina in bed",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.cristina_in_bed",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "voice announcement script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.voice_announcement",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "gianluca in bed",
|
|
"room": "gianlucas bedroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.gianluca_in_bed",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "script voice announcement",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.voice_announcement",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean quiet mode",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.quiet_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean john is in bed",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.john_is_in_bed",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "nino in bed",
|
|
"room": "ninos bedroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.nino_in_bed",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "somebody in bed",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.somebody_in_bed",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "Reset Room Selection After Vacuum Finishes",
|
|
"automation": "- alias: Reset Room Selection After Vacuum Finishes\n description: Turns off all room selection booleans when the vacuum completes cleaning\n trigger:\n - platform: state\n entity_id: vacuum.roborock_s7\n to: returning\n condition:\n - condition: template\n value_template: \"{% for entity in states.input_boolean if 'vacuum_' in entity.entity_id\\\n \\ %}\\n {% if is_state(entity.entity_id, 'on') %}\\n {{ true }}\\n {% break\\\n \\ %}\\n {% endif %}\\n{% endfor %} {{ false }}\\n\"\n action:\n - service: input_boolean.turn_off\n target:\n entity_id: \"{% set entities = [] %} {% for entity in states.input_boolean if\\\n \\ 'vacuum_' in entity.entity_id %}\\n {% if is_state(entity.entity_id, 'on')\\\n \\ %}\\n {% set entities = entities + [entity.entity_id] %}\\n {% endif %}\\n\\\n {% endfor %} {{ entities | join(',') }} \"",
|
|
"config": [
|
|
{
|
|
"name": "roborock s7 vacuum",
|
|
"room": null,
|
|
"type": "vacuum",
|
|
"id": {
|
|
"entity_id": "vacuum.roborock_s7",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "returned_home",
|
|
"automation": "- id: returned_home\n initial_state: 'on'\n alias: Returned home\n trigger:\n - platform: numeric_state\n entity_id: sensor.home_nearest_distance\n below: 0.5\n - platform: state\n entity_id:\n - input_select.cristina_status_dropdown\n - input_select.john_status\n to: Just Arrived\n condition:\n condition: and\n conditions:\n - condition: template\n value_template: '{{ (as_timestamp(now()) - as_timestamp(states.input_boolean.house_occupied.last_updated))\n | int < 300 }}'\n - condition: or\n conditions:\n - condition: template\n value_template: '{{ is_state(''input_select.john_status'',''Just Arrived'')\n }}'\n - condition: template\n value_template: '{{ is_state(''input_select.cristina_status_dropdown'',''Just\n Arrived'') }}'\n action:\n - service: script.general_notification\n data:\n title: Home Arrival Mode\n message: I noticed that you're arriving home so I've opened the garage and turned\n on a couple of lights.\n devices: jk\n priority: passive\n - alias: If it's late then turn on a late night scene\n choose:\n - alias: Late night\n conditions:\n - condition: and\n conditions:\n - condition: state\n entity_id: sun.sun\n state: below_horizon\n - condition: time\n after: '21:00:00'\n sequence:\n - scene: scene.returned_home_late\n default:\n - scene: scene.returned_home",
|
|
"config": [
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "john status",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.john_status",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "home nearest distance",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.home_nearest_distance",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "sun sun",
|
|
"room": null,
|
|
"type": "sun",
|
|
"id": {
|
|
"entity_id": "sun.sun",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "cristina status dropdown",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.cristina_status_dropdown",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "general notification script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.general_notification",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "scene returned home late",
|
|
"room": null,
|
|
"type": "scene",
|
|
"id": {
|
|
"entity_id": "scene.returned_home_late",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "scene returned home",
|
|
"room": null,
|
|
"type": "scene",
|
|
"id": {
|
|
"entity_id": "scene.returned_home",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "robot_vacuum_maintenance_reminder",
|
|
"automation": "- id: robot_vacuum_maintenance_reminder\n alias: Robot Vacuum Maintenance Reminder\n mode: single\n triggers:\n - trigger: time\n at: '20:45:00'\n id: reminder_time\n - trigger: time\n at: 07:05:00\n id: reminder_time\n conditions:\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n actions:\n - wait_for_trigger:\n - trigger: state\n entity_id: binary_sensor.kitchen_motion_sensor_occupancy\n to: 'on'\n for:\n minutes: 5\n timeout:\n minutes: 20\n continue_on_timeout: true\n - wait_for_trigger:\n - trigger: state\n entity_id: binary_sensor.kitchen_motion_sensor_status\n to: 'on'\n timeout:\n minutes: 10\n continue_on_timeout: true\n - action: script.voice_announcement\n data:\n media_players: auto\n sound: one-chime\n priority: high\n speech_message: \"{% if trigger.entity_id == \\\"binary_sensor.roborock_s7_water_shortage\\\"\\\n \\ %}\\n \\\"The robot vacuum is water tank is empty, please refill it as soon\\\n \\ as possible.\\\"\\n{% elif trigger.entity_id == \\\"sensor.roborock_s7_sensor_dirty_left\\\"\\\n \\ %}\\n \\\"The robot vacuum sensors are dirty and need to be cleaned.\\\"\\n{%\\\n \\ else %}\\n \\\"The robot vacuum needs maintenance, please check the app for\\\n \\ more details.\\\"\\n{% endif %}\"\n - action: script.general_notification\n data:\n message: \"{% if trigger.entity_id == \\\"binary_sensor.roborock_s7_water_shortage\\\"\\\n \\ %}\\n \\\"The robot vacuum is water tank is empty, please refill it as soon\\\n \\ as possible.\\\"\\n{% elif trigger.entity_id == \\\"sensor.roborock_s7_sensor_dirty_left\\\"\\\n \\ %}\\n \\\"The robot vacuum sensors are dirty and need to be cleaned.\\\"\\n{%\\\n \\ else %}\\n \\\"The robot vacuum needs maintenance, please check the app for\\\n \\ more details.\\\"\\n{% endif %}\"\n title: Robot Vacuum Maintenance\n devices: jk\n priority: time-sensitive\n tag: vacuum-notifications",
|
|
"config": [
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "kitchen motion sensor status",
|
|
"room": "kitchen",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.kitchen_motion_sensor_status",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "general notification script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.general_notification",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "voice announcement script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.voice_announcement",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "script voice announcement",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.voice_announcement",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "binary sensor kitchen motion sensor status",
|
|
"room": "kitchen",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.kitchen_motion_sensor_status",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "binary sensor kitchen motion sensor occupancy",
|
|
"room": "kitchen",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.kitchen_motion_sensor_occupancy",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "vacuum roborock s7 water shortage",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.roborock_s7_water_shortage",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "roborock s7 sensor dirty left",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.roborock_s7_sensor_dirty_left",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "robot_vacuum_reorder_reminder",
|
|
"automation": "- id: robot_vacuum_reorder_reminder\n alias: Robot Vacuum Reorder Reminder\n mode: single\n trigger:\n - platform: numeric_state\n entity_id: sensor.roborock_s7_main_brush_left\n below: 72000\n - platform: numeric_state\n entity_id: sensor.roborock_s7_side_brush_left\n below: 72000\n - platform: numeric_state\n entity_id: sensor.roborock_s7_filter_left\n below: 72000\n action:\n - wait_for_trigger:\n - platform: time\n at: 07:05:00\n - wait_for_trigger:\n - platform: state\n entity_id: binary_sensor.kitchen_motion_sensor_occupancy\n to: 'on'\n for:\n minutes: 10\n timeout:\n minutes: 10\n continue_on_timeout: true\n - wait_for_trigger:\n - platform: state\n entity_id: sensor.john_room_presence\n to: kitchen\n timeout:\n minutes: 5\n continue_on_timeout: true\n - service: script.voice_announcement\n data:\n media_players: auto\n sound: one-chime\n priority: high\n speech_message: The robot vacuum will need some maintenance soon. Please reoder\n {{trigger.from_state.attributes.friendly_name}}\n - service: script.general_notification\n data:\n message: The robot vacuum will need some maintenance soon. Please reorder {{trigger.from_state.attributes.friendly_name}}\n title: Robot Vacuum Maintenance\n devices: jk\n priority: time-sensitive\n tag: vacuum-notifications",
|
|
"config": [
|
|
{
|
|
"name": "general notification script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.general_notification",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "voice announcement script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.voice_announcement",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "script voice announcement",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.voice_announcement",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "binary sensor kitchen motion sensor occupancy",
|
|
"room": "kitchen",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.kitchen_motion_sensor_occupancy",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "john room presence",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.john_room_presence",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "roborock s7 main brush left",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.roborock_s7_main_brush_left",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "roborock s7 side brush left",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.roborock_s7_side_brush_left",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "roborock s7 filter left",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.roborock_s7_filter_left",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "school_day_reminder",
|
|
"automation": "- id: school_day_reminder\n alias: School Day Reminder\n mode: single\n initial_state: false\n trigger:\n - platform: time\n at: input_datetime.school_day_breakfast_reminder_time\n condition:\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n - condition: or\n conditions:\n - condition: state\n entity_id: input_boolean.nino_school_day\n state: 'on'\n - condition: state\n entity_id: input_boolean.gianluca_school_day\n state: 'on'\n action:\n - service: script.voice_announcement\n data:\n media_players: auto\n sound: school-bell-chime\n speech_message: \"{% set nino_school = states.input_boolean.nino_school_day.state\\\n \\ %} {% set late_start = states.input_boolean.district_late_start_wednesday.state\\\n \\ %} {% set gl_school = states.input_boolean.gianluca_school_day.state %}\\n\\\n {# Both kids have school today #} {% if nino_school == \\\"on\\\" and gl_school\\\n \\ == \\\"on\\\" %}\\n {% if late_start == \\\"on\\\" %}\\n {{\\n [\\n \\\n \\ \\\"Hey gang, it's time to eat breakfast and get ready for school! As a reminder,\\\n \\ Nino has a late start today!\\\",\\n \\\"Hey there, it's time to get the\\\n \\ kids breakfast ready. Today's a school day, but remember that Nino has a\\\n \\ late start today.\\\",\\n \\\"Just at reminder that there's school today,\\\n \\ so it's time for breakfast. Just an FYI, Nino has late start today!\\\"\\n\\\n \\ ] | random\\n }}\\n {% else %}\\n {{\\n [\\n \\\"Hey gang,\\\n \\ it's time to eat breakfast and get ready for school!\\\",\\n \\\"Hey there,\\\n \\ it's time to get the kids breakfast ready. Today's a school day.\\\",\\n \\\n \\ \\\"Just at reminder that there's school today, so it's time for breakfast.\\\"\\\n \\n ] | random\\n }}\\n {% endif %}\\n\\n{# Only Nino has school #} {%\\\n \\ elif nino_school == \\\"on\\\" %}\\n {% if late_start == \\\"on\\\" %}\\n {{\\n\\\n \\ [\\n \\\"Hey Nino, today's a school day and it's time to get ready,\\\n \\ but guess what, it's a late start!\\\",\\n \\\"Hey there, it's time to\\\n \\ get the Nino's breakfast ready. Just a reminder that today's a late start\\\n \\ day!\\\",\\n \\\"Hey Nino! There's school today, but lucky for you it's\\\n \\ a late start day!\\\"\\n ] | random\\n }}\\n {% else %}\\n {{\\n \\\n \\ [\\n \\\"Hey Nino, today's a school day so it's time to get ready!\\\"\\\n ,\\n \\\"Hey there, it's time to get the Nino's breakfast ready. Today\\\n \\ is a school day.\\\",\\n \\\"Hey Nino! Just a reminder that today's a\\\n \\ school day so it's time to eat breakfast and get ready.\\\"\\n ] | random\\n\\\n \\ }}\\n {% endif %}\\n\\n{# Only Gianluca has school #} {% elif gl_school\\\n \\ == \\\"on\\\" %}\\n {{\\n [\\n \\\"Hey Gianluca, it's time to eat breakfast\\\n \\ and get ready for school\\\",\\n \\\"Hey there, it's time to get Gianluca's\\\n \\ breakfast ready. Today is a school day.\\\",\\n \\\"Hey Gianluca! Just a\\\n \\ reminder that today's a school day so it's time to eat breakfast and get\\\n \\ ready.\\\"\\n ] | random\\n }}\\n{% endif %}\"",
|
|
"config": [
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "voice announcement script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.voice_announcement",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "gianluca school day",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.gianluca_school_day",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "script voice announcement",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.voice_announcement",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "nino school day",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.nino_school_day",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "district late start wednesday",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.district_late_start_wednesday",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "school day breakfast reminder time",
|
|
"room": null,
|
|
"type": "input_datetime",
|
|
"id": {
|
|
"entity_id": "input_datetime.school_day_breakfast_reminder_time",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "school_departure_reminder",
|
|
"automation": "- id: school_departure_reminder\n alias: School Departure Reminder\n mode: single\n initial_state: false\n trigger:\n - platform: time\n at: input_datetime.school_day_departure_reminder\n condition:\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n - condition: or\n conditions:\n - condition: state\n entity_id: input_boolean.nino_school_day\n state: 'on'\n - condition: state\n entity_id: input_boolean.gianluca_school_day\n state: 'on'\n action:\n - service: script.voice_announcement\n data:\n media_players: auto\n sound: school-bell\n speech_message: \"{{\\n [\\n \\\"School starts soon. Time to pack up and head\\\n \\ out!\\\",\\n \\\"Hey boys! Time to start heading over to school!\\\",\\n \\\"\\\n Pack it up, pack it in, time to drop the kids at school!\\\"\\n ] | random\\n\\\n }}\"",
|
|
"config": [
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "voice announcement script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.voice_announcement",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "gianluca school day",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.gianluca_school_day",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "script voice announcement",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.voice_announcement",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "nino school day",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.nino_school_day",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "school day departure reminder",
|
|
"room": null,
|
|
"type": "input_datetime",
|
|
"id": {
|
|
"entity_id": "input_datetime.school_day_departure_reminder",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "second_floor_climate_activate_eco_when_energy_is_expensive",
|
|
"automation": "- id: second_floor_climate_activate_eco_when_energy_is_expensive\n alias: Second Floor Climate - Activate Eco When Energy is Expensive\n initial_state: true\n triggers:\n - trigger: state\n entity_id: binary_sensor.energy_prices_are_high\n to: 'on'\n conditions:\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n - condition: state\n entity_id:\n - input_boolean.ninos_bedroom_occupied\n - input_boolean.gianlucas_room_occupied\n state: 'off'\n - condition: state\n entity_id: binary_sensor.extreme_climate\n state: 'off'\n - condition: template\n value_template: '{{ states.climate.nest_2nd_floor.attributes.preset_mode == ''none''\n }}'\n actions:\n - action: script.second_floor_climate_to_eco\n data: {}",
|
|
"config": [
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "energy price",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.energy_price",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "gianlucas room occupied",
|
|
"room": "gianlucas bedroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.gianlucas_room_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "ninos bedroom occupied",
|
|
"room": "ninos bedroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.ninos_bedroom_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "energy prices are high",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.energy_prices_are_high",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "extreme climate",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.extreme_climate",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "nest 2nd floor",
|
|
"room": "second floor",
|
|
"type": "climate",
|
|
"id": {
|
|
"entity_id": "climate.nest_2nd_floor",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Second Floor Climate to Eco",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.second_floor_climate_to_eco",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "second_floor_climate_resume",
|
|
"automation": "- id: second_floor_climate_resume\n alias: Second Floor Climate Resume\n initial_state: 'on'\n trigger:\n - platform: state\n entity_id: input_select.house\n to: Auto\n - platform: state\n entity_id: input_select.house\n to: Quiet\n - platform: state\n entity_id: input_boolean.main_bedroom_occupied\n to: 'on'\n - platform: state\n entity_id: input_boolean.ninos_bedroom_occupied\n to: 'on'\n - platform: state\n entity_id: input_boolean.gianlucas_room_occupied\n to: 'on'\n condition:\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n - condition: or\n conditions:\n - condition: state\n entity_id: input_select.house\n state: Quiet\n - condition: state\n entity_id: input_boolean.ninos_bedroom_occupied\n state: 'on'\n - condition: state\n entity_id: input_boolean.gianlucas_room_occupied\n state: 'on'\n - condition: state\n entity_id: input_boolean.main_bedroom_occupied\n state: 'on'\n - condition: template\n value_template: '{{ states.climate.nest_2nd_floor.attributes.preset_mode != ''none''\n }}'\n action:\n - service: script.second_floor_climate_to_resume\n data: {}",
|
|
"config": [
|
|
{
|
|
"name": "house status",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.house",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "gianlucas room occupied",
|
|
"room": "gianlucas bedroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.gianlucas_room_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "ninos bedroom occupied",
|
|
"room": "ninos bedroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.ninos_bedroom_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "nest 2nd floor",
|
|
"room": "second floor",
|
|
"type": "climate",
|
|
"id": {
|
|
"entity_id": "climate.nest_2nd_floor",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Main Bedroom Occupied",
|
|
"room": "Main Bedroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.main_bedroom_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Second Floor Climate to Resume",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.second_floor_climate_to_resume",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "second_floor_climate_resume_when_energy_prices_fall",
|
|
"automation": "- id: second_floor_climate_resume_when_energy_prices_fall\n alias: Second Floor Climate - Resume When Energy Prices Fall\n initial_state: true\n trigger:\n - platform: state\n entity_id: binary_sensor.energy_prices_are_high\n from: 'on'\n to: 'off'\n condition:\n - condition: template\n value_template: '{{ states.climate.nest_2nd_floor.attributes.preset_mode != ''none''\n }}'\n - condition: or\n conditions:\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n - condition: state\n entity_id: input_boolean.nearly_home\n state: 'on'\n action:\n - action: script.second_floor_climate_to_resume\n data: {}",
|
|
"config": [
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "energy price",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.energy_price",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "energy prices are high",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.energy_prices_are_high",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "nearly home",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.nearly_home",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "nest 2nd floor",
|
|
"room": "second floor",
|
|
"type": "climate",
|
|
"id": {
|
|
"entity_id": "climate.nest_2nd_floor",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Second Floor Climate to Resume",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.second_floor_climate_to_resume",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "second_floor_climate_resume_when_nearly_home",
|
|
"automation": "- id: second_floor_climate_resume_when_nearly_home\n alias: Second Floor Climate Resume When Nearly Home\n initial_state: 'on'\n trigger:\n - platform: state\n entity_id: input_boolean.nearly_home\n to: 'on'\n condition:\n - condition: template\n value_template: '{{ states.climate.nest_2nd_floor.attributes.preset_mode != ''none''\n }}'\n action:\n - service: script.second_floor_climate_to_resume\n data: {}",
|
|
"config": [
|
|
{
|
|
"name": "nearly home",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.nearly_home",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "nest 2nd floor",
|
|
"room": "second floor",
|
|
"type": "climate",
|
|
"id": {
|
|
"entity_id": "climate.nest_2nd_floor",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Second Floor Climate to Resume",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.second_floor_climate_to_resume",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "second_floor_climate_resume_before_bed",
|
|
"automation": "- id: second_floor_climate_resume_before_bed\n alias: Second Floor Climate - Resume Before Bed\n initial_state: true\n trigger:\n - platform: time\n at: '18:30:00'\n condition:\n - condition: template\n value_template: '{{ states.climate.nest_2nd_floor.attributes.preset_mode != ''none''\n }}'\n - condition: or\n conditions:\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n - condition: state\n entity_id: input_boolean.nearly_home\n state: 'on'\n action:\n - action: script.second_floor_climate_to_resume\n data: {}",
|
|
"config": [
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "nearly home",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.nearly_home",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "nest 2nd floor",
|
|
"room": "second floor",
|
|
"type": "climate",
|
|
"id": {
|
|
"entity_id": "climate.nest_2nd_floor",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Second Floor Climate to Resume",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.second_floor_climate_to_resume",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "second_floor_climate_off",
|
|
"automation": "- id: second_floor_climate_off\n alias: Second floor climate Off\n initial_state: 'on'\n trigger:\n - platform: state\n entity_id: input_boolean.house_occupied\n to: 'off'\n for:\n minutes: 30\n condition:\n - condition: state\n entity_id: input_boolean.guest_mode\n state: 'off'\n - condition: template\n value_template: '{{ states.climate.nest_2nd_floor.attributes.preset_mode == ''none''\n }}'\n action:\n - service: script.second_floor_climate_to_eco\n data: {}",
|
|
"config": [
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "guest mode",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.guest_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "nest 2nd floor",
|
|
"room": "second floor",
|
|
"type": "climate",
|
|
"id": {
|
|
"entity_id": "climate.nest_2nd_floor",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Second Floor Climate to Eco",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.second_floor_climate_to_eco",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "security_lighting_garage_flood_motion_off",
|
|
"automation": "- id: security_lighting_garage_flood_motion_off\n alias: Security Lighting - Garage Flood Motion Off\n mode: single\n initial_state: true\n trigger:\n - platform: state\n entity_id:\n - binary_sensor.driveway_front_camera_object_detected\n - binary_sensor.driveway_front_camera_person_detected\n to: 'off'\n for:\n minutes: 3\n - platform: state\n entity_id:\n - binary_sensor.driveway_front_camera_object_detected\n - binary_sensor.driveway_front_camera_person_detected\n to: 'off'\n for:\n minutes: 5\n - platform: state\n entity_id: light.driveway_flood_light\n to: 'on'\n for:\n minutes: 30\n condition:\n - condition: state\n entity_id:\n - binary_sensor.driveway_front_camera_object_detected\n - binary_sensor.driveway_front_camera_person_detected\n - binary_sensor.driveway_front_camera_vehicle_detected\n state: 'off'\n - condition: state\n entity_id: light.driveway_flood_light\n state: 'on'\n action:\n - action: light.turn_off\n entity_id: light.driveway_flood_light",
|
|
"config": [
|
|
{
|
|
"name": "driveway front camera person detected",
|
|
"room": "driveway front",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.driveway_front_camera_person_detected",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "driveway front camera vehicle detected",
|
|
"room": "driveway front",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.driveway_front_camera_vehicle_detected",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "driveway flood light",
|
|
"room": "driveway",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.driveway_flood_light",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "driveway front camera object detected",
|
|
"room": "driveway front",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.driveway_front_camera_object_detected",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "security_lighting_garage_flood_motion_on",
|
|
"automation": "- id: security_lighting_garage_flood_motion_on\n alias: Security Lighting - Garage Flood Motion On\n mode: single\n initial_state: true\n trigger:\n - platform: state\n entity_id: binary_sensor.driveway_front_camera_object_detected\n to: 'on'\n condition:\n - condition: state\n entity_id: input_boolean.dark_outside\n state: 'on'\n - condition: state\n entity_id: light.driveway_flood_light\n state: 'off'\n action:\n - action: light.turn_on\n entity_id: light.driveway_flood_light",
|
|
"config": [
|
|
{
|
|
"name": "dark outside",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.dark_outside",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "driveway flood light",
|
|
"room": "driveway",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.driveway_flood_light",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "driveway front camera object detected",
|
|
"room": "driveway front",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.driveway_front_camera_object_detected",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "security_status_notification",
|
|
"automation": "- id: security_status_notification\n alias: Security - Status Notification\n mode: single\n trigger:\n - platform: state\n entity_id: input_boolean.bedtime\n to: 'on'\n for:\n minutes: 5\n - platform: state\n entity_id: input_boolean.house_occupied\n to: 'off'\n for:\n minutes: 7\n condition:\n - condition: template\n value_template: \"{% set last_triggered = state_attr('automation.security_status_notification',\\\n \\ 'last_triggered') %} {% if last_triggered != None %}\\n {% set time_diff =\\\n \\ (now() - last_triggered).total_seconds() | int %}\\n {{ time_diff > 3600 }}\\n\\\n {% else %}\\n true\\n{% endif %}\\n\"\n action:\n - service: script.general_notification\n data:\n message: \"{% set trigger = trigger.to_state.entity_id %} {% if 'bedtime' in\\\n \\ trigger %}\\n The house security protocol has been activated for bedtime.\\n\\\n {% else %}\\n The house security protocol has been activated since nobody's\\\n \\ home.\\n{% endif %} The house is {{ states('sensor.house_security_status')\\\n \\ | lower }}. {% if states('sensor.house_security_score') | int < 85 %}\\n\\\n \\ {% if is_state('binary_sensor.windows', 'on') %}\\n Windows are open.\\n\\\n \\ {% endif %}\\n {% if is_state('binary_sensor.exterior_doors', 'on') %}\\n\\\n \\ Exterior doors are open.\\n {% endif %}\\n {% if is_state('cover.garage_doors',\\\n \\ 'open') %}\\n Garage doors are open.\\n {% endif %}\\n {% if is_state('lock.front_door',\\\n \\ 'unlocked') %}\\n Front door is unlocked.\\n {% endif %}\\n {% if is_state('lock.garage_entry_door',\\\n \\ 'unlocked') %}\\n Garage entry door is unlocked.\\n {% endif %}\\n{% endif\\\n \\ %}\\n\"\n title: Home Security - Shields Up\n devices: jk\n priority: time-sensitive\n tag: home-security",
|
|
"config": [
|
|
{
|
|
"name": "bedtime",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.bedtime",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "garage entry door lock",
|
|
"room": "garage",
|
|
"type": "lock",
|
|
"id": {
|
|
"entity_id": "lock.garage_entry_door",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "front door lock",
|
|
"room": "front door",
|
|
"type": "lock",
|
|
"id": {
|
|
"entity_id": "lock.front_door",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "windows group",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.windows",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "exterior doors group",
|
|
"room": "exterior",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.exterior_doors",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "cover garage doors",
|
|
"room": "garage",
|
|
"type": "cover",
|
|
"id": {
|
|
"entity_id": "cover.garage_doors",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "general notification script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.general_notification",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "house security status",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.house_security_status",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "house security score",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.house_security_score",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "john_set_focus_mode",
|
|
"automation": "- id: john_set_focus_mode\n alias: John Set Focus Mode\n mode: queued\n triggers:\n - trigger: state\n entity_id: sensor.john_calendar_focus_mode\n - trigger: state\n entity_id: input_boolean.john_dnd\n to: 'off'\n - trigger: homeassistant\n event: start\n - trigger: event\n event_type: automation_reloaded\n condition:\n - condition: time\n after: 05:00:00\n - condition: state\n entity_id: input_boolean.john_home\n state: 'on'\n - condition: template\n value_template: '{% set calendar_mode = states(''sensor.john_calendar_focus_mode'')\n %} {% set current_mode = states(''input_select.john_focus_mode'') %} {{ calendar_mode\n != current_mode and calendar_mode != '''' }}'\n action:\n - action: input_select.select_option\n target:\n entity_id: input_select.john_focus_mode\n data:\n option: '{{ states(''sensor.john_calendar_focus_mode'') }}'",
|
|
"config": [
|
|
{
|
|
"name": "john home",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.john_home",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean john dnd",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.john_dnd",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "john focus mode",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.john_focus_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "john calendar focus mode",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.john_calendar_focus_mode",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "severe_weather_warning",
|
|
"automation": "- id: severe_weather_warning\n alias: Severe Weather Warning\n initial_state: true\n triggers:\n - trigger: state\n entity_id: sensor.nws_alerts\n conditions:\n - '{{states(''sensor.nws_alerts'') | int > 0}}'\n - condition: template\n value_template: \"{% set ns = namespace(ids=[]) %} {% for x in range(0,states('sensor.nws_alerts')|int\\\n \\ ) %}\\n {% set id = state_attr('sensor.nws_alerts', 'Alerts')[x].ID %}\\n \\\n \\ {% set ns.ids = ns.ids + [id] %}\\n{% endfor -%} {% set current_id_list = set(ns.ids)\\\n \\ %} {% set history_id_list = set( (states.sensor.nws_alerts_event_ids.attributes.values()|\\\n \\ reject('match', 'nws_alerts_event_ids') | reject('match', 'None') | reject('match',\\\n \\ 'unknown'))|list ) %} {{ (current_id_list.difference(history_id_list)|list)\\\n \\ | count > 0 }}\\n\"\n - condition: template\n value_template: \"{% set ns = namespace(events=[]) %} {% for x in range(0,states('sensor.nws_alerts')|int\\\n \\ ) %}\\n {% set event = state_attr('sensor.nws_alerts', 'Alerts')[x].Event\\\n \\ %}\\n {% set ns.events = ns.events + [event] %}\\n{% endfor -%} {% set alerts_list\\\n \\ = set(ns.events) %} {% set test_list = set(['Tornado Warning', 'Severe Thunderstorm\\\n \\ Warning', 'Air Quality Alert', 'Heat Advisory', 'Severe Thunderstorm Watch',\\\n \\ 'Excessive Heat Warning', 'Extreme Heat Warning']) %} {{ test_list.intersection(alerts_list)\\\n \\ | count > 0 }}\\n\"\n actions:\n - repeat:\n count: '{{ states(''sensor.nws_alerts'') | int }}'\n sequence:\n - if:\n - condition: template\n value_template: \"{% set ns_events = namespace(events=[]) %} {% set ns_dict\\\n \\ = namespace(events_dict=[]) %} {% for x in range(0,states('sensor.nws_alerts')|int\\\n \\ ) %}\\n {% set event = state_attr('sensor.nws_alerts', 'Alerts')[x].Event\\\n \\ %}\\n {% set ns_events.events = ns_events.events + [event] %}\\n {%\\\n \\ set event_dict_list = dict(event = state_attr('sensor.nws_alerts', 'Alerts')[x].Event,\\\n \\ id=state_attr('sensor.nws_alerts', 'Alerts')[x].ID) %}\\n {% set ns_dict.events_dict\\\n \\ = ns_dict.events_dict + [event_dict_list] %}\\n{% endfor -%} {%- set\\\n \\ history_id_list = set( (states.sensor.nws_alerts_announced_ids.attributes.values()\\\n \\ | reject('match', 'nws_alerts_announced_ids') | reject('match', 'None')\\\n \\ | reject('match', 'unknown'))|list ) %} {{ ns_dict.events_dict[repeat.index\\\n \\ - 1].event == 'Tornado Warning' and ns_dict.events_dict[repeat.index\\\n \\ - 1].id not in history_id_list }}\\n\"\n then:\n - action: script.voice_announcement\n data:\n media_players: auto\n sound: nuclear\n priority: critical\n speech_message: Attention!!,,,Attention!!,,,The National Weather Service\n Has issued a tornado warning for our area!\n - action: variable.update_sensor\n target:\n entity_id: sensor.nws_alerts_announced_ids\n data:\n value: \"{% set ns_dict = namespace(events_dict=[]) %} {% for x in range(0,states('sensor.nws_alerts')|int\\\n \\ ) %}\\n {% set event_dict_list = dict(event = state_attr('sensor.nws_alerts',\\\n \\ 'Alerts')[x].Event, id=state_attr('sensor.nws_alerts', 'Alerts')[x].ID)\\\n \\ %}\\n {% set ns_dict.events_dict = ns_dict.events_dict + [event_dict_list]\\\n \\ %}\\n{% endfor -%} {{ ns_dict.events_dict[repeat.index - 1].id}}\\n\"\n - delay:\n minutes: 1\n - repeat:\n count: '{{ states(''sensor.nws_alerts'') | int }}'\n sequence:\n - if:\n - condition: template\n value_template: \"{% set ns_events = namespace(events=[]) %} {% set ns_dict\\\n \\ = namespace(events_dict=[]) %} {% for x in range(0,states('sensor.nws_alerts')|int\\\n \\ ) %}\\n {% set event = state_attr('sensor.nws_alerts', 'Alerts')[x].Event\\\n \\ %}\\n {% set ns_events.events = ns_events.events + [event] %}\\n {%\\\n \\ set event_dict_list = dict(event = state_attr('sensor.nws_alerts', 'Alerts')[x].Event,\\\n \\ id=state_attr('sensor.nws_alerts', 'Alerts')[x].ID) %}\\n {% set ns_dict.events_dict\\\n \\ = ns_dict.events_dict + [event_dict_list] %}\\n{% endfor -%} {%- set\\\n \\ history_id_list = set( (states.sensor.nws_alerts_announced_ids.attributes.values()\\\n \\ | reject('match', 'nws_alerts_announced_ids') | reject('match', 'None')\\\n \\ | reject('match', 'unknown'))|list ) %} {{ ns_dict.events_dict[repeat.index\\\n \\ - 1].event == 'Severe Thunderstorm Warning' and ns_dict.events_dict[repeat.index\\\n \\ - 1].id not in history_id_list }}\\n\"\n then:\n - action: script.voice_announcement\n data:\n media_players: auto\n sound: nuclear\n priority: critical\n speech_message: Attention!!,,,Attention!!,,,The National Weather Service\n Has issued a severe thunderstorm warning for our area!\n - action: variable.update_sensor\n target:\n entity_id: sensor.nws_alerts_announced_ids\n data:\n value: \"{% set ns_dict = namespace(events_dict=[]) %} {% for x in range(0,states('sensor.nws_alerts')|int\\\n \\ ) %}\\n {% set event_dict_list = dict(event = state_attr('sensor.nws_alerts',\\\n \\ 'Alerts')[x].Event, id=state_attr('sensor.nws_alerts', 'Alerts')[x].ID)\\\n \\ %}\\n {% set ns_dict.events_dict = ns_dict.events_dict + [event_dict_list]\\\n \\ %}\\n{% endfor -%} {{ ns_dict.events_dict[repeat.index - 1].id}}\\n\"\n - delay:\n minutes: 1\n - repeat:\n count: '{{ states(''sensor.nws_alerts'') | int }}'\n sequence:\n - if:\n - condition: template\n value_template: \"{% set ns_events = namespace(events=[]) %} {% set ns_dict\\\n \\ = namespace(events_dict=[]) %} {% for x in range(0,states('sensor.nws_alerts')|int\\\n \\ ) %}\\n {% set event = state_attr('sensor.nws_alerts', 'Alerts')[x].Event\\\n \\ %}\\n {% set ns_events.events = ns_events.events + [event] %}\\n {%\\\n \\ set event_dict_list = dict(event = state_attr('sensor.nws_alerts', 'Alerts')[x].Event,\\\n \\ id=state_attr('sensor.nws_alerts', 'Alerts')[x].ID) %}\\n {% set ns_dict.events_dict\\\n \\ = ns_dict.events_dict + [event_dict_list] %}\\n{% endfor -%} {%- set\\\n \\ history_id_list = set( (states.sensor.nws_alerts_announced_ids.attributes.values()\\\n \\ | reject('match', 'nws_alerts_announced_ids') | reject('match', 'None')\\\n \\ | reject('match', 'unknown'))|list ) %} {{ ns_dict.events_dict[repeat.index\\\n \\ - 1].event == 'Heat Advisory' and ns_dict.events_dict[repeat.index -\\\n \\ 1].id not in history_id_list }}\\n\"\n then:\n - action: script.voice_announcement\n data:\n media_players: auto\n sound: default\n priority: high\n speech_message: Attention!!,,,Attention!!,,,The National Weather Service\n Has issued a heat advisory for our area!\n - action: variable.update_sensor\n target:\n entity_id: sensor.nws_alerts_announced_ids\n data:\n value: \"{% set ns_dict = namespace(events_dict=[]) %} {% for x in range(0,states('sensor.nws_alerts')|int\\\n \\ ) %}\\n {% set event_dict_list = dict(event = state_attr('sensor.nws_alerts',\\\n \\ 'Alerts')[x].Event, id=state_attr('sensor.nws_alerts', 'Alerts')[x].ID)\\\n \\ %}\\n {% set ns_dict.events_dict = ns_dict.events_dict + [event_dict_list]\\\n \\ %}\\n{% endfor -%} {{ ns_dict.events_dict[repeat.index - 1].id}}\\n\"\n - delay:\n minutes: 1\n - repeat:\n count: '{{ states(''sensor.nws_alerts'') | int }}'\n sequence:\n - if:\n - condition: template\n value_template: \"{% set ns_events = namespace(events=[]) %} {% set ns_dict\\\n \\ = namespace(events_dict=[]) %} {% for x in range(0,states('sensor.nws_alerts')|int\\\n \\ ) %}\\n {% set event = state_attr('sensor.nws_alerts', 'Alerts')[x].Event\\\n \\ %}\\n {% set ns_events.events = ns_events.events + [event] %}\\n {%\\\n \\ set event_dict_list = dict(event = state_attr('sensor.nws_alerts', 'Alerts')[x].Event,\\\n \\ id=state_attr('sensor.nws_alerts', 'Alerts')[x].ID) %}\\n {% set ns_dict.events_dict\\\n \\ = ns_dict.events_dict + [event_dict_list] %}\\n{% endfor -%} {%- set\\\n \\ history_id_list = set( (states.sensor.nws_alerts_announced_ids.attributes.values()\\\n \\ | reject('match', 'nws_alerts_announced_ids') | reject('match', 'None')\\\n \\ | reject('match', 'unknown'))|list ) %} {{ ns_dict.events_dict[repeat.index\\\n \\ - 1].event == 'Severe Thunderstorm Watch' and ns_dict.events_dict[repeat.index\\\n \\ - 1].id not in history_id_list }}\\n\"\n then:\n - action: script.voice_announcement\n data:\n media_players: auto\n sound: default\n priority: high\n speech_message: Attention!!,,,Attention!!,,,The National Weather Service\n Has issued a severe thunderstorm watch for our area!\n - action: variable.update_sensor\n target:\n entity_id: sensor.nws_alerts_announced_ids\n data:\n value: \"{% set ns_dict = namespace(events_dict=[]) %} {% for x in range(0,states('sensor.nws_alerts')|int\\\n \\ ) %}\\n {% set event_dict_list = dict(event = state_attr('sensor.nws_alerts',\\\n \\ 'Alerts')[x].Event, id=state_attr('sensor.nws_alerts', 'Alerts')[x].ID)\\\n \\ %}\\n {% set ns_dict.events_dict = ns_dict.events_dict + [event_dict_list]\\\n \\ %}\\n{% endfor -%} {{ ns_dict.events_dict[repeat.index - 1].id}}\\n\"\n - delay:\n minutes: 1\n - repeat:\n count: '{{ states(''sensor.nws_alerts'') | int }}'\n sequence:\n - if:\n - condition: template\n value_template: \"{% set ns_events = namespace(events=[]) %} {% set ns_dict\\\n \\ = namespace(events_dict=[]) %} {% for x in range(0,states('sensor.nws_alerts')|int\\\n \\ ) %}\\n {% set event = state_attr('sensor.nws_alerts', 'Alerts')[x].Event\\\n \\ %}\\n {% set ns_events.events = ns_events.events + [event] %}\\n {%\\\n \\ set event_dict_list = dict(event = state_attr('sensor.nws_alerts', 'Alerts')[x].Event,\\\n \\ id=state_attr('sensor.nws_alerts', 'Alerts')[x].ID) %}\\n {% set ns_dict.events_dict\\\n \\ = ns_dict.events_dict + [event_dict_list] %}\\n{% endfor -%} {%- set\\\n \\ history_id_list = set( (states.sensor.nws_alerts_announced_ids.attributes.values()\\\n \\ | reject('match', 'nws_alerts_announced_ids') | reject('match', 'None')\\\n \\ | reject('match', 'unknown'))|list ) %} {{ ns_dict.events_dict[repeat.index\\\n \\ - 1].event == 'Air Quality Alert' and ns_dict.events_dict[repeat.index\\\n \\ - 1].id not in history_id_list }}\\n\"\n then:\n - action: variable.update_sensor\n target:\n entity_id: sensor.nws_alerts_announced_ids\n data:\n value: \"{% set ns_dict = namespace(events_dict=[]) %} {% for x in range(0,states('sensor.nws_alerts')|int\\\n \\ ) %}\\n {% set event_dict_list = dict(event = state_attr('sensor.nws_alerts',\\\n \\ 'Alerts')[x].Event, id=state_attr('sensor.nws_alerts', 'Alerts')[x].ID)\\\n \\ %}\\n {% set ns_dict.events_dict = ns_dict.events_dict + [event_dict_list]\\\n \\ %}\\n{% endfor -%} {{ ns_dict.events_dict[repeat.index - 1].id}}\\n\"\n - delay:\n minutes: 1\n - repeat:\n count: '{{ states(''sensor.nws_alerts'') | int }}'\n sequence:\n - if:\n - condition: template\n value_template: \"{% set ns_events = namespace(events=[]) %} {% set ns_dict\\\n \\ = namespace(events_dict=[]) %} {% for x in range(0,states('sensor.nws_alerts')|int\\\n \\ ) %}\\n {% set event = state_attr('sensor.nws_alerts', 'Alerts')[x].Event\\\n \\ %}\\n {% set ns_events.events = ns_events.events + [event] %}\\n {%\\\n \\ set event_dict_list = dict(event = state_attr('sensor.nws_alerts', 'Alerts')[x].Event,\\\n \\ id=state_attr('sensor.nws_alerts', 'Alerts')[x].ID) %}\\n {% set ns_dict.events_dict\\\n \\ = ns_dict.events_dict + [event_dict_list] %}\\n{% endfor -%} {%- set\\\n \\ history_id_list = set( (states.sensor.nws_alerts_announced_ids.attributes.values()\\\n \\ | reject('match', 'nws_alerts_announced_ids') | reject('match', 'None')\\\n \\ | reject('match', 'unknown'))|list ) %} {% set event = ns_dict.events_dict[repeat.index\\\n \\ - 1].event %} {{ (event == 'Excessive Heat Warning' or event == 'Extreme\\\n \\ Heat Warning') and ns_dict.events_dict[repeat.index - 1].id not in history_id_list\\\n \\ }}\\n\"\n then:\n - action: script.voice_announcement\n data:\n media_players: auto\n sound: nuclear\n priority: critical\n speech_message: '{% set event = ns_dict.events_dict[repeat.index - 1].event\n %} Attention!!,,,Attention!!,,,The National Weather Service Has issued\n an {{ event.lower() }} for our area!\n\n '\n - action: variable.update_sensor\n target:\n entity_id: sensor.nws_alerts_announced_ids\n data:\n value: \"{% set ns_dict = namespace(events_dict=[]) %} {% for x in range(0,states('sensor.nws_alerts')|int\\\n \\ ) %}\\n {% set event_dict_list = dict(event = state_attr('sensor.nws_alerts',\\\n \\ 'Alerts')[x].Event, id=state_attr('sensor.nws_alerts', 'Alerts')[x].ID)\\\n \\ %}\\n {% set ns_dict.events_dict = ns_dict.events_dict + [event_dict_list]\\\n \\ %}\\n{% endfor -%} {{ ns_dict.events_dict[repeat.index - 1].id}}\\n\"\n - delay:\n minutes: 1",
|
|
"config": [
|
|
{
|
|
"name": "voice announcement script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.voice_announcement",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "script voice announcement",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.voice_announcement",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "sensor nws alerts",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.nws_alerts",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "nws alerts event ids",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.nws_alerts_event_ids",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "nws alerts announced ids",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.nws_alerts_announced_ids",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "nws_update_event_id_variable",
|
|
"automation": "- id: nws_update_event_id_variable\n alias: NWS Update Event ID Variable\n initial_state: true\n triggers:\n - trigger: state\n entity_id: sensor.nws_alerts\n actions:\n - action: variable.set_variable\n data:\n variable: nws_alerts_event_ids\n attributes:\n history_1: '{{ states(''sensor.nws_alerts_event_ids'') }}'\n history_2: '{{ state_attr(''sensor.nws_alerts_event_ids'', ''history_1'')\n }}'\n history_3: '{{ state_attr(''sensor.nws_alerts_event_ids'', ''history_2'')\n }}'\n history_4: '{{ state_attr(''sensor.nws_alerts_event_ids'', ''history_3'')\n }}'\n history_5: '{{ state_attr(''sensor.nws_alerts_event_ids'', ''history_4'')\n }}'\n history_6: '{{ state_attr(''sensor.nws_alerts_event_ids'', ''history_5'')\n }}'\n history_7: '{{ state_attr(''sensor.nws_alerts_event_ids'', ''history_6'')\n }}'\n history_8: '{{ state_attr(''sensor.nws_alerts_event_ids'', ''history_7'')\n }}'\n history_9: '{{ state_attr(''sensor.nws_alerts_event_ids'', ''history_8'')\n }}'\n history_10: '{{ state_attr(''sensor.nws_alerts_event_ids'', ''history_9'')\n }}'\n - action: variable.set_variable\n data:\n variable: nws_alerts_event_ids\n value: '{{ (trigger.to_state.attributes.event_id).split(''-'')[0] }}'",
|
|
"config": [
|
|
{
|
|
"name": "sensor nws alerts",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.nws_alerts",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "nws alerts event ids",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.nws_alerts_event_ids",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "severe_rain_incoming",
|
|
"automation": "- id: severe_rain_incoming\n alias: Severe Rain Incoming\n initial_state: true\n triggers:\n - trigger: numeric_state\n entity_id:\n - sensor.pirateweather_precip_intensity_0h\n - sensor.pirateweather_precip_intensity_1h\n above: 0.5\n - trigger: numeric_state\n entity_id:\n - sensor.pirateweather_precip_accumulation_0h\n - sensor.pirateweather_precip_accumulation_1h\n above: 0.05\n conditions:\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n actions:\n - action: script.general_notification\n data:\n title: Severe Rain Warning\n message: The forecast is showing a lot of rain in the next hour. Might be a\n good idea to put out the pumps.\n devices: jk\n priority: time-sensitive\n tag: daily-update\n - action: script.voice_announcement\n data:\n media_players: auto\n sound: nuclear\n priority: high\n expires_in: 10\n speech_message: The forecast is showing a lot of rain in the next hour. Keep\n an eye out for any leaks and it might be a good idea to put out the pumps.",
|
|
"config": [
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "general notification script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.general_notification",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "voice announcement script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.voice_announcement",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "script voice announcement",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.voice_announcement",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "pirateweather precip intensity 0h",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.pirateweather_precip_intensity_0h",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "pirateweather precip intensity 1h",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.pirateweather_precip_intensity_1h",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "pirateweather precip accumulation 0h",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.pirateweather_precip_accumulation_0h",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "pirateweather precip accumulation 1h",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.pirateweather_precip_accumulation_1h",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "nws_alerts_notification_weather_alert",
|
|
"automation": "- alias: NWS Alerts Notification Weather Alert\n id: nws_alerts_notification_weather_alert\n initial_state: true\n triggers:\n trigger: state\n entity_id: sensor.nws_alerts\n conditions:\n - '{{states(''sensor.nws_alerts'') | int > 0}}'\n actions:\n - choose:\n - conditions:\n - '{{ states(''sensor.nws_alerts'') | int >= 3 }}'\n sequence:\n - if:\n - '{{ (state_attr(''sensor.nws_alerts'', ''Alerts'')[0].ID not in states.sensor.nws_alerts_event_ids.attributes.values()|list)\n and (state_attr(''sensor.nws_alerts'', ''Alerts'')[0].ID != states(''sensor.nws_alerts_event_ids''))\n }}'\n then:\n - action: script.general_notification\n data:\n title: NWS Alert\n message: '\"NWS: {{ state_attr(''sensor.nws_alerts'', ''Alerts'')[0].Event\n }}\"\n\n '\n devices: jk\n priority: time-sensitive\n tag: severe-weather-alert-{{0}}\n - delay:\n seconds: 2\n - if:\n - '{{ (state_attr(''sensor.nws_alerts'', ''Alerts'')[1].ID not in states.sensor.nws_alerts_event_ids.attributes.values()|list)\n and (state_attr(''sensor.nws_alerts'', ''Alerts'')[1].ID != states(''sensor.nws_alerts_event_ids''))\n }}'\n then:\n - action: script.general_notification\n data:\n title: NWS Alert\n message: '\"NWS: {{ state_attr(''sensor.nws_alerts'', ''Alerts'')[1].Event\n }}\"\n\n '\n devices: jk\n priority: time-sensitive\n tag: severe-weather-alert-{{1}}\n - delay:\n seconds: 2\n - if:\n - '{{ (state_attr(''sensor.nws_alerts'', ''Alerts'')[2].ID not in states.sensor.nws_alerts_event_ids.attributes.values()|list)\n and (state_attr(''sensor.nws_alerts'', ''Alerts'')[2].ID != states(''sensor.nws_alerts_event_ids''))\n }}'\n then:\n - action: script.general_notification\n data:\n title: NWS Alert\n message: '\"NWS: {{ state_attr(''sensor.nws_alerts'', ''Alerts'')[2].Event\n }}\"\n\n '\n devices: jk\n priority: time-sensitive\n tag: severe-weather-alert-{{2}}\n - conditions:\n - '{{ states(''sensor.nws_alerts'') | int == 2 }}'\n sequence:\n - if:\n - '{{ (state_attr(''sensor.nws_alerts'', ''Alerts'')[0].ID not in states.sensor.nws_alerts_event_ids.attributes.values()|list)\n and (state_attr(''sensor.nws_alerts'', ''Alerts'')[0].ID != states(''sensor.nws_alerts_event_ids''))\n }}'\n then:\n - action: script.general_notification\n data:\n title: NWS Alert\n message: '\"NWS: {{ state_attr(''sensor.nws_alerts'', ''Alerts'')[0].Event\n }}\"\n\n '\n devices: jk\n priority: time-sensitive\n tag: severe-weather-alert-{{0}}\n - delay:\n seconds: 2\n - if:\n - '{{ (state_attr(''sensor.nws_alerts'', ''Alerts'')[1].ID not in states.sensor.nws_alerts_event_ids.attributes.values()|list)\n and (state_attr(''sensor.nws_alerts'', ''Alerts'')[1].ID != states(''sensor.nws_alerts_event_ids''))\n }}'\n then:\n - action: script.general_notification\n data:\n title: NWS Alert\n message: '\"NWS: {{ state_attr(''sensor.nws_alerts'', ''Alerts'')[1].Event\n }}\"\n\n '\n devices: jk\n priority: time-sensitive\n tag: severe-weather-alert-{{1}}\n - conditions:\n - '{{ states(''sensor.nws_alerts'') | int == 1 }}'\n sequence:\n - if:\n - '{{ (state_attr(''sensor.nws_alerts'', ''Alerts'')[0].ID not in states.sensor.nws_alerts_event_ids.attributes.values()|list)\n and (state_attr(''sensor.nws_alerts'', ''Alerts'')[0].ID != states(''sensor.nws_alerts_event_ids''))\n }}'\n then:\n - action: script.general_notification\n data:\n title: NWS Alert\n message: '\"NWS: {{ state_attr(''sensor.nws_alerts'', ''Alerts'')[0].Event\n }}\"\n\n '\n devices: jk\n priority: time-sensitive\n tag: severe-weather-alert-{{0}}\n - delay:\n seconds: 5\n - condition: template\n value_template: '{{ states(''sensor.nws_alerts'') | int >= 4 }}'\n - condition: template\n value_template: \"{% set ns = namespace(ids=[]) %} {% for x in range(0,states('sensor.nws_alerts')|int\\\n \\ ) %}\\n {% set id = state_attr('sensor.nws_alerts', 'Alerts')[x].ID %}\\n \\\n \\ {% set ns.ids = ns.ids + [id] %}\\n{% endfor -%} {% set current_id_list = set(ns.ids)\\\n \\ %} {% set history_id_list = set( (states.sensor.nws_alerts_event_ids.attributes.values()|\\\n \\ reject('match', 'nws_alerts_event_ids') | reject('match', 'None') | reject('match',\\\n \\ 'unknown'))|list ) %} {{ (current_id_list.difference(history_id_list)|list)\\\n \\ | count > 0 }}\\n\"\n - condition: template\n value_template: \"{{ (state_attr('sensor.nws_alerts', 'Alerts')[0].ID not in states.sensor.nws_alerts_event_ids.attributes.values()|list)\\\n \\ \\n and (state_attr('sensor.nws_alerts', 'Alerts')[0].ID != states('sensor.nws_alerts_event_ids'))\\\n \\ }}\\n\"\n - action: script.general_notification\n data:\n title: NWS Alert\n message: 'NWS: More Than 3 New Alerts! Check your local National Weather Service\n for all current alerts!'\n devices: jk\n priority: time-sensitive\n tag: severe-weather-alert-multiple",
|
|
"config": [
|
|
{
|
|
"name": "general notification script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.general_notification",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "sensor nws alerts",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.nws_alerts",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "nws alerts event ids",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.nws_alerts_event_ids",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "stairs_lights_motion_on",
|
|
"automation": "- id: stairs_lights_motion_on\n initial_state: true\n alias: Stairs lights Motion On\n trigger:\n - platform: state\n entity_id: binary_sensor.stairs_motion_status\n to: 'on'\n condition:\n - condition: state\n entity_id: input_boolean.lighting_automations\n state: 'on'\n - condition: and\n conditions:\n - condition: numeric_state\n entity_id: sensor.foyer_motion_illuminance\n below: 15\n - condition: numeric_state\n entity_id: sensor.stairs_up_motion_sensor_illuminance\n below: 10\n - condition: and\n conditions:\n - condition: state\n entity_id: light.stairs_light\n state: 'off'\n - condition: template\n value_template: '{{ (as_timestamp(now()) - as_timestamp(states.light.stairs_light.last_updated))\n | int > 180 }}'\n - condition: state\n entity_id: light.foyer_chandelier\n state: 'off'\n action:\n - service: light.turn_on\n entity_id: light.stairs_light",
|
|
"config": [
|
|
{
|
|
"name": "lighting automations",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.lighting_automations",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "foyer motion illuminance",
|
|
"room": "foyer",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.foyer_motion_illuminance",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "stairs motion status",
|
|
"room": "stairs",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.stairs_motion_status",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "stairs up motion sensor illuminance",
|
|
"room": "stairs",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.stairs_up_motion_sensor_illuminance",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "stairs light",
|
|
"room": "stairs",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.stairs_light",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "foyer chandelier",
|
|
"room": "foyer",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.foyer_chandelier",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "stairs_lights_off",
|
|
"automation": "- id: stairs_lights_off\n initial_state: true\n alias: Stairs lights off\n trigger:\n - platform: state\n entity_id: binary_sensor.stairs_motion_status\n to: 'off'\n for:\n minutes: 3\n - platform: state\n entity_id: input_boolean.house_occupied\n to: 'off'\n - platform: state\n entity_id: input_boolean.lighting_automations\n to: 'on'\n condition:\n - condition: state\n entity_id: light.stairs_light\n state: 'on'\n action:\n - service: light.turn_off\n entity_id: light.stairs_light",
|
|
"config": [
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "lighting automations",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.lighting_automations",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "stairs motion status",
|
|
"room": "stairs",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.stairs_motion_status",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "stairs light",
|
|
"room": "stairs",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.stairs_light",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "sunroom_mode_auto",
|
|
"automation": "- id: sunroom_mode_auto\n initial_state: true\n alias: Sunroom Mode Auto\n trigger:\n - platform: state\n entity_id: input_boolean.sunroom_occupied\n to: 'on'\n - platform: state\n entity_id: input_select.house\n to: Auto\n - platform: state\n entity_id: input_boolean.house_occupied\n to: 'on'\n condition:\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n - condition: template\n value_template: '{{ not is_state(''input_select.sunroom'',''Auto'') }}'\n - condition: state\n entity_id: input_boolean.bedtime\n state: 'off'\n - condition: state\n entity_id: input_select.house\n state: Auto\n action:\n - service: input_select.select_option\n data:\n entity_id: input_select.sunroom\n option: Auto",
|
|
"config": [
|
|
{
|
|
"name": "bedtime",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.bedtime",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "house status",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.house",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "sunroom mode",
|
|
"room": "sunroom",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.sunroom",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "sunroom occupied",
|
|
"room": "sunroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.sunroom_occupied",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "sunroom_mode_off",
|
|
"automation": "- id: sunroom_mode_off\n initial_state: true\n alias: Sunroom Mode Off\n trigger:\n - platform: state\n entity_id: input_boolean.house_occupied\n to: 'off'\n - platform: state\n entity_id: input_boolean.bedtime\n to: 'on'\n - platform: homeassistant\n event: start\n - platform: event\n event_type: automation_reloaded\n condition:\n - condition: template\n value_template: '{{ not is_state(''input_select.sunroom'',''Off'') }}'\n - condition: or\n conditions:\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'off'\n - condition: state\n entity_id: input_boolean.bedtime\n state: 'on'\n action:\n - service: input_select.select_option\n data:\n entity_id: input_select.sunroom\n option: 'Off'",
|
|
"config": [
|
|
{
|
|
"name": "bedtime",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.bedtime",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "sunroom mode",
|
|
"room": "sunroom",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.sunroom",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "sunroom_occupied",
|
|
"automation": "- id: sunroom_occupied\n initial_state: true\n alias: Sunroom Occupied\n trigger:\n - platform: state\n entity_id: binary_sensor.sunroom_motion_sensor_occupancy\n to: 'on'\n - platform: state\n entity_id: binary_sensor.sunroom_motion_sensor_status\n to: 'on'\n - platform: event\n event_type: automation_reloaded\n - platform: homeassistant\n event: start\n condition:\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n - condition: state\n entity_id: input_boolean.sunroom_occupied\n state: 'off'\n - condition: or\n conditions:\n - condition: template\n value_template: '{{ expand(''group.room_presence_devices'')|selectattr(''state'',\n ''eq'', ''sunroom'')|map(attribute=''name'')|list | length > 0 }}'\n - condition: state\n entity_id: binary_sensor.sunroom_motion_sensor_occupancy\n state: 'on'\n action:\n - service: input_boolean.turn_on\n entity_id: input_boolean.sunroom_occupied",
|
|
"config": [
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "room presence devices group",
|
|
"room": null,
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "group.room_presence_devices",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "sunroom occupied",
|
|
"room": "sunroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.sunroom_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "sunroom motion sensor occupancy",
|
|
"room": "sunroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.sunroom_motion_sensor_occupancy",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "sunroom motion sensor status",
|
|
"room": "sunroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.sunroom_motion_sensor_status",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "sunroom_not_occupied",
|
|
"automation": "- id: sunroom_not_occupied\n initial_state: true\n alias: Sunroom Not Occupied\n trigger:\n - platform: template\n value_template: '{{ expand(''group.room_presence_devices'')|selectattr(''state'',\n ''eq'', ''sunroom'')|map(attribute=''name'')|list | length == 0 }}'\n for:\n minutes: 3\n - platform: state\n entity_id: binary_sensor.sunroom_motion_sensor_occupancy\n to: 'off'\n - platform: state\n entity_id: media_player.sonos_patio\n to: 'off'\n for:\n minutes: 5\n - platform: state\n entity_id: media_player.sonos_patio\n to: idle\n for:\n minutes: 5\n - platform: state\n entity_id: media_player.sonos_patio\n to: paused\n for:\n minutes: 5\n condition:\n - condition: state\n entity_id: input_boolean.sunroom_occupied\n state: 'on'\n - condition: state\n entity_id: binary_sensor.sunroom_motion_sensor_occupancy\n state: 'off'\n - condition: template\n value_template: '{{ expand(''group.room_presence_devices'')|selectattr(''state'',\n ''eq'', ''sunroom'')|map(attribute=''name'')|list | length == 0 }}'\n action:\n - service: input_boolean.turn_off\n entity_id: input_boolean.sunroom_occupied",
|
|
"config": [
|
|
{
|
|
"name": "room presence devices group",
|
|
"room": null,
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "group.room_presence_devices",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "sunroom occupied",
|
|
"room": "sunroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.sunroom_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "sunroom motion sensor occupancy",
|
|
"room": "sunroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.sunroom_motion_sensor_occupancy",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "sonos patio",
|
|
"room": "patio",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.sonos_patio",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "sylvia_is_away",
|
|
"automation": "- id: sylvia_is_away\n alias: Sylvia is Away\n initial_state: true\n trigger:\n - platform: state\n entity_id: person.sylvia\n to: not_home\n - platform: event\n event_type: automation_reloaded\n - platform: homeassistant\n event: start\n condition:\n - condition: not\n conditions:\n - condition: state\n entity_id: input_select.sylvia_status\n state: Just Left\n - condition: state\n entity_id: person.sylvia\n state: not_home\n action:\n - service: input_boolean.turn_off\n entity_id: input_boolean.sylvia_home",
|
|
"config": [
|
|
{
|
|
"name": "sylvia home",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.sylvia_home",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "sylvia status",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.sylvia_status",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "person sylvia",
|
|
"room": null,
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.sylvia",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "sylvia_is_home",
|
|
"automation": "- id: sylvia_is_home\n initial_state: true\n alias: Sylvia is Home\n trigger:\n - platform: state\n entity_id: person.sylvia\n to: home\n - platform: state\n entity_id: device_tracker.sylvia_android_phone\n to: home\n - platform: event\n event_type: automation_reloaded\n - platform: homeassistant\n event: start\n condition:\n - condition: or\n conditions:\n - condition: state\n entity_id: person.sylvia\n state: home\n - condition: state\n entity_id: device_tracker.sylvia_android_phone\n state: home\n action:\n - service: input_boolean.turn_on\n entity_id: input_boolean.sylvia_home",
|
|
"config": [
|
|
{
|
|
"name": "sylvia home",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.sylvia_home",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "person sylvia",
|
|
"room": null,
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.sylvia",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "sylvia android phone",
|
|
"room": null,
|
|
"type": "device_tracker",
|
|
"id": {
|
|
"entity_id": "device_tracker.sylvia_android_phone",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "tayta_announce_arrival",
|
|
"automation": "- id: tayta_announce_arrival\n alias: Tayta Announce Arrival\n mode: queued\n initial_state: true\n triggers:\n - trigger: state\n entity_id: person.sonia_koht\n from: not_home\n to: home\n conditions:\n - condition: state\n entity_id: person.sonia_koht\n state: home\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n for:\n minutes: 5\n actions:\n - action: script.person_announcement\n data:\n person: tayta\n announcement_type: arrival\n - condition: state\n entity_id: input_boolean.guest_mode_announced\n state: 'off'\n - action: input_boolean.turn_on\n entity_id: input_boolean.guest_mode_announced",
|
|
"config": [
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "guest mode announced",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.guest_mode_announced",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "guest mode",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.guest_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "script person announcement",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.person_announcement",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "person sonia koht",
|
|
"room": null,
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.sonia_koht",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "tayta_announce_departure",
|
|
"automation": "- id: tayta_announce_departure\n alias: Tayta Announce Departure\n mode: queued\n initial_state: true\n triggers:\n - trigger: state\n entity_id: person.sonia_koht\n from: home\n to: not_home\n conditions:\n - condition: state\n entity_id: person.sonia_koht\n state: not_home\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n for:\n minutes: 5\n actions:\n - action: script.person_announcement\n data:\n person: tayta\n announcement_type: departure",
|
|
"config": [
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "script person announcement",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.person_announcement",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "person sonia koht",
|
|
"room": null,
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.sonia_koht",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "tayta_is_away",
|
|
"automation": "- id: tayta_is_away\n alias: Tayta is Away\n initial_state: true\n trigger:\n - platform: state\n entity_id: person.mary_falbo\n to: not_home\n - platform: event\n event_type: automation_reloaded\n - platform: homeassistant\n event: start\n condition:\n - condition: not\n conditions:\n - condition: state\n entity_id: input_select.tayta_status\n state: Just Left\n - condition: state\n entity_id: person.sonia_koht\n state: not_home\n action:\n - service: input_boolean.turn_off\n entity_id: input_boolean.tayta_home",
|
|
"config": [
|
|
{
|
|
"name": "person mary falbo",
|
|
"room": null,
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.mary_falbo",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "person sonia koht",
|
|
"room": null,
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.sonia_koht",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "tayta status",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.tayta_status",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "tayta home",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.tayta_home",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "tayta_is_home",
|
|
"automation": "- id: tayta_is_home\n initial_state: true\n alias: Tayta is Home\n trigger:\n - platform: state\n entity_id: sensor.tayta_room_presence\n from: not_home\n - platform: state\n entity_id: person.sonia_koht\n to: home\n - platform: event\n event_type: automation_reloaded\n - platform: homeassistant\n event: start\n condition:\n - condition: or\n conditions:\n - condition: state\n entity_id: person.sonia_koht\n state: home\n - condition: template\n value_template: '{{ states.sensor.tayta_room_presence.state != ''not_home''}}'\n action:\n - service: input_boolean.turn_on\n entity_id: input_boolean.tayta_home",
|
|
"config": [
|
|
{
|
|
"name": "person sonia koht",
|
|
"room": null,
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.sonia_koht",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "tayta room presence",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.tayta_room_presence",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "tayta home",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.tayta_home",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "tempest_high_uv_alert",
|
|
"automation": "- id: tempest_high_uv_alert\n alias: Tempest - High UV Alert\n initial_state: true\n trigger:\n - platform: numeric_state\n entity_id: sensor.tempest_uv\n above: 7\n - platform: numeric_state\n entity_id: sensor.tempest_uv\n above: 8\n - platform: numeric_state\n entity_id: sensor.tempest_uv\n above: 10\n action:\n - service: script.voice_announcement\n data:\n speech_message: \"{% set uv = state_attr('sensor.tempest_uv') %}\\n{% if uv >\\\n \\ 10 %}\\n \\\"Warning! UV levels are extremely high. Please take precautions\\\n \\ and avoid unprotected sun exposure.\\\"\\n{% elif uv > 8 %}\\n \\\"Attention!\\\n \\ UV levels are very high so please take precautions when going outside.\\\"\\\n \\n{% else %}\\n \\\"Attention! UV levels are elevated today, please take precautions.\\\"\\\n \\n{% endif %}\"\n sound: police-whistle\n media_players: auto\n priority: \"{% set uv = state_attr('sensor.tempest_uv') %}\\n{% if uv > 10 %}\\n\\\n \\ \\\"critical\\\"\\n{% elif uv > 8 %}\\n \\\"high\\\"\\n{% else %}\\n \\\"normal\\\"\\n\\\n {% endif %}\"\n - service: script.general_notification\n data:\n title: Outdoor UV Alert!\n message: \"{% set uv = state_attr('sensor.tempest_uv') %}\\n{% if uv > 10 %}\\n\\\n \\ \\\"Warning! UV levels are extremely high. Please take precautions and avoid\\\n \\ unprotected sun exposure.\\\"\\n{% elif uv > 8 %}\\n \\\"Attention! UV levels\\\n \\ are very high so please take precautions when going outside.\\\"\\n{% else\\\n \\ %}\\n \\\"Attention! UV levels are elevated today, please take precautions.\\\"\\\n \\n{% endif %}\"\n devices: jk\n priority: time-sensitive\n tag: tempest-uv-alert",
|
|
"config": [
|
|
{
|
|
"name": "general notification script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.general_notification",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "voice announcement script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.voice_announcement",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "script voice announcement",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.voice_announcement",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "tempest uv",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.tempest_uv",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "tempest_rain_alert",
|
|
"automation": "- id: tempest_rain_alert\n alias: Tempest - Rain Alert\n initial_state: true\n triggers:\n - trigger: numeric_state\n entity_id: sensor.tempest_rain_amount\n above: 1\n - trigger: numeric_state\n entity_id: sensor.tempest_rain_amount\n above: 3\n - trigger: numeric_state\n entity_id: sensor.tempest_rain_rate\n above: 2\n actions:\n - action: script.voice_announcement\n data:\n speech_message: \"{% set rain_amount = state_attr('sensor.tempest_rain_amount')\\\n \\ %} {% set rain_rate = state_attr('sensor.tempest_rain_rate') %}\\n{% if rain_amount\\\n \\ > 3 or rain_rate > 3 %}\\n \\\"Warning! Rain is accumulating quickly, please\\\n \\ make sure to check the basement for any leaks.\\\"\\n{% else %}\\n \\\"Attention!\\\n \\ There's quite a bit of rain so make sure to keep an eye on the basement.\\\"\\\n \\n{% endif %}\"\n sound: police-whistle\n media_players: auto\n priority: \"{% set rain_amount = state_attr('sensor.tempest_rain_amount') %}\\\n \\ {% set rain_rate = state_attr('sensor.tempest_rain_rate') %}\\n{% if rain_amount\\\n \\ > 3 or rain_rate > 3 %}\\n \\\"high\\\"\\n{% else %}\\n \\\"normal\\\"\\n{% endif\\\n \\ %}\"\n - action: script.general_notification\n data:\n title: Rain Accumulation Alert!\n message: \"{% set rain_amount = state_attr('sensor.tempest_rain_amount') %} {%\\\n \\ set rain_rate = state_attr('sensor.tempest_rain_rate') %}\\n{% if rain_amount\\\n \\ > 3 or rain_rate > 3 %}\\n \\\"Warning! Rain is accumulating quickly, please\\\n \\ make sure to check the basement for any leaks.\\\"\\n{% else %}\\n \\\"Attention!\\\n \\ There's quite a bit of rain so make sure to keep an eye on the basement.\\\"\\\n \\n{% endif %}\"\n devices: jk\n priority: time-sensitive\n tag: tempest-rain-alert",
|
|
"config": [
|
|
{
|
|
"name": "general notification script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.general_notification",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "voice announcement script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.voice_announcement",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "script voice announcement",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.voice_announcement",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "tempest rain amount",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.tempest_rain_amount",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "tempest rain rate",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.tempest_rain_rate",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "today_is_full_moon",
|
|
"automation": "- id: today_is_full_moon\n initial_state: true\n alias: Today is a full moon\n trigger:\n - platform: state\n entity_id: sensor.moon\n to: full_moon\n action:\n - service: automation.turn_on\n entity_id: automation.full_moon_notification",
|
|
"config": [
|
|
{
|
|
"name": "moon sensor",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.moon",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Full Moon Notification",
|
|
"room": null,
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.full_moon_notification",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "full_moon_notification",
|
|
"automation": "- id: full_moon_notification\n initial_state: true\n alias: Full Moon Notification\n trigger:\n - platform: sun\n event: sunset\n offset: 00:10:00\n - platform: state\n entity_id: input_boolean.house_occupied\n to: 'on'\n condition:\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n - condition: state\n entity_id: sensor.moon\n state: full_moon\n - condition: state\n entity_id: sun.sun\n state: below_horizon\n action:\n - wait_template: '{{ is_state(''binary_sensor.playroom_motion_sensor_entry_motion_detection'',\n ''on'') }}'\n timeout: 01:00:00\n - alias: Wait 3 seconds\n delay: 3\n - service: script.general_notification\n data:\n message: Today's a full moon, go check it out!\n title: Full Moon Reminder\n devices: jk\n priority: passive\n tag: full-moon-reminder\n - service: script.voice_announcement\n data:\n media_players: auto\n sound: chime\n speech_message: \"{{\\n [\\n \\\"It's a full moon today! Go take a look out the\\\n \\ window.\\\",\\n \\\"Guess what? It's a full moon today!\\\",\\n \\\"Hey fam!\\\n \\ Today's a full moon, don't forget to check it out.\\\",\\n \\\"Hey Nino! Guess\\\n \\ what? Today's a full moon!\\\"\\n ] | random\\n}}\"",
|
|
"config": [
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "sun sun",
|
|
"room": null,
|
|
"type": "sun",
|
|
"id": {
|
|
"entity_id": "sun.sun",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "general notification script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.general_notification",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "voice announcement script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.voice_announcement",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "script voice announcement",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.voice_announcement",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "playroom motion",
|
|
"room": "playroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.playroom_motion",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "moon sensor",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.moon",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Playroom Motion Sensor Entry Motion Detection",
|
|
"room": "Playroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.playroom_motion_sensor_entry_motion_detection",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "today_is_full_moon",
|
|
"automation": "- id: today_is_full_moon\n initial_state: 'on'\n alias: Today is a full moon\n trigger:\n - platform: sun\n event: sunset\n - platform: state\n entity_id: sensor.moon\n to: full_moon\n condition:\n - platform: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n - condition: state\n entity_id: sensor.moon\n state: full_moon\n - condition: state\n entity_id: sun.sun\n state: below_horizon\n action:\n - wait_template: '{{ is_state(''binary_sensor.kitchen_motion_sensor_main_motion_detection'',\n ''on'') }}'\n - alias: Wait 5 seconds\n delay: 5\n - service: notify.mobile_app_jk_2\n data:\n message: Today's a full moon, go check it out!\n title: Full Moon Reminder\n - service: script.voice_announcement\n data:\n media_players: auto\n sound: chime\n speech_message: \"{{\\n [\\n \\\"It's a full moon today! Go take a look out the\\\n \\ window.\\\",\\n \\\"Guess what? It's a full moon today!\\\",\\n \\\"Hey fam!\\\n \\ Today's a full moon, don't forget to check it out.\\\",\\n \\\"Hey Nino! Guess\\\n \\ what? Today's a full moon!\\\"\\n ] | random\\n}}\"",
|
|
"config": [
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "sun sun",
|
|
"room": null,
|
|
"type": "sun",
|
|
"id": {
|
|
"entity_id": "sun.sun",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "voice announcement script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.voice_announcement",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "mobile app jk 2 notification",
|
|
"room": null,
|
|
"type": "notify",
|
|
"id": {
|
|
"entity_id": "notify.mobile_app_jk_2",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "script voice announcement",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.voice_announcement",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "binary sensor kitchen motion sensor main motion detection",
|
|
"room": "kitchen",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.kitchen_motion_sensor_main_motion_detection",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "moon sensor",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.moon",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "travel_arrival_announcement",
|
|
"automation": "- id: travel_arrival_announcement\n alias: Travel - Arrival Announcement\n mode: single\n trigger:\n - platform: state\n entity_id:\n - person.john_koht\n - person.cristina_falbo\n to:\n - Waldorf Astoria Hotel\n for:\n minutes: 1\n action:\n - service: script.voice_announcement\n data:\n media_players: auto\n sound: musical-flute\n speech_message: \"{% set person = \\\"\\\" %} {% set ent = trigger.entity_id %}\\n\\\n {% if ent == \\\"person.john_koht\\\" %}\\n {% set person = \\\"Baba\\\" %}\\n{% else\\\n \\ %}\\n {% set person = \\\"Mama\\\" %}\\n{% endif %}\\n{% set store = trigger.to_state.state\\\n \\ %}\\n\\\"Just wanted to let you know that {{person}} safely arrived at {{store}}!\\\"\\\n \\n\"",
|
|
"config": [
|
|
{
|
|
"name": "person cristina falbo",
|
|
"room": null,
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.cristina_falbo",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "voice announcement script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.voice_announcement",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "person john koht",
|
|
"room": null,
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.john_koht",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "person cristina falbo",
|
|
"room": null,
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.cristina_falbo",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "script voice announcement",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.voice_announcement",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "office_shelf_lights_turn_off_deep_work_lighting",
|
|
"automation": "- id: office_shelf_lights_turn_off_deep_work_lighting\n alias: Office Shelf Lights - Turn Off Deep Work Lighting\n triggers:\n - trigger: state\n entity_id: input_select.john_focus_mode\n from: Deep Work\n conditions:\n - condition: state\n entity_id: input_select.office\n state:\n - Auto\n - DnD\n - condition: state\n entity_id: input_boolean.office_occupied\n state: 'on'\n actions:\n - action: light.turn_off\n entity_id: light.office_shelf_lights",
|
|
"config": [
|
|
{
|
|
"name": "input boolean office occupied",
|
|
"room": "office",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.office_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "office mode",
|
|
"room": "office",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.office",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "john focus mode",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.john_focus_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "office shelf lights",
|
|
"room": "office",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.office_shelf_lights",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "turn_off_office_shelf_lights",
|
|
"automation": "- id: turn_off_office_shelf_lights\n alias: Turn off office shelf lights\n initial_state: true\n trigger:\n - trigger: state\n entity_id: input_boolean.house_occupied\n to: 'off'\n - trigger: state\n entity_id: input_boolean.office_occupied\n to: 'off'\n conditions:\n - or:\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'off'\n - and:\n - condition: state\n entity_id: input_boolean.office_occupied\n state: 'off'\n - condition: state\n entity_id: input_boolean.entertainment_mode\n state: 'off'\n actions:\n - action: light.turn_off\n entity_id: light.office_shelf_lights",
|
|
"config": [
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "entertainment mode",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.entertainment_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean office occupied",
|
|
"room": "office",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.office_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "office shelf lights",
|
|
"room": "office",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.office_shelf_lights",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "office_shelf_lights_turn_on_deep_work_lighting",
|
|
"automation": "- id: office_shelf_lights_turn_on_deep_work_lighting\n alias: Office Shelf Lights - Turn On Deep Work Lighting\n triggers:\n - trigger: state\n entity_id: input_select.john_focus_mode\n to: Deep Work\n conditions:\n - condition: state\n entity_id: input_select.office\n state: Auto\n - condition: state\n entity_id: input_boolean.office_occupied\n state: 'on'\n actions:\n - action: scene.turn_on\n entity_id: scene.office_shelves_tokyo",
|
|
"config": [
|
|
{
|
|
"name": "input boolean office occupied",
|
|
"room": "office",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.office_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "office mode",
|
|
"room": "office",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.office",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "john focus mode",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.john_focus_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "scene office shelves tokyo",
|
|
"room": "office",
|
|
"type": "scene",
|
|
"id": {
|
|
"entity_id": "scene.office_shelves_tokyo",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "upstairs_dryer_complete",
|
|
"automation": "- id: upstairs_dryer_complete\n alias: Upstairs Dryer Complete\n initial_state: true\n trigger:\n - platform: state\n entity_id: input_select.upstairs_dryer_status\n to: Clean\n condition:\n - condition: state\n entity_id: input_select.upstairs_dryer_status\n state: Clean\n action:\n - service: script.voice_announcement\n data:\n media_players: auto\n sound: chirp\n priority: normal\n expires_in: 120\n speech_message: The upstairs dryer finished and is ready to be emptied.\n - service: script.general_notification\n data:\n message: The upstairsdryer is finished and ready to be emptied.\n title: Upstairs Drying Machine\n devices: all\n priority: active\n tag: main-level-dryer",
|
|
"config": [
|
|
{
|
|
"name": "general notification script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.general_notification",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "voice announcement script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.voice_announcement",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "script voice announcement",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.voice_announcement",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "upstairs dryer status",
|
|
"room": "upstairs",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.upstairs_dryer_status",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "upstairs_dryer_complete",
|
|
"automation": "- id: upstairs_dryer_complete\n alias: Upstairs dryer complete\n initial_state: 'on'\n trigger:\n - platform: state\n entity_id: input_select.upstairs_dryer_status\n to: Clean\n condition:\n - condition: state\n entity_id: input_select.upstairs_dryer_status\n state: Clean\n action:\n - service: notify.ios_family\n data:\n message: The upstairs dryer is finished and ready to be emptied.\n title: Upstairs Drying Machine",
|
|
"config": [
|
|
{
|
|
"name": "upstairs dryer status",
|
|
"room": "upstairs",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.upstairs_dryer_status",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "upstairs_dryer_to_clean",
|
|
"automation": "- id: upstairs_dryer_to_clean\n alias: Upstairs Dryer to Clean\n initial_state: true\n trigger:\n - platform: state\n entity_id: input_select.upstairs_dryer_status\n to: Finishing\n for:\n minutes: 5\n - platform: numeric_state\n entity_id: sensor.upstairs_drying_machine_active_power\n below: 50\n condition:\n - condition: state\n entity_id: input_select.upstairs_dryer_status\n state: Finishing\n action:\n - service: input_select.select_option\n data:\n entity_id: input_select.upstairs_dryer_status\n option: Clean",
|
|
"config": [
|
|
{
|
|
"name": "upstairs dryer status",
|
|
"room": "upstairs",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.upstairs_dryer_status",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "upstairs drying machine active power",
|
|
"room": "upstairs",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.upstairs_drying_machine_active_power",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "upstairs_dryer_to_clean",
|
|
"automation": "- id: upstairs_dryer_to_clean\n alias: Upstairs dryer to clean\n initial_state: 'on'\n trigger:\n - platform: state\n entity_id: input_select.upstairs_dryer_status\n to: Finishing\n for:\n minutes: 8\n condition:\n - condition: state\n entity_id: input_select.upstairs_dryer_status\n state: Finishing\n action:\n - service: input_select.select_option\n data:\n entity_id: input_select.upstairs_dryer_status\n option: Clean",
|
|
"config": [
|
|
{
|
|
"name": "upstairs dryer status",
|
|
"room": "upstairs",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.upstairs_dryer_status",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "upstairs_dryer_to_finished",
|
|
"automation": "- id: upstairs_dryer_to_finished\n alias: Upstairs Dryer to Finishing\n initial_state: true\n trigger:\n - platform: numeric_state\n entity_id: sensor.upstairs_drying_machine_active_power\n below: 150\n condition:\n - condition: state\n entity_id: input_select.upstairs_dryer_status\n state: Running\n action:\n - service: input_select.select_option\n data:\n entity_id: input_select.upstairs_dryer_status\n option: Finishing",
|
|
"config": [
|
|
{
|
|
"name": "upstairs dryer status",
|
|
"room": "upstairs",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.upstairs_dryer_status",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "upstairs drying machine active power",
|
|
"room": "upstairs",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.upstairs_drying_machine_active_power",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "upstairs_dryer_to_finished",
|
|
"automation": "- id: upstairs_dryer_to_finished\n alias: 'Upstairs dryer to '\n initial_state: 'on'\n trigger:\n - platform: numeric_state\n entity_id: sensor.drying_machine_electric_consumption_w\n below: 6\n condition:\n - condition: state\n entity_id: input_select.upstairs_dryer_status\n state: Running\n action:\n - service: input_select.select_option\n data:\n entity_id: input_select.upstairs_dryer_status\n option: Finishing",
|
|
"config": [
|
|
{
|
|
"name": "upstairs dryer status",
|
|
"room": "upstairs",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.upstairs_dryer_status",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Drying Machine Electric Consumption",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.drying_machine_electric_consumption_w",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "upstairs_dryer_to_idle",
|
|
"automation": "- id: upstairs_dryer_to_idle\n alias: Upstairs Dryer to Idle\n initial_state: true\n trigger:\n - platform: state\n entity_id: input_select.upstairs_dryer_status\n to: Clean\n for:\n minutes: 5\n condition:\n - condition: or\n conditions:\n - condition: state\n entity_id: input_select.upstairs_dryer_status\n state: Clean\n - condition: state\n entity_id: input_select.upstairs_dryer_status\n state: Finishing\n action:\n - service: input_select.select_option\n data:\n entity_id: input_select.upstairs_dryer_status\n option: Idle",
|
|
"config": [
|
|
{
|
|
"name": "upstairs dryer status",
|
|
"room": "upstairs",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.upstairs_dryer_status",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "upstairs_dryer_to_idle",
|
|
"automation": "- id: upstairs_dryer_to_idle\n alias: Upstairs dryer to idle\n initial_state: 'on'\n trigger:\n - platform: state\n entity_id: input_select.upstairs_dryer_status\n to: Clean\n for:\n minutes: 20\n condition:\n - condition: state\n entity_id: input_select.upstairs_dryer_status\n state: Clean\n action:\n - service: input_select.select_option\n data:\n entity_id: input_select.upstairs_dryer_status\n option: Idle",
|
|
"config": [
|
|
{
|
|
"name": "upstairs dryer status",
|
|
"room": "upstairs",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.upstairs_dryer_status",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "upstairs_dryer_to_running",
|
|
"automation": "- id: upstairs_dryer_to_running\n alias: Upstairs Dryer to Running\n initial_state: true\n trigger:\n - platform: numeric_state\n entity_id: sensor.upstairs_drying_machine_active_power\n above: 10\n condition:\n condition: or\n conditions:\n - condition: state\n entity_id: input_select.upstairs_dryer_status\n state: Idle\n - condition: state\n entity_id: input_select.upstairs_dryer_status\n state: Clean\n - condition: state\n entity_id: input_select.upstairs_dryer_status\n state: Finishing\n action:\n - service: input_select.select_option\n data:\n entity_id: input_select.upstairs_dryer_status\n option: Running",
|
|
"config": [
|
|
{
|
|
"name": "upstairs dryer status",
|
|
"room": "upstairs",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.upstairs_dryer_status",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "upstairs drying machine active power",
|
|
"room": "upstairs",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.upstairs_drying_machine_active_power",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "upstairs_dryer_to_running",
|
|
"automation": "- id: upstairs_dryer_to_running\n alias: Upstairs dryer to running\n initial_state: 'on'\n trigger:\n - platform: numeric_state\n entity_id: sensor.drying_machine_electric_consumption_w\n above: 10\n condition:\n condition: or\n conditions:\n - condition: state\n entity_id: input_select.upstairs_dryer_status\n state: Idle\n - condition: state\n entity_id: input_select.upstairs_dryer_status\n state: Clean\n - condition: state\n entity_id: input_select.upstairs_dryer_status\n state: Finishing\n action:\n - service: input_select.select_option\n data:\n entity_id: input_select.upstairs_dryer_status\n option: Running",
|
|
"config": [
|
|
{
|
|
"name": "upstairs dryer status",
|
|
"room": "upstairs",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.upstairs_dryer_status",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Drying Machine Electric Consumption",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.drying_machine_electric_consumption_w",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "upstairs_hallway_lights_manually_turned_off",
|
|
"automation": "- id: upstairs_hallway_lights_manually_turned_off\n initial_state: true\n alias: Upstairs Hallway Lights - Manually Turned Off\n trigger:\n - platform: state\n entity_id: light.upstairs_hallway\n to: 'off'\n condition:\n - condition: state\n entity_id: input_boolean.upstairs_hallway_lights_auto\n state: 'on'\n - condition: template\n value_template: '{{ trigger.to_state.context.parent_id == none }}'\n action:\n - service: input_boolean.turn_off\n entity_id: input_boolean.upstairs_hallway_lights_auto\n - service: input_boolean.turn_off\n entity_id: input_boolean.upstairs_hallway_lighting_automations\n - service: script.general_notification\n data:\n title: Upstairs Hallway Lights\n message: The upstairs hallway lights have been turned off. The parent id is\n {{trigger.to_state.context.parent_id}} and the user_id is {{trigger.to_state.context.user_id}}.\n devices: jk\n priority: passive\n tag: upstairs-hallway-lighting-automation",
|
|
"config": [
|
|
{
|
|
"name": "general notification script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.general_notification",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "upstairs hallway light",
|
|
"room": "upstairs hallway",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.upstairs_hallway",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "upstairs hallway lights auto",
|
|
"room": "upstairs hallway",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.upstairs_hallway_lights_auto",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "upstairs hallway lighting automations",
|
|
"room": "upstairs hallway",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.upstairs_hallway_lighting_automations",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "upstairs_hallway_lights_motion_on",
|
|
"automation": "- id: upstairs_hallway_lights_motion_on\n initial_state: true\n alias: Upstairs Hallway Lights - Motion On\n triggers:\n - trigger: state\n entity_id: binary_sensor.upstairs_hallway_motion\n to: 'on'\n conditions:\n - condition: state\n entity_id: input_boolean.lighting_automations\n state: 'on'\n - condition: state\n entity_id: input_boolean.upstairs_hallway_lighting_automations\n state: 'on'\n - condition: numeric_state\n entity_id: sensor.upstairs_hallway_nightlight_illuminance\n below: 30\n - condition: state\n entity_id: light.upstairs_hallway\n state: 'off'\n - condition: state\n entity_id: input_boolean.quiet_mode\n state: 'off'\n action:\n - if:\n - condition: or\n conditions:\n - condition: state\n entity_id: input_boolean.gianlucas_room_occupied\n state: 'on'\n - condition: state\n entity_id: input_boolean.ninos_bedroom_occupied\n state: 'on'\n - condition: template\n value_template: '{{ (as_timestamp(now()) - as_timestamp(states.input_boolean.quiet_mode.last_changed))\n | int < 180 }}'\n then:\n - action: light.turn_on\n entity_id: light.upstairs_hallway\n data:\n brightness_pct: 10\n transition: 0.5\n else:\n - action: light.turn_on\n entity_id: light.upstairs_hallway\n - action: input_boolean.turn_on\n entity_id: input_boolean.upstairs_hallway_lights_auto",
|
|
"config": [
|
|
{
|
|
"name": "quiet mode",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.quiet_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "lighting automations",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.lighting_automations",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "gianlucas room occupied",
|
|
"room": "gianlucas bedroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.gianlucas_room_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "ninos bedroom occupied",
|
|
"room": "ninos bedroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.ninos_bedroom_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean quiet mode",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.quiet_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "upstairs hallway light",
|
|
"room": "upstairs hallway",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.upstairs_hallway",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "upstairs hallway motion",
|
|
"room": "upstairs hallway",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.upstairs_hallway_motion",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "upstairs hallway nightlight illuminance",
|
|
"room": "upstairs hallway",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.upstairs_hallway_nightlight_illuminance",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "upstairs hallway lights auto",
|
|
"room": "upstairs hallway",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.upstairs_hallway_lights_auto",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "upstairs hallway lighting automations",
|
|
"room": "upstairs hallway",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.upstairs_hallway_lighting_automations",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "upstairs_hallway_lights_sleep_mode_off",
|
|
"automation": "- id: upstairs_hallway_lights_sleep_mode_off\n initial_state: true\n alias: Upstairs Hallway Lights Sleep Mode Off\n trigger:\n - platform: sun\n event: sunrise\n - platform: time\n at: 07:00:00\n - platform: state\n entity_id: input_select.upstairs_hallway\n to: Auto\n condition:\n - condition: state\n entity_id: input_boolean.lighting_automations\n state: 'on'\n - condition: state\n entity_id: input_select.upstairs_hallway\n state: Auto\n - condition: sun\n after: sunrise\n action:\n - service: switch.turn_off\n entity_id: switch.adaptive_lighting_sleep_mode_upstairs_hallway",
|
|
"config": [
|
|
{
|
|
"name": "lighting automations",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.lighting_automations",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "adaptive lighting sleep mode upstairs hallway",
|
|
"room": "upstairs hallway",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.adaptive_lighting_sleep_mode_upstairs_hallway",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "upstairs hallway mode",
|
|
"room": "upstairs hallway",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.upstairs_hallway",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "upstairs_hallway_lights_sleep_mode_on",
|
|
"automation": "- id: upstairs_hallway_lights_sleep_mode_on\n initial_state: true\n alias: Upstairs Hallway Lights Sleep Mode On\n trigger:\n - platform: state\n entity_id: input_select.upstairs_hallway\n to: Bedtime\n - platform: state\n entity_id:\n - input_boolean.gianlucas_room_occupied\n - input_boolean.ninos_bedroom_occupied\n to: 'on'\n condition:\n - condition: state\n entity_id: input_boolean.lighting_automations\n state: 'on'\n - condition: sun\n after: sunset\n - condition: state\n entity_id: input_boolean.dark_outside\n state: 'on'\n action:\n - service: switch.turn_on\n entity_id: switch.adaptive_lighting_sleep_mode_upstairs_hallway",
|
|
"config": [
|
|
{
|
|
"name": "dark outside",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.dark_outside",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "lighting automations",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.lighting_automations",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "gianlucas room occupied",
|
|
"room": "gianlucas bedroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.gianlucas_room_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "ninos bedroom occupied",
|
|
"room": "ninos bedroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.ninos_bedroom_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "adaptive lighting sleep mode upstairs hallway",
|
|
"room": "upstairs hallway",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.adaptive_lighting_sleep_mode_upstairs_hallway",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "upstairs hallway mode",
|
|
"room": "upstairs hallway",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.upstairs_hallway",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "upstairs_hallway_lights_to_off",
|
|
"automation": "- id: upstairs_hallway_lights_to_off\n initial_state: true\n alias: Upstairs Hallway Lights to Off\n trigger:\n - platform: state\n entity_id: input_select.upstairs_hallway\n to: 'Off'\n - platform: state\n entity_id: input_boolean.lighting_automations\n to: 'on'\n - platform: state\n entity_id: input_boolean.upstairs_hallway_occupied\n to: 'off'\n condition:\n - condition: state\n entity_id: input_boolean.lighting_automations\n state: 'on'\n - condition: state\n entity_id: light.upstairs_hallway\n state: 'on'\n action:\n - service: light.turn_off\n entity_id: light.upstairs_hallway\n - service: input_boolean.turn_off\n entity_id: input_boolean.upstairs_hallway_lights_auto",
|
|
"config": [
|
|
{
|
|
"name": "lighting automations",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.lighting_automations",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "upstairs hallway light",
|
|
"room": "upstairs hallway",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.upstairs_hallway",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "upstairs hallway lights auto",
|
|
"room": "upstairs hallway",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.upstairs_hallway_lights_auto",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "upstairs hallway occupied",
|
|
"room": "upstairs hallway",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.upstairs_hallway_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "upstairs hallway mode",
|
|
"room": "upstairs hallway",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.upstairs_hallway",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "upstairs_hallway_mode_auto",
|
|
"automation": "- id: upstairs_hallway_mode_auto\n initial_state: true\n alias: Upstairs Hallway - Mode Auto\n trigger:\n - platform: state\n entity_id: input_select.house\n to: Auto\n condition:\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n - condition: template\n value_template: '{{ not is_state(''input_select.upstairs_hallway'',''Auto'') }}'\n - condition: state\n entity_id: input_boolean.bedtime\n state: 'off'\n action:\n - service: input_select.select_option\n data:\n entity_id: input_select.upstairs_hallway\n option: Auto",
|
|
"config": [
|
|
{
|
|
"name": "bedtime",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.bedtime",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "house status",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.house",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "upstairs hallway mode",
|
|
"room": "upstairs hallway",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.upstairs_hallway",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "upstairs_hallway_mode_bedtime",
|
|
"automation": "- id: upstairs_hallway_mode_bedtime\n initial_state: true\n alias: Upstairs Hallway - Mode Bedtime\n trigger:\n - platform: state\n entity_id: input_select.house\n to: Bedtime\n - platform: state\n entity_id: input_boolean.bedtime\n to: 'on'\n condition:\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n - condition: template\n value_template: '{{ not is_state(''input_select.upstairs_hallway'',''Bedtime'')\n }}'\n action:\n - service: input_select.select_option\n data:\n entity_id: input_select.upstairs_hallway\n option: Bedtime",
|
|
"config": [
|
|
{
|
|
"name": "bedtime",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.bedtime",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "house status",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.house",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "upstairs hallway mode",
|
|
"room": "upstairs hallway",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.upstairs_hallway",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "upstairs_hallway_mode_off",
|
|
"automation": "- id: upstairs_hallway_mode_off\n initial_state: true\n alias: Upstairs Hallway - Mode Off\n trigger:\n - platform: state\n entity_id: input_boolean.house_occupied\n to: 'off'\n - platform: homeassistant\n event: start\n - platform: event\n event_type: automation_reloaded\n condition:\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'off'\n - condition: template\n value_template: '{{ not is_state(''input_select.upstairs_hallway'',''Off'') }}'\n action:\n - service: input_select.select_option\n data:\n entity_id: input_select.upstairs_hallway\n option: 'Off'",
|
|
"config": [
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "upstairs hallway mode",
|
|
"room": "upstairs hallway",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.upstairs_hallway",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "upstairs_hallway_not_occupied",
|
|
"automation": "- id: upstairs_hallway_not_occupied\n initial_state: true\n alias: Upstairs Hallway Not Occupied\n trigger:\n - platform: state\n entity_id: binary_sensor.upstairs_hallway_motion\n to: 'off'\n for:\n minutes: 10\n condition:\n - condition: state\n entity_id: input_boolean.upstairs_hallway_occupied\n state: 'on'\n action:\n - service: input_boolean.turn_off\n entity_id: input_boolean.upstairs_hallway_occupied\n - alias: Wait 2 seconds\n delay: 2\n - service: input_boolean.turn_on\n entity_id: input_boolean.upstairs_hallway_lighting_automations",
|
|
"config": [
|
|
{
|
|
"name": "upstairs hallway motion",
|
|
"room": "upstairs hallway",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.upstairs_hallway_motion",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "upstairs hallway occupied",
|
|
"room": "upstairs hallway",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.upstairs_hallway_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "upstairs hallway lighting automations",
|
|
"room": "upstairs hallway",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.upstairs_hallway_lighting_automations",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "upstairs_hallway_occupied",
|
|
"automation": "- id: upstairs_hallway_occupied\n initial_state: true\n alias: Upstairs Hallway Occupied\n trigger:\n - platform: state\n entity_id: binary_sensor.upstairs_hallway_motion\n to: 'on'\n - platform: state\n entity_id: light.upstairs_hallway\n to: 'on'\n condition:\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n - condition: state\n entity_id: input_boolean.upstairs_hallway_occupied\n state: 'off'\n - condition: or\n conditions:\n - condition: state\n entity_id: binary_sensor.upstairs_hallway_motion\n state: 'on'\n - condition: state\n entity_id: light.upstairs_hallway\n state: 'on'\n action:\n - service: input_boolean.turn_on\n entity_id: input_boolean.upstairs_hallway_occupied",
|
|
"config": [
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "upstairs hallway light",
|
|
"room": "upstairs hallway",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.upstairs_hallway",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "upstairs hallway motion",
|
|
"room": "upstairs hallway",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.upstairs_hallway_motion",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "upstairs hallway occupied",
|
|
"room": "upstairs hallway",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.upstairs_hallway_occupied",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "upstairs_washer_complete_alert",
|
|
"automation": "- id: upstairs_washer_complete_alert\n alias: Upstairs washer complete alert\n initial_state: 'on'\n trigger:\n - platform: state\n entity_id: input_select.upstairs_washer_status\n to: Clean\n - platform: state\n entity_id: input_boolean.house_occupied\n to: 'on'\n for:\n minutes: 10\n - platform: time\n at: 08:01:00\n condition:\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n - condition: state\n entity_id: input_select.upstairs_washer_status\n state: Clean\n - condition: template\n value_template: \"{% if states.automation.upstairs_washer_complete_alert.attributes.last_triggered\\\n \\ is not none %}\\n {% if as_timestamp(now()) | int - as_timestamp(states.automation.upstairs_washer_complete_alert.attributes.last_triggered)\\\n \\ | int > 3600 %} true {% else %} false\\n {% endif %}\\n{% else %} false {%\\\n \\ endif %}\\n\"\n action:\n - service: script.voice_announcement\n data:\n media_players: auto\n sound: chirp\n priority: normal\n expires_in: 120\n speech_message: The upstairs washer finished and is ready to be emptied.\n - service_template: \"{% if (is_state(\\\"input_boolean.john_home\\\", \\\"on\\\")) and (is_state(\\\"\\\n input_boolean.cristina_home\\\", \\\"on\\\")) %}\\n notify.ios_family\\n{% elif is_state(\\\"\\\n input_boolean.john_home\\\", \\\"on\\\") %}\\n notify.mobile_app_jk_2\\n{% elif (is_state(\\\"\\\n input_boolean.cristina_home\\\", \\\"on\\\")) %}\\n notify.mobile_app_cfalb2\\n{% endif\\\n \\ %}\\n\"\n data:\n message: The upstairs washer is finished and ready to be emptied.\n title: Upstairs Washing Machine\n - if:\n - alias: TV is ON\n condition: state\n entity_id: media_player.sony_bravia_tv\n state: 'on'\n then:\n - service: notify.family_room_sony_bravia_tv\n data:\n message: The upstairs washer is finished and ready to be emptied.\n title: Upstairs Laundry is complete!\n data:\n duration: 5\n position: bottom-right\n fontsize: large\n transparency: 25%\n interrupt: false\n color: black",
|
|
"config": [
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "john home",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.john_home",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "sony bravia tv",
|
|
"room": null,
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.sony_bravia_tv",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "cristina home",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.cristina_home",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "voice announcement script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.voice_announcement",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "mobile app jk 2 notification",
|
|
"room": null,
|
|
"type": "notify",
|
|
"id": {
|
|
"entity_id": "notify.mobile_app_jk_2",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "script voice announcement",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.voice_announcement",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "upstairs washer status",
|
|
"room": "upstairs",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.upstairs_washer_status",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "upstairs_washer_to_clean",
|
|
"automation": "- id: upstairs_washer_to_clean\n alias: Upstairs washer to clean\n initial_state: 'on'\n trigger:\n - platform: state\n entity_id: input_select.upstairs_washer_status\n to: Finishing\n for:\n minutes: 8\n condition:\n - condition: state\n entity_id: input_select.upstairs_washer_status\n state: Finishing\n action:\n - service: input_select.select_option\n data:\n entity_id: input_select.upstairs_washer_status\n option: Clean",
|
|
"config": [
|
|
{
|
|
"name": "upstairs washer status",
|
|
"room": "upstairs",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.upstairs_washer_status",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "upstairs_washer_to_finished",
|
|
"automation": "- id: upstairs_washer_to_finished\n alias: Upstairs washer to finished\n initial_state: 'on'\n trigger:\n - platform: numeric_state\n entity_id: sensor.washing_machine_electric_consumption_w\n below: 3\n condition:\n - condition: state\n entity_id: input_select.upstairs_washer_status\n state: Running\n action:\n - service: input_select.select_option\n data:\n entity_id: input_select.upstairs_washer_status\n option: Finishing",
|
|
"config": [
|
|
{
|
|
"name": "upstairs washer status",
|
|
"room": "upstairs",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.upstairs_washer_status",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Washing Machine Electric Consumption",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.washing_machine_electric_consumption_w",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "upstairs_washer_to_idle",
|
|
"automation": "- id: upstairs_washer_to_idle\n alias: Upstairs washer to idle\n initial_state: 'on'\n trigger:\n - platform: state\n entity_id: binary_sensor.upstairs_washer_door_sensor_status\n to: 'on'\n condition:\n - condition: or\n conditions:\n - condition: state\n entity_id: input_select.upstairs_washer_status\n state: Clean\n - condition: state\n entity_id: input_select.upstairs_washer_status\n state: Finishing\n - condition: state\n entity_id: input_select.upstairs_washer_status\n state: Running\n action:\n - service: input_select.select_option\n data:\n entity_id: input_select.upstairs_washer_status\n option: Idle",
|
|
"config": [
|
|
{
|
|
"name": "upstairs washer door sensor status",
|
|
"room": "upstairs",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.upstairs_washer_door_sensor_status",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "upstairs washer status",
|
|
"room": "upstairs",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.upstairs_washer_status",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "upstairs_washer_to_running",
|
|
"automation": "- id: upstairs_washer_to_running\n alias: Upstairs washer to running\n initial_state: 'on'\n trigger:\n - platform: numeric_state\n entity_id: sensor.washing_machine_electric_consumption_w\n above: 10\n condition:\n condition: or\n conditions:\n - condition: state\n entity_id: input_select.upstairs_washer_status\n state: Idle\n - condition: state\n entity_id: input_select.upstairs_washer_status\n state: Clean\n - condition: state\n entity_id: input_select.upstairs_washer_status\n state: Finishing\n action:\n - service: input_select.select_option\n data:\n entity_id: input_select.upstairs_washer_status\n option: Running",
|
|
"config": [
|
|
{
|
|
"name": "upstairs washer status",
|
|
"room": "upstairs",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.upstairs_washer_status",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Washing Machine Electric Consumption",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.washing_machine_electric_consumption_w",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "UPS Battery Power Activated",
|
|
"automation": "- alias: UPS Battery Power Activated\n trigger:\n - platform: state\n entity_id: sensor.apc_ups_status\n to: OB\n action:\n - action: script.general_notification\n data:\n title: Power Outage!\n message: 🚨 Power outage! UPS is now on battery.\n devices: jk\n priority: critical\n tag: ups-power-outage",
|
|
"config": [
|
|
{
|
|
"name": "general notification script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.general_notification",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "apc ups status",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.apc_ups_status",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "UPS Battery Power Deactivated",
|
|
"automation": "- alias: UPS Battery Power Deactivated\n trigger:\n - platform: state\n entity_id: sensor.apc_ups_status\n to: OL\n action:\n - action: script.general_notification\n data:\n title: UPS Power Restored!\n message: The UPS is now back on AC power.\n devices: jk\n priority: time-sensitive\n tag: ups-power-restored",
|
|
"config": [
|
|
{
|
|
"name": "general notification script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.general_notification",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "apc ups status",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.apc_ups_status",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "vacation_mode_turn_off",
|
|
"automation": "- id: vacation_mode_turn_off\n initial_state: false\n alias: Vacation Mode - Turn Off\n triggers:\n - trigger: state\n entity_id:\n - input_select.cristina_status_dropdown\n - input_select.john_status\n to: Home\n - trigger: state\n entity_id: input_boolean.house_occupied\n to: 'on'\n conditions:\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'on'\n - condition: or\n conditions:\n - condition: state\n entity_id: input_select.cristina_status_dropdown\n state: Home\n - condition: state\n entity_id: input_select.john_status\n state: Home\n actions:\n - action: input_boolean.turn_off\n entity_id: input_boolean.vacation_mode\n - action: automation.turn_off\n entity_id:\n - automation.vacation_faux_home\n - automation.vacation_faux_home_off\n - automation.vacation_mode_turn_off\n - automation.bedtime_mode_vacation_on\n - automation.bedtime_mode_vacation_off\n - action: script.general_notification\n data:\n title: Vacation Mode Turned Off\n message: Vacation mode has been turned OFF\n devices: jk\n priority: time-sensitive\n tag: vacation-mode-activated",
|
|
"config": [
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "john status",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.john_status",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "vacation mode",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.vacation_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "cristina status dropdown",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.cristina_status_dropdown",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "general notification script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.general_notification",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Bedtime Mode Vacation Off",
|
|
"room": null,
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.bedtime_mode_vacation_off",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Bedtime Mode Vacation On",
|
|
"room": null,
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.bedtime_mode_vacation_on",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Vacation Faux Home",
|
|
"room": null,
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.vacation_faux_home",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Vacation Faux Home Off",
|
|
"room": null,
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.vacation_faux_home_off",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Vacation Mode Turn Off",
|
|
"room": null,
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.vacation_mode_turn_off",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "vacation_mode_turn_on",
|
|
"automation": "- id: vacation_mode_turn_on\n initial_state: true\n alias: Vacation Mode - Turn On\n triggers:\n - trigger: state\n entity_id:\n - input_select.cristina_status_dropdown\n - input_select.john_status\n to: Extended Away\n conditions:\n - condition: state\n entity_id: input_boolean.house_occupied\n state: 'off'\n - condition: state\n entity_id: input_select.cristina_status_dropdown\n state: Extended Away\n - condition: state\n entity_id: input_select.john_status\n state: Extended Away\n actions:\n - action: input_boolean.turn_on\n entity_id: input_boolean.vacation_mode\n - action: automation.turn_on\n entity_id:\n - automation.vacation_faux_home\n - automation.vacation_faux_home_off\n - automation.vacation_mode_turn_off\n - automation.bedtime_mode_vacation_on\n - automation.bedtime_mode_vacation_off\n - action: script.general_notification\n data:\n title: Vacation Mode Turned On\n message: Vacation mode has been turned on!\n devices: jk\n priority: time-sensitive\n tag: vacation-mode-activated",
|
|
"config": [
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "john status",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.john_status",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "vacation mode",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.vacation_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "cristina status dropdown",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.cristina_status_dropdown",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "general notification script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.general_notification",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Bedtime Mode Vacation Off",
|
|
"room": null,
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.bedtime_mode_vacation_off",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Bedtime Mode Vacation On",
|
|
"room": null,
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.bedtime_mode_vacation_on",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Vacation Faux Home",
|
|
"room": null,
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.vacation_faux_home",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Vacation Faux Home Off",
|
|
"room": null,
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.vacation_faux_home_off",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Vacation Mode Turn Off",
|
|
"room": null,
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.vacation_mode_turn_off",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "vacuum_clean_kitchen_during_nap",
|
|
"automation": "- id: vacuum_clean_kitchen_during_nap\n alias: Vacuum - Clean Kitchen During Nap\n mode: single\n trigger:\n - platform: state\n entity_id: input_boolean.gianlucas_room_occupied\n to: 'on'\n for:\n minutes: 10\n condition:\n - condition: state\n entity_id: input_boolean.quiet_mode\n state: 'on'\n - condition: time\n after: '13:00:00'\n before: '15:00:00'\n - condition: state\n entity_id: input_boolean.entertainment_mode\n state: 'off'\n action:\n - action: vacuum.send_command\n target:\n entity_id: vacuum.roborock_s7\n data:\n command: app_segment_clean\n params:\n - 24",
|
|
"config": [
|
|
{
|
|
"name": "quiet mode",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.quiet_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "entertainment mode",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.entertainment_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "roborock s7 vacuum",
|
|
"room": null,
|
|
"type": "vacuum",
|
|
"id": {
|
|
"entity_id": "vacuum.roborock_s7",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "gianlucas room occupied",
|
|
"room": "gianlucas bedroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.gianlucas_room_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "input boolean quiet mode",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.quiet_mode",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "vacuum_clean_office_when_dog_is_at_daycare",
|
|
"automation": "- id: vacuum_clean_office_when_dog_is_at_daycare\n alias: Vacuum - Clean Office When Dog is at Daycare\n mode: single\n trigger:\n - platform: zone\n entity_id: person.john_koht\n zone: zone.north_shore_k9\n event: enter\n condition:\n - condition: time\n after: 08:00:00\n before: '10:00:00'\n action:\n - action: vacuum.send_command\n target:\n entity_id: vacuum.roborock_s7\n data:\n command: app_segment_clean\n params:\n - 29",
|
|
"config": [
|
|
{
|
|
"name": "roborock s7 vacuum",
|
|
"room": null,
|
|
"type": "vacuum",
|
|
"id": {
|
|
"entity_id": "vacuum.roborock_s7",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "person john koht",
|
|
"room": null,
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.john_koht",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "weather_set_day_temperature",
|
|
"automation": "- id: weather_set_day_temperature\n alias: Weather - Set day Temperature\n initial_state: true\n trigger:\n - platform: state\n entity_id: weather.kpwk_daynight\n - platform: time\n at: 01:00:00\n action:\n - service: input_number.set_value\n data:\n entity_id: input_number.weather_day_high\n value: \"{{ \\n (state_attr('weather.kpwk_daynight', 'forecast')\\n | map(attribute=\\\"\\\n temperature\\\")\\n | list)[0:2]\\n | max\\n}}\\n\"\n - service: input_number.set_value\n data:\n entity_id: input_number.weather_day_low\n value: \"{{ \\n (state_attr('weather.kpwk_daynight', 'forecast')\\n | map(attribute=\\\"\\\n temperature\\\")\\n | list)[0:2]\\n | min\\n}}\\n\"",
|
|
"config": [
|
|
{
|
|
"name": "weather day high",
|
|
"room": null,
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.weather_day_high",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "weather day low",
|
|
"room": null,
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.weather_day_low",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "weather kpwk daynight",
|
|
"room": null,
|
|
"type": "weather",
|
|
"id": {
|
|
"entity_id": "weather.kpwk_daynight",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "window_left_open",
|
|
"automation": "- id: window_left_open\n alias: Window Left Open\n mode: single\n initial_state: true\n trigger:\n - platform: state\n entity_id: input_boolean.house_occupied\n to: 'off'\n - platform: state\n entity_id: input_select.house\n to: Away\n condition:\n - condition: state\n entity_id: binary_sensor.windows\n state: 'on'\n action:\n - service: script.general_notification\n data:\n title: Windows Left Open.\n message: 'The house is empty, but some windows are still open: {{ expand(''binary_sensor.windows'')|selectattr(''state'',\n ''eq'', ''on'')|map(attribute=''name'')|list|join('', '') }}'\n devices: all\n priority: time-sensitive\n tag: window-open",
|
|
"config": [
|
|
{
|
|
"name": "house status",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.house",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "house occupied",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.house_occupied",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "windows group",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.windows",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "general notification script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.general_notification",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "zigbee_router_unavailable",
|
|
"automation": "- id: zigbee_router_unavailable\n initial_state: true\n alias: Zigbee Router Unavailable\n trigger:\n - platform: state\n entity_id:\n - switch.smart_plug_1_switch\n - switch.smart_plug_2_switch\n - switch.smart_plug_3_switch\n - switch.smart_plug_4_switch\n - switch.smart_plug_5_switch\n - switch.smart_plug_6_switch\n - switch.smart_plug_7_switch\n - switch.smart_plug_8_switch\n - switch.smart_plug_9_switch\n - switch.smart_plug_10_switch\n - switch.smart_plug_11_switch\n - switch.smart_plug_12_switch\n - switch.smart_plug_13_switch\n - switch.smart_plug_14_switch\n - switch.smart_plug_15_switch\n - switch.smart_plug_16_switch\n - switch.smart_plug_17_switch\n - switch.smart_plug_18_switch\n - switch.gazebo_smart_plug_switch\n - switch.tradfri_smart_plug_1_switch\n - switch.tradfri_smart_plug_2_switch\n - switch.tradfri_smart_plug_3_switch\n - switch.tradfri_smart_plug_4_switch\n - switch.tradfri_smart_plug_5_switch\n to: unavailable\n for:\n minutes: 15\n action:\n - service: script.general_notification\n data:\n title: Zigbee System Issue\n message: 'There is an issue with the following Zigbee routers: {{ trigger.to_state.attributes.friendly_name\n }}'\n devices: jk\n priority: time-sensitive\n tag: d",
|
|
"config": [
|
|
{
|
|
"name": "tradfri smart plug 1 switch",
|
|
"room": null,
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.tradfri_smart_plug_1_switch",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "tradfri smart plug 2 switch",
|
|
"room": null,
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.tradfri_smart_plug_2_switch",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "tradfri smart plug 3 switch",
|
|
"room": null,
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.tradfri_smart_plug_3_switch",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "tradfri smart plug 4 switch",
|
|
"room": null,
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.tradfri_smart_plug_4_switch",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "general notification script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.general_notification",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "switch smart plug 12",
|
|
"room": "main bathroom",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.smart_plug_12_switch",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "switch smart plug 13",
|
|
"room": "main bathroom",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.smart_plug_13_switch",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "smart plug 2 switch",
|
|
"room": "ninos bedroom",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.smart_plug_2_switch",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "smart plug 11 switch",
|
|
"room": "office",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.smart_plug_11_switch",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Gazebo Smart Plug Switch",
|
|
"room": "Gazebo",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.gazebo_smart_plug_switch",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Smart Plug 10 Switch",
|
|
"room": null,
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.smart_plug_10_switch",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Smart Plug 14 Switch",
|
|
"room": null,
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.smart_plug_14_switch",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Smart Plug 15 Switch",
|
|
"room": null,
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.smart_plug_15_switch",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Smart Plug 16 Switch",
|
|
"room": null,
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.smart_plug_16_switch",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Smart Plug 17 Switch",
|
|
"room": null,
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.smart_plug_17_switch",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Smart Plug 18 Switch",
|
|
"room": null,
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.smart_plug_18_switch",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Smart Plug 1 Switch",
|
|
"room": null,
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.smart_plug_1_switch",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Smart Plug 3 Switch",
|
|
"room": null,
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.smart_plug_3_switch",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Smart Plug 4 Switch",
|
|
"room": null,
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.smart_plug_4_switch",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Smart Plug 5 Switch",
|
|
"room": null,
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.smart_plug_5_switch",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Smart Plug 6 Switch",
|
|
"room": null,
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.smart_plug_6_switch",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Smart Plug 7 Switch",
|
|
"room": null,
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.smart_plug_7_switch",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Smart Plug 8 Switch",
|
|
"room": null,
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.smart_plug_8_switch",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Smart Plug 9 Switch",
|
|
"room": null,
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.smart_plug_9_switch",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Tradfri Smart Plug 5 Switch",
|
|
"room": null,
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.tradfri_smart_plug_5_switch",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
}
|
|
] |