AutomationDataset/rohankapoorcom/description-ready.json

2078 lines
121 KiB
JSON

[
{
"id": "activate_amars_bathroom_fan_timer",
"automation": "- id: activate_amars_bathroom_fan_timer\n alias: Activate Amar's Bathroom Fan Timer\n triggers:\n - trigger: state\n entity_id: switch.amar_bathroom_fan\n to: 'on'\n actions:\n - action: timer.start\n entity_id: timer.amar_bathroom_fan_timer\n data:\n duration: 1200",
"config": [
{
"name": "Amar bathroom fan",
"room": "bathroom",
"type": "switch",
"id": {
"entity_id": "switch.amar_bathroom_fan",
"device_id": null
}
},
{
"name": "Amar bathroom fan timer",
"room": "bathroom",
"type": "timer",
"id": {
"entity_id": "timer.amar_bathroom_fan_timer",
"device_id": null
}
}
]
},
{
"id": "deactivate_amars_bathroom_fan_timer",
"automation": "- id: deactivate_amars_bathroom_fan_timer\n alias: Deactivate Amar's Bathroom Fan Timer\n triggers:\n - trigger: state\n entity_id: switch.amar_bathroom_fan\n to: 'off'\n actions:\n - action: timer.cancel\n entity_id: timer.amar_bathroom_fan_timer",
"config": [
{
"name": "Amar bathroom fan",
"room": "bathroom",
"type": "switch",
"id": {
"entity_id": "switch.amar_bathroom_fan",
"device_id": null
}
},
{
"name": "Amar bathroom fan timer",
"room": "bathroom",
"type": "timer",
"id": {
"entity_id": "timer.amar_bathroom_fan_timer",
"device_id": null
}
}
]
},
{
"id": "deactivate_amars_bathroom_fan_when_timer_finishes",
"automation": "- id: deactivate_amars_bathroom_fan_when_timer_finishes\n alias: Deactivate Amar's Bathroom Fan when Timer Finishes\n triggers:\n - trigger: event\n event_type: timer.finished\n event_data:\n entity_id: timer.amar_bathroom_fan_timer\n actions:\n - action: switch.turn_off\n entity_id: switch.amar_bathroom_fan",
"config": [
{
"name": "Amar bathroom fan",
"room": "bathroom",
"type": "switch",
"id": {
"entity_id": "switch.amar_bathroom_fan",
"device_id": null
}
},
{
"name": "Amar bathroom fan timer",
"room": "bathroom",
"type": "timer",
"id": {
"entity_id": "timer.amar_bathroom_fan_timer",
"device_id": null
}
}
]
},
{
"id": "activate_guest_bathroom_fan_timer",
"automation": "- id: activate_guest_bathroom_fan_timer\n alias: Activate Guest Bathroom Fan Timer\n triggers:\n - trigger: state\n entity_id: switch.guest_bathroom_fan\n to: 'on'\n actions:\n - action: timer.start\n entity_id: timer.guest_bathroom_fan_timer\n data:\n duration: 1200",
"config": [
{
"name": "Guest bathroom fan",
"room": "bathroom",
"type": "switch",
"id": {
"entity_id": "switch.guest_bathroom_fan",
"device_id": null
}
},
{
"name": "Guest bathroom fan timer",
"room": "bathroom",
"type": "timer",
"id": {
"entity_id": "timer.guest_bathroom_fan_timer",
"device_id": null
}
}
]
},
{
"id": "deactivate_guest_bathroom_fan_timer",
"automation": "- id: deactivate_guest_bathroom_fan_timer\n alias: Deactivate Guest Bathroom Fan Timer\n triggers:\n - trigger: state\n entity_id: switch.guest_bathroom_fan\n to: 'off'\n actions:\n - action: timer.cancel\n entity_id: timer.guest_bathroom_fan_timer",
"config": [
{
"name": "Guest bathroom fan",
"room": "bathroom",
"type": "switch",
"id": {
"entity_id": "switch.guest_bathroom_fan",
"device_id": null
}
},
{
"name": "Guest bathroom fan timer",
"room": "bathroom",
"type": "timer",
"id": {
"entity_id": "timer.guest_bathroom_fan_timer",
"device_id": null
}
}
]
},
{
"id": "deactivate_guest_bathroom_fan_when_timer_finishes",
"automation": "- id: deactivate_guest_bathroom_fan_when_timer_finishes\n alias: Deactivate Guest Bathroom Fan when Timer Finishes\n triggers:\n - trigger: event\n event_type: timer.finished\n event_data:\n entity_id: timer.guest_bathroom_fan_timer\n actions:\n - action: switch.turn_off\n entity_id: switch.guest_bathroom_fan",
"config": [
{
"name": "Guest bathroom fan",
"room": "bathroom",
"type": "switch",
"id": {
"entity_id": "switch.guest_bathroom_fan",
"device_id": null
}
},
{
"name": "Guest bathroom fan timer",
"room": "bathroom",
"type": "timer",
"id": {
"entity_id": "timer.guest_bathroom_fan_timer",
"device_id": null
}
}
]
},
{
"id": "increment_amars_roof_extraction_fan_users",
"automation": "- id: increment_amars_roof_extraction_fan_users\n alias: Increment Amar's Roof Extraction Fan Users\n triggers:\n - trigger: state\n entity_id:\n - switch.amar_bathroom_fan\n - switch.guest_bathroom_fan\n to: 'on'\n actions:\n - action: input_number.set_value\n data_template:\n entity_id: input_number.amar_roof_extraction_fan_users\n value: \"{% if states('input_number.amar_roof_extraction_fan_users') | int\\n\\\n \\ < state_attr('input_number.amar_roof_extraction_fan_users', 'max') %}\\n\\\n \\ {{ (states('input_number.amar_roof_extraction_fan_users') | int) + 1 }}\\n\\\n {% else %}\\n {{ states('input_number.amar_roof_extraction_fan_users') | int\\\n \\ }}\\n{% endif %}\\n\"",
"config": [
{
"name": "Amar bathroom fan",
"room": "bathroom",
"type": "switch",
"id": {
"entity_id": "switch.amar_bathroom_fan",
"device_id": null
}
},
{
"name": "Guest bathroom fan",
"room": "bathroom",
"type": "switch",
"id": {
"entity_id": "switch.guest_bathroom_fan",
"device_id": null
}
},
{
"name": "Amar roof extraction fan users",
"room": null,
"type": "input_number",
"id": {
"entity_id": "input_number.amar_roof_extraction_fan_users",
"device_id": null
}
}
]
},
{
"id": "decrement_amars_roof_extraction_fan_users",
"automation": "- id: decrement_amars_roof_extraction_fan_users\n alias: Decrement Amar's Roof Extraction Fan Users\n triggers:\n - trigger: state\n entity_id:\n - switch.amar_bathroom_fan\n - switch.guest_bathroom_fan\n to: 'off'\n actions:\n - action: input_number.set_value\n data_template:\n entity_id: input_number.amar_roof_extraction_fan_users\n value: \"{% if states('input_number.amar_roof_extraction_fan_users') | int\\n\\\n \\ > state_attr('input_number.amar_roof_extraction_fan_users', 'min') %}\\n\\\n \\ {{ (states('input_number.amar_roof_extraction_fan_users') | int) - 1 }}\\n\\\n {% else %}\\n {{ states('input_number.amar_roof_extraction_fan_users') | int\\\n \\ }}\\n{% endif %}\\n\"",
"config": [
{
"name": "Amar bathroom fan",
"room": "bathroom",
"type": "switch",
"id": {
"entity_id": "switch.amar_bathroom_fan",
"device_id": null
}
},
{
"name": "Guest bathroom fan",
"room": "bathroom",
"type": "switch",
"id": {
"entity_id": "switch.guest_bathroom_fan",
"device_id": null
}
},
{
"name": "Amar roof extraction fan users",
"room": null,
"type": "input_number",
"id": {
"entity_id": "input_number.amar_roof_extraction_fan_users",
"device_id": null
}
}
]
},
{
"id": "activate_amars_roof_extraction_fan",
"automation": "- id: activate_amars_roof_extraction_fan\n alias: Activate Amar's Roof Extraction Fan\n triggers:\n - trigger: state\n entity_id: input_number.amar_roof_extraction_fan_users\n actions:\n - action: switch.turn_on\n entity_id: switch.amar_roof_extraction_fan\n conditions:\n - condition: numeric_state\n entity_id: input_number.amar_roof_extraction_fan_users\n value_template: '{{ states(''input_number.amar_roof_extraction_fan_users'') |\n int }}'\n above: 0",
"config": [
{
"name": "Amar roof extraction fan users",
"room": null,
"type": "input_number",
"id": {
"entity_id": "input_number.amar_roof_extraction_fan_users",
"device_id": null
}
},
{
"name": "Amar roof extraction fan",
"room": null,
"type": "switch",
"id": {
"entity_id": "switch.amar_roof_extraction_fan",
"device_id": null
}
}
]
},
{
"id": "deactivate_amars_roof_extraction_fan",
"automation": "- id: deactivate_amars_roof_extraction_fan\n alias: Deactivate Amar's Roof Extraction Fan\n triggers:\n - trigger: state\n entity_id: input_number.amar_roof_extraction_fan_users\n actions:\n - action: switch.turn_off\n entity_id: switch.amar_roof_extraction_fan\n conditions:\n - condition: numeric_state\n entity_id: input_number.amar_roof_extraction_fan_users\n value_template: '{{ states(''input_number.amar_roof_extraction_fan_users'') |\n int }}'\n below: 1",
"config": [
{
"name": "Amar roof extraction fan users",
"room": null,
"type": "input_number",
"id": {
"entity_id": "input_number.amar_roof_extraction_fan_users",
"device_id": null
}
},
{
"name": "Amar roof extraction fan",
"room": null,
"type": "switch",
"id": {
"entity_id": "switch.amar_roof_extraction_fan",
"device_id": null
}
}
]
},
{
"id": "28dd9f30-e3e5-4071-900c-3a15a30fc16f",
"automation": "- id: 28dd9f30-e3e5-4071-900c-3a15a30fc16f\n alias: Manage the Family Room Roller Shades\n description: Automatically open/close the Family Room Roller Shades based on the\n Sun Position\n triggers:\n - trigger: sun\n event: sunset\n - trigger: sun\n event: sunrise\n offset: '+4:00:00'\n - trigger: homeassistant\n event: start\n - trigger: event\n event_type: automation_reloaded\n actions:\n - choose:\n - alias: If it's after sunset or before sunrise, then close the shades.\n conditions:\n - condition: or\n conditions:\n - condition: sun\n after: sunset\n - condition: sun\n before: sunrise\n before_offset: '+1:30:00'\n sequence:\n - action: cover.close_cover\n target:\n entity_id: cover.family_room_shades\n - alias: If it's 4 hours after sunrise, then open the shade.\n conditions:\n - condition: sun\n after: sunrise\n after_offset: '+4:00:00'\n sequence:\n - action: cover.open_cover\n target:\n entity_id: cover.family_room_shades\n mode: single",
"config": [
{
"name": "Family room shades",
"room": "family_room",
"type": "cover",
"id": {
"entity_id": "cover.family_room_shades",
"device_id": null
}
}
]
},
{
"id": "9b1748d1-7cf1-4459-bb17-2936820e333f",
"automation": "- id: 9b1748d1-7cf1-4459-bb17-2936820e333f\n alias: Print Left Label\n triggers:\n - trigger: state\n entity_id: input_button.print_left_label\n actions:\n - action: shell_command.print_left_label\n data:\n content: \"{{ states('input_text.label_text_first') }} {%- if states('input_text.label_text_second')\\\n \\ != \\\"\\\" -%}\\n \\\\n{{ states('input_text.label_text_second') }}\\n{%- endif\\\n \\ -%} {%- if states('input_text.label_text_third') != \\\"\\\" -%}\\n \\\\n{{ states('input_text.label_text_third')\\\n \\ }}\\n{%- endif -%}\\n\"\n copies: '{{ states(''input_number.label_copies'') | round(0) }}'",
"config": [
{
"name": "Print left label button",
"room": null,
"type": "input_button",
"id": {
"entity_id": "input_button.print_left_label",
"device_id": null
}
},
{
"name": "Label text first",
"room": null,
"type": "input_text",
"id": {
"entity_id": "input_text.label_text_first",
"device_id": null
}
},
{
"name": "Label text second",
"room": null,
"type": "input_text",
"id": {
"entity_id": "input_text.label_text_second",
"device_id": null
}
},
{
"name": "Label text third",
"room": null,
"type": "input_text",
"id": {
"entity_id": "input_text.label_text_third",
"device_id": null
}
},
{
"name": "Label copies",
"room": null,
"type": "input_number",
"id": {
"entity_id": "input_number.label_copies",
"device_id": null
}
},
{
"name": "Label text",
"room": null,
"type": "input_text",
"id": {
"entity_id": "input_text.label_text",
"device_id": null
}
}
]
},
{
"id": "e94111fb-6aa4-463a-9ac6-5e6020ecdfe5",
"automation": "- id: e94111fb-6aa4-463a-9ac6-5e6020ecdfe5\n alias: Print Right Label\n triggers:\n - trigger: state\n entity_id: input_button.print_right_label\n actions:\n - action: shell_command.print_right_label\n data:\n content: \"{{ states('input_text.label_text_first') }} {%- if states('input_text.label_text_second')\\\n \\ != \\\"\\\" -%}\\n \\\\n{{ states('input_text.label_text_second') }}\\n{%- endif\\\n \\ -%} {%- if states('input_text.label_text_third') != \\\"\\\" -%}\\n \\\\n{{ states('input_text.label_text_third')\\\n \\ }}\\n{%- endif -%}\\n\"\n copies: '{{ states(''input_number.label_copies'') | round(0) }}'",
"config": [
{
"name": "Print right label button",
"room": null,
"type": "input_button",
"id": {
"entity_id": "input_button.print_right_label",
"device_id": null
}
},
{
"name": "Label text first",
"room": null,
"type": "input_text",
"id": {
"entity_id": "input_text.label_text_first",
"device_id": null
}
},
{
"name": "Label text second",
"room": null,
"type": "input_text",
"id": {
"entity_id": "input_text.label_text_second",
"device_id": null
}
},
{
"name": "Label text third",
"room": null,
"type": "input_text",
"id": {
"entity_id": "input_text.label_text_third",
"device_id": null
}
},
{
"name": "Label copies",
"room": null,
"type": "input_number",
"id": {
"entity_id": "input_number.label_copies",
"device_id": null
}
},
{
"name": "Label text",
"room": null,
"type": "input_text",
"id": {
"entity_id": "input_text.label_text",
"device_id": null
}
}
]
},
{
"id": "activate_master_bathroom_wc_fan_timer",
"automation": "- id: activate_master_bathroom_wc_fan_timer\n alias: Activate Master Bathroom WC Fan Timer\n triggers:\n - trigger: state\n entity_id: switch.master_bathroom_wc_fan\n to: 'on'\n actions:\n - action: timer.start\n entity_id: timer.master_bathroom_wc_fan_timer\n data:\n duration: 1200",
"config": [
{
"name": "Master bathroom WC fan",
"room": "bathroom",
"type": "switch",
"id": {
"entity_id": "switch.master_bathroom_wc_fan",
"device_id": null
}
},
{
"name": "Master bathroom WC fan timer",
"room": "bathroom",
"type": "timer",
"id": {
"entity_id": "timer.master_bathroom_wc_fan_timer",
"device_id": null
}
}
]
},
{
"id": "deactivate_master_bathroom_wc_fan_timer",
"automation": "- id: deactivate_master_bathroom_wc_fan_timer\n alias: Deactivate Master Bathroom WC Fan Timer\n triggers:\n - trigger: state\n entity_id: switch.master_bathroom_wc_fan\n to: 'off'\n actions:\n - action: timer.cancel\n entity_id: timer.master_bathroom_wc_fan_timer",
"config": [
{
"name": "Master bathroom WC fan",
"room": "bathroom",
"type": "switch",
"id": {
"entity_id": "switch.master_bathroom_wc_fan",
"device_id": null
}
},
{
"name": "Master bathroom WC fan timer",
"room": "bathroom",
"type": "timer",
"id": {
"entity_id": "timer.master_bathroom_wc_fan_timer",
"device_id": null
}
}
]
},
{
"id": "deactivate_master_bathroom_wc_fan_when_timer_finishes",
"automation": "- id: deactivate_master_bathroom_wc_fan_when_timer_finishes\n alias: Deactivate Master Bathroom WC Fan when Timer Finishes\n triggers:\n - trigger: event\n event_type: timer.finished\n event_data:\n entity_id: timer.master_bathroom_wc_fan_timer\n actions:\n - action: switch.turn_off\n entity_id: switch.master_bathroom_wc_fan",
"config": [
{
"name": "Master bathroom WC fan",
"room": "bathroom",
"type": "switch",
"id": {
"entity_id": "switch.master_bathroom_wc_fan",
"device_id": null
}
},
{
"name": "Master bathroom WC fan timer",
"room": "bathroom",
"type": "timer",
"id": {
"entity_id": "timer.master_bathroom_wc_fan_timer",
"device_id": null
}
}
]
},
{
"id": "activate_master_bathroom_shower_fan_timer",
"automation": "- id: activate_master_bathroom_shower_fan_timer\n alias: Activate Master Bathroom Shower Fan Timer\n triggers:\n - trigger: state\n entity_id: switch.master_bathroom_shower_fan\n to: 'on'\n actions:\n - action: timer.start\n entity_id: timer.master_bathroom_shower_fan_timer\n data:\n duration: 1200",
"config": [
{
"name": "Master bathroom shower fan",
"room": "bathroom",
"type": "switch",
"id": {
"entity_id": "switch.master_bathroom_shower_fan",
"device_id": null
}
},
{
"name": "Master bathroom shower fan timer",
"room": "bathroom",
"type": "timer",
"id": {
"entity_id": "timer.master_bathroom_shower_fan_timer",
"device_id": null
}
}
]
},
{
"id": "deactivate_master_bathroom_shower_fan_timer",
"automation": "- id: deactivate_master_bathroom_shower_fan_timer\n alias: Deactivate Master Bathroom Shower Fan Timer\n triggers:\n - trigger: state\n entity_id: switch.master_bathroom_shower_fan\n to: 'off'\n actions:\n - action: timer.cancel\n entity_id: timer.master_bathroom_shower_fan_timer",
"config": [
{
"name": "Master bathroom shower fan",
"room": "bathroom",
"type": "switch",
"id": {
"entity_id": "switch.master_bathroom_shower_fan",
"device_id": null
}
},
{
"name": "Master bathroom shower fan timer",
"room": "bathroom",
"type": "timer",
"id": {
"entity_id": "timer.master_bathroom_shower_fan_timer",
"device_id": null
}
}
]
},
{
"id": "deactivate_master_bathroom_shower_fan_when_timer_finishes",
"automation": "- id: deactivate_master_bathroom_shower_fan_when_timer_finishes\n alias: Deactivate Master Bathroom Shower Fan when Timer Finishes\n triggers:\n - trigger: event\n event_type: timer.finished\n event_data:\n entity_id: timer.master_bathroom_shower_fan_timer\n actions:\n - action: switch.turn_off\n entity_id: switch.master_bathroom_shower_fan",
"config": [
{
"name": "Master bathroom shower fan",
"room": "bathroom",
"type": "switch",
"id": {
"entity_id": "switch.master_bathroom_shower_fan",
"device_id": null
}
},
{
"name": "Master bathroom shower fan timer",
"room": "bathroom",
"type": "timer",
"id": {
"entity_id": "timer.master_bathroom_shower_fan_timer",
"device_id": null
}
}
]
},
{
"id": "increment_master_bathroom_roof_extraction_fan_users",
"automation": "- id: increment_master_bathroom_roof_extraction_fan_users\n alias: Increment Master Bathroom Roof Extraction Fan Users\n triggers:\n - trigger: state\n entity_id:\n - switch.master_bathroom_wc_fan\n - switch.master_bathroom_shower_fan\n to: 'on'\n actions:\n - action: input_number.set_value\n data_template:\n entity_id: input_number.master_bathroom_roof_extraction_fan_users\n value: \"{% if states('input_number.master_bathroom_roof_extraction_fan_users')\\\n \\ | int\\n < state_attr('input_number.master_bathroom_roof_extraction_fan_users',\\\n \\ 'max') %}\\n {{ (states('input_number.master_bathroom_roof_extraction_fan_users')\\\n \\ | int) + 1 }}\\n{% else %}\\n {{ states('input_number.master_bathroom_roof_extraction_fan_users')\\\n \\ | int }}\\n{% endif %}\\n\"",
"config": [
{
"name": "Master bathroom WC fan",
"room": "bathroom",
"type": "switch",
"id": {
"entity_id": "switch.master_bathroom_wc_fan",
"device_id": null
}
},
{
"name": "Master bathroom shower fan",
"room": "bathroom",
"type": "switch",
"id": {
"entity_id": "switch.master_bathroom_shower_fan",
"device_id": null
}
},
{
"name": "Master bathroom roof extraction fan users",
"room": "bathroom",
"type": "input_number",
"id": {
"entity_id": "input_number.master_bathroom_roof_extraction_fan_users",
"device_id": null
}
}
]
},
{
"id": "decrement_master_bathroom_roof_extraction_fan_users",
"automation": "- id: decrement_master_bathroom_roof_extraction_fan_users\n alias: Decrement Master Bathroom Roof Extraction Fan Users\n triggers:\n - trigger: state\n entity_id:\n - switch.master_bathroom_wc_fan\n - switch.master_bathroom_shower_fan\n to: 'off'\n actions:\n - action: input_number.set_value\n data_template:\n entity_id: input_number.master_bathroom_roof_extraction_fan_users\n value: \"{% if states('input_number.master_bathroom_roof_extraction_fan_users')\\\n \\ | int\\n > state_attr('input_number.master_bathroom_roof_extraction_fan_users',\\\n \\ 'min') %}\\n {{ (states('input_number.master_bathroom_roof_extraction_fan_users')\\\n \\ | int) - 1 }}\\n{% else %}\\n {{ states('input_number.master_bathroom_roof_extraction_fan_users')\\\n \\ | int }}\\n{% endif %}\\n\"",
"config": [
{
"name": "Master bathroom WC fan",
"room": "bathroom",
"type": "switch",
"id": {
"entity_id": "switch.master_bathroom_wc_fan",
"device_id": null
}
},
{
"name": "Master bathroom shower fan",
"room": "bathroom",
"type": "switch",
"id": {
"entity_id": "switch.master_bathroom_shower_fan",
"device_id": null
}
},
{
"name": "Master bathroom roof extraction fan users",
"room": "bathroom",
"type": "input_number",
"id": {
"entity_id": "input_number.master_bathroom_roof_extraction_fan_users",
"device_id": null
}
}
]
},
{
"id": "activate_master_bathroom_roof_extraction_fan",
"automation": "- id: activate_master_bathroom_roof_extraction_fan\n alias: Activate Master Bathroom Roof Extraction Fan\n triggers:\n - trigger: state\n entity_id: input_number.master_bathroom_roof_extraction_fan_users\n actions:\n - action: switch.turn_on\n entity_id: switch.master_bathroom_roof_extraction_fan\n conditions:\n - condition: numeric_state\n entity_id: input_number.master_bathroom_roof_extraction_fan_users\n value_template: '{{ states(''input_number.master_bathroom_roof_extraction_fan_users'')\n | int }}'\n above: 0",
"config": [
{
"name": "Master bathroom roof extraction fan users",
"room": "bathroom",
"type": "input_number",
"id": {
"entity_id": "input_number.master_bathroom_roof_extraction_fan_users",
"device_id": null
}
},
{
"name": "Master bathroom roof extraction fan",
"room": "bathroom",
"type": "switch",
"id": {
"entity_id": "switch.master_bathroom_roof_extraction_fan",
"device_id": null
}
}
]
},
{
"id": "deactivate_master_bathroom_roof_extraction_fan",
"automation": "- id: deactivate_master_bathroom_roof_extraction_fan\n alias: Deactivate Master Bathroom Roof Extraction Fan\n triggers:\n - trigger: state\n entity_id: input_number.master_bathroom_roof_extraction_fan_users\n actions:\n - action: switch.turn_off\n entity_id: switch.master_bathroom_roof_extraction_fan\n conditions:\n - condition: numeric_state\n entity_id: input_number.master_bathroom_roof_extraction_fan_users\n value_template: '{{ states(''input_number.master_bathroom_roof_extraction_fan_users'')\n | int }}'\n below: 1",
"config": [
{
"name": "Master bathroom roof extraction fan users",
"room": "bathroom",
"type": "input_number",
"id": {
"entity_id": "input_number.master_bathroom_roof_extraction_fan_users",
"device_id": null
}
},
{
"name": "Master bathroom roof extraction fan",
"room": "bathroom",
"type": "switch",
"id": {
"entity_id": "switch.master_bathroom_roof_extraction_fan",
"device_id": null
}
}
]
},
{
"id": "eb962a09-eb64-4a54-bd9f-a8ee12e1493c",
"automation": "- id: eb962a09-eb64-4a54-bd9f-a8ee12e1493c\n alias: Manage the Garage Exterior Lights\n triggers:\n - trigger: state\n entity_id: sun.sun\n to: below_horizon\n - trigger: state\n entity_id: sun.sun\n to: above_horizon\n - trigger: homeassistant\n event: start\n - trigger: event\n event_type: automation_reloaded\n actions:\n - choose:\n - alias: If it's after sunset or before sunrise, then turn on the lights.\n conditions:\n - condition: or\n conditions:\n - condition: sun\n after: sunset\n after_offset: -0:15:00\n - condition: sun\n before: sunrise\n sequence:\n - action: light.turn_on\n target:\n entity_id: light.garage_exterior_lights\n - alias: If it's after sunrise, then turn off the lights.\n conditions:\n - condition: sun\n after: sunrise\n sequence:\n - action: light.turn_off\n target:\n entity_id: light.garage_exterior_lights",
"config": [
{
"name": "Sun",
"room": null,
"type": "sun",
"id": {
"entity_id": "sun.sun",
"device_id": null
}
},
{
"name": "Garage exterior lights",
"room": "garage",
"type": "light",
"id": {
"entity_id": "light.garage_exterior_lights",
"device_id": null
}
}
]
},
{
"id": "2453b77a-30be-441b-a355-74a77268b768",
"automation": "- id: 2453b77a-30be-441b-a355-74a77268b768\n alias: Manage the Front Door Exterior Lights\n triggers:\n - trigger: state\n entity_id: sun.sun\n to: below_horizon\n - trigger: state\n entity_id: sun.sun\n to: above_horizon\n - trigger: homeassistant\n event: start\n - trigger: event\n event_type: automation_reloaded\n actions:\n - choose:\n - alias: If it's after sunset or before sunrise, then turn on the lights.\n conditions:\n - condition: or\n conditions:\n - condition: sun\n after: sunset\n after_offset: -0:15:00\n - condition: sun\n before: sunrise\n sequence:\n - action: light.turn_on\n target:\n entity_id: light.front_door_exterior_lights\n - alias: If it's after sunrise, then turn off the lights.\n conditions:\n - condition: sun\n after: sunrise\n sequence:\n - action: light.turn_off\n target:\n entity_id: light.front_door_exterior_lights",
"config": [
{
"name": "Sun",
"room": null,
"type": "sun",
"id": {
"entity_id": "sun.sun",
"device_id": null
}
},
{
"name": "Front door exterior lights",
"room": "front_door",
"type": "light",
"id": {
"entity_id": "light.front_door_exterior_lights",
"device_id": null
}
}
]
},
{
"id": "ec2ae516-1e3d-4134-9f2a-6d67c12d7de9",
"automation": "- id: ec2ae516-1e3d-4134-9f2a-6d67c12d7de9\n alias: Manage the Garden Exterior Lights\n triggers:\n - trigger: state\n entity_id: sun.sun\n to: below_horizon\n - trigger: state\n entity_id: sun.sun\n to: above_horizon\n - trigger: homeassistant\n event: start\n - trigger: event\n event_type: automation_reloaded\n actions:\n - choose:\n - alias: If it's after sunset or before sunrise, then turn on the lights.\n conditions:\n - condition: or\n conditions:\n - condition: sun\n after: sunset\n after_offset: -0:15:00\n - condition: sun\n before: sunrise\n sequence:\n - action: light.turn_on\n target:\n entity_id:\n - light.exterior_lights_cherry_tree\n - light.exterior_lights_maple_tree\n - light.exterior_lights_driveway_end\n - light.exterior_lights_walkway_lights\n - light.exterior_lights_bay_window_conifers\n - light.exterior_lights_forsythia_bed\n - light.exterior_lights_back_woods\n - alias: If it's after sunrise, then turn off the lights.\n conditions:\n - condition: sun\n after: sunrise\n sequence:\n - action: light.turn_off\n target:\n entity_id:\n - light.exterior_lights_cherry_tree\n - light.exterior_lights_maple_tree\n - light.exterior_lights_driveway_end\n - light.exterior_lights_walkway_lights\n - light.exterior_lights_bay_window_conifers\n - light.exterior_lights_forsythia_bed\n - light.exterior_lights_back_woods",
"config": [
{
"name": "Sun",
"room": null,
"type": "sun",
"id": {
"entity_id": "sun.sun",
"device_id": null
}
},
{
"name": "Exterior lights cherry tree",
"room": "exterior",
"type": "light",
"id": {
"entity_id": "light.exterior_lights_cherry_tree",
"device_id": null
}
},
{
"name": "Exterior lights maple tree",
"room": "exterior",
"type": "light",
"id": {
"entity_id": "light.exterior_lights_maple_tree",
"device_id": null
}
},
{
"name": "Exterior lights driveway end",
"room": "exterior",
"type": "light",
"id": {
"entity_id": "light.exterior_lights_driveway_end",
"device_id": null
}
},
{
"name": "Exterior lights walkway lights",
"room": "exterior",
"type": "light",
"id": {
"entity_id": "light.exterior_lights_walkway_lights",
"device_id": null
}
},
{
"name": "Exterior lights bay window conifers",
"room": "exterior",
"type": "light",
"id": {
"entity_id": "light.exterior_lights_bay_window_conifers",
"device_id": null
}
},
{
"name": "Exterior lights forsythia bed",
"room": "exterior",
"type": "light",
"id": {
"entity_id": "light.exterior_lights_forsythia_bed",
"device_id": null
}
},
{
"name": "Exterior lights back woods",
"room": "exterior",
"type": "light",
"id": {
"entity_id": "light.exterior_lights_back_woods",
"device_id": null
}
}
]
},
{
"id": "c1789adb-ff1e-424d-8b85-65f307bf995d",
"automation": "- id: c1789adb-ff1e-424d-8b85-65f307bf995d\n alias: Control the Garage Lights\n mode: restart\n max_exceeded: silent\n triggers:\n - trigger: homeassistant\n event: start\n - trigger: event\n event_type: automation_reloaded\n - trigger: state\n entity_id: cover.anu_garage_door\n from: closed\n to: open\n - trigger: state\n entity_id: cover.rakesh_garage_door\n from: closed\n to: open\n action:\n - choose:\n - alias: If either garage door is open, then turn on the lights.\n conditions:\n - condition: or\n conditions:\n - condition: state\n entity_id: cover.anu_garage_door\n state: open\n - condition: state\n entity_id: cover.rakesh_garage_door\n state: open\n sequence:\n - action: light.turn_on\n target:\n entity_id:\n - light.garage_lights\n - wait_for_trigger:\n - platform: template\n value_template: '{{ is_state(''cover.anu_garage_door'', ''closed'') and\n is_state(''cover.rakesh_garage_door'', ''closed'') }}\n\n '\n continue_on_timeout: false\n - delay:\n minutes: 10\n - service: light.turn_off\n target:\n entity_id:\n - light.garage_lights\n default:\n - service: light.turn_off\n entity_id:\n - light.garage_lights",
"config": [
{
"name": "Anu garage door",
"room": "garage",
"type": "cover",
"id": {
"entity_id": "cover.anu_garage_door",
"device_id": null
}
},
{
"name": "Rakesh garage door",
"room": "garage",
"type": "cover",
"id": {
"entity_id": "cover.rakesh_garage_door",
"device_id": null
}
},
{
"name": "Garage lights",
"room": "garage",
"type": "light",
"id": {
"entity_id": "light.garage_lights",
"device_id": null
}
}
]
},
{
"id": "304cad1d-c405-4479-9177-2beb93c46cae",
"automation": "- id: 304cad1d-c405-4479-9177-2beb93c46cae\n alias: Control the Front Door Lights\n mode: restart\n max_exceeded: silent\n triggers:\n - trigger: homeassistant\n event: start\n - trigger: event\n event_type: automation_reloaded\n - trigger: state\n entity_id: binary_sensor.front_door_motion_sensor\n from: 'off'\n to: 'on'\n actions:\n - choose:\n - alias: If it's dark and there is motion, then turn on the lights.\n conditions:\n - condition: and\n conditions:\n - condition: state\n entity_id: binary_sensor.front_door_motion_sensor\n state: 'on'\n - condition: numeric_state\n entity_id: sensor.garage_entry_motion_sensor_illuminance\n below: 100\n sequence:\n - action: light.turn_on\n target:\n entity_id: light.front_door_lights\n - wait_for_trigger:\n - trigger: template\n value_template: '{{ is_state(''binary_sensor.front_door_motion_sensor'',\n ''off'') }}\n\n '\n continue_on_timeout: false\n - delay:\n minutes: 1\n - action: light.turn_off\n target:\n entity_id: light.front_door_lights\n default:\n - action: light.turn_off\n entity_id: light.front_door_lights",
"config": [
{
"name": "Front door motion sensor",
"room": "front_door",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.front_door_motion_sensor",
"device_id": null
}
},
{
"name": "Garage entry motion sensor illuminance",
"room": "garage",
"type": "sensor",
"id": {
"entity_id": "sensor.garage_entry_motion_sensor_illuminance",
"device_id": null
}
},
{
"name": "Front door lights",
"room": "front_door",
"type": "light",
"id": {
"entity_id": "light.front_door_lights",
"device_id": null
}
}
]
},
{
"id": "keymaster_turn_on_access_limit_LOCKNAME_TEMPLATENUM",
"automation": "- alias: keymaster_turn_on_access_limit_LOCKNAME_TEMPLATENUM\n id: keymaster_turn_on_access_limit_LOCKNAME_TEMPLATENUM\n trigger:\n platform: state\n entity_id: input_number.accesscount_LOCKNAME_TEMPLATENUM\n condition:\n - condition: template\n value_template: '{{ (states(''input_number.accesscount_LOCKNAME_TEMPLATENUM'')\n | int > 0) }}'\n action:\n service: input_boolean.turn_on\n target:\n entity_id: input_boolean.accesslimit_LOCKNAME_TEMPLATENUM",
"config": []
},
{
"id": "keymaster_synchronize_codeslot_LOCKNAME_TEMPLATENUM",
"automation": "- alias: keymaster_synchronize_codeslot_LOCKNAME_TEMPLATENUM\n id: keymaster_synchronize_codeslot_LOCKNAME_TEMPLATENUM\n initial_state: true\n mode: single\n max_exceeded: silent\n trigger:\n - platform: state\n entity_id: binary_sensor.pin_synched_LOCKNAME_TEMPLATENUM\n from: 'on'\n to: 'off'\n condition:\n - condition: template\n value_template: '{{ states(\"sensor.LOCKNAME_code_slot_TEMPLATENUM\") != \"unavailable\"\n }}'\n action:\n - choose:\n - conditions:\n - condition: template\n value_template: '{{ is_state(''binary_sensor.active_LOCKNAME_TEMPLATENUM'',''on'')\n }}'\n sequence:\n - service: keymaster.add_code\n data_template:\n entity_id: LOCKENTITYNAME\n code_slot: '{{ TEMPLATENUM }}'\n usercode: '{{ states(''input_text.LOCKNAME_pin_TEMPLATENUM'').strip() }}'\n - conditions:\n - condition: template\n value_template: '{{ is_state(''binary_sensor.active_LOCKNAME_TEMPLATENUM'',''off'')\n }}'\n sequence:\n - service: keymaster.clear_code\n data_template:\n entity_id: LOCKENTITYNAME\n code_slot: '{{ TEMPLATENUM }}'",
"config": [
{
"name": "Lock Entity",
"room": null,
"type": "lock",
"id": {
"entity_id": "LOCKENTITYNAME",
"device_id": null
}
}
]
},
{
"id": "keymaster_turn_on_access_limit_LOCKNAME_TEMPLATENUM",
"automation": "- alias: keymaster_turn_on_access_limit_LOCKNAME_TEMPLATENUM\n id: keymaster_turn_on_access_limit_LOCKNAME_TEMPLATENUM\n trigger:\n platform: state\n entity_id: input_number.accesscount_LOCKNAME_TEMPLATENUM\n condition:\n - condition: template\n value_template: '{{ (states(''input_number.accesscount_LOCKNAME_TEMPLATENUM'')\n | int > 0) }}'\n action:\n service: input_boolean.turn_on\n target:\n entity_id: input_boolean.accesslimit_LOCKNAME_TEMPLATENUM",
"config": []
},
{
"id": "keymaster_synchronize_codeslot_LOCKNAME_TEMPLATENUM",
"automation": "- alias: keymaster_synchronize_codeslot_LOCKNAME_TEMPLATENUM\n id: keymaster_synchronize_codeslot_LOCKNAME_TEMPLATENUM\n initial_state: true\n mode: single\n max_exceeded: silent\n trigger:\n - platform: state\n entity_id: binary_sensor.pin_synched_LOCKNAME_TEMPLATENUM\n from: 'on'\n to: 'off'\n condition:\n - condition: template\n value_template: '{{ states(\"sensor.LOCKNAME_code_slot_TEMPLATENUM\") != \"unavailable\"\n }}'\n action:\n - choose:\n - conditions:\n - condition: template\n value_template: '{{ is_state(''binary_sensor.active_LOCKNAME_TEMPLATENUM'',''on'')\n }}'\n sequence:\n - service: keymaster.add_code\n data_template:\n entity_id: LOCKENTITYNAME\n code_slot: '{{ TEMPLATENUM }}'\n usercode: '{{ states(''input_text.LOCKNAME_pin_TEMPLATENUM'').strip() }}'\n - conditions:\n - condition: template\n value_template: '{{ is_state(''binary_sensor.active_LOCKNAME_TEMPLATENUM'',''off'')\n }}'\n sequence:\n - service: keymaster.clear_code\n data_template:\n entity_id: LOCKENTITYNAME\n code_slot: '{{ TEMPLATENUM }}'",
"config": [
{
"name": "Lock Entity",
"room": null,
"type": "lock",
"id": {
"entity_id": "LOCKENTITYNAME",
"device_id": null
}
}
]
},
{
"id": "keymaster_override_parent_LOCKNAME_TEMPLATENUM_state_change",
"automation": "- alias: keymaster_override_parent_LOCKNAME_TEMPLATENUM_state_change\n id: keymaster_override_parent_LOCKNAME_TEMPLATENUM_state_change\n trigger:\n entity_id: input_boolean.override_parent_LOCKNAME_TEMPLATENUM\n platform: state\n to: 'off'\n action:\n - service: script.keymaster_LOCKNAME_copy_from_parent_TEMPLATENUM",
"config": [
{
"name": "Keymaster Copy From Parent",
"room": null,
"type": "script",
"id": {
"entity_id": "script.keymaster_LOCKNAME_copy_from_parent_TEMPLATENUM",
"device_id": null
}
}
]
},
{
"id": "keymaster_copy_PARENTLOCK_name_LOCKNAME_TEMPLATENUM",
"automation": "- alias: keymaster_copy_PARENTLOCK_name_LOCKNAME_TEMPLATENUM\n id: keymaster_copy_PARENTLOCK_name_LOCKNAME_TEMPLATENUM\n trigger:\n entity_id: input_text.PARENTLOCK_name_TEMPLATENUM\n platform: state\n condition:\n - condition: state\n entity_id: input_boolean.override_parent_LOCKNAME_TEMPLATENUM\n state: 'off'\n action:\n - service: input_text.set_value\n target:\n entity_id: input_text.LOCKNAME_name_TEMPLATENUM\n data:\n value: '{{ states(''input_text.PARENTLOCK_name_TEMPLATENUM'') }}'",
"config": []
},
{
"id": "keymaster_copy_PARENTLOCK_pin_LOCKNAME_TEMPLATENUM",
"automation": "- alias: keymaster_copy_PARENTLOCK_pin_LOCKNAME_TEMPLATENUM\n id: keymaster_copy_PARENTLOCK_pin_LOCKNAME_TEMPLATENUM\n trigger:\n entity_id: input_text.PARENTLOCK_pin_TEMPLATENUM\n platform: state\n condition:\n - condition: state\n entity_id: input_boolean.override_parent_LOCKNAME_TEMPLATENUM\n state: 'off'\n action:\n - service: input_text.set_value\n target:\n entity_id: input_text.LOCKNAME_pin_TEMPLATENUM\n data:\n value: '{{ states(''input_text.PARENTLOCK_pin_TEMPLATENUM'') }}'",
"config": []
},
{
"id": "keymaster_copy_PARENTLOCK_enabled_LOCKNAME_TEMPLATENUM",
"automation": "- alias: keymaster_copy_PARENTLOCK_enabled_LOCKNAME_TEMPLATENUM\n id: keymaster_copy_PARENTLOCK_enabled_LOCKNAME_TEMPLATENUM\n trigger:\n entity_id: input_boolean.enabled_PARENTLOCK_TEMPLATENUM\n platform: state\n condition:\n - condition: state\n entity_id: input_boolean.override_parent_LOCKNAME_TEMPLATENUM\n state: 'off'\n action:\n - service_template: \"{% if (states.input_boolean.enabled_PARENTLOCK_TEMPLATENUM.state\\\n \\ == 'on') %}\\n input_boolean.turn_on\\n{% else %}\\n input_boolean.turn_off\\n\\\n {% endif %}\\n\"\n entity_id: input_boolean.enabled_LOCKNAME_TEMPLATENUM",
"config": []
},
{
"id": "keymaster_copy_PARENTLOCK_notify_LOCKNAME_TEMPLATENUM",
"automation": "- alias: keymaster_copy_PARENTLOCK_notify_LOCKNAME_TEMPLATENUM\n id: keymaster_copy_PARENTLOCK_notify_LOCKNAME_TEMPLATENUM\n trigger:\n entity_id: input_boolean.notify_PARENTLOCK_TEMPLATENUM\n platform: state\n condition:\n - condition: state\n entity_id: input_boolean.override_parent_LOCKNAME_TEMPLATENUM\n state: 'off'\n action:\n - service_template: \"{% if (states.input_boolean.notify_PARENTLOCK_TEMPLATENUM.state\\\n \\ == 'on') %}\\n input_boolean.turn_on\\n{% else %}\\n input_boolean.turn_off\\n\\\n {% endif %}\\n\"\n entity_id: input_boolean.notify_LOCKNAME_TEMPLATENUM",
"config": []
},
{
"id": "keymaster_copy_PARENTLOCK_reset_LOCKNAME_TEMPLATENUM",
"automation": "- alias: keymaster_copy_PARENTLOCK_reset_LOCKNAME_TEMPLATENUM\n id: keymaster_copy_PARENTLOCK_reset_LOCKNAME_TEMPLATENUM\n trigger:\n entity_id: input_boolean.reset_codeslot_PARENTLOCK_TEMPLATENUM\n platform: state\n condition:\n - condition: state\n entity_id: input_boolean.override_parent_LOCKNAME_TEMPLATENUM\n state: 'off'\n action:\n - service_template: \"{% if (states.input_boolean.reset_codeslot_PARENTLOCK_TEMPLATENUM.state\\\n \\ == 'on') %}\\n input_boolean.turn_on\\n{% else %}\\n input_boolean.turn_off\\n\\\n {% endif %}\\n\"\n entity_id: input_boolean.reset_codeslot_PARENTLOCK_TEMPLATENUM",
"config": []
},
{
"id": "keymaster_copy_PARENTLOCK_accesslimit_LOCKNAME_TEMPLATENUM",
"automation": "- alias: keymaster_copy_PARENTLOCK_accesslimit_LOCKNAME_TEMPLATENUM\n id: keymaster_copy_PARENTLOCK_accesslimit_LOCKNAME_TEMPLATENUM\n trigger:\n entity_id: input_boolean.accesslimit_PARENTLOCK_TEMPLATENUM\n platform: state\n condition:\n - condition: state\n entity_id: input_boolean.override_parent_LOCKNAME_TEMPLATENUM\n state: 'off'\n action:\n - service_template: \"{% if (states.input_boolean.accesslimit_PARENTLOCK_TEMPLATENUM.state\\\n \\ == 'on') %}\\n input_boolean.turn_on\\n{% else %}\\n input_boolean.turn_off\\n\\\n {% endif %}\\n\"\n entity_id: input_boolean.accesslimit_LOCKNAME_TEMPLATENUM",
"config": []
},
{
"id": "keymaster_copy_PARENTLOCK_accesscount_LOCKNAME_TEMPLATENUM",
"automation": "- alias: keymaster_copy_PARENTLOCK_accesscount_LOCKNAME_TEMPLATENUM\n id: keymaster_copy_PARENTLOCK_accesscount_LOCKNAME_TEMPLATENUM\n trigger:\n entity_id: input_number.accesscount_PARENTLOCK_TEMPLATENUM\n platform: state\n condition:\n - condition: state\n entity_id: input_boolean.override_parent_LOCKNAME_TEMPLATENUM\n state: 'off'\n action:\n - service: input_number.set_value\n entity_id: input_number.accesscount_LOCKNAME_TEMPLATENUM\n data_template:\n value: '{{ states.input_number.accesscount_PARENTLOCK_TEMPLATENUM.state | int\n }}'",
"config": []
},
{
"id": "keymaster_copy_PARENTLOCK_daterange_LOCKNAME_TEMPLATENUM",
"automation": "- alias: keymaster_copy_PARENTLOCK_daterange_LOCKNAME_TEMPLATENUM\n id: keymaster_copy_PARENTLOCK_daterange_LOCKNAME_TEMPLATENUM\n trigger:\n entity_id: input_boolean.daterange_PARENTLOCK_TEMPLATENUM\n platform: state\n condition:\n - condition: state\n entity_id: input_boolean.override_parent_LOCKNAME_TEMPLATENUM\n state: 'off'\n action:\n - service_template: \"{% if (states.input_boolean.daterange_PARENTLOCK_TEMPLATENUM.state\\\n \\ == 'on') %}\\n input_boolean.turn_on\\n{% else %}\\n input_boolean.turn_off\\n\\\n {% endif %}\\n\"\n entity_id: input_boolean.daterange_LOCKNAME_TEMPLATENUM",
"config": []
},
{
"id": "keymaster_copy_PARENTLOCK_start_date_LOCKNAME_TEMPLATENUM",
"automation": "- alias: keymaster_copy_PARENTLOCK_start_date_LOCKNAME_TEMPLATENUM\n id: keymaster_copy_PARENTLOCK_start_date_LOCKNAME_TEMPLATENUM\n trigger:\n entity_id: input_datetime.start_date_PARENTLOCK_TEMPLATENUM\n platform: state\n condition:\n - condition: state\n entity_id: input_boolean.override_parent_LOCKNAME_TEMPLATENUM\n state: 'off'\n action:\n - service: input_datetime.set_datetime\n target:\n entity_id: input_datetime.start_date_LOCKNAME_TEMPLATENUM\n data:\n datetime: '{{ states.input_datetime.start_date_PARENTLOCK_TEMPLATENUM.state\n }}'",
"config": []
},
{
"id": "keymaster_copy_PARENTLOCK_end_date_LOCKNAME_TEMPLATENUM",
"automation": "- alias: keymaster_copy_PARENTLOCK_end_date_LOCKNAME_TEMPLATENUM\n id: keymaster_copy_PARENTLOCK_end_date_LOCKNAME_TEMPLATENUM\n trigger:\n entity_id: input_datetime.end_date_PARENTLOCK_TEMPLATENUM\n platform: state\n condition:\n - condition: state\n entity_id: input_boolean.override_parent_LOCKNAME_TEMPLATENUM\n state: 'off'\n action:\n - service: input_datetime.set_datetime\n target:\n entity_id: input_datetime.end_date_LOCKNAME_TEMPLATENUM\n data:\n datetime: '{{ states.input_datetime.end_date_PARENTLOCK_TEMPLATENUM.state }}'",
"config": []
},
{
"id": "keymaster_copy_PARENTLOCK_sun_LOCKNAME_TEMPLATENUM",
"automation": "- alias: keymaster_copy_PARENTLOCK_sun_LOCKNAME_TEMPLATENUM\n id: keymaster_copy_PARENTLOCK_sun_LOCKNAME_TEMPLATENUM\n trigger:\n entity_id: input_boolean.sun_PARENTLOCK_TEMPLATENUM\n platform: state\n condition:\n - condition: state\n entity_id: input_boolean.override_parent_LOCKNAME_TEMPLATENUM\n state: 'off'\n action:\n - service_template: \"{% if (states.input_boolean.sun_PARENTLOCK_TEMPLATENUM.state\\\n \\ == 'on') %}\\n input_boolean.turn_on\\n{% else %}\\n input_boolean.turn_off\\n\\\n {% endif %}\\n\"\n entity_id: input_boolean.sun_LOCKNAME_TEMPLATENUM",
"config": []
},
{
"id": "keymaster_copy_PARENTLOCK_sun_inc_LOCKNAME_TEMPLATENUM",
"automation": "- alias: keymaster_copy_PARENTLOCK_sun_inc_LOCKNAME_TEMPLATENUM\n id: keymaster_copy_PARENTLOCK_sun_inc_LOCKNAME_TEMPLATENUM\n trigger:\n entity_id: input_boolean.sun_inc_PARENTLOCK_TEMPLATENUM\n platform: state\n condition:\n - condition: state\n entity_id: input_boolean.override_parent_LOCKNAME_TEMPLATENUM\n state: 'off'\n action:\n - service_template: \"{% if (states.input_boolean.sun_inc_PARENTLOCK_TEMPLATENUM.state\\\n \\ == 'on') %}\\n input_boolean.turn_on\\n{% else %}\\n input_boolean.turn_off\\n\\\n {% endif %}\\n\"\n entity_id: input_boolean.sun_inc_LOCKNAME_TEMPLATENUM",
"config": []
},
{
"id": "keymaster_copy_PARENTLOCK_sun_start_date_LOCKNAME_TEMPLATENUM",
"automation": "- alias: keymaster_copy_PARENTLOCK_sun_start_date_LOCKNAME_TEMPLATENUM\n id: keymaster_copy_PARENTLOCK_sun_start_date_LOCKNAME_TEMPLATENUM\n trigger:\n entity_id: input_datetime.sun_start_date_PARENTLOCK_TEMPLATENUM\n platform: state\n condition:\n - condition: state\n entity_id: input_boolean.override_parent_LOCKNAME_TEMPLATENUM\n state: 'off'\n action:\n - service: input_datetime.set_datetime\n target:\n entity_id: input_datetime.sun_start_date_LOCKNAME_TEMPLATENUM\n data:\n time: '{{ states.input_datetime.sun_start_date_PARENTLOCK_TEMPLATENUM.state\n }}'",
"config": []
},
{
"id": "keymaster_copy_PARENTLOCK_sun_end_date_LOCKNAME_TEMPLATENUM",
"automation": "- alias: keymaster_copy_PARENTLOCK_sun_end_date_LOCKNAME_TEMPLATENUM\n id: keymaster_copy_PARENTLOCK_sun_end_date_LOCKNAME_TEMPLATENUM\n trigger:\n entity_id: input_datetime.sun_end_date_PARENTLOCK_TEMPLATENUM\n platform: state\n condition:\n - condition: state\n entity_id: input_boolean.override_parent_LOCKNAME_TEMPLATENUM\n state: 'off'\n action:\n - service: input_datetime.set_datetime\n target:\n entity_id: input_datetime.sun_end_date_LOCKNAME_TEMPLATENUM\n data:\n time: '{{ states.input_datetime.sun_end_date_PARENTLOCK_TEMPLATENUM.state }}'",
"config": []
},
{
"id": "keymaster_copy_PARENTLOCK_mon_LOCKNAME_TEMPLATENUM",
"automation": "- alias: keymaster_copy_PARENTLOCK_mon_LOCKNAME_TEMPLATENUM\n id: keymaster_copy_PARENTLOCK_mon_LOCKNAME_TEMPLATENUM\n trigger:\n entity_id: input_boolean.mon_PARENTLOCK_TEMPLATENUM\n platform: state\n condition:\n - condition: state\n entity_id: input_boolean.override_parent_LOCKNAME_TEMPLATENUM\n state: 'off'\n action:\n - service_template: \"{% if (states.input_boolean.mon_PARENTLOCK_TEMPLATENUM.state\\\n \\ == 'on') %}\\n input_boolean.turn_on\\n{% else %}\\n input_boolean.turn_off\\n\\\n {% endif %}\\n\"\n entity_id: input_boolean.mon_LOCKNAME_TEMPLATENUM",
"config": []
},
{
"id": "keymaster_copy_PARENTLOCK_mon_inc_LOCKNAME_TEMPLATENUM",
"automation": "- alias: keymaster_copy_PARENTLOCK_mon_inc_LOCKNAME_TEMPLATENUM\n id: keymaster_copy_PARENTLOCK_mon_inc_LOCKNAME_TEMPLATENUM\n trigger:\n entity_id: input_boolean.mon_inc_PARENTLOCK_TEMPLATENUM\n platform: state\n condition:\n - condition: state\n entity_id: input_boolean.override_parent_LOCKNAME_TEMPLATENUM\n state: 'off'\n action:\n - service_template: \"{% if (states.input_boolean.mon_inc_PARENTLOCK_TEMPLATENUM.state\\\n \\ == 'on') %}\\n input_boolean.turn_on\\n{% else %}\\n input_boolean.turn_off\\n\\\n {% endif %}\\n\"\n entity_id: input_boolean.mon_inc_LOCKNAME_TEMPLATENUM",
"config": []
},
{
"id": "keymaster_copy_PARENTLOCK_mon_start_date_LOCKNAME_TEMPLATENUM",
"automation": "- alias: keymaster_copy_PARENTLOCK_mon_start_date_LOCKNAME_TEMPLATENUM\n id: keymaster_copy_PARENTLOCK_mon_start_date_LOCKNAME_TEMPLATENUM\n trigger:\n entity_id: input_datetime.mon_start_date_PARENTLOCK_TEMPLATENUM\n platform: state\n condition:\n - condition: state\n entity_id: input_boolean.override_parent_LOCKNAME_TEMPLATENUM\n state: 'off'\n action:\n - service: input_datetime.set_datetime\n target:\n entity_id: input_datetime.mon_start_date_LOCKNAME_TEMPLATENUM\n data:\n time: '{{ states.input_datetime.mon_start_date_PARENTLOCK_TEMPLATENUM.state\n }}'",
"config": []
},
{
"id": "keymaster_copy_PARENTLOCK_mon_end_date_LOCKNAME_TEMPLATENUM",
"automation": "- alias: keymaster_copy_PARENTLOCK_mon_end_date_LOCKNAME_TEMPLATENUM\n id: keymaster_copy_PARENTLOCK_mon_end_date_LOCKNAME_TEMPLATENUM\n trigger:\n entity_id: input_datetime.mon_end_date_PARENTLOCK_TEMPLATENUM\n platform: state\n condition:\n - condition: state\n entity_id: input_boolean.override_parent_LOCKNAME_TEMPLATENUM\n state: 'off'\n action:\n - service: input_datetime.set_datetime\n target:\n entity_id: input_datetime.mon_end_date_LOCKNAME_TEMPLATENUM\n data:\n time: '{{ states.input_datetime.mon_end_date_PARENTLOCK_TEMPLATENUM.state }}'",
"config": []
},
{
"id": "keymaster_copy_PARENTLOCK_tue_LOCKNAME_TEMPLATENUM",
"automation": "- alias: keymaster_copy_PARENTLOCK_tue_LOCKNAME_TEMPLATENUM\n id: keymaster_copy_PARENTLOCK_tue_LOCKNAME_TEMPLATENUM\n trigger:\n entity_id: input_boolean.tue_PARENTLOCK_TEMPLATENUM\n platform: state\n condition:\n - condition: state\n entity_id: input_boolean.override_parent_LOCKNAME_TEMPLATENUM\n state: 'off'\n action:\n - service_template: \"{% if (states.input_boolean.tue_PARENTLOCK_TEMPLATENUM.state\\\n \\ == 'on') %}\\n input_boolean.turn_on\\n{% else %}\\n input_boolean.turn_off\\n\\\n {% endif %}\\n\"\n entity_id: input_boolean.tue_LOCKNAME_TEMPLATENUM",
"config": []
},
{
"id": "keymaster_copy_PARENTLOCK_tue_inc_LOCKNAME_TEMPLATENUM",
"automation": "- alias: keymaster_copy_PARENTLOCK_tue_inc_LOCKNAME_TEMPLATENUM\n id: keymaster_copy_PARENTLOCK_tue_inc_LOCKNAME_TEMPLATENUM\n trigger:\n entity_id: input_boolean.tue_inc_PARENTLOCK_TEMPLATENUM\n platform: state\n condition:\n - condition: state\n entity_id: input_boolean.override_parent_LOCKNAME_TEMPLATENUM\n state: 'off'\n action:\n - service_template: \"{% if (states.input_boolean.tue_inc_PARENTLOCK_TEMPLATENUM.state\\\n \\ == 'on') %}\\n input_boolean.turn_on\\n{% else %}\\n input_boolean.turn_off\\n\\\n {% endif %}\\n\"\n entity_id: input_boolean.tue_inc_LOCKNAME_TEMPLATENUM",
"config": []
},
{
"id": "keymaster_copy_PARENTLOCK_tue_start_date_LOCKNAME_TEMPLATENUM",
"automation": "- alias: keymaster_copy_PARENTLOCK_tue_start_date_LOCKNAME_TEMPLATENUM\n id: keymaster_copy_PARENTLOCK_tue_start_date_LOCKNAME_TEMPLATENUM\n trigger:\n entity_id: input_datetime.tue_start_date_PARENTLOCK_TEMPLATENUM\n platform: state\n condition:\n - condition: state\n entity_id: input_boolean.override_parent_LOCKNAME_TEMPLATENUM\n state: 'off'\n action:\n - service: input_datetime.set_datetime\n target:\n entity_id: input_datetime.tue_start_date_LOCKNAME_TEMPLATENUM\n data:\n time: '{{ states.input_datetime.tue_start_date_PARENTLOCK_TEMPLATENUM.state\n }}'",
"config": []
},
{
"id": "keymaster_copy_PARENTLOCK_tue_end_date_LOCKNAME_TEMPLATENUM",
"automation": "- alias: keymaster_copy_PARENTLOCK_tue_end_date_LOCKNAME_TEMPLATENUM\n id: keymaster_copy_PARENTLOCK_tue_end_date_LOCKNAME_TEMPLATENUM\n trigger:\n entity_id: input_datetime.tue_end_date_PARENTLOCK_TEMPLATENUM\n platform: state\n condition:\n - condition: state\n entity_id: input_boolean.override_parent_LOCKNAME_TEMPLATENUM\n state: 'off'\n action:\n - service: input_datetime.set_datetime\n target:\n entity_id: input_datetime.tue_end_date_LOCKNAME_TEMPLATENUM\n data:\n time: '{{ states.input_datetime.tue_end_date_PARENTLOCK_TEMPLATENUM.state }}'",
"config": []
},
{
"id": "keymaster_copy_PARENTLOCK_wed_LOCKNAME_TEMPLATENUM",
"automation": "- alias: keymaster_copy_PARENTLOCK_wed_LOCKNAME_TEMPLATENUM\n id: keymaster_copy_PARENTLOCK_wed_LOCKNAME_TEMPLATENUM\n trigger:\n entity_id: input_boolean.wed_PARENTLOCK_TEMPLATENUM\n platform: state\n condition:\n - condition: state\n entity_id: input_boolean.override_parent_LOCKNAME_TEMPLATENUM\n state: 'off'\n action:\n - service_template: \"{% if (states.input_boolean.wed_PARENTLOCK_TEMPLATENUM.state\\\n \\ == 'on') %}\\n input_boolean.turn_on\\n{% else %}\\n input_boolean.turn_off\\n\\\n {% endif %}\\n\"\n entity_id: input_boolean.wed_LOCKNAME_TEMPLATENUM",
"config": []
},
{
"id": "keymaster_copy_PARENTLOCK_wed_inc_LOCKNAME_TEMPLATENUM",
"automation": "- alias: keymaster_copy_PARENTLOCK_wed_inc_LOCKNAME_TEMPLATENUM\n id: keymaster_copy_PARENTLOCK_wed_inc_LOCKNAME_TEMPLATENUM\n trigger:\n entity_id: input_boolean.wed_inc_PARENTLOCK_TEMPLATENUM\n platform: state\n condition:\n - condition: state\n entity_id: input_boolean.override_parent_LOCKNAME_TEMPLATENUM\n state: 'off'\n action:\n - service_template: \"{% if (states.input_boolean.wed_inc_PARENTLOCK_TEMPLATENUM.state\\\n \\ == 'on') %}\\n input_boolean.turn_on\\n{% else %}\\n input_boolean.turn_off\\n\\\n {% endif %}\\n\"\n entity_id: input_boolean.wed_inc_LOCKNAME_TEMPLATENUM",
"config": []
},
{
"id": "keymaster_copy_PARENTLOCK_wed_start_date_LOCKNAME_TEMPLATENUM",
"automation": "- alias: keymaster_copy_PARENTLOCK_wed_start_date_LOCKNAME_TEMPLATENUM\n id: keymaster_copy_PARENTLOCK_wed_start_date_LOCKNAME_TEMPLATENUM\n trigger:\n entity_id: input_datetime.wed_start_date_PARENTLOCK_TEMPLATENUM\n platform: state\n condition:\n - condition: state\n entity_id: input_boolean.override_parent_LOCKNAME_TEMPLATENUM\n state: 'off'\n action:\n - service: input_datetime.set_datetime\n target:\n entity_id: input_datetime.wed_start_date_LOCKNAME_TEMPLATENUM\n data:\n time: '{{ states.input_datetime.wed_start_date_PARENTLOCK_TEMPLATENUM.state\n }}'",
"config": []
},
{
"id": "keymaster_copy_PARENTLOCK_wed_end_date_LOCKNAME_TEMPLATENUM",
"automation": "- alias: keymaster_copy_PARENTLOCK_wed_end_date_LOCKNAME_TEMPLATENUM\n id: keymaster_copy_PARENTLOCK_wed_end_date_LOCKNAME_TEMPLATENUM\n trigger:\n entity_id: input_datetime.wed_end_date_PARENTLOCK_TEMPLATENUM\n platform: state\n condition:\n - condition: state\n entity_id: input_boolean.override_parent_LOCKNAME_TEMPLATENUM\n state: 'off'\n action:\n - service: input_datetime.set_datetime\n target:\n entity_id: input_datetime.wed_end_date_LOCKNAME_TEMPLATENUM\n data:\n time: '{{ states.input_datetime.wed_end_date_PARENTLOCK_TEMPLATENUM.state }}'",
"config": []
},
{
"id": "keymaster_copy_PARENTLOCK_thu_LOCKNAME_TEMPLATENUM",
"automation": "- alias: keymaster_copy_PARENTLOCK_thu_LOCKNAME_TEMPLATENUM\n id: keymaster_copy_PARENTLOCK_thu_LOCKNAME_TEMPLATENUM\n trigger:\n entity_id: input_boolean.thu_PARENTLOCK_TEMPLATENUM\n platform: state\n condition:\n - condition: state\n entity_id: input_boolean.override_parent_LOCKNAME_TEMPLATENUM\n state: 'off'\n action:\n - service_template: \"{% if (states.input_boolean.thu_PARENTLOCK_TEMPLATENUM.state\\\n \\ == 'on') %}\\n input_boolean.turn_on\\n{% else %}\\n input_boolean.turn_off\\n\\\n {% endif %}\\n\"\n entity_id: input_boolean.thu_LOCKNAME_TEMPLATENUM",
"config": []
},
{
"id": "keymaster_copy_PARENTLOCK_thu_inc_LOCKNAME_TEMPLATENUM",
"automation": "- alias: keymaster_copy_PARENTLOCK_thu_inc_LOCKNAME_TEMPLATENUM\n id: keymaster_copy_PARENTLOCK_thu_inc_LOCKNAME_TEMPLATENUM\n trigger:\n entity_id: input_boolean.thu_inc_PARENTLOCK_TEMPLATENUM\n platform: state\n condition:\n - condition: state\n entity_id: input_boolean.override_parent_LOCKNAME_TEMPLATENUM\n state: 'off'\n action:\n - service_template: \"{% if (states.input_boolean.thu_inc_PARENTLOCK_TEMPLATENUM.state\\\n \\ == 'on') %}\\n input_boolean.turn_on\\n{% else %}\\n input_boolean.turn_off\\n\\\n {% endif %}\\n\"\n entity_id: input_boolean.thu_inc_LOCKNAME_TEMPLATENUM",
"config": []
},
{
"id": "keymaster_copy_PARENTLOCK_thu_start_date_LOCKNAME_TEMPLATENUM",
"automation": "- alias: keymaster_copy_PARENTLOCK_thu_start_date_LOCKNAME_TEMPLATENUM\n id: keymaster_copy_PARENTLOCK_thu_start_date_LOCKNAME_TEMPLATENUM\n trigger:\n entity_id: input_datetime.thu_start_date_PARENTLOCK_TEMPLATENUM\n platform: state\n condition:\n - condition: state\n entity_id: input_boolean.override_parent_LOCKNAME_TEMPLATENUM\n state: 'off'\n action:\n - service: input_datetime.set_datetime\n target:\n entity_id: input_datetime.thu_start_date_LOCKNAME_TEMPLATENUM\n data:\n time: '{{ states.input_datetime.thu_start_date_PARENTLOCK_TEMPLATENUM.state\n }}'",
"config": []
},
{
"id": "keymaster_copy_PARENTLOCK_thu_end_date_LOCKNAME_TEMPLATENUM",
"automation": "- alias: keymaster_copy_PARENTLOCK_thu_end_date_LOCKNAME_TEMPLATENUM\n id: keymaster_copy_PARENTLOCK_thu_end_date_LOCKNAME_TEMPLATENUM\n trigger:\n entity_id: input_datetime.thu_end_date_PARENTLOCK_TEMPLATENUM\n platform: state\n condition:\n - condition: state\n entity_id: input_boolean.override_parent_LOCKNAME_TEMPLATENUM\n state: 'off'\n action:\n - service: input_datetime.set_datetime\n target:\n entity_id: input_datetime.thu_end_date_LOCKNAME_TEMPLATENUM\n data:\n time: '{{ states.input_datetime.thu_end_date_PARENTLOCK_TEMPLATENUM.state }}'",
"config": []
},
{
"id": "keymaster_copy_PARENTLOCK_fri_LOCKNAME_TEMPLATENUM",
"automation": "- alias: keymaster_copy_PARENTLOCK_fri_LOCKNAME_TEMPLATENUM\n id: keymaster_copy_PARENTLOCK_fri_LOCKNAME_TEMPLATENUM\n trigger:\n entity_id: input_boolean.fri_PARENTLOCK_TEMPLATENUM\n platform: state\n condition:\n - condition: state\n entity_id: input_boolean.override_parent_LOCKNAME_TEMPLATENUM\n state: 'off'\n action:\n - service_template: \"{% if (states.input_boolean.fri_PARENTLOCK_TEMPLATENUM.state\\\n \\ == 'on') %}\\n input_boolean.turn_on\\n{% else %}\\n input_boolean.turn_off\\n\\\n {% endif %}\\n\"\n entity_id: input_boolean.fri_LOCKNAME_TEMPLATENUM",
"config": []
},
{
"id": "keymaster_copy_PARENTLOCK_fri_inc_LOCKNAME_TEMPLATENUM",
"automation": "- alias: keymaster_copy_PARENTLOCK_fri_inc_LOCKNAME_TEMPLATENUM\n id: keymaster_copy_PARENTLOCK_fri_inc_LOCKNAME_TEMPLATENUM\n trigger:\n entity_id: input_boolean.fri_inc_PARENTLOCK_TEMPLATENUM\n platform: state\n condition:\n - condition: state\n entity_id: input_boolean.override_parent_LOCKNAME_TEMPLATENUM\n state: 'off'\n action:\n - service_template: \"{% if (states.input_boolean.fri_inc_PARENTLOCK_TEMPLATENUM.state\\\n \\ == 'on') %}\\n input_boolean.turn_on\\n{% else %}\\n input_boolean.turn_off\\n\\\n {% endif %}\\n\"\n entity_id: input_boolean.fri_inc_LOCKNAME_TEMPLATENUM",
"config": []
},
{
"id": "keymaster_copy_PARENTLOCK_fri_start_date_LOCKNAME_TEMPLATENUM",
"automation": "- alias: keymaster_copy_PARENTLOCK_fri_start_date_LOCKNAME_TEMPLATENUM\n id: keymaster_copy_PARENTLOCK_fri_start_date_LOCKNAME_TEMPLATENUM\n trigger:\n entity_id: input_datetime.fri_start_date_PARENTLOCK_TEMPLATENUM\n platform: state\n condition:\n - condition: state\n entity_id: input_boolean.override_parent_LOCKNAME_TEMPLATENUM\n state: 'off'\n action:\n - service: input_datetime.set_datetime\n target:\n entity_id: input_datetime.fri_start_date_LOCKNAME_TEMPLATENUM\n data:\n time: '{{ states.input_datetime.fri_start_date_PARENTLOCK_TEMPLATENUM.state\n }}'",
"config": []
},
{
"id": "keymaster_copy_PARENTLOCK_fri_end_date_LOCKNAME_TEMPLATENUM",
"automation": "- alias: keymaster_copy_PARENTLOCK_fri_end_date_LOCKNAME_TEMPLATENUM\n id: keymaster_copy_PARENTLOCK_fri_end_date_LOCKNAME_TEMPLATENUM\n trigger:\n entity_id: input_datetime.fri_end_date_PARENTLOCK_TEMPLATENUM\n platform: state\n condition:\n - condition: state\n entity_id: input_boolean.override_parent_LOCKNAME_TEMPLATENUM\n state: 'off'\n action:\n - service: input_datetime.set_datetime\n target:\n entity_id: input_datetime.fri_end_date_LOCKNAME_TEMPLATENUM\n data:\n time: '{{ states.input_datetime.fri_end_date_PARENTLOCK_TEMPLATENUM.state }}'",
"config": []
},
{
"id": "keymaster_copy_PARENTLOCK_sat_LOCKNAME_TEMPLATENUM",
"automation": "- alias: keymaster_copy_PARENTLOCK_sat_LOCKNAME_TEMPLATENUM\n id: keymaster_copy_PARENTLOCK_sat_LOCKNAME_TEMPLATENUM\n trigger:\n entity_id: input_boolean.sat_PARENTLOCK_TEMPLATENUM\n platform: state\n condition:\n - condition: state\n entity_id: input_boolean.override_parent_LOCKNAME_TEMPLATENUM\n state: 'off'\n action:\n - service_template: \"{% if (states.input_boolean.sat_PARENTLOCK_TEMPLATENUM.state\\\n \\ == 'on') %}\\n input_boolean.turn_on\\n{% else %}\\n input_boolean.turn_off\\n\\\n {% endif %}\\n\"\n entity_id: input_boolean.sat_LOCKNAME_TEMPLATENUM",
"config": []
},
{
"id": "keymaster_copy_PARENTLOCK_sat_inc_LOCKNAME_TEMPLATENUM",
"automation": "- alias: keymaster_copy_PARENTLOCK_sat_inc_LOCKNAME_TEMPLATENUM\n id: keymaster_copy_PARENTLOCK_sat_inc_LOCKNAME_TEMPLATENUM\n trigger:\n entity_id: input_boolean.sat_inc_PARENTLOCK_TEMPLATENUM\n platform: state\n condition:\n - condition: state\n entity_id: input_boolean.override_parent_LOCKNAME_TEMPLATENUM\n state: 'off'\n action:\n - service_template: \"{% if (states.input_boolean.sat_inc_PARENTLOCK_TEMPLATENUM.state\\\n \\ == 'on') %}\\n input_boolean.turn_on\\n{% else %}\\n input_boolean.turn_off\\n\\\n {% endif %}\\n\"\n entity_id: input_boolean.sat_inc_LOCKNAME_TEMPLATENUM",
"config": []
},
{
"id": "keymaster_copy_PARENTLOCK_sat_start_date_LOCKNAME_TEMPLATENUM",
"automation": "- alias: keymaster_copy_PARENTLOCK_sat_start_date_LOCKNAME_TEMPLATENUM\n id: keymaster_copy_PARENTLOCK_sat_start_date_LOCKNAME_TEMPLATENUM\n trigger:\n entity_id: input_datetime.sat_start_date_PARENTLOCK_TEMPLATENUM\n platform: state\n condition:\n - condition: state\n entity_id: input_boolean.override_parent_LOCKNAME_TEMPLATENUM\n state: 'off'\n action:\n - service: input_datetime.set_datetime\n target:\n entity_id: input_datetime.sat_start_date_LOCKNAME_TEMPLATENUM\n data:\n time: '{{ states.input_datetime.sat_start_date_PARENTLOCK_TEMPLATENUM.state\n }}'",
"config": []
},
{
"id": "keymaster_copy_PARENTLOCK_sat_end_date_LOCKNAME_TEMPLATENUM",
"automation": "- alias: keymaster_copy_PARENTLOCK_sat_end_date_LOCKNAME_TEMPLATENUM\n id: keymaster_copy_PARENTLOCK_sat_end_date_LOCKNAME_TEMPLATENUM\n trigger:\n entity_id: input_datetime.sat_end_date_PARENTLOCK_TEMPLATENUM\n platform: state\n condition:\n - condition: state\n entity_id: input_boolean.override_parent_LOCKNAME_TEMPLATENUM\n state: 'off'\n action:\n - service: input_datetime.set_datetime\n target:\n entity_id: input_datetime.sat_end_date_LOCKNAME_TEMPLATENUM\n data:\n time: '{{ states.input_datetime.sat_end_date_PARENTLOCK_TEMPLATENUM.state }}'",
"config": []
},
{
"id": "keymaster_CASE_LOCK_NAME Reset Code Slot",
"automation": "- alias: keymaster_CASE_LOCK_NAME Reset Code Slot\n id: keymaster_CASE_LOCK_NAME Reset Code Slot\n trigger:\n entity_id: INPUT_RESET_CODE_SLOT_HEADER\n platform: state\n to: 'on'\n action:\n - service: script.keymaster_LOCKNAME_reset_codeslot\n data_template:\n code_slot: '{{ trigger.entity_id.split(''_'')[-1] }}'",
"config": [
{
"name": "Input Reset Code Slot Header",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "INPUT_RESET_CODE_SLOT_HEADER",
"device_id": null
}
},
{
"name": "Keymaster Reset Codeslot",
"room": null,
"type": "script",
"id": {
"entity_id": "script.keymaster_LOCKNAME_reset_codeslot",
"device_id": null
}
}
]
},
{
"id": "keymaster_CASE_LOCK_NAME Lock Notifications",
"automation": "- alias: keymaster_CASE_LOCK_NAME Lock Notifications\n id: keymaster_CASE_LOCK_NAME Lock Notifications\n trigger:\n platform: event\n event_type: keymaster_lock_state_changed\n event_data:\n lockname: LOCKNAME\n condition:\n - condition: state\n entity_id: input_boolean.LOCKNAME_lock_notifications\n state: 'on'\n action:\n - service: script.keymaster_LOCKNAME_manual_notify\n data_template:\n title: CASE_LOCK_NAME\n message: '{{ trigger.event.data.action_text }} {% if trigger.event.data.code_slot\n > 0 %}({{ trigger.event.data.code_slot_name }}){% endif %}'",
"config": [
{
"name": "Keymaster Manual Notify",
"room": null,
"type": "script",
"id": {
"entity_id": "script.keymaster_LOCKNAME_manual_notify",
"device_id": null
}
}
]
},
{
"id": "keymaster_CASE_LOCK_NAME User Notifications",
"automation": "- alias: keymaster_CASE_LOCK_NAME User Notifications\n id: keymaster_CASE_LOCK_NAME User Notifications\n trigger:\n platform: event\n event_type: keymaster_lock_state_changed\n event_data:\n lockname: LOCKNAME\n condition:\n - condition: template\n value_template: '{{ trigger.event.data.code_slot > 0 }}'\n - condition: template\n value_template: '{{ is_state(''input_boolean.notify_LOCKNAME_'' + trigger.event.data.code_slot\n | string, ''on'') }}'\n - condition: state\n entity_id: input_boolean.LOCKNAME_lock_notifications\n state: 'off'\n action:\n - service: script.keymaster_LOCKNAME_manual_notify\n data_template:\n title: CASE_LOCK_NAME\n message: '{{ trigger.event.data.action_text }} ({{ trigger.event.data.code_slot_name\n }})'",
"config": [
{
"name": "Keymaster Manual Notify",
"room": null,
"type": "script",
"id": {
"entity_id": "script.keymaster_LOCKNAME_manual_notify",
"device_id": null
}
}
]
},
{
"id": "keymaster_CASE_LOCK_NAME Door Open and Close",
"automation": "- alias: keymaster_CASE_LOCK_NAME Door Open and Close\n id: keymaster_CASE_LOCK_NAME Door Open and Close\n trigger:\n entity_id: DOORSENSORENTITYNAME\n platform: state\n condition:\n - condition: state\n entity_id: input_boolean.LOCKNAME_dooraccess_notifications\n state: 'on'\n - condition: template\n value_template: '{{ trigger.from_state.state in (''on'', ''off'') and trigger.to_state.state\n in (''on'', ''off'') }}'\n action:\n - service: script.keymaster_LOCKNAME_manual_notify\n data_template:\n title: CASE_LOCK_NAME\n message: '{% if trigger.to_state.state == ''on'' %}Door Opened{% else %}Door\n Closed{% endif %}'",
"config": [
{
"name": "Door Sensor",
"room": null,
"type": "binary_sensor",
"id": {
"entity_id": "DOORSENSORENTITYNAME",
"device_id": null
}
},
{
"name": "Keymaster Manual Notify",
"room": null,
"type": "script",
"id": {
"entity_id": "script.keymaster_LOCKNAME_manual_notify",
"device_id": null
}
}
]
},
{
"id": "keymaster_CASE_LOCK_NAME Changed Code",
"automation": "- alias: keymaster_CASE_LOCK_NAME Changed Code\n id: keymaster_CASE_LOCK_NAME Changed Code\n trigger:\n entity_id: INPUTLOCKPINHEADER\n platform: state\n condition:\n - condition: template\n value_template: \"{{\\n is_state('input_boolean.enabled_LOCKNAME_' + trigger.entity_id.split('_')[-1],\\\n \\ 'on')\\n and\\n (trigger.from_state.state != trigger.to_state.state)\\n}}\"\n action:\n - service: persistent_notification.create\n data_template:\n title: CASE_LOCK_NAME LOCK MANAGER\n message: '{{ ''You changed the PIN for CASE_LOCK_NAME code slot '' + trigger.entity_id.split(''_'')[-1]\n + ''. Please enable it in order to make it active.''}}'\n - service: input_boolean.turn_off\n data_template:\n entity_id: '{{ ''input_boolean.enabled_LOCKNAME_'' + trigger.entity_id.split(''_'')[-1]\n }}'",
"config": [
{
"name": "Input Lock Pin Header",
"room": null,
"type": "input_text",
"id": {
"entity_id": "INPUTLOCKPINHEADER",
"device_id": null
}
}
]
},
{
"id": "keymaster_CASE_LOCK_NAME Reset",
"automation": "- alias: keymaster_CASE_LOCK_NAME Reset\n id: keymaster_CASE_LOCK_NAME Reset\n trigger:\n entity_id: input_boolean.LOCKNAME_reset_lock\n platform: state\n from: 'off'\n to: 'on'\n action:\n - service: script.keymaster_LOCKNAME_reset_lock\n - service: input_boolean.turn_off\n entity_id: input_boolean.LOCKNAME_reset_lock",
"config": [
{
"name": "Keymaster Reset Lock",
"room": null,
"type": "script",
"id": {
"entity_id": "script.keymaster_LOCKNAME_reset_lock",
"device_id": null
}
}
]
},
{
"id": "keymaster_CASE_LOCK_NAME Decrement Access Count",
"automation": "- alias: keymaster_CASE_LOCK_NAME Decrement Access Count\n id: keymaster_CASE_LOCK_NAME Decrement Access Count\n trigger:\n platform: event\n event_type: keymaster_lock_state_changed\n event_data:\n lockname: LOCKNAME\n condition:\n - condition: template\n value_template: '{{ is_state(''input_boolean.accesslimit_LOCKNAME_'' + trigger.event.data.code_slot\n | string, ''on'') }}'\n - condition: template\n value_template: \"{{\\n trigger.event.data.code_slot > 0\\n and\\n (trigger.event.data.action_code\\\n \\ is undefined or trigger.event.data.action_code in (6, 19))\\n}}\"\n action:\n - service: input_number.decrement\n data_template:\n entity_id: '{{ ''input_number.accesscount_LOCKNAME_'' + trigger.event.data.code_slot\n | string }}'",
"config": []
},
{
"id": "keymaster_LOCKNAME_locked",
"automation": "- alias: keymaster_LOCKNAME_locked\n id: keymaster_LOCKNAME_locked\n trigger:\n entity_id: LOCKENTITYNAME\n platform: state\n to: locked\n action:\n - service: timer.cancel\n entity_id: timer.keymaster_LOCKNAME_autolock",
"config": [
{
"name": "Lock Entity",
"room": null,
"type": "lock",
"id": {
"entity_id": "LOCKENTITYNAME",
"device_id": null
}
}
]
},
{
"id": "keymaster_turn_off_retry_LOCKNAME",
"automation": "- alias: keymaster_turn_off_retry_LOCKNAME\n id: keymaster_turn_off_retry_LOCKNAME\n trigger:\n entity_id: LOCKENTITYNAME\n platform: state\n to: locked\n action:\n - service: input_boolean.turn_off\n target:\n entity_id: input_boolean.keymaster_LOCKNAME_retry",
"config": [
{
"name": "Lock Entity",
"room": null,
"type": "lock",
"id": {
"entity_id": "LOCKENTITYNAME",
"device_id": null
}
}
]
},
{
"id": "keymaster_retry_bolt_closed_LOCKNAME",
"automation": "- alias: keymaster_retry_bolt_closed_LOCKNAME\n id: keymaster_retry_bolt_closed_LOCKNAME\n trigger:\n platform: state\n entity_id: DOORSENSORENTITYNAME\n to: 'off'\n condition:\n - condition: state\n entity_id: input_boolean.keymaster_LOCKNAME_retry\n state: 'on'\n - condition: state\n entity_id: input_boolean.keymaster_LOCKNAME_autolock\n state: 'on'\n action:\n - service: persistent_notification.create\n data_template:\n title: LOCKNAME is closed\n message: '{{ ''The LOCKNAME sensor indicates the door has been closed, re-attempting\n to lock.''}}'\n - service: lock.lock\n entity_id: lock.boltchecked_LOCKNAME",
"config": [
{
"name": "Door Sensor",
"room": null,
"type": "binary_sensor",
"id": {
"entity_id": "DOORSENSORENTITYNAME",
"device_id": null
}
}
]
},
{
"id": "keymaster_LOCKNAME_opened",
"automation": "- alias: keymaster_LOCKNAME_opened\n id: keymaster_LOCKNAME_opened\n trigger:\n platform: state\n entity_id: DOORSENSORENTITYNAME\n to: 'on'\n condition:\n - condition: state\n entity_id: input_boolean.keymaster_LOCKNAME_autolock\n state: 'on'\n action:\n - service: timer.start\n data_template:\n entity_id: timer.keymaster_LOCKNAME_autolock\n duration: \"{% if (((as_timestamp(states.sun.sun.attributes.next_dusk)) > (as_timestamp(states.sun.sun.attributes.next_dawn))))\\\n \\ %}\\n {{ states('input_text.keymaster_LOCKNAME_autolock_door_time_night')}}\\n\\\n {% else %}\\n {{ states('input_text.keymaster_LOCKNAME_autolock_door_time_day')}}\\n\\\n {% endif %}\\n\"",
"config": [
{
"name": "Sun",
"room": null,
"type": "sun",
"id": {
"entity_id": "sun.sun",
"device_id": null
}
},
{
"name": "Door Sensor",
"room": null,
"type": "binary_sensor",
"id": {
"entity_id": "DOORSENSORENTITYNAME",
"device_id": null
}
}
]
},
{
"id": "keymaster_LOCKNAME_unlocked_start_autolock",
"automation": "- alias: keymaster_LOCKNAME_unlocked_start_autolock\n id: keymaster_LOCKNAME_unlocked_start_autolock\n trigger:\n entity_id: LOCKENTITYNAME\n platform: state\n to: unlocked\n condition:\n - condition: state\n entity_id: input_boolean.keymaster_LOCKNAME_autolock\n state: 'on'\n action:\n - service: script.turn_on\n entity_id: script.keymaster_LOCKNAME_start_timer\n - service: input_boolean.turn_off\n target:\n entity_id: input_boolean.keymaster_LOCKNAME_retry",
"config": [
{
"name": "Lock Entity",
"room": null,
"type": "lock",
"id": {
"entity_id": "LOCKENTITYNAME",
"device_id": null
}
},
{
"name": "Turn On Script",
"room": null,
"type": "script",
"id": {
"entity_id": "script.turn_on",
"device_id": null
}
}
]
},
{
"id": "keymaster_LOCKNAME_timer_finished",
"automation": "- alias: keymaster_LOCKNAME_timer_finished\n id: keymaster_LOCKNAME_timer_finished\n condition:\n - condition: state\n entity_id: input_boolean.keymaster_LOCKNAME_autolock\n state: 'on'\n trigger:\n platform: event\n event_type: timer.finished\n event_data:\n entity_id: timer.keymaster_LOCKNAME_autolock\n action:\n - service: lock.lock\n entity_id: lock.boltchecked_LOCKNAME",
"config": []
},
{
"id": "keymaster_LOCKNAME_timer_canceled",
"automation": "- alias: keymaster_LOCKNAME_timer_canceled\n id: keymaster_LOCKNAME_timer_canceled\n trigger:\n platform: event\n event_type: timer.cancelled\n event_data:\n entity_id: timer.keymaster_LOCKNAME_autolock\n action:\n - service: input_boolean.turn_off\n target:\n entity_id: input_boolean.keymaster_LOCKNAME_retry",
"config": []
},
{
"id": "keymaster_LOCKNAME_disable_auto_lock",
"automation": "- alias: keymaster_LOCKNAME_disable_auto_lock\n id: keymaster_LOCKNAME_disable_auto_lock\n trigger:\n entity_id: input_boolean.keymaster_LOCKNAME_autolock\n platform: state\n to: 'off'\n action:\n - service: timer.cancel\n entity_id:\n - timer.keymaster_LOCKNAME_autolock\n - service: input_boolean.turn_off\n target:\n entity_id: input_boolean.keymaster_LOCKNAME_retry",
"config": []
},
{
"id": "keymaster_LOCKNAME_enable_auto_lock",
"automation": "- alias: keymaster_LOCKNAME_enable_auto_lock\n id: keymaster_LOCKNAME_enable_auto_lock\n trigger:\n entity_id: input_boolean.keymaster_LOCKNAME_autolock\n platform: state\n to: 'on'\n action:\n - service: input_boolean.turn_off\n target:\n entity_id: input_boolean.keymaster_LOCKNAME_retry\n - service: timer.cancel\n entity_id:\n - timer.keymaster_LOCKNAME_autolock\n - service: script.turn_on\n entity_id: script.keymaster_LOCKNAME_start_timer",
"config": [
{
"name": "Turn On Script",
"room": null,
"type": "script",
"id": {
"entity_id": "script.turn_on",
"device_id": null
}
}
]
},
{
"id": "keymaster_LOCKNAME_initialize",
"automation": "- alias: keymaster_LOCKNAME_initialize\n id: keymaster_LOCKNAME_initialize\n trigger:\n platform: homeassistant\n event: start\n action:\n - service: input_text.set_value\n entity_id: input_text.keymaster_LOCKNAME_autolock_door_time_day\n data:\n value: '{%- set current_value=states(''input_text.keymaster_LOCKNAME_autolock_door_time_day'')\n -%} {{ iif(current_value in ['''', ''unknown''], \"02:00:00\", current_value)}}\n\n '\n - service: input_text.set_value\n entity_id: input_text.keymaster_LOCKNAME_autolock_door_time_night\n data:\n value: '{%- set current_value=states(''input_text.keymaster_LOCKNAME_autolock_door_time_night'')\n -%} {{ iif(current_value in ['''', ''unknown''], \"00:05:00\", current_value)}}\n\n '",
"config": []
},
{
"id": "keymaster_CASE_LOCK_NAME Reset Code Slot",
"automation": "- alias: keymaster_CASE_LOCK_NAME Reset Code Slot\n id: keymaster_CASE_LOCK_NAME Reset Code Slot\n trigger:\n entity_id: INPUT_RESET_CODE_SLOT_HEADER\n platform: state\n to: 'on'\n action:\n - service: script.keymaster_LOCKNAME_reset_codeslot\n data_template:\n code_slot: '{{ trigger.entity_id.split(''_'')[-1] }}'",
"config": [
{
"name": "Input Reset Code Slot Header",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "INPUT_RESET_CODE_SLOT_HEADER",
"device_id": null
}
},
{
"name": "Keymaster Reset Codeslot",
"room": null,
"type": "script",
"id": {
"entity_id": "script.keymaster_LOCKNAME_reset_codeslot",
"device_id": null
}
}
]
},
{
"id": "keymaster_CASE_LOCK_NAME Lock Notifications",
"automation": "- alias: keymaster_CASE_LOCK_NAME Lock Notifications\n id: keymaster_CASE_LOCK_NAME Lock Notifications\n trigger:\n platform: event\n event_type: keymaster_lock_state_changed\n event_data:\n lockname: LOCKNAME\n condition:\n - condition: state\n entity_id: input_boolean.LOCKNAME_lock_notifications\n state: 'on'\n action:\n - service: script.keymaster_LOCKNAME_manual_notify\n data_template:\n title: CASE_LOCK_NAME\n message: '{{ trigger.event.data.action_text }} {% if trigger.event.data.code_slot\n > 0 %}({{ trigger.event.data.code_slot_name }}){% endif %}'",
"config": [
{
"name": "Keymaster Manual Notify",
"room": null,
"type": "script",
"id": {
"entity_id": "script.keymaster_LOCKNAME_manual_notify",
"device_id": null
}
}
]
},
{
"id": "keymaster_CASE_LOCK_NAME User Notifications",
"automation": "- alias: keymaster_CASE_LOCK_NAME User Notifications\n id: keymaster_CASE_LOCK_NAME User Notifications\n trigger:\n platform: event\n event_type: keymaster_lock_state_changed\n event_data:\n lockname: LOCKNAME\n condition:\n - condition: template\n value_template: '{{ trigger.event.data.code_slot > 0 }}'\n - condition: template\n value_template: '{{ is_state(''input_boolean.notify_LOCKNAME_'' + trigger.event.data.code_slot\n | string, ''on'') }}'\n - condition: state\n entity_id: input_boolean.LOCKNAME_lock_notifications\n state: 'off'\n action:\n - service: script.keymaster_LOCKNAME_manual_notify\n data_template:\n title: CASE_LOCK_NAME\n message: '{{ trigger.event.data.action_text }} ({{ trigger.event.data.code_slot_name\n }})'",
"config": [
{
"name": "Keymaster Manual Notify",
"room": null,
"type": "script",
"id": {
"entity_id": "script.keymaster_LOCKNAME_manual_notify",
"device_id": null
}
}
]
},
{
"id": "keymaster_CASE_LOCK_NAME Door Open and Close",
"automation": "- alias: keymaster_CASE_LOCK_NAME Door Open and Close\n id: keymaster_CASE_LOCK_NAME Door Open and Close\n trigger:\n entity_id: DOORSENSORENTITYNAME\n platform: state\n condition:\n - condition: state\n entity_id: input_boolean.LOCKNAME_dooraccess_notifications\n state: 'on'\n - condition: template\n value_template: '{{ trigger.from_state.state in (''on'', ''off'') and trigger.to_state.state\n in (''on'', ''off'') }}'\n action:\n - service: script.keymaster_LOCKNAME_manual_notify\n data_template:\n title: CASE_LOCK_NAME\n message: '{% if trigger.to_state.state == ''on'' %}Door Opened{% else %}Door\n Closed{% endif %}'",
"config": [
{
"name": "Door Sensor",
"room": null,
"type": "binary_sensor",
"id": {
"entity_id": "DOORSENSORENTITYNAME",
"device_id": null
}
},
{
"name": "Keymaster Manual Notify",
"room": null,
"type": "script",
"id": {
"entity_id": "script.keymaster_LOCKNAME_manual_notify",
"device_id": null
}
}
]
},
{
"id": "keymaster_CASE_LOCK_NAME Changed Code",
"automation": "- alias: keymaster_CASE_LOCK_NAME Changed Code\n id: keymaster_CASE_LOCK_NAME Changed Code\n trigger:\n entity_id: INPUTLOCKPINHEADER\n platform: state\n condition:\n - condition: template\n value_template: \"{{\\n is_state('input_boolean.enabled_LOCKNAME_' + trigger.entity_id.split('_')[-1],\\\n \\ 'on')\\n and\\n (trigger.from_state.state != trigger.to_state.state)\\n}}\"\n action:\n - service: persistent_notification.create\n data_template:\n title: CASE_LOCK_NAME LOCK MANAGER\n message: '{{ ''You changed the PIN for CASE_LOCK_NAME code slot '' + trigger.entity_id.split(''_'')[-1]\n + ''. Please enable it in order to make it active.''}}'\n - service: input_boolean.turn_off\n data_template:\n entity_id: '{{ ''input_boolean.enabled_LOCKNAME_'' + trigger.entity_id.split(''_'')[-1]\n }}'",
"config": [
{
"name": "Input Lock Pin Header",
"room": null,
"type": "input_text",
"id": {
"entity_id": "INPUTLOCKPINHEADER",
"device_id": null
}
}
]
},
{
"id": "keymaster_CASE_LOCK_NAME Reset",
"automation": "- alias: keymaster_CASE_LOCK_NAME Reset\n id: keymaster_CASE_LOCK_NAME Reset\n trigger:\n entity_id: input_boolean.LOCKNAME_reset_lock\n platform: state\n from: 'off'\n to: 'on'\n action:\n - service: script.keymaster_LOCKNAME_reset_lock\n - service: input_boolean.turn_off\n entity_id: input_boolean.LOCKNAME_reset_lock",
"config": [
{
"name": "Keymaster Reset Lock",
"room": null,
"type": "script",
"id": {
"entity_id": "script.keymaster_LOCKNAME_reset_lock",
"device_id": null
}
}
]
},
{
"id": "keymaster_CASE_LOCK_NAME Decrement Access Count",
"automation": "- alias: keymaster_CASE_LOCK_NAME Decrement Access Count\n id: keymaster_CASE_LOCK_NAME Decrement Access Count\n trigger:\n platform: event\n event_type: keymaster_lock_state_changed\n event_data:\n lockname: LOCKNAME\n condition:\n - condition: template\n value_template: '{{ is_state(''input_boolean.accesslimit_LOCKNAME_'' + trigger.event.data.code_slot\n | string, ''on'') }}'\n - condition: template\n value_template: \"{{\\n trigger.event.data.code_slot > 0\\n and\\n (trigger.event.data.action_code\\\n \\ is undefined or trigger.event.data.action_code in (6, 19))\\n}}\"\n action:\n - service: input_number.decrement\n data_template:\n entity_id: '{{ ''input_number.accesscount_LOCKNAME_'' + trigger.event.data.code_slot\n | string }}'",
"config": []
},
{
"id": "keymaster_LOCKNAME_locked",
"automation": "- alias: keymaster_LOCKNAME_locked\n id: keymaster_LOCKNAME_locked\n trigger:\n entity_id: LOCKENTITYNAME\n platform: state\n to: locked\n action:\n - service: timer.cancel\n entity_id: timer.keymaster_LOCKNAME_autolock",
"config": [
{
"name": "Lock Entity",
"room": null,
"type": "lock",
"id": {
"entity_id": "LOCKENTITYNAME",
"device_id": null
}
}
]
},
{
"id": "keymaster_turn_off_retry_LOCKNAME",
"automation": "- alias: keymaster_turn_off_retry_LOCKNAME\n id: keymaster_turn_off_retry_LOCKNAME\n trigger:\n entity_id: LOCKENTITYNAME\n platform: state\n to: locked\n action:\n - service: input_boolean.turn_off\n target:\n entity_id: input_boolean.keymaster_LOCKNAME_retry",
"config": [
{
"name": "Lock Entity",
"room": null,
"type": "lock",
"id": {
"entity_id": "LOCKENTITYNAME",
"device_id": null
}
}
]
},
{
"id": "keymaster_retry_bolt_closed_LOCKNAME",
"automation": "- alias: keymaster_retry_bolt_closed_LOCKNAME\n id: keymaster_retry_bolt_closed_LOCKNAME\n trigger:\n platform: state\n entity_id: DOORSENSORENTITYNAME\n to: 'off'\n condition:\n - condition: state\n entity_id: input_boolean.keymaster_LOCKNAME_retry\n state: 'on'\n - condition: state\n entity_id: input_boolean.keymaster_LOCKNAME_autolock\n state: 'on'\n action:\n - service: persistent_notification.create\n data_template:\n title: LOCKNAME is closed\n message: '{{ ''The LOCKNAME sensor indicates the door has been closed, re-attempting\n to lock.''}}'\n - service: lock.lock\n entity_id: lock.boltchecked_LOCKNAME",
"config": [
{
"name": "Door Sensor",
"room": null,
"type": "binary_sensor",
"id": {
"entity_id": "DOORSENSORENTITYNAME",
"device_id": null
}
}
]
},
{
"id": "keymaster_LOCKNAME_opened",
"automation": "- alias: keymaster_LOCKNAME_opened\n id: keymaster_LOCKNAME_opened\n trigger:\n platform: state\n entity_id: DOORSENSORENTITYNAME\n to: 'on'\n condition:\n - condition: state\n entity_id: input_boolean.keymaster_LOCKNAME_autolock\n state: 'on'\n action:\n - service: timer.start\n data_template:\n entity_id: timer.keymaster_LOCKNAME_autolock\n duration: \"{% if (((as_timestamp(states.sun.sun.attributes.next_dusk)) > (as_timestamp(states.sun.sun.attributes.next_dawn))))\\\n \\ %}\\n {{ states('input_text.keymaster_LOCKNAME_autolock_door_time_night')}}\\n\\\n {% else %}\\n {{ states('input_text.keymaster_LOCKNAME_autolock_door_time_day')}}\\n\\\n {% endif %}\\n\"",
"config": [
{
"name": "Sun",
"room": null,
"type": "sun",
"id": {
"entity_id": "sun.sun",
"device_id": null
}
},
{
"name": "Door Sensor",
"room": null,
"type": "binary_sensor",
"id": {
"entity_id": "DOORSENSORENTITYNAME",
"device_id": null
}
}
]
},
{
"id": "keymaster_LOCKNAME_unlocked_ start_autolock",
"automation": "- alias: keymaster_LOCKNAME_unlocked_start_autolock\n id: keymaster_LOCKNAME_unlocked_ start_autolock\n trigger:\n entity_id: LOCKENTITYNAME\n platform: state\n to: unlocked\n condition:\n - condition: state\n entity_id: input_boolean.keymaster_LOCKNAME_autolock\n state: 'on'\n action:\n - service: script.turn_on\n entity_id: script.keymaster_LOCKNAME_start_timer\n - service: input_boolean.turn_off\n target:\n entity_id: input_boolean.keymaster_LOCKNAME_retry",
"config": [
{
"name": "Lock Entity",
"room": null,
"type": "lock",
"id": {
"entity_id": "LOCKENTITYNAME",
"device_id": null
}
},
{
"name": "Turn On Script",
"room": null,
"type": "script",
"id": {
"entity_id": "script.turn_on",
"device_id": null
}
}
]
},
{
"id": "keymaster_LOCKNAME_timer_finished",
"automation": "- alias: keymaster_LOCKNAME_timer_finished\n id: keymaster_LOCKNAME_timer_finished\n condition:\n - condition: state\n entity_id: input_boolean.keymaster_LOCKNAME_autolock\n state: 'on'\n trigger:\n platform: event\n event_type: timer.finished\n event_data:\n entity_id: timer.keymaster_LOCKNAME_autolock\n action:\n - service: lock.lock\n entity_id: lock.boltchecked_LOCKNAME",
"config": []
},
{
"id": "keymaster_LOCKNAME_timer_canceled",
"automation": "- alias: keymaster_LOCKNAME_timer_canceled\n id: keymaster_LOCKNAME_timer_canceled\n trigger:\n platform: event\n event_type: timer.cancelled\n event_data:\n entity_id: timer.keymaster_LOCKNAME_autolock\n action:\n - service: input_boolean.turn_off\n target:\n entity_id: input_boolean.keymaster_LOCKNAME_retry",
"config": []
},
{
"id": "keymaster_LOCKNAME_disable_auto_lock",
"automation": "- alias: keymaster_LOCKNAME_disable_auto_lock\n id: keymaster_LOCKNAME_disable_auto_lock\n trigger:\n entity_id: input_boolean.keymaster_LOCKNAME_autolock\n platform: state\n to: 'off'\n action:\n - service: timer.cancel\n entity_id:\n - timer.keymaster_LOCKNAME_autolock\n - service: input_boolean.turn_off\n target:\n entity_id: input_boolean.keymaster_LOCKNAME_retry",
"config": []
},
{
"id": "keymaster_LOCKNAME_enable_auto_lock",
"automation": "- alias: keymaster_LOCKNAME_enable_auto_lock\n id: keymaster_LOCKNAME_enable_auto_lock\n trigger:\n entity_id: input_boolean.keymaster_LOCKNAME_autolock\n platform: state\n to: 'on'\n action:\n - service: input_boolean.turn_off\n target:\n entity_id: input_boolean.keymaster_LOCKNAME_retry\n - service: timer.cancel\n entity_id:\n - timer.keymaster_LOCKNAME_autolock\n - service: script.turn_on\n entity_id: script.keymaster_LOCKNAME_start_timer",
"config": [
{
"name": "Turn On Script",
"room": null,
"type": "script",
"id": {
"entity_id": "script.turn_on",
"device_id": null
}
}
]
},
{
"id": "keymaster_LOCKNAME_initialize",
"automation": "- alias: keymaster_LOCKNAME_initialize\n id: keymaster_LOCKNAME_initialize\n trigger:\n platform: homeassistant\n event: start\n action:\n - service: input_text.set_value\n entity_id: input_text.keymaster_LOCKNAME_autolock_door_time_day\n data:\n value: '{%- set current_value=states(''input_text.keymaster_LOCKNAME_autolock_door_time_day'')\n -%} {{ iif(current_value in ['''', ''unknown''], \"02:00:00\", current_value)}}\n\n '\n - service: input_text.set_value\n entity_id: input_text.keymaster_LOCKNAME_autolock_door_time_night\n data:\n value: '{%- set current_value=states(''input_text.keymaster_LOCKNAME_autolock_door_time_night'')\n -%} {{ iif(current_value in ['''', ''unknown''], \"00:05:00\", current_value)}}\n\n '",
"config": []
},
{
"id": "c4fdcb6b-1b34-4445-950e-122605812a25",
"automation": "- id: c4fdcb6b-1b34-4445-950e-122605812a25\n alias: Print Kitchen Main Label\n triggers:\n - trigger: state\n entity_id: input_button.print_main_label\n actions:\n - action: shell_command.print_kitchen_label\n data:\n content: \"{{ states('input_text.label_text') }} {%- if is_state('input_boolean.print_date',\\\n \\ 'on') -%}\\n \\\\n{{ states('input_datetime.label_date') }}\\n{%- endif -%}\\n\"\n copies: '{{ states(''input_number.label_copies'') | round(0) }}'",
"config": [
{
"name": "Label copies",
"room": null,
"type": "input_number",
"id": {
"entity_id": "input_number.label_copies",
"device_id": null
}
},
{
"name": "Print main label button",
"room": "kitchen",
"type": "input_button",
"id": {
"entity_id": "input_button.print_main_label",
"device_id": null
}
},
{
"name": "Label text",
"room": null,
"type": "input_text",
"id": {
"entity_id": "input_text.label_text",
"device_id": null
}
},
{
"name": "Print date",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.print_date",
"device_id": null
}
},
{
"name": "Label date",
"room": null,
"type": "input_datetime",
"id": {
"entity_id": "input_datetime.label_date",
"device_id": null
}
}
]
},
{
"id": "cc513eb7-2912-440d-baa9-9d4fd9fd056d",
"automation": "- id: cc513eb7-2912-440d-baa9-9d4fd9fd056d\n alias: Print Kitchen Tape Label\n triggers:\n - trigger: state\n entity_id: input_button.print_tape_label\n actions:\n - action: shell_command.print_tape_label\n data:\n content: \"{{ states('input_text.label_text') }} {%- if is_state('input_boolean.print_date',\\\n \\ 'on') -%}\\n \\\\n{{ states('input_datetime.label_date') }}\\n{%- endif -%}\\n\"\n copies: '{{ states(''input_number.label_copies'') | round(0) }}'",
"config": [
{
"name": "Label copies",
"room": null,
"type": "input_number",
"id": {
"entity_id": "input_number.label_copies",
"device_id": null
}
},
{
"name": "Print tape label button",
"room": "kitchen",
"type": "input_button",
"id": {
"entity_id": "input_button.print_tape_label",
"device_id": null
}
},
{
"name": "Label text",
"room": null,
"type": "input_text",
"id": {
"entity_id": "input_text.label_text",
"device_id": null
}
},
{
"name": "Print date",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.print_date",
"device_id": null
}
},
{
"name": "Label date",
"room": null,
"type": "input_datetime",
"id": {
"entity_id": "input_datetime.label_date",
"device_id": null
}
}
]
},
{
"id": "925e45b5-affc-46cd-921d-227d7777306e",
"automation": "- id: 925e45b5-affc-46cd-921d-227d7777306e\n alias: Print Office Label\n triggers:\n - trigger: state\n entity_id: input_button.print_office_label\n actions:\n - action: shell_command.print_office_label\n data:\n content: \"{{ states('input_text.label_text') }} {%- if is_state('input_boolean.print_date',\\\n \\ 'on') -%}\\n \\\\n{{ states('input_datetime.label_date') }}\\n{%- endif -%}\\n\"\n copies: '{{ states(''input_number.label_copies'') | round(0) }}'",
"config": [
{
"name": "Label copies",
"room": null,
"type": "input_number",
"id": {
"entity_id": "input_number.label_copies",
"device_id": null
}
},
{
"name": "Print office label button",
"room": "office",
"type": "input_button",
"id": {
"entity_id": "input_button.print_office_label",
"device_id": null
}
},
{
"name": "Label text",
"room": null,
"type": "input_text",
"id": {
"entity_id": "input_text.label_text",
"device_id": null
}
},
{
"name": "Print date",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.print_date",
"device_id": null
}
},
{
"name": "Label date",
"room": null,
"type": "input_datetime",
"id": {
"entity_id": "input_datetime.label_date",
"device_id": null
}
}
]
},
{
"id": "828c11ac-62c2-49da-891c-7d6b99cd88c4",
"automation": "- id: 828c11ac-62c2-49da-891c-7d6b99cd88c4\n alias: Set Label Date to Today at Midnight\n triggers:\n - trigger: time\n at: 00:00:00\n - trigger: homeassistant\n event: start\n - trigger: event\n event_type: automation_reloaded\n actions:\n - action: input_datetime.set_datetime\n target:\n entity_id: input_datetime.label_date\n data:\n date: '{{ now().strftime(''%Y-%m-%d'') }}'",
"config": [
{
"name": "Label date",
"room": null,
"type": "input_datetime",
"id": {
"entity_id": "input_datetime.label_date",
"device_id": null
}
}
]
},
{
"id": "faea6bc6-9c9b-439c-9f5a-ac65fbec8cdf",
"automation": "- id: faea6bc6-9c9b-439c-9f5a-ac65fbec8cdf\n alias: Handle Shield Emulated Roku Harmony Commands\n description: Executed commands on the Living Room Shield TV in response to Emulated\n Roku events from the Harmony Hub\n use_blueprint:\n path: rohankapoorcom/emulated-roku.yaml\n input:\n emulated_roku_name: 4t8k7RAjE3TBcfheQvCATZ\n up_action:\n - action: media_player.select_source\n target:\n entity_id: media_player.living_room_shield_tv\n data:\n source: Netflix\n right_action:\n - action: media_player.select_source\n target:\n entity_id: media_player.living_room_shield_tv\n data:\n source: Plex\n down_action:\n - action: media_player.select_source\n target:\n entity_id: media_player.living_room_shield_tv\n data:\n source: YouTube\n left_action:\n - action: androidtv.adb_command\n target:\n entity_id: media_player.living_room_shield_tv\n data:\n command: am start -a android.intent.action.VIEW -d -n com.amazon.amazonvideo.livingroom/com.amazon.ignition.IgnitionActivity\n home_action:\n - action: media_player.select_source\n target:\n entity_id: media_player.living_room_shield_tv\n data:\n source: com.hbo.hbonow\n search_action:\n - action: androidtv.adb_command\n target:\n entity_id: media_player.living_room_shield_tv\n data:\n command: SEARCH",
"config": [
{
"name": "Living room shield TV",
"room": "living_room",
"type": "media_player",
"id": {
"entity_id": "media_player.living_room_shield_tv",
"device_id": null
}
}
]
},
{
"id": "c8ff656a-e0d6-4b26-9840-0da9863b1867",
"automation": "- id: c8ff656a-e0d6-4b26-9840-0da9863b1867\n alias: Living Room Shield TV Notify Washer\n triggers:\n - trigger: state\n entity_id: binary_sensor.washer_wash_completed\n to: 'on'\n actions:\n - action: notify.living_room_shield_tv\n data:\n title: Washer Complete\n message: The washer has finished it's cycle.\n data:\n duration: 10\n position: top-right\n transparency: 50%",
"config": [
{
"name": "Washer wash completed",
"room": null,
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.washer_wash_completed",
"device_id": null
}
}
]
},
{
"id": "e2f38056-ce90-46ca-8138-51a9637e3e50",
"automation": "- id: e2f38056-ce90-46ca-8138-51a9637e3e50\n alias: Living Room Shield TV Notify Dryer\n triggers:\n - trigger: state\n entity_id: binary_sensor.dryer_dry_completed\n to: 'on'\n actions:\n - action: notify.living_room_shield_tv\n data:\n title: Dryer Complete\n message: The dryer has finished it's cycle.\n data:\n duration: 10\n position: top-right\n transparency: 50%",
"config": [
{
"name": "Dryer dry completed",
"room": null,
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.dryer_dry_completed",
"device_id": null
}
}
]
},
{
"id": "c34228e0-c6c9-431f-ad73-cef94537ca2c",
"automation": "- id: c34228e0-c6c9-431f-ad73-cef94537ca2c\n alias: Living Room TV Notify Phone Call\n triggers:\n - trigger: state\n entity_id: sensor.line_103_status\n to: incoming\n actions:\n - action: notify.living_room_shield_tv\n data_template:\n title: Incoming Phone Call\n message: '{{ states(''sensor.line_103_caller_name'')}} - {{states(''sensor.line_103_caller_number'')\n }}\n\n '\n data:\n duration: 25\n position: top-right\n transparency: 50%",
"config": [
{
"name": "Line 103 status",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.line_103_status",
"device_id": null
}
},
{
"name": "Line 103 caller name",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.line_103_caller_name",
"device_id": null
}
},
{
"name": "Line 103 caller number",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.line_103_caller_number",
"device_id": null
}
}
]
},
{
"id": "6ed8bef7-8ed6-4278-b79f-fefa9bf2ab8b",
"automation": "- id: 6ed8bef7-8ed6-4278-b79f-fefa9bf2ab8b\n alias: Control the Living Room TV Remote when Charging\n description: Turn off the motion detection and screen when the Living Room TV Remote\n is charging.\n mode: single\n triggers:\n - trigger: homeassistant\n event: start\n - trigger: event\n event_type: automation_reloaded\n - trigger: state\n entity_id: binary_sensor.living_room_tv_remote_plugged_in\n actions:\n - choose:\n - alias: If the Living Room TV Remote is charging, turn off the motion detection\n and screen\n conditions:\n - condition: state\n entity_id: binary_sensor.living_room_tv_remote_plugged_in\n state: 'on'\n sequence:\n - action: switch.turn_off\n entity_id: switch.living_room_tv_remote_motion_detection\n - action: switch.turn_off\n entity_id: switch.living_room_tv_remote_screen\n default:\n - action: switch.turn_on\n entity_id: switch.living_room_tv_remote_motion_detection\n - action: switch.turn_on\n entity_id: switch.living_room_tv_remote_screen",
"config": [
{
"name": "Living room TV remote plugged in",
"room": "living_room",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.living_room_tv_remote_plugged_in",
"device_id": null
}
},
{
"name": "Living room TV remote motion detection",
"room": "living_room",
"type": "switch",
"id": {
"entity_id": "switch.living_room_tv_remote_motion_detection",
"device_id": null
}
},
{
"name": "Living room TV remote screen",
"room": "living_room",
"type": "switch",
"id": {
"entity_id": "switch.living_room_tv_remote_screen",
"device_id": null
}
}
]
},
{
"id": "22220e6d-5b70-4718-8a3c-7080f270f928",
"automation": "- id: 22220e6d-5b70-4718-8a3c-7080f270f928\n alias: Turn on the Hot Water Pump when there is motion in any of the bathrooms\n triggers:\n - trigger: state\n entity_id:\n - binary_sensor.master_bathroom_motion\n - binary_sensor.hallway_bathroom_motion\n - binary_sensor.downstairs_bathroom_motion\n - binary_sensor.kitchen_motion\n from: 'off'\n to: 'on'\n actions:\n - action: switch.turn_on\n entity_id: switch.hot_water_pump",
"config": [
{
"name": "Master bathroom motion",
"room": "bathroom",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.master_bathroom_motion",
"device_id": null
}
},
{
"name": "Hallway bathroom motion",
"room": "bathroom",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.hallway_bathroom_motion",
"device_id": null
}
},
{
"name": "Downstairs bathroom motion",
"room": "bathroom",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.downstairs_bathroom_motion",
"device_id": null
}
},
{
"name": "Kitchen motion",
"room": "kitchen",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.kitchen_motion",
"device_id": null
}
},
{
"name": "Hot water pump",
"room": null,
"type": "switch",
"id": {
"entity_id": "switch.hot_water_pump",
"device_id": null
}
}
]
},
{
"id": "'1701157132714'",
"automation": "- id: '1701157132714'\n alias: Update Server Rack Status Display\n description: Display server rack climate controls status on the epaper displays\n triggers:\n - trigger: time_pattern\n minutes: /10\n actions:\n - action: open_epaper_link.drawcustom\n data:\n background: white\n rotate: 0\n ttl: 300\n dither: false\n payload:\n - type: line\n fill: red\n width: 5\n x_start: 0\n y_start: 40\n x_end: 400\n y_end: 40\n - type: line\n fill: red\n width: 10\n x_start: 200\n y_start: 40\n x_end: 200\n y_end: 270\n - type: line\n fill: red\n width: 5\n x_start: 0\n y_start: 270\n x_end: 400\n y_end: 270\n - type: text\n value: Server Rack\n font: ppb.ttf\n x: 200\n y: 5\n size: 40\n color: red\n anchor: mt\n - type: text\n value: Current\n font: ppb.ttf\n x: 100\n y: 170\n size: 40\n color: red\n anchor: mm\n - type: icon\n value: thermometer\n x: 45\n y: 85\n size: 40\n color: black\n - type: text\n value: '{{ states(''sensor.server_rack_exhaust_fan_temperature_1'') | round\n }}°F'\n font: ppb.ttf\n x: 125\n y: 105\n size: 40\n color: black\n anchor: mm\n - type: icon\n value: water-percent\n x: 50\n y: 215\n size: 40\n color: black\n - type: text\n value: '{{ states(''sensor.server_rack_exhaust_fan_humidity_1'') | round }}%'\n font: ppb.ttf\n x: 125\n y: 235\n size: 40\n color: black\n anchor: mm\n - type: text\n value: Target\n font: ppb.ttf\n x: 300\n y: 170\n size: 40\n color: red\n anchor: mm\n - type: icon\n value: thermometer\n x: 245\n y: 85\n size: 40\n color: black\n - type: text\n value: '{{ state_attr(''climate.server_rack_exhaust_fan_fan_1_thermostat'',\n ''temperature'') | round }}°F'\n font: ppb.ttf\n x: 325\n y: 105\n size: 40\n color: black\n anchor: mm\n - type: icon\n value: fan\n x: 240\n y: 215\n size: 40\n color: black\n - type: text\n value: '{{ states(''sensor.server_rack_exhaust_fan_fan_1_speed'') | round\n }}%'\n font: ppb.ttf\n x: 325\n y: 235\n size: 40\n color: black\n anchor: mm\n - type: text\n value: As of {{ now().strftime('%m/%d/%Y at %I:%M %p') }}\n font: ppb.ttf\n x: 200\n y: 290\n size: 15\n color: black\n anchor: mm\n target:\n device_id:\n - a07813b027de345048bdf12eaf51eb10\n mode: restart",
"config": [
{
"name": "Server rack exhaust fan temperature 1",
"room": "server_rack",
"type": "sensor",
"id": {
"entity_id": "sensor.server_rack_exhaust_fan_temperature_1",
"device_id": null
}
},
{
"name": "Server rack exhaust fan humidity 1",
"room": "server_rack",
"type": "sensor",
"id": {
"entity_id": "sensor.server_rack_exhaust_fan_humidity_1",
"device_id": null
}
},
{
"name": "Server rack exhaust fan fan 1 thermostat",
"room": "server_rack",
"type": "climate",
"id": {
"entity_id": "climate.server_rack_exhaust_fan_fan_1_thermostat",
"device_id": null
}
},
{
"name": "Server rack exhaust fan fan 1 speed",
"room": "server_rack",
"type": "sensor",
"id": {
"entity_id": "sensor.server_rack_exhaust_fan_fan_1_speed",
"device_id": null
}
},
{
"name": "Device a07813b027de345048bdf12eaf51eb10",
"room": null,
"type": "device",
"id": {
"entity_id": "a07813b027de345048bdf12eaf51eb10",
"device_id": null
}
}
]
},
{
"id": "2c8ca4d5-b0e5-48c9-9a6d-a3cd60d2a449",
"automation": "- id: 2c8ca4d5-b0e5-48c9-9a6d-a3cd60d2a449\n alias: Server Rack Battery Power Alert\n description: Notifies when server rack switches to battery power for more than 10\n minutes. Monitors server rack backup and UPS power source sensors.\n mode: single\n triggers:\n - trigger: state\n entity_id: sensor.server_rack_backup_power_source\n to: Battery\n for:\n minutes: 10\n - trigger: state\n entity_id: sensor.ups_source\n to: Battery\n for:\n minutes: 10\n conditions:\n - alias: 'Safety check: Verify at least one sensor is on battery power to prevent\n false notifications'\n condition: template\n value_template: '{% set server_rack_battery = is_state(''sensor.server_rack_backup_power_source'',\n ''Battery'') %} {% set ups_battery = is_state(''sensor.ups_source'', ''Battery'')\n %} {{ server_rack_battery or ups_battery }}'\n actions:\n - action: notify.rohan_kapoor\n data:\n title: Server Rack Battery Power Alert\n message: \"{% set server_rack_battery = is_state('sensor.server_rack_backup_power_source',\\\n \\ 'Battery') %} {% set ups_battery = is_state('sensor.ups_source', 'Battery')\\\n \\ %} {% if server_rack_battery and ups_battery %}\\n ⚠️ BOTH Server Rack Backup\\\n \\ AND UPS are on battery power for 10+ minutes\\n{% elif server_rack_battery\\\n \\ %}\\n ⚠️ Server Rack Backup Power Source switched to battery for 10+ minutes\\n\\\n {% elif ups_battery %}\\n ⚠️ UPS switched to battery power for 10+ minutes\\n\\\n {% endif %}\\nCurrent Status: • Server Rack Backup: {{ states('sensor.server_rack_backup_power_source')\\\n \\ }} • UPS Source: {{ states('sensor.ups_source') }}\\nBattery Information:\\\n \\ • UPS Battery Capacity: {{ states('sensor.ups_battery_capacity') }}% • UPS\\\n \\ Runtime Remaining: {{ states('sensor.ups_runtime_remaining') }} minutes\\n\\\n • Server Rack Backup Time Remaining: {{ states('sensor.server_rack_backup_time_remaining')\\\n \\ }} minutes • Server Rack Main Battery: {{ states('sensor.server_rack_backup_main_battery')\\\n \\ }}% • Server Rack Extra1 Battery: {{ states('sensor.server_rack_backup_extra1_battery')\\\n \\ }}% • Server Rack Extra2 Battery: {{ states('sensor.server_rack_backup_extra2_battery')\\\n \\ }}%\\nTime: {{ now().strftime('%m/%d/%Y at %I:%M %p') }}\\nPlease check power\\\n \\ status and take appropriate action.\"",
"config": [
{
"name": "Server rack backup power source",
"room": "server_rack",
"type": "sensor",
"id": {
"entity_id": "sensor.server_rack_backup_power_source",
"device_id": null
}
},
{
"name": "UPS source",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.ups_source",
"device_id": null
}
},
{
"name": "UPS battery capacity",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.ups_battery_capacity",
"device_id": null
}
},
{
"name": "UPS runtime remaining",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.ups_runtime_remaining",
"device_id": null
}
},
{
"name": "Server rack backup time remaining",
"room": "server_rack",
"type": "sensor",
"id": {
"entity_id": "sensor.server_rack_backup_time_remaining",
"device_id": null
}
},
{
"name": "Server rack backup main battery",
"room": "server_rack",
"type": "sensor",
"id": {
"entity_id": "sensor.server_rack_backup_main_battery",
"device_id": null
}
},
{
"name": "Server rack backup extra1 battery",
"room": "server_rack",
"type": "sensor",
"id": {
"entity_id": "sensor.server_rack_backup_extra1_battery",
"device_id": null
}
},
{
"name": "Server rack backup extra2 battery",
"room": "server_rack",
"type": "sensor",
"id": {
"entity_id": "sensor.server_rack_backup_extra2_battery",
"device_id": null
}
}
]
},
{
"id": "f126138c-bb79-4a9c-957a-a727ab53f95f",
"automation": "- id: f126138c-bb79-4a9c-957a-a727ab53f95f\n alias: Restart Fully Kiosk Browsers\n description: Restart all tablets once a day to make sure that they don't get stuck.\n triggers:\n - trigger: time\n at: 03:00:00\n actions:\n - action: button.press\n target:\n entity_id: \"{{\\n expand(integration_entities('fullykiosk'))\\n | selectattr('entity_id',\\\n \\ 'search', '_restart_browser')\\n | map(attribute='entity_id')\\n | list\\n\\\n }}\\n\"\n mode: single",
"config": []
},
{
"id": "'1702712886222'",
"automation": "- id: '1702712886222'\n alias: Update ePaper Weather Displays\n description: Display external weather on the epaper displays by the exterior doors\n triggers:\n - trigger: time_pattern\n minutes: /15\n conditions:\n - condition: time\n after: 07:00:00\n before: 02:00:00\n actions:\n - data:\n background: white\n rotate: 0\n ttl: 300\n dither: false\n payload:\n - type: icon\n value: \"weather- {%- set condition = states('weather.pirateweather') -%} {%-\\\n \\ if condition == 'partlycloudy' -%}\\n {%- set condition = 'partly-cloudy'\\\n \\ -%}\\n{%- endif -%} {%- if condition == 'clear-night' -%}\\n {%- set condition\\\n \\ = 'night' -%}\\n{%- endif -%} {%- if states('sun.sun') == 'below_horizon'\\\n \\ -%}\\n {%- if condition == 'sunny' -%}\\n night\\n {%- elif condition\\\n \\ == 'partly-cloudy' -%}\\n night-partly-cloudy\\n {%- else -%}\\n {{\\\n \\ condition }}\\n {%- endif -%}\\n{%- else -%}\\n {{ condition }}\\n{%- endif\\\n \\ -%}\\n\"\n x: 42\n y: 5\n size: 75\n color: black\n - type: text\n value: '{{ states(''sensor.weather_station_outdoor_temperature'') | round\n }}°F'\n font: ppb.ttf\n x: 76\n y: 105\n size: 60\n color: red\n anchor: mm\n - type: text\n value: 'Updated: {{ now().strftime(''%I:%M %p'') }}'\n font: ppb.ttf\n x: 76\n y: 135\n size: 15\n color: black\n anchor: mt\n target:\n device_id:\n - 93185d71c897d23075b33b802ad98658\n action: open_epaper_link.drawcustom\n mode: restart",
"config": [
{
"name": "Sun",
"room": null,
"type": "sun",
"id": {
"entity_id": "sun.sun",
"device_id": null
}
},
{
"name": "Weather station outdoor temperature",
"room": "exterior",
"type": "sensor",
"id": {
"entity_id": "sensor.weather_station_outdoor_temperature",
"device_id": null
}
},
{
"name": "Pirate Weather",
"room": null,
"type": "weather",
"id": {
"entity_id": "weather.pirateweather",
"device_id": null
}
},
{
"name": "Device 93185d71c897d23075b33b802ad98658",
"room": null,
"type": "device",
"id": {
"entity_id": "93185d71c897d23075b33b802ad98658",
"device_id": null
}
}
]
}
]