1482 lines
75 KiB
JSON
1482 lines
75 KiB
JSON
[
|
|
{
|
|
"id": "wake_up",
|
|
"automation": "- id: wake_up\n alias: Wake Up\n trigger:\n - platform: template\n value_template: '{{ states(''sensor.time'') == states(''sensor.alarm_time'') }}'\n condition:\n - condition: or\n conditions:\n - condition: and\n conditions:\n - condition: state\n entity_id: input_boolean.alarmweekday\n state: 'on'\n - condition: time\n weekday:\n - mon\n - tue\n - wed\n - thu\n - fri\n before: 00:00:00\n after: 00:00:00\n - condition: state\n entity_id: input_boolean.alarmweekday\n state: 'off'\n action:\n - service: light.turn_on\n data:\n brightness_pct: 25\n target:\n entity_id: light.under_bed_lights\n - delay:\n hours: 0\n minutes: 30\n seconds: 0\n milliseconds: 0\n - service: light.turn_on\n data:\n brightness_pct: 100\n target:\n entity_id:\n - group.office_lights\n - service: notify.discord\n data_template:\n target: '814328602270498817'\n message: \"{# Deliveries Sentence #}\\n {% macro deliveries_sentence() -%}\\n\\\n \\ {%- if states(\\\"sensor.mail_usps_mail\\\")|int(0) == 0 -%}\\n \\\n \\ No\\n {%- else -%}\\n {{states(\\\"sensor.mail_usps_mail\\\"\\\n )|int(0)}}\\n {%- endif -%}\\n {{' '}} \\n {%- if states(\\\"\\\n sensor.mail_usps_mail\\\")|int(0) == 0 -%}\\n mail\\n {%- elif\\\n \\ states(\\\"sensor.mail_usps_mail\\\")|int(0) == 1 -%}\\n piece of mail\\n\\\n \\ {%- else -%}\\n pieces of mail\\n {%- endif -%}\\n \\\n \\ {{' '}}will be delivered.{{' '}} \\n {%- if states(\\\"sensor.mail_packages_in_transit\\\"\\\n )|int(0) == 0 -%}\\n No\\n {%- else -%}\\n {{states(\\\"\\\n sensor.mail_packages_in_transit\\\")|int(0)}}\\n {%- endif -%}\\n \\\n \\ {{' '}} \\n {%- if states(\\\"sensor.mail_packages_in_transit\\\")|int(0)\\\n \\ == 1 -%}\\n package is\\n {%- else -%}\\n packages\\\n \\ are\\n {%- endif -%}\\n {{' '}}in transit.{{' '}}\\n {%- endmacro\\\n \\ %}\\n{{deliveries_sentence()}}\"\n data:\n embed:\n title: Package Status\n description: \"{# Deliveries Sentence #}\\n {% macro deliveries_sentence()\\\n \\ -%}\\n {%- if states(\\\"sensor.mail_usps_mail\\\")|int(0) == 0 -%}\\n\\\n \\ No\\n {%- else -%}\\n {{states(\\\"sensor.mail_usps_mail\\\"\\\n )|int(0)}}\\n {%- endif -%}\\n {{' '}} \\n {%- if states(\\\"\\\n sensor.mail_usps_mail\\\")|int(0) == 1 -%}\\n letter\\n {%-\\\n \\ else -%}\\n letters\\n {%- endif -%}\\n {{' '}}will\\\n \\ be delivered.{{' '}} \\n {%- if states(\\\"sensor.mail_usps_delivering\\\"\\\n )|int(0) == 0 -%}\\n No\\n {%- else -%}\\n {{states(\\\"\\\n sensor.mail_usps_delivering\\\")|int(0)}}\\n {%- endif -%}\\n \\\n \\ {{' '}} \\n {%- if states(\\\"sensor.mail_usps_delivering\\\")|int(0)\\\n \\ == 1 -%}\\n USPS package\\n {%- else -%}\\n USPS\\\n \\ packages\\n {%- endif -%}\\n {{' '}}\\n{{''}}\\n {%-\\\n \\ if states(\\\"sensor.mail_fedex_delivering\\\")|int(0) == 0 -%}\\n \\\n \\ No\\n {%- else -%}\\n {{states(\\\"sensor.mail_fedex_delivering\\\"\\\n )|int(0)}}\\n {%- endif -%}\\n {{' '}} \\n {%- if states(\\\"\\\n sensor.mail_fedex_delivering\\\")|int(0) == 1 -%}\\n FedEx package\\n\\\n \\ {%- else -%}\\n Fedex packages\\n {%- endif -%}\\n\\\n \\ {{' '}}\\n{{''}}\\n {%- if states(\\\"sensor.mail_ups_delivering\\\"\\\n )|int(0) == 0 -%}\\n No\\n {%- else -%}\\n {{states(\\\"\\\n sensor.mail_ups_delivering\\\")|int(0)}}\\n {%- endif -%}\\n {{'\\\n \\ '}} \\n {%- if states(\\\"sensor.mail_ups_delivering\\\")|int(0) ==\\\n \\ 1 -%}\\n UPS package\\n {%- else -%}\\n UPS packages\\n\\\n \\ {%- endif -%}\\n {{' '}}\\n{{''}}\\n {%- if states(\\\"\\\n sensor.mail_amazon_packages\\\")|int(0) == 0 -%}\\n No\\n \\\n \\ {%- else -%}\\n {{states(\\\"sensor.mail_amazon_packages\\\")|int(0)}}\\n\\\n \\ {%- endif -%}\\n {{' '}} \\n {%- if states(\\\"sensor.mail_amazon_packages\\\"\\\n )|int(0) == 1 -%}\\n Amazon package\\n {%- else -%}\\n \\\n \\ Amazon packages\\n {%- endif -%}\\n {{' '}}{{' '}}\\n\\\n \\ {%- endmacro %}\\n{{deliveries_sentence()}}\"\n thumbnail:\n url: https://brands.home-assistant.io/mail_and_packages/logo.png\n footer:\n text: Mail and Packages\n mode: single",
|
|
"config": [
|
|
{
|
|
"name": "time sensor",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.time",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "alarm time sensor",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.alarm_time",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "alarm weekday input boolean",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.alarmweekday",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "under bed lights",
|
|
"room": "bedroom",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.under_bed_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "office lights group",
|
|
"room": "office",
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "group.office_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "mail usps mail sensor",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.mail_usps_mail",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "mail packages in transit sensor",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.mail_packages_in_transit",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "mail usps delivering sensor",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.mail_usps_delivering",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "mail fedex delivering sensor",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.mail_fedex_delivering",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "mail ups delivering sensor",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.mail_ups_delivering",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "mail amazon packages sensor",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.mail_amazon_packages",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Discord Target 814328602270498817",
|
|
"room": null,
|
|
"type": null,
|
|
"id": {
|
|
"entity_id": null,
|
|
"device_id": "814328602270498817"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "later",
|
|
"automation": "- id: later\n alias: See You Later\n trigger:\n - entity_id: alarm_control_panel.10th_street\n platform: state\n to: armed_home\n for: 0:20:00\n - entity_id: alarm_control_panel.10th_street\n platform: state\n to: armed_away\n action:\n - service: homeassistant.turn_off\n target:\n entity_id: group.home_lights\n mode: single",
|
|
"config": [
|
|
{
|
|
"name": "10th street alarm control panel",
|
|
"room": null,
|
|
"type": "alarm_control_panel",
|
|
"id": {
|
|
"entity_id": "alarm_control_panel.10th_street",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "home lights group",
|
|
"room": null,
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "group.home_lights",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "fan",
|
|
"automation": "- id: fan\n alias: Fan\n trigger:\n - platform: time_pattern\n hours: /1\n - platform: state\n entity_id: fan.hvac_fan\n to: 'on'\n for:\n hours: 1\n minutes: 0\n seconds: 0\n condition:\n - condition: and\n conditions:\n - condition: state\n entity_id: group.family\n state: home\n action:\n - data: {}\n service: fan.turn_on\n target:\n entity_id: fan.hvac_fan\n - delay:\n hours: 0\n minutes: 15\n seconds: 0\n milliseconds: 0\n - service: fan.turn_off\n target:\n entity_id: fan.hvac_fan\n data: {}\n mode: single",
|
|
"config": [
|
|
{
|
|
"name": "hvac fan",
|
|
"room": null,
|
|
"type": "fan",
|
|
"id": {
|
|
"entity_id": "fan.hvac_fan",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "family group",
|
|
"room": null,
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "group.family",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "workday",
|
|
"automation": "- id: workday\n alias: Workday\n trigger:\n - at: 08:30:00\n platform: time\n - at: '17:30:00'\n platform: time\n condition:\n - condition: state\n entity_id: binary_sensor.workday\n state: 'on'\n action:\n - service: '{% if now().strftime(''%H:%M:%S'') <= ''12:00:00'' %}input_boolean.turn_off\n {% else %}input_boolean.turn_on{% endif %}'\n entity_id: input_boolean.voice_notifications\n mode: single",
|
|
"config": [
|
|
{
|
|
"name": "workday binary sensor",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.workday",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "voice notifications input boolean",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.voice_notifications",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "humidfier",
|
|
"automation": "- id: humidfier\n alias: Humidifier\n trigger:\n - platform: template\n value_template: '{{ states(''sensor.time'') == states(''sensor.alarm_time'') }}'\n - platform: time\n at: '22:00:00'\n action:\n - service: '{% if now().strftime(''%H:%M:%S'') >= ''12:00:00'' %}humidifier.turn_on\n {% else %}humidifier.turn_off {% endif %}'\n entity_id: humidifier.bedroom_humidifier",
|
|
"config": [
|
|
{
|
|
"name": "time sensor",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.time",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "alarm time sensor",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.alarm_time",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "bedroom humidifier",
|
|
"room": "bedroom",
|
|
"type": "humidifier",
|
|
"id": {
|
|
"entity_id": "humidifier.bedroom_humidifier",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "ledweather",
|
|
"automation": "- id: ledweather\n alias: LED Weather\n trigger:\n - platform: state\n entity_id: weather.kdca_daynight\n action:\n - service: light.turn_on\n entity_id: light.living_room_led, light.office_led, light.bedroom_led\n data_template:\n color_name: '{% if \"clear\" in states.weather.kdca_daynight.state %}yellow {%-elif\n \"cloudy\" in states.weather.kdca_daynight.state %}purple {%-elif \"overcast\"\n in states.weather.kdca_daynight.state %}purple {%-elif \"fog\" in states.weather.kdca_daynight.state\n %}blue {%-elif \"rain\" in states.weather.kdca_daynight.state %}blue {%-elif\n \"wind\" in states.weather.kdca_daynight.state %}cyan {%-elif \"ice\" in states.weather.kdca_daynight.state\n %}cyan {%-elif \"snow\" in states.weather.kdca_daynight.state %}cyan {%-elif\n \"thunderstorm\" in states.weather.kdca_daynight.state %}red {%-elif \"hail\"\n in states.weather.kdca_daynight.state %}cyan {%-elif \"tornado\" in states.weather.kdca_daynight.state\n %}red {%-else %}white {% endif %}'\n - service: light.turn_off\n entity_id: light.living_room_led, light.office_led, light.bedroom_led",
|
|
"config": [
|
|
{
|
|
"name": "kdca daynight weather",
|
|
"room": null,
|
|
"type": "weather",
|
|
"id": {
|
|
"entity_id": "weather.kdca_daynight",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "living room led",
|
|
"room": "living_room",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.living_room_led",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "office led",
|
|
"room": "office",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.office_led",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "bedroom led",
|
|
"room": "bedroom",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.bedroom_led",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "hassstart",
|
|
"automation": "- id: hassstart\n alias: HASS Reload\n trigger:\n - event: start\n platform: homeassistant\n id: start\n - event_data:\n domain: automation\n service: reload\n event_type: call_service\n platform: event\n action:\n - delay: 0:00:02\n - entity_id: switch.neo\n service: switch.turn_on\n - data:\n color_temp: 369\n service: light.turn_on\n target:\n entity_id:\n - light.office_light\n - light.storage_light\n - data:\n rgb_color:\n - 255\n - 255\n - 255\n service: light.turn_on\n target:\n entity_id:\n - light.living_room_led\n - light.office_led\n - light.bedroom_led\n - data:\n color_name: blueviolet\n entity_id: light.tv_backlight\n service: light.turn_on\n - delay: 00:00:02\n - service: light.turn_off\n target:\n entity_id:\n - light.living_room_led\n - light.office_led\n - light.bedroom_led\n - light.storage_light\n - light.office_light\n - light.tv_backlight\n data: {}\n - data: {}\n entity_id: automation.information_alert\n service: automation.turn_on\n - if:\n - condition: trigger\n id:\n - start\n then:\n - service: notify.discord\n data:\n message: Home Assistant has Restarted\n target: '814328602270498817'\n mode: single",
|
|
"config": [
|
|
{
|
|
"name": "living room led",
|
|
"room": "living_room",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.living_room_led",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "office led",
|
|
"room": "office",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.office_led",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "bedroom led",
|
|
"room": "bedroom",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.bedroom_led",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "neo switch",
|
|
"room": null,
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.neo",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "office light",
|
|
"room": "office",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.office_light",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "storage light",
|
|
"room": "storage",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.storage_light",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "tv backlight",
|
|
"room": "living_room",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.tv_backlight",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "information alert automation",
|
|
"room": null,
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.information_alert",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Discord Target 814328602270498817",
|
|
"room": null,
|
|
"type": null,
|
|
"id": {
|
|
"entity_id": null,
|
|
"device_id": "814328602270498817"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "ledmotion",
|
|
"automation": "- id: ledmotion\n alias: LED Motion\n trigger:\n - platform: state\n entity_id: binary_sensor.living_room_motion, binary_sensor.bedroom_motion, binary_sensor.office_motion\n to: 'on'\n condition:\n - condition: time\n after: 06:00:00\n before: '23:00:00'\n action:\n - service: light.turn_on\n entity_id: light.living_room_led, light.office_led, light.bedroom_led\n - delay: 00:00:01\n - service: light.turn_off\n entity_id: light.living_room_led, light.office_led, light.bedroom_led\n mode: single",
|
|
"config": [
|
|
{
|
|
"name": "living room led",
|
|
"room": "living_room",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.living_room_led",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "office led",
|
|
"room": "office",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.office_led",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "bedroom led",
|
|
"room": "bedroom",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.bedroom_led",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "living room motion binary sensor",
|
|
"room": "living_room",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.living_room_motion",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "bedroom motion binary sensor",
|
|
"room": "bedroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.bedroom_motion",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "office motion binary sensor",
|
|
"room": "office",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.office_motion",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "motionless",
|
|
"automation": "- id: motionless\n alias: Motionless\n trigger:\n - entity_id: binary_sensor.living_room_motion\n for: 02:00:00\n platform: state\n to: 'off'\n - entity_id: binary_sensor.bedroom_motion\n for: 01:00:00\n platform: state\n to: 'off'\n condition:\n - condition: time\n after: 00:00:00\n - condition: sun\n before: sunset\n action:\n - data_template:\n entity_id: \"{% if trigger.entity_id == 'binary_sensor.bedroom_motion' %}\\n \\\n \\ group.bedroom_lights\\n{% elif trigger.entity_id == 'binary_sensor.living_room_motion'\\\n \\ %}\\n group.living_room_lights\\n{% endif %}\\n\"\n service: homeassistant.turn_off\n mode: single\n max: 10",
|
|
"config": [
|
|
{
|
|
"name": "living room motion binary sensor",
|
|
"room": "living_room",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.living_room_motion",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "bedroom motion binary sensor",
|
|
"room": "bedroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.bedroom_motion",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "bedroom lights group",
|
|
"room": "bedroom",
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "group.bedroom_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "living room lights group",
|
|
"room": "living_room",
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "group.living_room_lights",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "plex",
|
|
"automation": "- id: plex\n alias: Plex Wake\n trigger:\n - platform: time_pattern\n minutes: /59\n condition:\n - condition: and\n conditions:\n - condition: time\n after: '18:58:00'\n before: 00:00:00\n action:\n - service: switch.turn_on\n entity_id: switch.neo\n - service: logbook.log\n data:\n name: Wake Plex\n message: has woke Neo\n mode: single",
|
|
"config": [
|
|
{
|
|
"name": "neo switch",
|
|
"room": null,
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.neo",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "ifttt_remote",
|
|
"automation": "- id: ifttt_remote\n alias: IFTTT - Send Remote\n trigger:\n - event_data:\n action: call_service\n event_type: ifttt_webhook_received\n platform: event\n condition:\n - condition: template\n value_template: '{% if trigger.event.data.service == ''remote.send_command'' %}true{%endif\n %}'\n action:\n - data_template:\n command: '{% set source = trigger.event.data.command|lower %} {% if source ==\n \"cable\" %}cm2 {% elif source == \"roku\" %}hdmi3 {% elif source == \"chromecast\"\n %}hdmi4 {% elif source == \"switch\" %}hdmi1 {% elif source == \"xbox\" %}hdmi2\n {% endif %}'\n device: '{{ trigger.event.data.device|lower }}'\n entity_id: '{{ trigger.event.data.entity_id|lower }}'\n service: '{{ trigger.event.data.service }}'",
|
|
"config": []
|
|
},
|
|
{
|
|
"id": "ifttt_tracker",
|
|
"automation": "- id: ifttt_tracker\n alias: IFTTT - Device Tracker\n trigger:\n - event_data:\n action: call_service\n event_type: ifttt_webhook_received\n platform: event\n condition:\n - condition: template\n value_template: '{% if trigger.event.data.service == ''device_tracker.see'' %}true{%\n endif %}'\n action:\n - data_template:\n dev_id: '{{ trigger.event.data.dev_id | lower | replace(\" \",\"_\") }}'\n location_name: '{{ trigger.event.data.location_name|lower }}'\n service: '{{ trigger.event.data.service }}'\n mode: single",
|
|
"config": []
|
|
},
|
|
{
|
|
"id": "ifttt",
|
|
"automation": "- id: ifttt\n alias: IFTTT Webhook\n trigger:\n - event_data:\n action: call_service\n event_type: ifttt_webhook_received\n platform: event\n condition:\n - condition: template\n value_template: '{% if trigger.event.data.service != ''remote.send_command'' and\n trigger.event.data.service != ''device_tracker.see'' %}true{% endif %}'\n action:\n - data_template:\n entity_id: '{{ trigger.event.data.entity_id|lower }}'\n service: '{{ trigger.event.data.service }}'",
|
|
"config": []
|
|
},
|
|
{
|
|
"id": "tvsource",
|
|
"automation": "- id: tvsource\n alias: Change TV Source\n trigger:\n - entity_id: input_select.living_room_tv_source\n platform: state\n action:\n - data_template:\n command: '{% set source = states(''input_select.living_room_tv_source'') | lower\n %} {% if source == \"cable\" %}cm2 {% elif source == \"roku\" %}hdmi3 {% elif\n source == \"chromecast\" %}hdmi4 {% elif source == \"switch\" %}hdmi1 {% elif\n source == \"xbox\" %}hdmi2 {% endif %}'\n device: television\n entity_id: remote.broadlink\n num_repeats: 5\n service: remote.send_command",
|
|
"config": [
|
|
{
|
|
"name": "living room tv source input select",
|
|
"room": "living_room",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.living_room_tv_source",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "broadlink remote",
|
|
"room": "living_room",
|
|
"type": "remote",
|
|
"id": {
|
|
"entity_id": "remote.broadlink",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "changechannel",
|
|
"automation": "- id: changechannel\n alias: Change Channel\n trigger:\n - platform: state\n entity_id: input_select.cable_channel\n action:\n - service: remote.send_command\n data_template:\n entity_id: remote.broadlink\n device: cable\n command: '{% set indexes = states.input_select.cable_channel.state.split(''\n '')[0] %} {{ indexes[0] | int }}\n\n '\n - condition: template\n value_template: '{% set indexes = states.input_select.cable_channel.state.split(''\n '')[0] %} {{ indexes | count >= 2 }}\n\n '\n - delay:\n milliseconds: 500\n - service: remote.send_command\n data_template:\n entity_id: remote.broadlink\n device: cable\n command: '{% set indexes = states.input_select.cable_channel.state.split(''\n '')[0] %} {{ indexes[1] | int }}\n\n '\n - condition: template\n value_template: '{% set indexes = states.input_select.cable_channel.state.split(''\n '')[0] %} {{ indexes | count >= 3 }}\n\n '\n - delay:\n milliseconds: 500\n - service: remote.send_command\n data_template:\n entity_id: remote.broadlink\n device: cable\n command: '{% set indexes = states.input_select.cable_channel.state.split(''\n '')[0] %} {{ indexes[2] | int }}\n\n '",
|
|
"config": [
|
|
{
|
|
"name": "broadlink remote",
|
|
"room": "living_room",
|
|
"type": "remote",
|
|
"id": {
|
|
"entity_id": "remote.broadlink",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "cable channel input select",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.cable_channel",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "changeroute",
|
|
"automation": "- id: changeroute\n alias: Change Route\n trigger:\n - platform: state\n entity_id: input_select.destination\n - platform: state\n entity_id: input_select.origin\n action:\n - service: input_boolean.turn_on\n entity_id: input_boolean.update_route\n - service: homeassistant.update_entity\n data:\n entity_id: sensor.via_driving\n - service: homeassistant.update_entity\n data:\n entity_id: sensor.via_metro\n - service: homeassistant.update_entity\n data:\n entity_id: sensor.via_bus",
|
|
"config": [
|
|
{
|
|
"name": "destination input select",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.destination",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "origin input select",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.origin",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "update route input boolean",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.update_route",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "via driving sensor",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.via_driving",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "via metro sensor",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.via_metro",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "via bus sensor",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.via_bus",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "updateroute",
|
|
"automation": "- id: updateroute\n alias: Update Route\n trigger:\n - platform: state\n entity_id: input_boolean.update_route\n to: 'on'\n action:\n - delay: 00:30\n - service: input_boolean.turn_off\n entity_id: input_boolean.update_route",
|
|
"config": [
|
|
{
|
|
"name": "update route input boolean",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.update_route",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "dailyroute",
|
|
"automation": "- id: dailyroute\n alias: Daily Route\n trigger:\n - platform: time\n at: 08:00:00\n - platform: time\n at: '16:00:00'\n condition:\n - condition: time\n weekday:\n - mon\n - tue\n - wed\n - thu\n - fri\n before: 00:00:00\n after: 00:00:00\n action:\n - service: input_select.select_option\n data_template:\n entity_id: input_select.origin\n option: ' {% if now().hour|int > 12 %}Peter DC Office {% else %}Home {% endif\n %}'\n - service: input_select.select_option\n data_template:\n entity_id: input_select.destination\n option: ' {% if now().hour|int > 12 %}Home {% else %}Peter DC Office {% endif\n %}'\n - service: input_boolean.turn_on\n entity_id: input_boolean.update_route\n - delay: 00:45\n - service: input_boolean.turn_off\n entity_id: input_boolean.update_route",
|
|
"config": [
|
|
{
|
|
"name": "destination input select",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.destination",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "origin input select",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.origin",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "update route input boolean",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.update_route",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "updatecommute",
|
|
"automation": "- id: updatecommute\n alias: Update Commute\n trigger:\n - platform: time_pattern\n minutes: /2\n condition:\n - condition: or\n conditions:\n - condition: state\n entity_id: input_boolean.update_route\n state: 'on'\n action:\n - service: homeassistant.update_entity\n data:\n entity_id: sensor.via_driving\n - service: homeassistant.update_entity\n data:\n entity_id: sensor.via_metro\n - service: homeassistant.update_entity\n data:\n entity_id: sensor.via_bus\n mode: restart",
|
|
"config": [
|
|
{
|
|
"name": "update route input boolean",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.update_route",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "via driving sensor",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.via_driving",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "via metro sensor",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.via_metro",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "via bus sensor",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.via_bus",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "updateavailable",
|
|
"automation": "- id: updateavailable\n alias: Update Available\n trigger:\n - platform: state\n entity_id:\n - binary_sensor.docker_hub_update_available\n to: 'on'\n action:\n - service: notify.persistent_notification\n data_template:\n title: New Home Assistant Release\n message: Home Assistant {{ states('sensor.docker_hub_version') }} is now available\n - service: notify.discord\n data_template:\n message: Home Assistant {{ states('sensor.docker_hub_version') }} is now available\n target: '814328602270498817'\n mode: single",
|
|
"config": [
|
|
{
|
|
"name": "docker hub update available binary sensor",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.docker_hub_update_available",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "docker hub version sensor",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.docker_hub_version",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Discord Target 814328602270498817",
|
|
"room": null,
|
|
"type": null,
|
|
"id": {
|
|
"entity_id": null,
|
|
"device_id": "814328602270498817"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "emergencyalert",
|
|
"automation": "- id: emergencyalert\n alias: Emergency Alert\n trigger:\n - event_type: state_changed\n platform: event\n condition:\n - condition: or\n conditions:\n - condition: template\n value_template: '{% if ''_leak_sensor_water'' in trigger.event.data.entity_id\n and trigger.event.data.new_state.state == ''on'' %}True{% endif %}'\n - condition: template\n value_template: '{% if ''_alarm'' in trigger.event.data.entity_id and trigger.event.data.new_state.state\n == ''on'' %}True{% endif %}'\n action:\n - data_template:\n message: '{{ trigger.event.data.new_state.attributes.friendly_name | replace(\"_\",\n \"\\_\") }} is {{ trigger.event.data.new_state.state | replace(\"_\", \"\\_\") }}'\n service: telegram_bot.send_message\n - entity_id: media_player.home_speakers\n service: media_player.turn_on\n - data_template:\n entity_id: media_player.home_speakers\n volume_level: 0.6\n service: media_player.volume_set\n - data_template:\n cache: false\n message: '{{ trigger.event.data.new_state.attributes.friendly_name | replace(\"_\",\n \"\\_\") }} is {{ trigger.event.data.new_state.state | replace(\"_\", \"\\_\") }}'\n entity_id: media_player.home_speakers\n service: tts.google_cloud_say\n - choose:\n - conditions:\n - condition: template\n value_template: '{% for state in states.binary_sensor -%}{% if \"alarm\" in\n state.name | lower and state.state == \"on\" %}True{% endif %}{%- endfor %}'\n sequence:\n - service: homeassistant.turn_on\n target:\n entity_id: group.home_lights\n default: []\n - data_template:\n target: '814328602270498817'\n message: '{{ trigger.event.data.new_state.attributes.friendly_name | replace(\"_\",\n \"\\_\") }} is {{ trigger.event.data.new_state.state | replace(\"_\", \"\\_\") }}'\n service: notify.discord\n mode: single",
|
|
"config": [
|
|
{
|
|
"name": "home lights group",
|
|
"room": null,
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "group.home_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "home speakers media player",
|
|
"room": null,
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.home_speakers",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Discord Target 814328602270498817",
|
|
"room": null,
|
|
"type": null,
|
|
"id": {
|
|
"entity_id": null,
|
|
"device_id": "814328602270498817"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "infoalert",
|
|
"automation": "- id: infoalert\n alias: Information Alert\n triggers:\n - entity_id: binary_sensor.mailbox_contact\n from: 'off'\n to: 'on'\n trigger: state\n - entity_id: binary_sensor.dryer_status\n from: 'on'\n to: 'off'\n trigger: state\n - entity_id: binary_sensor.washer_status\n from: 'on'\n to: 'off'\n trigger: state\n - entity_id: binary_sensor.trash\n to: 'on'\n trigger: state\n - entity_id: binary_sensor.recycle\n to: 'on'\n trigger: state\n - entity_id: binary_sensor.street_sweeping\n to: 'on'\n trigger: state\n - entity_id:\n - switch.amcrest_dining_room_privacy_mode\n id: privacy_dining_room\n trigger: state\n - entity_id:\n - switch.amcrest_office_privacy_mode\n id: privacy_office\n trigger: state\n - entity_id: person.peter\n zone: zone.peter_dc_office\n event: leave\n trigger: zone\n - entity_id: person.kelley\n zone: zone.kelley_office\n event: leave\n trigger: zone\n - entity_id:\n - switch.peter_table_light\n - switch.kelley_table_light\n - camera.cat_bed_camera\n to: unavailable\n trigger: state\n - entity_id: binary_sensor.bedroom_humidifier_out_of_water\n to: 'on'\n trigger: state\n conditions: []\n actions:\n - choose:\n - conditions:\n - condition: template\n value_template: '{% if trigger.entity_id == \"binary_sensor.dryer_status\" %}True{%\n endif %}'\n sequence:\n - data:\n message: The dryer is done\n target: '814328602270498817'\n action: notify.discord\n - conditions:\n - condition: template\n value_template: '{% if trigger.entity_id == \"binary_sensor.washer_status\"\n %}True{% endif %}'\n sequence:\n - data:\n message: The washer is done\n target: '814328602270498817'\n action: notify.discord\n - conditions:\n - condition: template\n value_template: '{% if trigger.entity_id == \"binary_sensor.mailbox_contact\"\n %}True{% endif %}'\n sequence:\n - data:\n message: The mail has arrived!\n target: '814328602270498817'\n action: notify.discord\n - conditions:\n - condition: template\n value_template: '{% if trigger.entity_id == \"binary_sensor.trash\" or trigger.entity_id\n == \"binary_sensor.recycle\" or trigger.entity_id == \"binary_sensor.street_sweeping\"\n %}True{% endif %}'\n sequence:\n - data_template:\n message: Tomorrow is {{ trigger.to_state.attributes.friendly_name }} day!\n target: '814328602270498817'\n action: notify.discord\n - conditions:\n - condition: template\n value_template: '{% if trigger.entity_id == \"person.peter\" or trigger.entity_id\n == \"person.kelley\" %}True{% endif %}'\n sequence:\n - data_template:\n message: '{{ trigger.to_state.attributes.friendly_name }} has left {{ trigger.from_state.state\n }}'\n target: '814328602270498817'\n action: notify.discord\n - conditions:\n - condition: template\n value_template: '{% if trigger.entity_id == \"binary_sensor.bedroom_humidifier_out_of_water\"\n %}True{% endif %}'\n sequence:\n - data:\n message: Humidifier is out of water\n target: '814328602270498817'\n action: notify.discord\n default:\n - data_template:\n message: '{{ trigger.to_state.attributes.friendly_name }} is {{ trigger.to_state.state\n }}'\n target: '814328602270498817'\n action: notify.discord\n initial_state: false\n mode: queued\n max: 10",
|
|
"config": [
|
|
{
|
|
"name": "mailbox contact binary sensor",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.mailbox_contact",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "dryer status binary sensor",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.dryer_status",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "washer status binary sensor",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.washer_status",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "trash binary sensor",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.trash",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "recycle binary sensor",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.recycle",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "street sweeping binary sensor",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.street_sweeping",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "amcrest dining room privacy mode switch",
|
|
"room": "dining_room",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.amcrest_dining_room_privacy_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "amcrest office privacy mode switch",
|
|
"room": "office",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.amcrest_office_privacy_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "peter person",
|
|
"room": null,
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.peter",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "kelley person",
|
|
"room": null,
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.kelley",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "peter table light switch",
|
|
"room": null,
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.peter_table_light",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "kelley table light switch",
|
|
"room": null,
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.kelley_table_light",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "cat bed camera",
|
|
"room": null,
|
|
"type": "camera",
|
|
"id": {
|
|
"entity_id": "camera.cat_bed_camera",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "bedroom humidifier out of water binary sensor",
|
|
"room": "bedroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.bedroom_humidifier_out_of_water",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Discord Target 814328602270498817",
|
|
"room": null,
|
|
"type": null,
|
|
"id": {
|
|
"entity_id": null,
|
|
"device_id": "814328602270498817"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "system_log",
|
|
"automation": "- id: system_log\n alias: Log Error to File\n trigger:\n - event_data:\n level: ERROR\n event_type: system_log_event\n platform: event\n action:\n - data_template:\n message: '{{ trigger.event.data }}'\n service: notify.error_logfile\n initial_state: false\n mode: parallel\n max: 10",
|
|
"config": []
|
|
},
|
|
{
|
|
"id": "'1588304855176'",
|
|
"automation": "- id: '1588304855176'\n alias: Night Motion\n description: ''\n trigger:\n - entity_id: binary_sensor.backyard_camera_motion_detected\n platform: state\n to: 'on'\n condition:\n - condition: and\n conditions:\n - condition: or\n conditions:\n - after: sunset\n condition: sun\n - before: sunrise\n condition: sun\n - condition: template\n value_template: '{% if state_attr(''weather.kdca_daynight'', ''wind_speed'')\n < 5 %}true{% else %}false{% endif %}'\n action:\n - type: turn_on\n device_id: f0a5bdb86a5e49bebd0aece4f7ab1062\n entity_id: switch.patio_wall_lights\n domain: switch\n - delay: 00:{{ '{:02}'.format(range(10,20) | random | int) }}:00\n - type: turn_off\n device_id: f0a5bdb86a5e49bebd0aece4f7ab1062\n entity_id: switch.patio_wall_lights\n domain: switch\n mode: single",
|
|
"config": [
|
|
{
|
|
"name": "kdca daynight weather",
|
|
"room": null,
|
|
"type": "weather",
|
|
"id": {
|
|
"entity_id": "weather.kdca_daynight",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "backyard camera motion detected binary sensor",
|
|
"room": "backyard",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.backyard_camera_motion_detected",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "patio wall lights switch",
|
|
"room": "patio",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.patio_wall_lights",
|
|
"device_id": "f0a5bdb86a5e49bebd0aece4f7ab1062"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'1588452474080'",
|
|
"automation": "- id: '1588452474080'\n alias: Camect Motion\n description: ''\n triggers:\n - event_data:\n type: alert\n raw_data:\n cam_name: Backyard\n detected_obj:\n - person\n event_type: camect_event\n trigger: event\n - event_data:\n type: alert\n raw_data:\n detected_obj:\n - cat\n event_type: camect_event\n trigger: event\n - event_data:\n raw_data:\n cam_name: Front Door\n detected_obj:\n - person\n event_type: camect_event\n enabled: true\n trigger: event\n conditions:\n - condition: template\n value_template: '{% if trigger.event.data.cam_name != \"\" and ( as_timestamp(now())\n - as_timestamp(state_attr(\"automation.camect_automation\", \"last_triggered\"))\n |int(0) ) > 90 %}True{% endif %}'\n actions:\n - data_template:\n entity_id: camera.{{ trigger.event.data.raw_data.cam_name | lower | replace\n (\" \", \"_\") }}\n filename: /config/www/{{ trigger.event.data.raw_data.cam_name | lower | replace\n (\" \", \"_\") }}_{{ trigger.event.data.raw_data.detected_obj | lower }}.jpg\n enabled: false\n action: camera.snapshot\n - data_template:\n entity_id: '{{ trigger.event.data.device_id }}'\n filename: /config/www/{{ trigger.event.data.raw_data.cam_name | lower | replace\n (\" \", \"_\") }}_{{ trigger.event.data.raw_data.detected_obj | lower }}.jpg\n action: camera.snapshot\n - delay: 00:00:01\n - data_template:\n target: '812545796339400708'\n message: '{{ trigger.event.data.raw_data.cam_name }} detected {{ trigger.event.data.raw_data.detected_obj\n | replace(\"[\", \"\") | replace(\"]\", \"\") | replace(\"''\", \"\")}}'\n data:\n images:\n - /config/www/{{ trigger.event.data.raw_data.cam_name | lower | replace (\"\n \", \"_\") }}_{{trigger.event.data.raw_data.detected_obj | lower }}.jpg\n embed:\n description: '{{ trigger.event.data.raw_data.cam_name }} Camera'\n author:\n name: Camect (via Home Assistant)\n icon_url: https://brands.home-assistant.io/camect/icon.png\n url: '{{ trigger.event.data.raw_data.url }}'\n fields: []\n action: notify.discord\n - choose:\n - conditions:\n - condition: or\n conditions:\n - condition: sun\n before: sunrise\n - condition: sun\n after: sunset\n - condition: template\n value_template: '{% if trigger.event.data.raw_data.cam_name | lower == \"backyard\"\n %}True{% endif %}'\n sequence:\n - data: {}\n target:\n entity_id: group.patio_lights\n action: homeassistant.turn_on\n - delay:\n hours: 0\n minutes: 11\n seconds: 0\n milliseconds: 0\n - data: {}\n target:\n entity_id: group.patio_lights\n action: homeassistant.turn_off\n default: []\n trace:\n stored_traces: 20\n mode: single",
|
|
"config": [
|
|
{
|
|
"name": "patio lights group",
|
|
"room": "patio",
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "group.patio_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Discord Target 812545796339400708",
|
|
"room": null,
|
|
"type": null,
|
|
"id": {
|
|
"entity_id": null,
|
|
"device_id": "812545796339400708"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'1588452709021'",
|
|
"automation": "- id: '1588452709021'\n alias: Sun\n description: ''\n trigger:\n - event: sunrise\n platform: sun\n id: sunrise\n - event: sunset\n platform: sun\n id: sunset\n - platform: time\n at: '23:00:00'\n id: goodnight\n - platform: state\n entity_id:\n - group.hallway_lights\n for:\n hours: 0\n minutes: 1\n seconds: 0\n to: 'on'\n condition: []\n action:\n - choose:\n - conditions:\n - condition: trigger\n id: sunrise\n sequence: []\n - conditions:\n - condition: trigger\n id: sunset\n sequence:\n - service: homeassistant.turn_on\n target:\n entity_id:\n - light.tv_backlight\n - group.front_lights\n - group.holiday_lights\n - light.under_bed_lights\n data: {}\n - conditions:\n - condition: time\n after: '21:00:00'\n before: 08:00:00\n - condition: state\n entity_id: group.family\n state: home\n sequence:\n - service: homeassistant.turn_off\n target:\n entity_id:\n - group.front_lights\n - light.hallway_laundry_light\n - light.hallway_bathroom_light\n data: {}\n - delay:\n hours: 0\n minutes: 30\n seconds: 0\n milliseconds: 0\n - service: homeassistant.turn_off\n data: {}\n target:\n entity_id: group.holiday_lights\n default: []\n - choose:\n - conditions:\n - condition: not\n conditions:\n - condition: state\n entity_id: group.family\n state: home\n - condition: time\n before: '23:00:00'\n after: 00:00:00\n - condition: trigger\n id: sunset\n sequence:\n - delay: 00:{{ '{:02}'.format(range(0,30) | random | int) }}:00\n - service: homeassistant.turn_on\n target:\n entity_id:\n - group.kitchen_lights\n - group.living_room_lights\n - light.bedroom_overhead_light\n - group.hallway_lights\n - group.holiday_lights\n data: {}\n - conditions:\n - condition: not\n conditions:\n - condition: state\n entity_id: group.family\n state: home\n - condition: time\n after: '23:00:00'\n before: 00:00:00\n sequence:\n - delay: 00:{{ '{:02}'.format(range(0,30) | random | int) }}:00\n - service: homeassistant.turn_off\n target:\n entity_id:\n - group.kitchen_lights\n - group.living_room_lights\n - light.bedroom_overhead_light\n - group.hallway_lights\n - group.holiday_lights\n data: {}\n default: []\n mode: single",
|
|
"config": [
|
|
{
|
|
"name": "under bed lights",
|
|
"room": "bedroom",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.under_bed_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "family group",
|
|
"room": null,
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "group.family",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "tv backlight",
|
|
"room": "living_room",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.tv_backlight",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "living room lights group",
|
|
"room": "living_room",
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "group.living_room_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "hallway lights group",
|
|
"room": "hallway",
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "group.hallway_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "front lights group",
|
|
"room": "front",
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "group.front_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "holiday lights group",
|
|
"room": null,
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "group.holiday_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "hallway laundry light",
|
|
"room": "hallway",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.hallway_laundry_light",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "hallway bathroom light",
|
|
"room": "bathroom",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.hallway_bathroom_light",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "kitchen lights group",
|
|
"room": "kitchen",
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "group.kitchen_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "bedroom overhead light",
|
|
"room": "bedroom",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.bedroom_overhead_light",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'1608091420017'",
|
|
"automation": "- id: '1608091420017'\n alias: Doorbell\n description: ''\n trigger:\n - platform: device\n device_id: 238b3c51d11f99da1bd7bedd372f050a\n domain: nest\n type: doorbell_chime\n condition: []\n action:\n - data:\n entity_id: camera.front_door\n filename: /config/www/doorbell.jpg\n service: camera.snapshot\n - delay: 00:00:01\n - data_template:\n target: '812545796339400708'\n message: Someone is at the door!\n data:\n images:\n - /config/www/doorbell.jpg\n embed:\n description: Doorbell Camera\n author:\n name: Nest (via Home Assistant)\n icon_url: https://brands.home-assistant.io/nest/icon.png\n fields: []\n service: notify.discord\n - service: camera.record\n metadata: {}\n data:\n filename: /config/www/doorbell.mp4\n target:\n entity_id: camera.front_door\n - data_template:\n target: '812545796339400708'\n message: Doorbell Camera\n data:\n images:\n - /config/www/doorbell.mp4\n embed:\n description: Doorbell Camera\n author:\n name: Nest (via Home Assistant)\n icon_url: https://brands.home-assistant.io/nest/icon.png\n fields: []\n service: notify.discord\n mode: single",
|
|
"config": [
|
|
{
|
|
"name": "front door camera",
|
|
"room": "front_door",
|
|
"type": "camera",
|
|
"id": {
|
|
"entity_id": "camera.front_door",
|
|
"device_id": "238b3c51d11f99da1bd7bedd372f050a"
|
|
}
|
|
},
|
|
{
|
|
"name": "Discord Target 812545796339400708",
|
|
"room": null,
|
|
"type": null,
|
|
"id": {
|
|
"entity_id": null,
|
|
"device_id": "812545796339400708"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'1612648017088'",
|
|
"automation": "- id: '1612648017088'\n alias: Package Tracking Import\n description: ''\n trigger:\n - platform: state\n entity_id: sensor.imported_package\n condition: []\n action:\n - service: aftership.add_tracking\n data_template:\n tracking_number: '{{ states(\"sensor.imported_package\") }}'\n slug: '{{ state_attr(\"sensor.imported_package\",\"slug\") }}'\n mode: single",
|
|
"config": [
|
|
{
|
|
"name": "imported package sensor",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.imported_package",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'1619127008629'",
|
|
"automation": "- id: '1619127008629'\n alias: 0AMZN Dash\n description: ''\n trigger:\n - platform: event\n event_type: amzn_tide\n - platform: event\n event_type: amzn_bounty\n - platform: event\n event_type: amzn_cascade\n - platform: event\n event_type: amzn_all\n - platform: event\n event_type: amzn_brita\n - platform: event\n event_type: amzn_nature\n - platform: event\n event_type: amzn_trojan\n - platform: event\n event_type: amzn_airborne\n - platform: event\n event_type: amzn_zyrtec\n - platform: event\n event_type: amzn_charmin\n condition: []\n action:\n - service: notify.mobile_app_peter_sm_g981u\n data:\n message: '{{ trigger.event.event_type }}'\n mode: single",
|
|
"config": []
|
|
},
|
|
{
|
|
"id": "'1673365170897'",
|
|
"automation": "- id: '1673365170897'\n alias: Amcrest Privacy Mode\n description: ''\n trigger:\n - platform: state\n entity_id:\n - group.family\n to: home\n id: family_home\n - platform: time\n at: 00:00:00\n id: goodnight\n - platform: time\n at: 07:00:00\n id: goodmorning\n - platform: state\n entity_id:\n - group.family\n id: family_away\n from: home\n - platform: state\n entity_id:\n - alarm_control_panel.10th_street\n to: disarmed\n id: disarmed\n - platform: state\n entity_id:\n - alarm_control_panel.10th_street\n from: disarmed\n id: armed\n condition:\n - condition: not\n conditions:\n - condition: state\n entity_id: alarm_control_panel.10th_street\n state: unavailable\n - condition: state\n entity_id: alarm_control_panel.10th_street\n state: unknown\n action:\n - if:\n - condition: or\n conditions:\n - condition: trigger\n id: goodnight\n - condition: trigger\n id: family_away\n - condition: trigger\n id: armed\n then:\n - service: switch.turn_off\n data: {}\n target:\n entity_id:\n - switch.amcrest_dining_room_privacy_mode\n - switch.amcrest_office_privacy_mode\n - service: alarm_control_panel.alarm_arm_away\n metadata: {}\n data: {}\n target:\n device_id: fa72deb95f10377f1f021123e1f54026\n - if:\n - condition: or\n conditions:\n - condition: trigger\n id: family_home\n - condition: trigger\n id: disarmed\n - condition: and\n conditions:\n - condition: trigger\n id:\n - goodmorning\n - condition: state\n entity_id: group.family\n state: home\n then:\n - service: switch.turn_on\n data: {}\n target:\n entity_id:\n - switch.amcrest_dining_room_privacy_mode\n - switch.amcrest_office_privacy_mode\n - service: alarm_control_panel.alarm_disarm\n metadata: {}\n data: {}\n target:\n device_id: fa72deb95f10377f1f021123e1f54026\n mode: restart",
|
|
"config": [
|
|
{
|
|
"name": "10th street alarm control panel",
|
|
"room": null,
|
|
"type": "alarm_control_panel",
|
|
"id": {
|
|
"entity_id": "alarm_control_panel.10th_street",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "family group",
|
|
"room": null,
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "group.family",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "amcrest dining room privacy mode switch",
|
|
"room": "dining_room",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.amcrest_dining_room_privacy_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "amcrest office privacy mode switch",
|
|
"room": "office",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.amcrest_office_privacy_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Device ID fa72deb95f10377f1f021123e1f54026",
|
|
"room": null,
|
|
"type": null,
|
|
"id": {
|
|
"entity_id": null,
|
|
"device_id": "fa72deb95f10377f1f021123e1f54026"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'1675640672790'",
|
|
"automation": "- id: '1675640672790'\n alias: Tag Bedroom Overhead On/Off is scanned\n description: ''\n trigger:\n - platform: tag\n tag_id: 43caf5a0-95a5-414b-8fc7-bf0bf80e5128\n condition: []\n action:\n - service: homeassistant.toggle\n data: {}\n target:\n entity_id: light.bedroom_overhead_light\n mode: single",
|
|
"config": [
|
|
{
|
|
"name": "bedroom overhead light",
|
|
"room": "bedroom",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.bedroom_overhead_light",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "backup",
|
|
"automation": "- id: backup\n alias: Backup\n description: ''\n trigger:\n - platform: time\n at: 00:00:01\n condition:\n - condition: or\n conditions:\n - condition: template\n value_template: '{{ now().day == 1 }}'\n - condition: template\n value_template: '{{ now().day == 15 }}'\n action:\n - service: backup.create\n data: {}\n - service: notify.discord\n data_template:\n message: Backup completed and took {{ (((now()-trigger.event.time_fired).total_seconds()\n | round(0))/60 | round(2)) }} minutes\n target: '814328602270498817'\n mode: single",
|
|
"config": [
|
|
{
|
|
"name": "Discord Target 814328602270498817",
|
|
"room": null,
|
|
"type": null,
|
|
"id": {
|
|
"entity_id": null,
|
|
"device_id": "814328602270498817"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'1683830929478'",
|
|
"automation": "- &id001\n id: '1683830929478'\n alias: Tag Office Light Strip Toggle\n description: ''\n trigger:\n - platform: tag\n tag_id: a75efc06-51f5-46ef-bb9e-455c8a871050\n condition: []\n action:\n - service: light.toggle\n data: {}\n target:\n device_id:\n - d1205c6f345891abf6cd332b16a8963d\n - 3b70e075d4f3a226381eb231d6c331fe\n - 3b2327cbac3a69e8ebef9276606eadca\n mode: single",
|
|
"config": [
|
|
{
|
|
"name": "Device ID 3b2327cbac3a69e8ebef9276606eadca",
|
|
"room": null,
|
|
"type": null,
|
|
"id": {
|
|
"entity_id": null,
|
|
"device_id": "3b2327cbac3a69e8ebef9276606eadca"
|
|
}
|
|
},
|
|
{
|
|
"name": "Device ID 3b70e075d4f3a226381eb231d6c331fe",
|
|
"room": null,
|
|
"type": null,
|
|
"id": {
|
|
"entity_id": null,
|
|
"device_id": "3b70e075d4f3a226381eb231d6c331fe"
|
|
}
|
|
},
|
|
{
|
|
"name": "Device ID d1205c6f345891abf6cd332b16a8963d",
|
|
"room": null,
|
|
"type": null,
|
|
"id": {
|
|
"entity_id": null,
|
|
"device_id": "d1205c6f345891abf6cd332b16a8963d"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'1696126117145'",
|
|
"automation": "- id: '1696126117145'\n alias: Tag Indoor Cameras Off is scanned\n description: ''\n trigger:\n - platform: tag\n tag_id: e0774fcd-d221-4232-b64f-eb017ab24884\n condition: []\n action:\n - service: switch.turn_on\n data: {}\n target:\n entity_id:\n - switch.amcrest_office_privacy_mode\n - switch.amcrest_dining_room_privacy_mode\n mode: single",
|
|
"config": [
|
|
{
|
|
"name": "amcrest dining room privacy mode switch",
|
|
"room": "dining_room",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.amcrest_dining_room_privacy_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "amcrest office privacy mode switch",
|
|
"room": "office",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.amcrest_office_privacy_mode",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'1696442097979'",
|
|
"automation": "- id: '1696442097979'\n alias: Alley Motion\n description: ''\n trigger:\n - platform: state\n entity_id:\n - binary_sensor.alley_motion_detected\n to: 'on'\n - platform: state\n entity_id:\n - binary_sensor.alley_person_detected\n to: 'on'\n condition: []\n action:\n - delay:\n hours: 0\n minutes: 0\n seconds: 5\n milliseconds: 0\n - service: downloader.download_file\n data_template:\n overwrite: true\n filename: alley_motion.jpg\n url: https://hass.peterepley.com{{ state_attr('image.alley_event_image', 'entity_picture')\n }}\n - data_template:\n target: '812545796339400708'\n message: Alley Motion Detected\n data:\n images:\n - /config/www/alley_motion.jpg\n embed:\n description: Alley Camera\n author:\n name: Home Assistant\n icon_url: https://www.home-assistant.io/images/favicon-192x192-full.png\n fields: []\n service: notify.discord\n - choose:\n - conditions:\n - condition: or\n conditions:\n - condition: sun\n before: sunrise\n - condition: sun\n after: sunset\n sequence:\n - service: homeassistant.turn_on\n data: {}\n target:\n entity_id: group.patio_lights\n - delay:\n hours: 0\n minutes: 11\n seconds: 0\n milliseconds: 0\n - service: homeassistant.turn_off\n data: {}\n target:\n entity_id: group.patio_lights\n default: []\n mode: single",
|
|
"config": [
|
|
{
|
|
"name": "alley motion detected binary sensor",
|
|
"room": "alley",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.alley_motion_detected",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "alley person detected binary sensor",
|
|
"room": "alley",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.alley_person_detected",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "patio lights group",
|
|
"room": "patio",
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "group.patio_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Discord Target 812545796339400708",
|
|
"room": null,
|
|
"type": null,
|
|
"id": {
|
|
"entity_id": null,
|
|
"device_id": "812545796339400708"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'1705613818940'",
|
|
"automation": "- id: '1705613818940'\n alias: Blink Camera\n description: ''\n triggers:\n - entity_id:\n - binary_sensor.cat_bed_camera_motion\n to: 'on'\n id: catbed\n trigger: state\n - entity_id:\n - binary_sensor.bedroom_camera_motion\n to: 'on'\n id: bedroom\n trigger: state\n - trigger: state\n entity_id:\n - binary_sensor.kitty_condo_motion\n to: 'on'\n id: kittycondo\n actions:\n - target:\n entity_id: '{%- if trigger.id == ''catbed'' -%}camera.cat_bed_camera {%- elif\n trigger.id == ''bedroom'' -%}camera.bedroom_camera {%- elif trigger.id ==\n ''kittycondo'' -%}camera.kitty_condo {%- endif -%}'\n data:\n filename: /config/www/videos/blink_video_{{ now().strftime('%Y%m%d_%H%M') }}.mp4\n action: blink.save_video\n - delay: 00:00:01\n enabled: false\n - data_template:\n target: '812545796339400708'\n message: \"{%- if trigger.id == 'catbed' -%}Cat Bed{%- elif trigger.id == 'bedroom'\\\n \\ -%}Bedroom {%- elif trigger.id == 'kittycondo' -%}Kitty Condo{%- endif -%}\\n\\\n \\ Camera detected motion\"\n data:\n images:\n - /config/www/videos/blink_video_{{ now().strftime('%Y%m%d_%H%M') }}.mp4\n embed:\n description: '{%- if trigger.id == ''catbed'' -%}Cat Bed{%- else -%}Bedroom{%-\n endif -%}'\n author:\n name: Blink (via Home Assistant)\n icon_url: https://brands.home-assistant.io/blink/icon.png\n fields: []\n action: notify.discord\n mode: single",
|
|
"config": [
|
|
{
|
|
"name": "cat bed camera",
|
|
"room": null,
|
|
"type": "camera",
|
|
"id": {
|
|
"entity_id": "camera.cat_bed_camera",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "cat bed camera motion binary sensor",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.cat_bed_camera_motion",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "bedroom camera motion binary sensor",
|
|
"room": "bedroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.bedroom_camera_motion",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "kitty condo motion binary sensor",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.kitty_condo_motion",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "bedroom camera",
|
|
"room": "bedroom",
|
|
"type": "camera",
|
|
"id": {
|
|
"entity_id": "camera.bedroom_camera",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "kitty condo camera",
|
|
"room": null,
|
|
"type": "camera",
|
|
"id": {
|
|
"entity_id": "camera.kitty_condo",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Discord Target 812545796339400708",
|
|
"room": null,
|
|
"type": null,
|
|
"id": {
|
|
"entity_id": null,
|
|
"device_id": "812545796339400708"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'1705632083918'",
|
|
"automation": "- id: '1705632083918'\n alias: 0Test Nest\n description: ''\n trigger:\n - platform: device\n device_id: 238b3c51d11f99da1bd7bedd372f050a\n domain: nest\n type: camera_motion\n - platform: device\n device_id: 238b3c51d11f99da1bd7bedd372f050a\n domain: nest\n type: camera_person\n condition: []\n action:\n - service: notify.discord\n metadata: {}\n data:\n target: '812545796339400708'\n message: test camera\n data:\n images:\n - /api/nest/event_media/{{ trigger.event.data.device_id }}/{{ trigger.event.data.nest_event_id\n }}/thumbnail\n - service: notify.mobile_app_peter_sm_s911u\n data:\n data:\n image: /api/nest/event_media/{{ trigger.event.data.device_id }}/{{ trigger.event.data.nest_event_id\n }}/thumbnail\n message: test camera\n mode: single",
|
|
"config": [
|
|
{
|
|
"name": "front door camera",
|
|
"room": "front_door",
|
|
"type": "camera",
|
|
"id": {
|
|
"entity_id": "camera.front_door",
|
|
"device_id": "238b3c51d11f99da1bd7bedd372f050a"
|
|
}
|
|
},
|
|
{
|
|
"name": "Discord Target 812545796339400708",
|
|
"room": null,
|
|
"type": null,
|
|
"id": {
|
|
"entity_id": null,
|
|
"device_id": "812545796339400708"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'1710214521979'",
|
|
"automation": "- id: '1710214521979'\n alias: Weather Light\n description: ''\n trigger:\n - entity_id:\n - weather.kdca_daynight\n platform: state\n condition: []\n action:\n - variables:\n color_options:\n clear-night: white\n sunny: yellow\n cloudy: purple\n partlycloudy: purple\n fog: yellowgreen\n rainy: blue\n windy: darkorange\n snowy: cyan\n lightning: red\n hail: aquamarine\n windy-variant: lightsalmon\n lightning-rainy: crimson\n color: '{{ color_options.get(states(''weather.kdca_daynight'')) }}'\n - alias: Save current light State to Scene\n service: scene.create\n data:\n scene_id: before\n snapshot_entities:\n - light.living_room_led\n - light.office_led\n - light.bedroom_led\n - light.under_bed_lights\n - light.govee_gaming_light_strip_g1\n - light.office_lamp\n - delay:\n hours: 0\n minutes: 0\n seconds: 5\n milliseconds: 0\n - alias: Flash light color based on weather condition\n service: light.turn_on\n data:\n color_name: '{{color}}'\n brightness_pct: 100\n flash: long\n target:\n entity_id:\n - light.living_room_led\n - light.office_led\n - light.bedroom_led\n - light.under_bed_lights\n - light.govee_gaming_light_strip_g1\n - light.office_lamp\n - delay:\n hours: 0\n minutes: 0\n seconds: 3\n milliseconds: 0\n - alias: Return light to white\n service: light.turn_on\n data:\n color_name: white\n brightness_pct: 100\n flash: long\n target:\n entity_id:\n - light.living_room_led\n - light.office_led\n - light.bedroom_led\n - light.under_bed_lights\n - light.govee_gaming_light_strip_g1\n - light.office_lamp\n - alias: Return light to previous state\n entity_id: scene.before\n service: scene.turn_on\n mode: single",
|
|
"config": [
|
|
{
|
|
"name": "under bed lights",
|
|
"room": "bedroom",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.under_bed_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "kdca daynight weather",
|
|
"room": null,
|
|
"type": "weather",
|
|
"id": {
|
|
"entity_id": "weather.kdca_daynight",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "living room led",
|
|
"room": "living_room",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.living_room_led",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "office led",
|
|
"room": "office",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.office_led",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "bedroom led",
|
|
"room": "bedroom",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.bedroom_led",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "govee gaming light strip g1",
|
|
"room": null,
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.govee_gaming_light_strip_g1",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "office lamp",
|
|
"room": "office",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.office_lamp",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Scene Before",
|
|
"room": null,
|
|
"type": "scene",
|
|
"id": {
|
|
"entity_id": "scene.before",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'1733609554286'",
|
|
"automation": "- id: '1733609554286'\n alias: Doorbell Unifi Fingerprint\n description: Automation that triggers when an event is successfully identified on\n the G4 Doorbell Pro\n triggers:\n - event_type: state_changed\n event_data:\n entity_id: event.g4_doorbell_pro_fingerprint\n trigger: event\n conditions:\n - condition: template\n value_template: \"{{\\n not trigger.event.data.old_state.attributes.get('restored',\\\n \\ false) and\\n not trigger.event.data.old_state.state == 'unavailable' and\\n\\\n \\ trigger.event.data.new_state is not none and\\n trigger.event.data.new_state.attributes.event_type\\\n \\ == 'identified' and\\n (trigger.event.data.new_state.attributes.ulp_id|default(''))\\\n \\ != '' and\\n trigger.event.data.new_state.attributes.ulp_id in ['8c09e6d1-719e-449d-9ddf-f691118f6c47']\\n\\\n \\ }}\\n\"\n actions:\n - data_template:\n target: '812545796339400708'\n message: 'Fingerprint identified with ID: {{ trigger.event.data.new_state.attributes.ulp_id\n }}'\n title: Fingerprint Scan Notification\n data:\n embed:\n description: Doorbell Camera\n author:\n name: Unifi Protect (via Home Assistant)\n icon_url: https://brands.home-assistant.io/unifi/icon.png\n fields: []\n action: notify.discord\n - action: lock.unlock\n metadata: {}\n data:\n code: 03281990\n target:\n device_id: 62271a51db7e9203f232a7d95bbb8d00",
|
|
"config": [
|
|
{
|
|
"name": "g4 doorbell pro fingerprint event",
|
|
"room": "front_door",
|
|
"type": "event",
|
|
"id": {
|
|
"entity_id": "event.g4_doorbell_pro_fingerprint",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Device ID 62271a51db7e9203f232a7d95bbb8d00",
|
|
"room": null,
|
|
"type": null,
|
|
"id": {
|
|
"entity_id": null,
|
|
"device_id": "62271a51db7e9203f232a7d95bbb8d00"
|
|
}
|
|
},
|
|
{
|
|
"name": "Discord Target 812545796339400708",
|
|
"room": null,
|
|
"type": null,
|
|
"id": {
|
|
"entity_id": null,
|
|
"device_id": "812545796339400708"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
] |