125 lines
10 KiB
JSON
125 lines
10 KiB
JSON
[
|
|
{
|
|
"id": "Entryway Smart Welcome - Door & Motion Confirmed",
|
|
"automation": "- alias: Entryway Smart Welcome - Door & Motion Confirmed\n mode: single\n triggers:\n - platform: event\n event_type: sia_event\n event_data:\n code: BA\n ri: 7\n id: door_opened\n - platform: event\n event_type: sia_event\n event_data:\n code: BA\n ri: 8\n id: motion_detected\n conditions: []\n actions:\n - choose:\n - conditions:\n - condition: trigger\n id: door_opened\n sequence:\n - wait_for_trigger:\n - platform: event\n event_type: sia_event\n event_data:\n code: BA\n ri: 8\n timeout:\n seconds: 60\n continue_on_timeout: false\n - service: tts.speak\n metadata: {}\n data:\n cache: true\n media_player_entity_id: media_player.entryway_speaker\n message: Entryway door opened. Welcome home, brave traveller!\n target:\n entity_id: tts.google_en_com",
|
|
"config": [
|
|
{
|
|
"name": "entryway speaker",
|
|
"room": "entryway",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.entryway_speaker",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "text to speech google en com",
|
|
"room": null,
|
|
"type": "tts",
|
|
"id": {
|
|
"entity_id": "tts.google_en_com",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "HVAC Auto Pause/Resume - Door & Window with Grace Periods",
|
|
"automation": "- alias: HVAC Auto Pause/Resume - Door & Window with Grace Periods\n mode: restart\n triggers:\n - platform: event\n event_type: sia_event\n event_data:\n code: BA\n ri: 7\n id: door_opened\n - platform: event\n event_type: sia_event\n event_data:\n code: BR\n ri: 7\n id: door_closed\n conditions: []\n actions:\n - choose:\n - conditions:\n - condition: trigger\n id: door_opened\n sequence:\n - delay: 00:05:00\n - wait_for_trigger:\n - platform: event\n event_type: sia_event\n event_data:\n code: BR\n ri: 2\n timeout: 00:00:01\n continue_on_timeout: true\n - choose:\n - conditions:\n - condition: template\n value_template: '{{ wait.trigger is none }}'\n sequence:\n - service: climate.set_hvac_mode\n target:\n entity_id: climate.living_room\n data:\n hvac_mode: 'off'\n - service: tts.speak\n metadata: {}\n data:\n cache: true\n media_player_entity_id: media_player.living_room_speaker\n message: HVAC paused. Door or Window remained open for over 5 minutes.\n target:\n entity_id: tts.google_en_com\n - conditions:\n - condition: trigger\n id: door_closed\n sequence:\n - delay: 00:05:00\n - wait_for_trigger:\n - platform: event\n event_type: sia_event\n event_data:\n code: BA\n ri: 2\n timeout: 00:00:01\n continue_on_timeout: true\n - choose:\n - conditions:\n - condition: template\n value_template: '{{ wait.trigger is none }}'\n sequence:\n - service: climate.set_hvac_mode\n target:\n entity_id: climate.living_room\n data:\n hvac_mode: heat\n - service: tts.speak\n metadata: {}\n data:\n cache: true\n media_player_entity_id: media_player.living_room_speaker\n message: HVAC resumed. Door stayed closed for 5 minutes.\n target:\n entity_id: tts.google_en_com",
|
|
"config": [
|
|
{
|
|
"name": "living room climate",
|
|
"room": "living_room",
|
|
"type": "climate",
|
|
"id": {
|
|
"entity_id": "climate.living_room",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "living room speaker",
|
|
"room": "living_room",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.living_room_speaker",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "text to speech google en com",
|
|
"room": null,
|
|
"type": "tts",
|
|
"id": {
|
|
"entity_id": "tts.google_en_com",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "Alarm State Visual & TTS Indication (No Helpers)",
|
|
"automation": "- alias: Alarm State Visual & TTS Indication (No Helpers)\n mode: restart\n trigger:\n - platform: event\n event_type: sia_event\n event_data:\n code: CL\n ri: 10\n id: armed_away\n - platform: event\n event_type: sia_event\n event_data:\n code: OP\n ri: 10\n id: disarmed\n - platform: event\n event_type: sia_event\n event_data:\n code: NL\n ri: 10\n id: night_mode\n - platform: event\n event_type: sia_event\n event_data:\n code: BA\n ri: 10\n id: triggered\n variables:\n last_state: '{{ state_attr(alarm_control_panel.room_x_pir_motion_sensor, ''last_state'')\n | default(''disarmed'') }}'\n action:\n - choose:\n - conditions:\n - condition: trigger\n id: armed_away\n sequence:\n - service: light.turn_on\n target:\n entity_id: light.ambient_rgb_led\n data:\n brightness_pct: 70\n rgb_color:\n - 255\n - 0\n - 0\n - service: tts.speak\n metadata: {}\n data:\n cache: true\n media_player_entity_id: media_player.house_speaker\n message: Security Alarm was Armed Away\n target:\n entity_id: tts.google_en_com\n - service: automation.set_state\n data:\n entity_id: automation.alarm_state_visual_tts_indication_no_helpers\n state: armed_away\n - conditions:\n - condition: trigger\n id: disarmed\n sequence:\n - service: light.turn_on\n target:\n entity_id: light.ambient_rgb_led\n data:\n brightness_pct: 50\n rgb_color:\n - 0\n - 255\n - 0\n - service: tts.speak\n metadata: {}\n data:\n cache: true\n media_player_entity_id: media_player.house_speaker\n message: Alarm was Disarmed\n target:\n entity_id: tts.google_en_com\n - service: automation.set_state\n data:\n entity_id: automation.alarm_state_visual_tts_indication_no_helpers\n state: disarmed\n - conditions:\n - condition: trigger\n id: night_mode\n sequence:\n - service: light.turn_on\n target:\n entity_id: light.ambient_rgb_led\n data:\n brightness_pct: 25\n rgb_color:\n - 128\n - 0\n - 128\n - service: tts.speak\n metadata: {}\n data:\n cache: true\n media_player_entity_id: media_player.house_speaker\n message: Night Mode engaged for Security Alarm\n target:\n entity_id: tts.google_en_com\n - service: automation.set_state\n data:\n entity_id: automation.alarm_state_visual_tts_indication_no_helpers\n state: night_mode\n - conditions:\n - condition: trigger\n id: triggered\n - condition: template\n value_template: '{{ last_state in [''armed_away'', ''night_mode''] }} ## Check\n if last state variable is in Armed Away/Night mode\n\n '\n sequence:\n - repeat:\n while:\n - condition: template\n value_template: '{{ last_state in [''armed_away'', ''night_mode''] }}\n\n '\n sequence:\n - service: light.turn_on\n target:\n entity_id: light.ambient_rgb_led\n data:\n brightness_pct: 100\n rgb_color:\n - 255\n - 0\n - 0\n - delay: 00:00:03\n - service: light.turn_off\n target:\n entity_id: light.ambient_rgb_led\n - delay: 00:00:03\n - service: tts.speak\n metadata: {}\n data:\n cache: true\n media_player_entity_id: media_player.house_speaker\n message: Security Alarm Triggered!\n target:\n entity_id: tts.google_en_com\n - delay: 00:00:15",
|
|
"config": [
|
|
{
|
|
"name": "house speaker",
|
|
"room": "house",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.house_speaker",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "ambient rgb led",
|
|
"room": null,
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.ambient_rgb_led",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "room x pir motion sensor",
|
|
"room": "room_x",
|
|
"type": "alarm_control_panel",
|
|
"id": {
|
|
"entity_id": "alarm_control_panel.room_x_pir_motion_sensor",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "alarm state visual tts indication no helpers",
|
|
"room": null,
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.alarm_state_visual_tts_indication_no_helpers",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "text to speech google en com",
|
|
"room": null,
|
|
"type": "tts",
|
|
"id": {
|
|
"entity_id": "tts.google_en_com",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "Room X Lights On for 1m30s",
|
|
"automation": "- alias: Room X Lights On for 1m30s\n triggers:\n - platform: event\n event_type: sia_event\n event_data:\n code: BA\n ri: '8'\n conditions:\n - condition: state\n entity_id: light.room_x_lights\n state: 'off'\n actions:\n - action: light.turn_on\n target:\n entity_id: light.room_x_lights\n - delay:\n hours: 0\n minutes: 1\n seconds: 30\n - action: light.turn_off\n target:\n entity_id: light.room_x_lights\n mode: single",
|
|
"config": [
|
|
{
|
|
"name": "room x lights",
|
|
"room": "room_x",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.room_x_lights",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
}
|
|
] |