1542 lines
64 KiB
JSON
1542 lines
64 KiB
JSON
[
|
|
{
|
|
"id": "3dprinter_done",
|
|
"automation": "- id: 3dprinter_done\n alias: 3D Print Done\n initial_state: true\n trigger:\n trigger: state\n entity_id: binary_sensor.octoprint_printing\n from: 'on'\n to: 'off'\n action:\n - action: secret telservice\n data:\n message: 3D Print Complete",
|
|
"config": [
|
|
{
|
|
"name": "octoprint printing",
|
|
"room": "office",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.octoprint_printing",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "3dprinter_poweroff_after_print",
|
|
"automation": "- id: 3dprinter_poweroff_after_print\n alias: 3D Printer Power Off After Print Finishes\n initial_state: true\n trigger:\n trigger: state\n entity_id: binary_sensor.octoprint_printing\n from: 'on'\n to: 'off'\n for:\n minutes: 20\n condition:\n condition: numeric_state\n entity_id:\n - sensor.octoprint_actual_bed_temp\n - sensor.octoprint_actual_tool0_temp\n below: 60\n actions:\n - action: switch.turn_off\n entity_id: switch.3d_printer\n - action: secret telservice\n data:\n message: 3D Printer has been idle for 20 minutes and is completely cooled down,\n powering off",
|
|
"config": [
|
|
{
|
|
"name": "octoprint printing",
|
|
"room": "office",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.octoprint_printing",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "octoprint actual bed temp",
|
|
"room": "office",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.octoprint_actual_bed_temp",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "octoprint actual tool0 temp",
|
|
"room": "office",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.octoprint_actual_tool0_temp",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "3d printer",
|
|
"room": "office",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.3d_printer",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "3dprinter_poweroff_idle",
|
|
"automation": "- id: 3dprinter_poweroff_idle\n alias: 3D Printer Idle Power Off\n initial_state: true\n trigger:\n trigger: state\n entity_id: switch.3d_printer\n to: 'on'\n for:\n minutes: 30\n condition:\n condition: not\n conditions:\n - condition: state\n entity_id: binary_sensor.octoprint_printing\n state: 'on'\n actions:\n - action: switch.turn_off\n entity_id: switch.3d_printer\n - action: secret telservice\n data:\n message: 3D Printer has been idle for 30 minutes, shutting down",
|
|
"config": [
|
|
{
|
|
"name": "octoprint printing",
|
|
"room": "office",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.octoprint_printing",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "3d printer",
|
|
"room": "office",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.3d_printer",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "3dprinter_error",
|
|
"automation": "- id: 3dprinter_error\n alias: 3D Printer Error\n initial_state: true\n trigger:\n trigger: state\n entity_id: binary_sensor.octoprint_printing_error\n to: 'on'\n action:\n - action: secret telservice\n data:\n message: 3D Printer has experienced an error and requires your attention",
|
|
"config": [
|
|
{
|
|
"name": "octoprint printing",
|
|
"room": "office",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.octoprint_printing",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "octoprint printing error",
|
|
"room": "office",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.octoprint_printing_error",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "Arrival_Lights_On",
|
|
"automation": "- id: Arrival_Lights_On\n initial_state: true\n alias: Lights On - Arriving Home\n trigger:\n trigger: state\n entity_id: group.presence\n from: not_home\n to: home\n condition:\n condition: state\n entity_id: sun.sun\n state: below_horizon\n actions:\n - action: light.turn_on\n entity_id:\n - light.front_entry\n - light.livingroom_lights\n - light.diningroom\n data:\n brightness_pct: 100\n - delay: 00:05:00\n - action: light.turn_off\n entity_id:\n - light.front_entry\n - light.diningroom\n - action: light.turn_on\n entity_id: light.livingroom_lights\n data:\n brightness_pct: 10",
|
|
"config": [
|
|
{
|
|
"name": "presence group",
|
|
"room": null,
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "group.presence",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "sun",
|
|
"room": null,
|
|
"type": "sun",
|
|
"id": {
|
|
"entity_id": "sun.sun",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "front entry light",
|
|
"room": "entryway",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.front_entry",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "livingroom lights",
|
|
"room": "living room",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.livingroom_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "diningroom light",
|
|
"room": "dining room",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.diningroom",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "Bedtime",
|
|
"automation": "- alias: Bedtime\n initial_state: true\n trigger:\n - trigger: state\n entity_id: input_boolean.bedtime\n to: 'on'\n condition:\n condition: state\n entity_id: input_boolean.guest\n state: 'off'\n actions:\n - action: script.turn_on\n entity_id: script.bedtime\n - delay: 00:00:05\n - action: input_boolean.turn_off\n entity_id: input_boolean.bedtime",
|
|
"config": [
|
|
{
|
|
"name": "bedtime input",
|
|
"room": "bedroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.bedtime",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "guest input",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.guest",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "bedtime script",
|
|
"room": "bedroom",
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.bedtime",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "bedtime_tvoff",
|
|
"automation": "- id: bedtime_tvoff\n alias: Turn off TV at Bedtime\n initial_state: true\n trigger:\n - trigger: state\n entity_id: script.bedtime\n from: 'off'\n to: 'on'\n condition:\n condition: state\n entity_id: input_boolean.guest\n state: 'off'\n action:\n - delay: 00:20:00\n - action: remote.turn_on\n data:\n entity_id: remote.living_room\n activity: PowerOff",
|
|
"config": [
|
|
{
|
|
"name": "guest input",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.guest",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "bedtime script",
|
|
"room": "bedroom",
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.bedtime",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "living room remote",
|
|
"room": "living room",
|
|
"type": "remote",
|
|
"id": {
|
|
"entity_id": "remote.living_room",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "Christmas_Tree_On",
|
|
"automation": "- id: Christmas_Tree_On\n alias: Christmas Tree - On\n initial_state: true\n trigger:\n - trigger: sun\n event: sunset\n condition:\n condition: state\n entity_id: group.presence\n state: home\n action:\n action: switch.turn_on\n entity_id: switch.christmas_tree",
|
|
"config": [
|
|
{
|
|
"name": "presence group",
|
|
"room": null,
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "group.presence",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "christmas tree switch",
|
|
"room": "living room",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.christmas_tree",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "Christmas_Tree_Off",
|
|
"automation": "- id: Christmas_Tree_Off\n alias: Christmas Tree - Off\n initial_state: true\n trigger:\n trigger: sun\n event: sunrise\n offset: +00:45:00\n condition:\n - condition: state\n entity_id: input_boolean.guest\n state: 'off'\n action:\n action: switch.turn_off\n entity_id: switch.christmas_tree",
|
|
"config": [
|
|
{
|
|
"name": "guest input",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.guest",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "christmas tree switch",
|
|
"room": "living room",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.christmas_tree",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "basement_dehumidifier_tank_full",
|
|
"automation": "- id: basement_dehumidifier_tank_full\n alias: Basement Dehumidifier Tank Full\n initial_state: true\n trigger:\n trigger: state\n entity_id: binary_sensor.151732606083492_tank_full\n from: 'off'\n to: 'on'\n action:\n - service: secret telservice\n data:\n message: Basement dehumidifier tank is full",
|
|
"config": [
|
|
{
|
|
"name": "basement dehumidifier tank full",
|
|
"room": "basement",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.151732606083492_tank_full",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "basement dehumidifier tank sensor",
|
|
"room": "basement",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.151732606083492_tank",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "basement_dehumidifier_tank_warning",
|
|
"automation": "- id: basement_dehumidifier_tank_warning\n alias: Basement Dehumidifer Tank Warning\n initial_state: true\n trigger:\n trigger: numeric_state\n entity_id: sensor.151732606083492_tank\n above: 50\n action:\n - service: secret telservice\n data:\n message: Time to empty the basement dehumidifier tank",
|
|
"config": [
|
|
{
|
|
"name": "basement dehumidifier tank sensor",
|
|
"room": "basement",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.151732606083492_tank",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "dehydrator_on",
|
|
"automation": "- id: dehydrator_on\n alias: Dehydrator On\n initial_state: true\n trigger:\n - trigger: state\n entity_id: switch.dehydrator\n from: 'off'\n to: 'on'\n action:\n - action: timer.start\n data:\n entity_id: timer.dehydrator\n duration: 07:00:00",
|
|
"config": [
|
|
{
|
|
"name": "dehydrator switch",
|
|
"room": "kitchen",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.dehydrator",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "dehydrator timer",
|
|
"room": "kitchen",
|
|
"type": "timer",
|
|
"id": {
|
|
"entity_id": "timer.dehydrator",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "dehydrator_reset",
|
|
"automation": "- id: dehydrator_reset\n alias: Dehydrator Reset\n initial_state: true\n condition:\n condition: or\n conditions:\n - condition: state\n entity_id: timer.dehydrator\n state: active\n - condition: state\n entity_id: switch.dehydrator\n state: unavailable\n triggers:\n - trigger: state\n entity_id: switch.dehydrator\n from: 'on'\n to: 'off'\n - trigger: state\n entity_id: switch.dehydrator\n to: unavailable\n actions:\n - action: timer.cancel\n entity_id: timer.dehydrator\n - action: secret telservice\n data:\n message: Something has gone wrong, check the dehydrator",
|
|
"config": [
|
|
{
|
|
"name": "dehydrator switch",
|
|
"room": "kitchen",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.dehydrator",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "dehydrator timer",
|
|
"room": "kitchen",
|
|
"type": "timer",
|
|
"id": {
|
|
"entity_id": "timer.dehydrator",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "dehydrator_timer_failed",
|
|
"automation": "- id: dehydrator_timer_failed\n alias: Dehydrator Timer Failed\n initial_state: true\n trigger:\n - trigger: state\n entity_id: timer.dehydrator\n to: idle\n for:\n minutes: 1\n condition:\n condition: state\n entity_id: switch.dehydrator\n state: 'on'\n action:\n - action: secret telservice\n data_template:\n message: Dehydator timer has failed, it is now idle but dehydrator is still\n powered on. Shut it down?\n data:\n inline_keyboard:\n - Yes:/dehydratoroff,No:/removekeyboarddehydrator",
|
|
"config": [
|
|
{
|
|
"name": "dehydrator switch",
|
|
"room": "kitchen",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.dehydrator",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "dehydrator timer",
|
|
"room": "kitchen",
|
|
"type": "timer",
|
|
"id": {
|
|
"entity_id": "timer.dehydrator",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "dehydrator_timer_done",
|
|
"automation": "- id: dehydrator_timer_done\n alias: Ding Jerky Timer Done\n initial_state: true\n trigger:\n - trigger: event\n event_type: timer.finished\n event_data:\n entity_id: timer.dehydrator\n actions:\n - action: secret telservice\n data_template:\n message: Timer has expired and dehydator has been powered off. Is the Jerky\n done?\n data:\n inline_keyboard:\n - Give it another hour:/dehydratorextend,Yes:/removekeyboarddehydrator\n - action: switch.turn_off\n entity_id: switch.dehydrator",
|
|
"config": [
|
|
{
|
|
"name": "dehydrator switch",
|
|
"room": "kitchen",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.dehydrator",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "dehydrator timer",
|
|
"room": "kitchen",
|
|
"type": "timer",
|
|
"id": {
|
|
"entity_id": "timer.dehydrator",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "acknowledge_dehydrator_alert",
|
|
"automation": "- id: acknowledge_dehydrator_alert\n alias: Acknowledge Dehydrator Alert\n initial_state: true\n trigger:\n trigger: event\n event_type: telegram_callback\n event_data:\n data: /removekeyboarddehydrator\n actions:\n - action: telegram_bot.answer_callback_query\n data_template:\n callback_query_id: '{{ trigger.event.data.id }}'\n message: Great, no further action needed then.\n - action: notify.britt_ha_notifybot\n data:\n message: Great, no further action needed then.\n - action: telegram_bot.edit_replymarkup\n data_template:\n message_id: '{{ trigger.event.data.message.message_id }}'\n chat_id: '{{ trigger.event.data.chat_id }}'\n inline_keyboard: []",
|
|
"config": []
|
|
},
|
|
{
|
|
"id": "extend_dehydrator_time",
|
|
"automation": "- id: extend_dehydrator_time\n alias: Extend Dehydrator Timer\n initial_state: true\n trigger:\n trigger: event\n event_type: telegram_callback\n event_data:\n data: /dehydratorextend\n actions:\n - action: telegram_bot.answer_callback_query\n data_template:\n callback_query_id: '{{ trigger.event.data.id }}'\n message: Ok, timer extended 1 hour and dehydrator powered back on.\n - action: secret telservice\n data:\n message: Ok, timer extended 1 hour and dehydrator powered back on.\n - action: telegram_bot.edit_replymarkup\n data_template:\n message_id: '{{ trigger.event.data.message.message_id }}'\n chat_id: '{{ trigger.event.data.chat_id }}'\n inline_keyboard: []\n - action: switch.turn_on\n entity_id: switch.dehydrator\n - action: timer.start\n data:\n entity_id: timer.dehydrator\n duration: 01:00:00",
|
|
"config": [
|
|
{
|
|
"name": "dehydrator switch",
|
|
"room": "kitchen",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.dehydrator",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "dehydrator timer",
|
|
"room": "kitchen",
|
|
"type": "timer",
|
|
"id": {
|
|
"entity_id": "timer.dehydrator",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "dogs_give_heatworm_flea_tick",
|
|
"automation": "- id: dogs_give_heatworm_flea_tick\n alias: Dogs - Give Heartworm/Flea/Tick\n initial_state: true\n trigger:\n - trigger: calendar\n entity_id: calendar.trefynwed_gmail_com\n event: start\n condition:\n - condition: template\n value_template: '{{ ''Dogs - Flea/Tick/Heartworm'' in trigger.calendar_event.summary\n }}'\n actions:\n - action: secret telservice\n data_template:\n message: Did you give the dogs their medicine?\n data:\n inline_keyboard: Yes:/dogsoff,Remind Me Later:/dogslater\n - action: timer.start\n data:\n entity_id: timer.dogs\n duration: 00:30:00\n mode: queued",
|
|
"config": [
|
|
{
|
|
"name": "calendar",
|
|
"room": null,
|
|
"type": "calendar",
|
|
"id": {
|
|
"entity_id": "calendar.trefynwed_gmail_com",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "dogs timer",
|
|
"room": null,
|
|
"type": "timer",
|
|
"id": {
|
|
"entity_id": "timer.dogs",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "dogs_off",
|
|
"automation": "- id: dogs_off\n alias: Dogs - Gave Heartworm/Flea/Tick\n initial_state: true\n trigger:\n trigger: event\n event_type: telegram_callback\n event_data:\n data: /dogsoff\n actions:\n - action: telegram_bot.answer_callback_query\n data_template:\n callback_query_id: '{{ trigger.event.data.id }}'\n message: Ok, Dog reminder acknowledged\n - action: telegram_bot.edit_replymarkup\n data_template:\n message_id: '{{ trigger.event.data.message.message_id }}'\n chat_id: '{{ trigger.event.data.chat_id }}'\n inline_keyboard: []\n - action: timer.cancel\n entity_id: timer.dogs",
|
|
"config": [
|
|
{
|
|
"name": "dogs timer",
|
|
"room": null,
|
|
"type": "timer",
|
|
"id": {
|
|
"entity_id": "timer.dogs",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "dogs_remind_me_later",
|
|
"automation": "- id: dogs_remind_me_later\n alias: Dogs - Remind Me Later\n initial_state: true\n trigger:\n trigger: event\n event_type: telegram_callback\n event_data:\n data: /dogslater\n actions:\n - action: telegram_bot.answer_callback_query\n data_template:\n callback_query_id: '{{ trigger.event.data.id }}'\n message: Ok, I will remind you again in 30 minutes.\n - action: telegram_bot.edit_replymarkup\n data_template:\n message_id: '{{ trigger.event.data.message.message_id }}'\n chat_id: '{{ trigger.event.data.chat_id }}'\n inline_keyboard: []\n - action: timer.cancel\n entity_id: timer.dogs\n - action: timer.start\n data:\n entity_id: timer.dogs\n duration: 00:30:00",
|
|
"config": [
|
|
{
|
|
"name": "dogs timer",
|
|
"room": null,
|
|
"type": "timer",
|
|
"id": {
|
|
"entity_id": "timer.dogs",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "dogs_repeat_reminder",
|
|
"automation": "- id: dogs_repeat_reminder\n alias: Dogs - Repeat Reminder\n initial_state: true\n trigger:\n trigger: event\n event_type: timer.finished\n event_data:\n entity_id: timer.dogs\n actions:\n - action: secret telservice\n data_template:\n message: Did you give the Dogs their medicine?\n data:\n inline_keyboard: Yes:/dogsoff,Remind Me Later:/dogslater\n - action: timer.start\n data:\n entity_id: timer.dogs\n duration: 00:30:00",
|
|
"config": [
|
|
{
|
|
"name": "dogs timer",
|
|
"room": null,
|
|
"type": "timer",
|
|
"id": {
|
|
"entity_id": "timer.dogs",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "dog_cam_snapshot",
|
|
"automation": "- id: dog_cam_snapshot\n alias: Dog Camera Snapshot\n initial_state: true\n trigger:\n - trigger: mqtt\n topic: frigate/events\n id: frigate-event-dogcam\n payload: dog_cam\n value_template: '{{ value_json[\"after\"][\"camera\"] }}'\n variables:\n after_zones: '{{ trigger.payload_json[\"after\"][\"entered_zones\"] }}'\n before_zones: '{{ trigger.payload_json[\"before\"][\"entered_zones\"] }}'\n camera: '{{ trigger.payload_json[\"after\"][\"camera\"] }}'\n id: '{{ trigger.payload_json[\"after\"][\"id\"] }}'\n label: '{{ trigger.payload_json[\"after\"][\"label\"] }}'\n condition:\n - condition: or\n conditions:\n - condition: template\n value_template: '{{ trigger.payload_json[''type''] == ''new'' }}'\n - condition: template\n value_template: '{{ before_zones | length == 0 }}'\n - condition: and\n conditions:\n - condition: state\n entity_id: input_boolean.motion_alert\n state: 'on'\n - condition: state\n entity_id: input_boolean.guest\n state: 'off'\n - condition: state\n entity_id: group.presence\n state: not_home\n - condition: template\n value_template: '{{ [\"dcperson\", \"fpoverhead\"]|select(\"in\", trigger.payload_json[\"after\"][\"entered_zones\"])|list|length\n > 0 }}'\n actions:\n - action: telegram_bot.send_photo\n data:\n url: http://hass.sky.net:8123/api/frigate/notifications/{{ id }}/thumbnail.jpg\n caption: '{{ label | title }} detected by {{ camera | replace(\"_\", \" \") | title\n }}\n\n '\n target: secret tchatid1\n - delay: 00:00:30\n - action: telegram_bot.send_video\n data:\n url: http://hass.sky.net:8123/api/frigate/notifications/{{ id }}/{{ camera }}/clip.mp4\n caption: 'Video of detection from {{ camera | replace(\"_\", \" \") | title }}\n\n '\n target: secret tchatid1\n mode: single\n max_exceeded: silent",
|
|
"config": [
|
|
{
|
|
"name": "presence group",
|
|
"room": null,
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "group.presence",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "guest input",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.guest",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "motion alert input",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.motion_alert",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Secret Telegram Chat ID 1",
|
|
"room": null,
|
|
"type": null,
|
|
"id": {
|
|
"entity_id": "secret tchatid1",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "Doorbird Ring",
|
|
"automation": "- id: Doorbird Ring\n alias: Doorbird_Ring\n trigger:\n trigger: event\n event_type: doorbird_frontdoor_button_press\n action:\n - action: script.turn_on\n entity_id: script.doorbell",
|
|
"config": [
|
|
{
|
|
"name": "doorbell script",
|
|
"room": "entryway",
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.doorbell",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "doorbird_snapshot",
|
|
"automation": "- id: doorbird_snapshot\n alias: Doorbird Camera Snapshot\n initial_state: false\n trigger:\n - trigger: mqtt\n topic: frigate/events\n id: frigate-event-doorbird\n payload: front_door\n value_template: '{{ value_json[\"after\"][\"camera\"] }}'\n variables:\n after_zones: '{{ trigger.payload_json[\"after\"][\"entered_zones\"] }}'\n before_zones: '{{ trigger.payload_json[\"before\"][\"entered_zones\"] }}'\n camera: '{{ trigger.payload_json[\"after\"][\"camera\"] }}'\n id: '{{ trigger.payload_json[\"after\"][\"id\"] }}'\n label: '{{ trigger.payload_json[\"after\"][\"label\"] }}'\n condition:\n - condition: or\n conditions:\n - condition: template\n value_template: '{{ trigger.payload_json[''type''] == ''new'' }}'\n - condition: template\n value_template: '{{ before_zones | length == 0 }}'\n - condition: and\n conditions:\n - condition: state\n entity_id: input_boolean.motion_alert\n state: 'on'\n - condition: state\n entity_id: input_boolean.autolock\n state: 'on'\n - condition: state\n entity_id: binary_sensor.front_door\n state: 'off'\n - condition: template\n value_template: '{{ not (now() - states.binary_sensor.front_door.last_changed).total_seconds()\n < 30 }}'\n - condition: template\n value_template: '{{ [\"dbperson\", \"fpoverhead\"]|select(\"in\", trigger.payload_json[\"after\"][\"entered_zones\"])|list|length\n > 0 }}'\n actions:\n - action: telegram_bot.send_photo\n data:\n url: http://hass.sky.net:8123/api/frigate/notifications/{{ id }}/thumbnail.jpg\n caption: '{{ label | title }} detected by {{ camera | replace(\"_\", \" \") | title\n }}\n\n '\n target: secret tchatid1\n - delay: 00:00:30\n - action: telegram_bot.send_video\n data:\n url: http://hass.sky.net:8123/api/frigate/notifications/{{ id }}/{{ camera }}/clip.mp4\n caption: 'Video of detection from {{ camera | replace(\"_\", \" \") | title }}\n\n '\n target: secret tchatid1\n - condition: template\n value_template: '{{ not (now() - states.automation.doorbird_ring.attributes.last_triggered).total_seconds()\n < 60 }}'\n - condition: template\n value_template: '{{ not (now() - states.script.motion_alert.attributes.last_triggered).total_seconds()\n < 60 }}'\n - action: script.turn_on\n entity_id: script.motion_alert\n mode: single\n max_exceeded: silent",
|
|
"config": [
|
|
{
|
|
"name": "motion alert input",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.motion_alert",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "autolock input",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.autolock",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "front door sensor",
|
|
"room": "entryway",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.front_door",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "motion alert script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.motion_alert",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Secret Telegram Chat ID 1",
|
|
"room": null,
|
|
"type": null,
|
|
"id": {
|
|
"entity_id": "secret tchatid1",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "Exterior_Lights_On_Sunset",
|
|
"automation": "- id: Exterior_Lights_On_Sunset\n alias: Exterior Lights On - Sunset\n initial_state: true\n trigger:\n - trigger: sun\n event: sunset\n condition:\n condition: state\n entity_id: group.presence\n state: home\n action:\n - action: light.turn_on\n data:\n entity_id:\n - light.front_porch_light\n - light.back_porch_light",
|
|
"config": [
|
|
{
|
|
"name": "presence group",
|
|
"room": null,
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "group.presence",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "front porch light",
|
|
"room": "porch",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.front_porch_light",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "back porch light",
|
|
"room": "porch",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.back_porch_light",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "freeze_warning",
|
|
"automation": "- id: freeze_warning\n alias: Freeze Warning\n initial_state: true\n trigger:\n - trigger: sun\n event: sunset\n condition:\n - condition: numeric_state\n entity_id: sensor.overnight_low\n below: 35\n action:\n - action: secret telservice\n data:\n message: Freeze warning, cover outside spigots",
|
|
"config": [
|
|
{
|
|
"name": "overnight low sensor",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.overnight_low",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "Frontdoor_IR_On",
|
|
"automation": "- id: Frontdoor_IR_On\n alias: Doorbird IR On at Night\n initial_state: false\n trigger:\n - trigger: time_pattern\n minutes: /2\n condition:\n condition: state\n entity_id: sun.sun\n state: below_horizon\n action:\n action: button.press\n entity_id: button.frontdoor_ir",
|
|
"config": [
|
|
{
|
|
"name": "sun",
|
|
"room": null,
|
|
"type": "sun",
|
|
"id": {
|
|
"entity_id": "sun.sun",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "frontdoor ir button",
|
|
"room": "entryway",
|
|
"type": "button",
|
|
"id": {
|
|
"entity_id": "button.frontdoor_ir",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "front_porch_snapshot",
|
|
"automation": "- id: front_porch_snapshot\n alias: Front Porch Camera Snapshot\n initial_state: false\n trigger:\n - trigger: mqtt\n topic: frigate/events\n id: frigate-event-frontporch\n payload: front_porch\n value_template: '{{ value_json[\"after\"][\"camera\"] }}'\n variables:\n after_zones: '{{ trigger.payload_json[\"after\"][\"entered_zones\"] }}'\n before_zones: '{{ trigger.payload_json[\"before\"][\"entered_zones\"] }}'\n camera: '{{ trigger.payload_json[\"after\"][\"camera\"] }}'\n id: '{{ trigger.payload_json[\"after\"][\"id\"] }}'\n label: '{{ trigger.payload_json[\"after\"][\"label\"] }}'\n condition:\n - condition: or\n conditions:\n - condition: template\n value_template: '{{ trigger.payload_json[''type''] == ''new'' }}'\n - condition: template\n value_template: '{{ before_zones | length == 0 }}'\n - condition: and\n conditions:\n - condition: state\n entity_id: input_boolean.motion_alert\n state: 'on'\n - condition: state\n entity_id: input_boolean.autolock\n state: 'on'\n - condition: state\n entity_id: binary_sensor.front_door\n state: 'off'\n - condition: template\n value_template: '{{ not (now() - states.binary_sensor.front_door.last_changed).total_seconds()\n < 30 }}'\n - condition: template\n value_template: '{{ [\"dbperson\", \"fpoverhead\"]|select(\"in\", trigger.payload_json[\"after\"][\"entered_zones\"])|list|length\n > 0 }}'\n actions:\n - action: telegram_bot.send_photo\n data:\n url: http://hass.sky.net:8123/api/frigate/notifications/{{ id }}/thumbnail.jpg\n caption: '{{ label | title }} detected by {{ camera | replace(\"_\", \" \") | title\n }}\n\n '\n target: secret tchatid1\n - delay: 00:00:30\n - action: telegram_bot.send_video\n data:\n url: http://hass.sky.net:8123/api/frigate/notifications/{{ id }}/{{ camera }}/clip.mp4\n caption: 'Video of detection from {{ camera | replace(\"_\", \" \") | title }}\n\n '\n target: secret tchatid1\n - condition: template\n value_template: '{{ not (now() - states.automation.doorbird_ring.attributes.last_triggered).total_seconds()\n < 60 }}'\n - condition: template\n value_template: '{{ not (now() - states.script.motion_alert.attributes.last_triggered).total_seconds()\n < 60 }}'\n - action: script.turn_on\n entity_id: script.motion_alert\n mode: single\n max_exceeded: silent",
|
|
"config": [
|
|
{
|
|
"name": "motion alert input",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.motion_alert",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "autolock input",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.autolock",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "front door sensor",
|
|
"room": "entryway",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.front_door",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "motion alert script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.motion_alert",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Secret Telegram Chat ID 1",
|
|
"room": null,
|
|
"type": null,
|
|
"id": {
|
|
"entity_id": "secret tchatid1",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "input_select_harmony_living_room",
|
|
"automation": "- id: input_select_harmony_living_room\n alias: Start Activity from Input Select\n initial_state: true\n trigger:\n trigger: state\n entity_id: input_select.living_room_tv\n from: Select Activity\n actions:\n - action: \"{% if is_state('input_select.living_room_tv', 'Netflix') %}\\n script.netflix\\n\\\n {% else %}\\n remote.turn_on\\n{% endif %}\\n\"\n data_template:\n entity_id: remote.living_room\n activity: \"{% if is_state('input_select.living_room_tv', 'Power Off') %}\\n \\\n \\ PowerOff\\n{% elif is_state('input_select.living_room_tv', 'Watch TV') %}\\\n \\ \\n Watch TV\\n{% elif is_state('input_select.living_room_tv', 'Watch Roku')\\\n \\ %}\\n Watch Roku\\n{% elif is_state('input_select.living_room_tv', 'PS3')\\\n \\ %}\\n PS3\\n{% else %} {% endif %}\\n\"\n - action: input_select.select_option\n entity_id: input_select.living_room_tv\n data_template:\n option: Select Activity",
|
|
"config": [
|
|
{
|
|
"name": "living room remote",
|
|
"room": "living room",
|
|
"type": "remote",
|
|
"id": {
|
|
"entity_id": "remote.living_room",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "living room tv input select",
|
|
"room": "living room",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.living_room_tv",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "netflix script",
|
|
"room": "living room",
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.netflix",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "hvac_filter_change",
|
|
"automation": "- id: hvac_filter_change\n alias: Change HVAC Filter\n initial_state: true\n trigger:\n - trigger: calendar\n entity_id: calendar.trefynwed_gmail_com\n event: start\n condition:\n - condition: template\n value_template: '{{ ''Change HVAC Filter'' in trigger.calendar_event.summary }}'\n actions:\n - action: secret telservice\n data_template:\n message: Have you changed the HVAC filter?\n data:\n inline_keyboard: Yes:/hvacfilteroff\n - action: timer.start\n data:\n entity_id: timer.hvacfilter\n duration: 01:00:00\n mode: queued",
|
|
"config": [
|
|
{
|
|
"name": "calendar",
|
|
"room": null,
|
|
"type": "calendar",
|
|
"id": {
|
|
"entity_id": "calendar.trefynwed_gmail_com",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "hvacfilter timer",
|
|
"room": null,
|
|
"type": "timer",
|
|
"id": {
|
|
"entity_id": "timer.hvacfilter",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "hvacfilter_off",
|
|
"automation": "- id: hvacfilter_off\n alias: HVAC Filter Changed\n initial_state: true\n trigger:\n trigger: event\n event_type: telegram_callback\n event_data:\n data: /hvacfilteroff\n actions:\n - action: telegram_bot.answer_callback_query\n data_template:\n callback_query_id: '{{ trigger.event.data.id }}'\n message: Ok, HVAC filter channged\n - action: telegram_bot.edit_replymarkup\n data_template:\n message_id: '{{ trigger.event.data.message.message_id }}'\n chat_id: '{{ trigger.event.data.chat_id }}'\n inline_keyboard: []\n - action: timer.cancel\n entity_id: timer.hvacfilter",
|
|
"config": [
|
|
{
|
|
"name": "hvacfilter timer",
|
|
"room": null,
|
|
"type": "timer",
|
|
"id": {
|
|
"entity_id": "timer.hvacfilter",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "hvacfilter_repeat",
|
|
"automation": "- id: hvacfilter_repeat\n alias: Repeat Change HVAC Filter\n initial_state: true\n trigger:\n trigger: event\n event_type: timer.finished\n event_data:\n entity_id: timer.hvacfilter\n actions:\n - action: secret telservice\n data_template:\n message: Have you changed the HVAC filter?\n data:\n inline_keyboard: Yes:/hvacfilteroff\n - action: timer.start\n data:\n entity_id: timer.hvacfilter\n duration: 01:00:00",
|
|
"config": [
|
|
{
|
|
"name": "hvacfilter timer",
|
|
"room": null,
|
|
"type": "timer",
|
|
"id": {
|
|
"entity_id": "timer.hvacfilter",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "ifttt",
|
|
"automation": "- id: ifttt\n alias: IFTTT\n initial_state: true\n trigger:\n trigger: event\n event_type: ifttt_webhook_received\n event_data:\n action: call_service\n action:\n action: '{{ trigger.event.data.service }}'\n data_template:\n entity_id: '{{ trigger.event.data.entity_id }}'",
|
|
"config": []
|
|
},
|
|
{
|
|
"id": "Interior_Lights_On_Sunset",
|
|
"automation": "- id: Interior_Lights_On_Sunset\n alias: Interior Lights On - Sunset\n initial_state: false\n triggers:\n - trigger: sun\n event: sunset\n offset: -00:45:00\n - trigger: state\n entity_id: group.presence\n to: home\n condition:\n condition: and\n conditions:\n - condition: sun\n after: sunset\n after_offset: -00:45:00\n - condition: state\n entity_id: group.presence\n state: home\n - condition: state\n entity_id: input_boolean.guest\n state: 'off'\n action:\n action: light.turn_on\n data:\n entity_id: light.livingroom_lights\n brightness_pct: 1",
|
|
"config": [
|
|
{
|
|
"name": "presence group",
|
|
"room": null,
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "group.presence",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "livingroom lights",
|
|
"room": "living room",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.livingroom_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "guest input",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.guest",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "medicine_reminder",
|
|
"automation": "- id: medicine_reminder\n alias: Take Medicine\n initial_state: true\n triggers:\n - trigger: time\n at: 08:30:00\n - trigger: time\n at: '20:00:00'\n actions:\n - action: secret telservice\n data_template:\n message: Did you take your medicine?\n data:\n inline_keyboard: Yes:/medoff,Remind Me Later:/medlater\n - action: timer.start\n data:\n entity_id: timer.medicine\n duration: 00:30:00",
|
|
"config": [
|
|
{
|
|
"name": "medicine timer",
|
|
"room": null,
|
|
"type": "timer",
|
|
"id": {
|
|
"entity_id": "timer.medicine",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "medicine_off",
|
|
"automation": "- id: medicine_off\n alias: Medicine Taken\n initial_state: true\n trigger:\n trigger: event\n event_type: telegram_callback\n event_data:\n data: /medoff\n actions:\n - action: telegram_bot.answer_callback_query\n data_template:\n callback_query_id: '{{ trigger.event.data.id }}'\n message: Ok, Medicine reminder acknowledged\n - action: telegram_bot.edit_replymarkup\n data_template:\n message_id: '{{ trigger.event.data.message.message_id }}'\n chat_id: '{{ trigger.event.data.chat_id }}'\n inline_keyboard: []\n - action: timer.cancel\n entity_id: timer.medicine",
|
|
"config": [
|
|
{
|
|
"name": "medicine timer",
|
|
"room": null,
|
|
"type": "timer",
|
|
"id": {
|
|
"entity_id": "timer.medicine",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "medicine_remind_me_later",
|
|
"automation": "- id: medicine_remind_me_later\n alias: Medicine - Remind Me Later\n initial_state: true\n trigger:\n trigger: event\n event_type: telegram_callback\n event_data:\n data: /medlater\n actions:\n - action: telegram_bot.answer_callback_query\n data_template:\n callback_query_id: '{{ trigger.event.data.id }}'\n message: Ok, I will remind you again in 30 minutes.\n - action: telegram_bot.edit_replymarkup\n data_template:\n message_id: '{{ trigger.event.data.message.message_id }}'\n chat_id: '{{ trigger.event.data.chat_id }}'\n inline_keyboard: []\n - action: timer.cancel\n entity_id: timer.medicine\n - action: timer.start\n data:\n entity_id: timer.medicine\n duration: 00:30:00",
|
|
"config": [
|
|
{
|
|
"name": "medicine timer",
|
|
"room": null,
|
|
"type": "timer",
|
|
"id": {
|
|
"entity_id": "timer.medicine",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "medicine_repeat_reminder",
|
|
"automation": "- id: medicine_repeat_reminder\n alias: Medicine - Repeat Reminder\n initial_state: true\n trigger:\n trigger: event\n event_type: timer.finished\n event_data:\n entity_id: timer.medicine\n actions:\n - action: secret telservice\n data_template:\n message: Did you take your medicine?\n data:\n inline_keyboard: Yes:/medoff,Remind Me Later:/medlater\n - action: timer.start\n data:\n entity_id: timer.medicine\n duration: 00:30:00",
|
|
"config": [
|
|
{
|
|
"name": "medicine timer",
|
|
"room": null,
|
|
"type": "timer",
|
|
"id": {
|
|
"entity_id": "timer.medicine",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "Murdok Radio Volume Control",
|
|
"automation": "- alias: Murdok Radio Volume Control\n initial_state: true\n trigger:\n trigger: state\n entity_id: input_number.murdok_radio\n action:\n - action: media_player.volume_set\n data_template:\n entity_id: media_player.googlehome_living_room\n volume_level: '{{ states(''input_number.murdok_radio'') }}\n\n '",
|
|
"config": [
|
|
{
|
|
"name": "murdok radio input number",
|
|
"room": "living room",
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.murdok_radio",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "googlehome living room media player",
|
|
"room": "living room",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.googlehome_living_room",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "Nightlight_Off_Motion",
|
|
"automation": "- id: Nightlight_Off_Motion\n alias: Nightlight Off - Motion\n initial_state: true\n trigger:\n trigger: state\n entity_id: binary_sensor.living_room_motion\n to: 'off'\n for:\n minutes: 15\n condition:\n condition: and\n conditions:\n - condition: time\n after: 06:00:00\n before: '10:00:00'\n - condition: state\n entity_id: input_boolean.guest\n state: 'off'\n - condition: template\n value_template: '{{ not is_state(''person.britt'',''home'') }}'\n action:\n action: light.turn_off\n data:\n entity_id:\n - light.hallway\n - light.front_entry\n - light.back_entry\n - light.kitchen",
|
|
"config": [
|
|
{
|
|
"name": "front entry light",
|
|
"room": "entryway",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.front_entry",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "guest input",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.guest",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "living room motion sensor",
|
|
"room": "living room",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.living_room_motion",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "hallway light",
|
|
"room": "hallway",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.hallway",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "back entry light",
|
|
"room": "entryway",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.back_entry",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "kitchen light",
|
|
"room": "kitchen",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.kitchen",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Britt",
|
|
"room": null,
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.britt",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "Nightlight_Off_Sunrise",
|
|
"automation": "- id: Nightlight_Off_Sunrise\n alias: Nightlight Off - Sunrise\n initial_state: true\n trigger:\n trigger: sun\n event: sunrise\n offset: +00:45:00\n condition:\n - condition: state\n entity_id: input_boolean.guest\n state: 'off'\n action:\n action: light.turn_off\n data:\n entity_id:\n - light.front_entry\n - light.livingroom_lights\n - light.diningroom",
|
|
"config": [
|
|
{
|
|
"name": "front entry light",
|
|
"room": "entryway",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.front_entry",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "livingroom lights",
|
|
"room": "living room",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.livingroom_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "diningroom light",
|
|
"room": "dining room",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.diningroom",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "guest input",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.guest",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "Nightlight_Off_Time",
|
|
"automation": "- id: Nightlight_Off_Time\n alias: Nightlight Off - Time\n initial_state: true\n trigger:\n trigger: time\n at: '10:00:00'\n action:\n action: light.turn_off\n data:\n entity_id:\n - light.livingroom_lights\n - light.front_entry\n - light.diningroom",
|
|
"config": [
|
|
{
|
|
"name": "front entry light",
|
|
"room": "entryway",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.front_entry",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "livingroom lights",
|
|
"room": "living room",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.livingroom_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "diningroom light",
|
|
"room": "dining room",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.diningroom",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "Nightlights On",
|
|
"automation": "- id: Nightlights On\n initial_state: true\n alias: Nightlights On\n trigger:\n trigger: state\n entity_id: binary_sensor.living_room_motion\n to: 'on'\n condition:\n condition: and\n conditions:\n - condition: time\n after: 06:00:00\n before: '10:00:00'\n - condition: state\n entity_id: input_boolean.guest\n state: 'off'\n actions:\n - action: light.turn_on\n data:\n entity_id:\n - light.front_entry\n - light.back_entry\n - light.hallway\n brightness_pct: 1\n - action: light.turn_on\n data:\n entity_id: light.pendant1\n brightness_pct: 1",
|
|
"config": [
|
|
{
|
|
"name": "front entry light",
|
|
"room": "entryway",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.front_entry",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "guest input",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.guest",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "living room motion sensor",
|
|
"room": "living room",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.living_room_motion",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "hallway light",
|
|
"room": "hallway",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.hallway",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "back entry light",
|
|
"room": "entryway",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.back_entry",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "pendant1 light",
|
|
"room": "kitchen",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.pendant1",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "toggle_office_roku",
|
|
"automation": "- id: toggle_office_roku\n alias: Toggle Office Roku\n initial_state: true\n trigger:\n - trigger: event\n event_type: tag_scanned\n event_data:\n tag_id: fd63aff9-078c-4653-a47a-0ed42272fd8b\n actions:\n - action: remote.send_command\n data:\n entity_id: remote.office\n command: power\n - action: switch.turn_on\n entity_id: switch.dog_cam\n - action: rest_command.tasker_nfc_office",
|
|
"config": [
|
|
{
|
|
"name": "office remote",
|
|
"room": "office",
|
|
"type": "remote",
|
|
"id": {
|
|
"entity_id": "remote.office",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "dog cam switch",
|
|
"room": "office",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.dog_cam",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "Facial_Recognition",
|
|
"automation": "- id: Facial_Recognition\n alias: Double Take Facial Recognition\n initial_state: true\n trigger:\n - trigger: state\n entity_id: sensor.double_take_britt\n condition:\n - condition: and\n conditions:\n - condition: state\n entity_id: input_boolean.motion_alert\n state: 'on'\n - condition: state\n entity_id: input_boolean.autolock\n state: 'on'\n - condition: state\n entity_id: binary_sensor.front_door\n state: 'off'\n - condition: template\n value_template: '{{ not (now() - states.binary_sensor.front_door.last_changed).total_seconds()\n < 30 }}'\n - condition: template\n value_template: '{{ trigger.to_state.attributes.id = trigger.from_state.attributes.id\n }}'\n action:\n - action: telegram_bot.send_photo\n data:\n url: http://frigate.sky.net:3000/api/storage/matches/{{ trigger.to_state.attributes.match.filename\n }}?box=true\n caption: \"{% if trigger.to_state.attributes.match is defined %}\\n {{ trigger.to_state.attributes.match.name\\\n \\ | title }} identified by {{trigger.to_state.attributes.camera | replace(\\\"\\\n _\\\", \\\" \\\") | title}} @ {{trigger.to_state.attributes.match.confidence}}%,\\\n \\ took {{trigger.to_state.attributes.attempts}} attempt(s) @ {{trigger.to_state.attributes.duration}}\\\n \\ sec\\n{% endif %}\"\n target: secret tchatid1\n mode: single\n max_exceeded: silent",
|
|
"config": [
|
|
{
|
|
"name": "motion alert input",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.motion_alert",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "autolock input",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.autolock",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "front door sensor",
|
|
"room": "entryway",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.front_door",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "double take britt sensor",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.double_take_britt",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Secret Telegram Chat ID 1",
|
|
"room": null,
|
|
"type": null,
|
|
"id": {
|
|
"entity_id": "secret tchatid1",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "record_away",
|
|
"automation": "- id: record_away\n alias: Enable Recording\n initial_state: false\n trigger:\n trigger: state\n entity_id: group.presence\n from: home\n to: not_home\n condition:\n - condition: state\n entity_id: input_boolean.guest\n state: 'off'\n actions:\n - action: switch.turn_on\n entity_id:\n - switch.dog_cam_detect\n - switch.dog_cam_motion\n - switch.dog_cam_recordings\n - switch.dog_cam_snapshots\n - action: secret telservice\n data:\n message: Nobody is at home, enabling camera recording",
|
|
"config": [
|
|
{
|
|
"name": "presence group",
|
|
"room": null,
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "group.presence",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "guest input",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.guest",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "dog cam switch",
|
|
"room": "office",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.dog_cam",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "dog cam detect switch",
|
|
"room": "office",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.dog_cam_detect",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "dog cam motion switch",
|
|
"room": "office",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.dog_cam_motion",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "dog cam recordings switch",
|
|
"room": "office",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.dog_cam_recordings",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "dog cam snapshots switch",
|
|
"room": "office",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.dog_cam_snapshots",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "record_stop",
|
|
"automation": "- id: record_stop\n alias: Disable Recording\n initial_state: true\n triggers:\n - trigger: state\n entity_id:\n - secret personentity1\n from: not_home\n to: home\n - trigger: state\n entity_id:\n - secret personentity2\n from: not_home\n to: home\n condition:\n condition: or\n conditions:\n - condition: state\n entity_id: switch.dog_cam_detect\n state: 'on'\n - condition: state\n entity_id: switch.dog_cam_motion\n state: 'on'\n - condition: state\n entity_id: switch.dog_cam_recordings\n state: 'on'\n - condition: state\n entity_id: switch.dog_cam_snapshots\n state: 'on'\n actions:\n - action: switch.turn_off\n entity_id:\n - switch.dog_cam_detect\n - switch.dog_cam_motion\n - switch.dog_cam_recordings\n - switch.dog_cam_snapshots\n - action: secret telservice\n data:\n message: Camera recording disabled.\n mode: single\n max_exceeded: silent",
|
|
"config": [
|
|
{
|
|
"name": "dog cam switch",
|
|
"room": "office",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.dog_cam",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "dog cam detect switch",
|
|
"room": "office",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.dog_cam_detect",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "dog cam motion switch",
|
|
"room": "office",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.dog_cam_motion",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "dog cam recordings switch",
|
|
"room": "office",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.dog_cam_recordings",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "dog cam snapshots switch",
|
|
"room": "office",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.dog_cam_snapshots",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Secret Person Entity 1",
|
|
"room": null,
|
|
"type": null,
|
|
"id": {
|
|
"entity_id": "secret personentity1",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Secret Person Entity 2",
|
|
"room": null,
|
|
"type": null,
|
|
"id": {
|
|
"entity_id": "secret personentity2",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "record_frigate_restart",
|
|
"automation": "- id: record_frigate_restart\n alias: Disable Recording on Frigate Restart\n initial_state: true\n trigger:\n trigger: state\n entity_id: camera.dog_cam\n from: unavailable\n condition:\n condition: or\n conditions:\n - condition: state\n entity_id: secret personentity1\n state: home\n - condition: state\n entity_id: secret personentity2\n state: home\n action:\n - action: switch.turn_off\n entity_id:\n - switch.dog_cam_detect\n - switch.dog_cam_motion\n - switch.dog_cam_recordings\n - switch.dog_cam_snapshots",
|
|
"config": [
|
|
{
|
|
"name": "dog cam switch",
|
|
"room": "office",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.dog_cam",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "dog cam detect switch",
|
|
"room": "office",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.dog_cam_detect",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "dog cam motion switch",
|
|
"room": "office",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.dog_cam_motion",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "dog cam recordings switch",
|
|
"room": "office",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.dog_cam_recordings",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "dog cam snapshots switch",
|
|
"room": "office",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.dog_cam_snapshots",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "dog cam camera",
|
|
"room": "office",
|
|
"type": "camera",
|
|
"id": {
|
|
"entity_id": "camera.dog_cam",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Secret Person Entity 1",
|
|
"room": null,
|
|
"type": null,
|
|
"id": {
|
|
"entity_id": "secret personentity1",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Secret Person Entity 2",
|
|
"room": null,
|
|
"type": null,
|
|
"id": {
|
|
"entity_id": "secret personentity2",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "Netflix",
|
|
"automation": "- alias: Netflix\n initial_state: true\n trigger:\n - trigger: state\n entity_id: input_boolean.netflix\n to: 'on'\n actions:\n - action: script.turn_on\n entity_id: script.netflix\n - delay: 00:00:05\n - action: input_boolean.turn_off\n entity_id: input_boolean.netflix",
|
|
"config": [
|
|
{
|
|
"name": "netflix script",
|
|
"room": "living room",
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.netflix",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "netflix input boolean",
|
|
"room": "living room",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.netflix",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "trash_put_out",
|
|
"automation": "- id: trash_put_out\n alias: Put out the trash\n initial_state: true\n trigger:\n - trigger: calendar\n entity_id: calendar.trefynwed_gmail_com\n event: start\n condition:\n - condition: template\n value_template: '{{ ''Put out the trash'' in trigger.calendar_event.summary }}'\n actions:\n - action: secret telservice\n data_template:\n message: Did you put out the trash?\n data:\n inline_keyboard: Yes:/trashoff\n - action: timer.start\n data:\n entity_id: timer.trash\n duration: 00:30:00\n mode: queued",
|
|
"config": [
|
|
{
|
|
"name": "calendar",
|
|
"room": null,
|
|
"type": "calendar",
|
|
"id": {
|
|
"entity_id": "calendar.trefynwed_gmail_com",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "trash timer",
|
|
"room": null,
|
|
"type": "timer",
|
|
"id": {
|
|
"entity_id": "timer.trash",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "trash_off",
|
|
"automation": "- id: trash_off\n alias: Trash put out\n initial_state: true\n trigger:\n trigger: event\n event_type: telegram_callback\n event_data:\n data: /trashoff\n actions:\n - action: telegram_bot.answer_callback_query\n data_template:\n callback_query_id: '{{ trigger.event.data.id }}'\n message: Ok, trash reminder acknowledged\n - action: telegram_bot.edit_replymarkup\n data_template:\n message_id: '{{ trigger.event.data.message.message_id }}'\n chat_id: '{{ trigger.event.data.chat_id }}'\n inline_keyboard: []\n - action: timer.cancel\n entity_id: timer.trash",
|
|
"config": [
|
|
{
|
|
"name": "trash timer",
|
|
"room": null,
|
|
"type": "timer",
|
|
"id": {
|
|
"entity_id": "timer.trash",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "trash_repeat_put_out",
|
|
"automation": "- id: trash_repeat_put_out\n alias: Repeat Put Out Trash\n initial_state: true\n trigger:\n trigger: event\n event_type: timer.finished\n event_data:\n entity_id: timer.trash\n actions:\n - action: secret telservice\n data_template:\n message: Did you put out the trash?\n data:\n inline_keyboard: Yes:/trashoff\n - action: timer.start\n data:\n entity_id: timer.trash\n duration: 00:30:00",
|
|
"config": [
|
|
{
|
|
"name": "trash timer",
|
|
"room": null,
|
|
"type": "timer",
|
|
"id": {
|
|
"entity_id": "timer.trash",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "Hass_Update_Available",
|
|
"automation": "- id: Hass_Update_Available\n alias: Home Assistant Update Available\n initial_state: true\n trigger:\n - trigger: state\n entity_id: binary_sensor.home_assistant_website_update_available\n from: 'off'\n to: 'on'\n action:\n - action: secret telservice\n data_template:\n message: '{% set HassVer = states(''sensor.home_assistant_website'') %} {% set\n HassNotes = state_attr(''sensor.home_assistant_website'', ''release_notes'')\n %} Home Assistant version {{ HassVer }} is now available {{''\\n''}}{{''\\n''}}\n {{ HassNotes }}\n\n '",
|
|
"config": [
|
|
{
|
|
"name": "home assistant website update available",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.home_assistant_website_update_available",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "home assistant website sensor",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.home_assistant_website",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
}
|
|
] |