626 lines
38 KiB
JSON
626 lines
38 KiB
JSON
[
|
|
{
|
|
"id": "'1736734609929'",
|
|
"automation": "- id: '1736734609929'\n alias: Alert Acknowledge Push Notification\n description: ''\n triggers:\n - event_type: mobile_app_notification_action\n trigger: event\n event_data: {}\n conditions:\n - condition: template\n value_template: '{{ trigger.event.data.action is defined and trigger.event.data.action\n in action_mapping }}'\n actions:\n - variables:\n resolved:\n alert: '{{ action_mapping[trigger.event.data.action].alert }}'\n controlling_binary_sensor: '{{ action_mapping[trigger.event.data.action].controlling_binary_sensor}}'\n controlling_timer: '{{ action_mapping[trigger.event.data.action].controlling_timer}}'\n controlling_sensor_state: '{{ bool( is_state(resolved.controlling_binary_sensor\n ,[''on''] ) )}}'\n controlling_timer_state: '{{ states( resolved.controlling_timer) }}'\n error: '{{ bool( is_state(resolved.controlling_binary_sensor ,[''unavailable'',''unknown'']\n ),false ) or bool( is_state(resolved.controlling_timer,[''unavailable'',''unknown'']\n ),false )}}'\n - if:\n - condition: template\n value_template: '{{bool( is_state( resolved.controlling_binary_sensor ,[''on'']),false\n )}}'\n then:\n - action: timer.pause\n metadata: {}\n data: {}\n target:\n entity_id: '{{resolved.controlling_timer}}'\n - action: logbook.log\n data:\n name: ALERT REPLACEMENT ACKNOWLEDGE\n message: 'Pausing Timer: Alert has been acknowledged. Controlling sensor {{resolved.controlling_binary_sensor}}\n\n ({{controlling_sensor_state|upper}}) | Timer\n\n {{resolved.controlling_timer }}\n\n ({{controlling_timer_state|upper}})\n\n '\n entity_id: '{{ resolved.controlling_binary_sensor }}'\n enabled: true\n else:\n - action: timer.cancel\n metadata: {}\n data: {}\n target:\n entity_id: '{{resolved.controlling_timer}}'\n - action: logbook.log\n data:\n name: ALERT REPLACEMENT ACKNOWLEDGE\n message: 'Canceling Timer: Alert has been canceled via acknowledge script\n | Controller\n\n {{resolved.controlling_binary_sensor}}\n\n ({{controlling_sensor_state|upper}}) | Timer\n\n {{resolved.controlling_timer }}\n\n ({{controlling_timer_state|upper}})\n\n '\n entity_id: '{{ resolved.controlling_binary_sensor }}'\n enabled: true\n mode: single\n variables:\n action_mapping:\n ACK_WARN_TUYA_DISCONNECT:\n alert: alert.warn_irregular_off\n controlling_timer: timer.timer_warn_tuya_disconnect\n controlling_binary_sensor: binary_sensor.alert_state_warning_tuya_disconnect\n ACK_WARN_IRREGULAR_OFF:\n alert: alert.warn_irregular_off\n controlling_timer: timer.notification_warn_irregular_off\n controlling_binary_sensor: binary_sensor.alert_state_warn_irregular_off",
|
|
"config": [
|
|
{
|
|
"name": "alert warn irregular off",
|
|
"room": null,
|
|
"type": "alert",
|
|
"id": {
|
|
"entity_id": "alert.warn_irregular_off",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "warn tuya disconnect timer",
|
|
"room": null,
|
|
"type": "timer",
|
|
"id": {
|
|
"entity_id": "timer.timer_warn_tuya_disconnect",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "warning tuya disconnect sensor",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.alert_state_warning_tuya_disconnect",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "notification warn irregular off timer",
|
|
"room": null,
|
|
"type": "timer",
|
|
"id": {
|
|
"entity_id": "timer.notification_warn_irregular_off",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "warn irregular off sensor",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.alert_state_warn_irregular_off",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'1733720729443'",
|
|
"automation": "- id: '1733720729443'\n alias: Aquarium Lighting Scheduled On/Off\n description: Aquarium Lighting turned On/Off according to a schedule\n triggers:\n - trigger: state\n entity_id:\n - binary_sensor.aquarium_lighting_schedule\n attribute: next_update\n enabled: true\n conditions:\n - condition: template\n value_template: '{{ trigger.to_state.state in [''on'', ''off''] }}'\n enabled: true\n actions:\n - action: script.set_state_switch_light\n data:\n bool_invert_state: 'Off'\n select_state: Unknown\n target_entity_set:\n entity_id: light.aquarium_lighting\n entity_trigger:\n entity_id: '{{trigger.entity_id}}'\n mode: single",
|
|
"config": [
|
|
{
|
|
"name": "aquarium lighting schedule",
|
|
"room": "aquarium",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.aquarium_lighting_schedule",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "aquarium lighting",
|
|
"room": "aquarium",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.aquarium_lighting",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'1733723752388'",
|
|
"automation": "- id: '1733723752388'\n alias: Aquarium CO2 Scheduled On/Off\n description: Aquarium C02 turned On/Off according to a schedule\n triggers:\n - trigger: state\n entity_id:\n - binary_sensor.aquarium_co2_schedule\n attribute: next_update\n enabled: true\n conditions:\n - condition: template\n value_template: '{{ trigger.to_state.state in [''on'', ''off''] }}'\n enabled: true\n actions:\n - action: script.set_state_switch_light\n data:\n bool_invert_state: 'Off'\n select_state: Unknown\n target_entity_set:\n entity_id: switch.20g_rack_co2\n entity_trigger:\n entity_id: '{{trigger.entity_id}}'\n mode: single",
|
|
"config": [
|
|
{
|
|
"name": "aquarium co2 schedule",
|
|
"room": "aquarium",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.aquarium_co2_schedule",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "20g rack co2",
|
|
"room": "aquarium",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.20g_rack_co2",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'1730622599095'",
|
|
"automation": "- id: '1730622599095'\n alias: Leak Alert (Unlocated)\n description: 'todo: fix'\n triggers:\n - trigger: state\n entity_id:\n - binary_sensor.leak_sensor_group\n from: 'off'\n to: 'on'\n for:\n hours: 0\n minutes: 0\n seconds: 30\n conditions: []\n actions:\n - variables:\n message: '{% from ''notifications.jinja'' import leak_detector_notification\n %} {{ leak_detector_notification(trigger.entity_id) }}'\n - action: logbook.log\n metadata: {}\n data:\n name: leak test problem\n message: '{{message}}'\n entity_id: '{{ trigger.entity_id }}'\n - action: script.notification_dispatcher\n metadata: {}\n data:\n notification_channel:\n - iPhone\n - persistant\n bool_critical: 'OFF'\n sound: default\n sms_targets:\n - 7188138156@mms.att.net\n email_targets:\n - gbtunney@mac.com\n message: 'Device {{ state_attr(trigger.entity_id,''friendly_name'' ) }} in\n Area: {{ area_name(trigger.entity_id) }} is detecting moisture. Please fix\n immediately!!'\n enabled: false\n mode: single",
|
|
"config": [
|
|
{
|
|
"name": "leak sensor group",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.leak_sensor_group",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'1733535410225'",
|
|
"automation": "- id: '1733535410225'\n alias: Temperature Alert\n description: Alerts if temperature is below 65 or above 85\n triggers:\n - trigger: numeric_state\n entity_id:\n - input_number.dummy_thermometer\n - sensor.reptile_room_hygrometer_temperature\n below: 65\n - trigger: numeric_state\n entity_id:\n - input_number.dummy_thermometer\n - sensor.reptile_room_hygrometer_temperature\n above: 85\n conditions: []\n actions:\n - action: script.notification_dispatcher\n metadata: {}\n data:\n message: '\"{% set entity = trigger.entity_id %}ALERT! {% if trigger.above ==\n none %}Low {% else %}High {% endif %} temperature! Device: {{ trigger.to_state.name\n }} is registering temp of {{ trigger.to_state.state }}F in Area: {{ area_name(trigger.entity_id)\n }} :: Please fix!!\"\n\n '\n notification_channel:\n - iPhone\n - iPad\n - macBook\n - persistant\n - alexa\n - sms\n bool_critical: 'OFF'\n sound: default\n sms_targets:\n - 7188138156@mms.att.net\n email_targets:\n - gbtunney@mac.com\n mode: single",
|
|
"config": [
|
|
{
|
|
"name": "dummy thermometer",
|
|
"room": null,
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.dummy_thermometer",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "reptile room hygrometer temperature",
|
|
"room": "reptile_room",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.reptile_room_hygrometer_temperature",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'1733554565177'",
|
|
"automation": "- id: '1733554565177'\n alias: Motion Capture\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - binary_sensor.ffmpeg_motion_detection_camera_1\n for:\n hours: 0\n minutes: 0\n seconds: 30\n to: null\n conditions: []\n actions:\n - if:\n - condition: state\n entity_id: binary_sensor.ffmpeg_motion_detection_camera_1\n state: 'on'\n for:\n hours: 0\n minutes: 0\n seconds: 30\n then:\n - action: light.turn_on\n metadata: {}\n data:\n rgb_color:\n - 44\n - 114\n - 39\n target:\n entity_id: light.led_strip_color\n - action: script.notification_dispatcher\n metadata: {}\n data:\n notification_channel:\n - iPhone\n - persistant\n bool_critical: 'OFF'\n sound: default\n sms_targets:\n - 7188138156@mms.att.net\n email_targets:\n - gbtunney@mac.com\n message: Motion detected - green\n - action: script.notification_dispatcher\n metadata: {}\n data:\n notification_channel:\n - iPhone\n - persistant\n bool_critical: 'OFF'\n sound: default\n sms_targets:\n - 7188138156@mms.att.net\n email_targets:\n - gbtunney@mac.com\n message: Motion detected\n enabled: false\n else:\n - action: light.turn_on\n metadata: {}\n data:\n rgb_color:\n - 246\n - 26\n - 25\n target:\n entity_id: light.led_strip_color\n - action: script.notification_dispatcher\n metadata: {}\n data:\n notification_channel:\n - iPhone\n - persistant\n bool_critical: 'OFF'\n sound: default\n sms_targets:\n - 7188138156@mms.att.net\n email_targets:\n - gbtunney@mac.com\n message: Motion NOT DETECTED BACM TO RED\n mode: single",
|
|
"config": [
|
|
{
|
|
"name": "ffmpeg motion detection camera 1",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.ffmpeg_motion_detection_camera_1",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "led strip color",
|
|
"room": null,
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.led_strip_color",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'1733563292567'",
|
|
"automation": "- id: '1733563292567'\n alias: Device Unavailable\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - binary_sensor.aq_and_rept_connectivity_status_group\n for:\n hours: 0\n minutes: 6\n seconds: 0\n to:\n - 'off'\n - unknown\n - unavailable\n conditions:\n - condition: state\n entity_id: alarm_control_panel.home_alarm\n state: armed_home\n actions:\n - variables:\n message: '{% from ''notifications.jinja'' import device_unavailable_notification\n %} {{ device_unavailable_notification(trigger.entity_id) }}'\n message_bk: \"Device {{ state_attr(trigger.entity_id,'friendly_name' ) }} in\\\n \\ Area: {{\\n area_name(trigger.entity_id) }} is disconnected. Please fix immediately!!\"\n - action: script.notification_dispatcher\n metadata: {}\n data:\n notification_channel:\n - iPhone\n - iPad\n - macBook\n - persistant\n - alexa\n bool_critical: 'OFF'\n sound: default\n sms_targets:\n - 7188138156@mms.att.net\n email_targets:\n - gbtunney@mac.com\n message: '{{message}}'\n - choose:\n - conditions: []\n sequence: []\n enabled: false\n mode: single",
|
|
"config": [
|
|
{
|
|
"name": "aq and reptile connectivity status group",
|
|
"room": "reptile_room",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.aq_and_rept_connectivity_status_group",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "home alarm",
|
|
"room": "home",
|
|
"type": "alarm_control_panel",
|
|
"id": {
|
|
"entity_id": "alarm_control_panel.home_alarm",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'1733605050618'",
|
|
"automation": "- id: '1733605050618'\n alias: Lighting & Powerstrip Connectivity Warning\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - binary_sensor.hallway_light_status\n - binary_sensor.living_room_light_status\n - binary_sensor.bedroom_light_status\n - binary_sensor.seafoam_light_status\n - binary_sensor.dorn_lighting_status\n - binary_sensor.10g_m_powerstrip_status\n - binary_sensor.120g_powerstrip_status\n - binary_sensor.20g_powerstrip_status\n - binary_sensor.55g_powerstrip_status\n to: 'off'\n for:\n hours: 0\n minutes: 5\n seconds: 0\n conditions:\n - condition: state\n entity_id: alarm_control_panel.home_alarm\n state: armed_home\n actions:\n - action: script.notification_dispatcher\n metadata: {}\n data:\n message: 'Device: {{ device_attr(trigger.entity_id, ''name'') }} in Area: {{\n area_name(trigger.entity_id) }} is disconnected. Please fix immediately!!'\n notification_channel:\n - iPhone\n - iPad\n - macBook\n - persistant\n - alexa\n - sms\n bool_critical: 'OFF'\n sound: default\n sms_targets:\n - 7188138156@mms.att.net\n email_targets:\n - gbtunney@mac.com\n mode: single",
|
|
"config": [
|
|
{
|
|
"name": "home alarm",
|
|
"room": "home",
|
|
"type": "alarm_control_panel",
|
|
"id": {
|
|
"entity_id": "alarm_control_panel.home_alarm",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "hallway light status",
|
|
"room": "hallway",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.hallway_light_status",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "living room light status",
|
|
"room": "living_room",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.living_room_light_status",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "bedroom light status",
|
|
"room": "bedroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.bedroom_light_status",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "seafoam light status",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.seafoam_light_status",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "dorn lighting status",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.dorn_lighting_status",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "10g m powerstrip status",
|
|
"room": "aquarium",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.10g_m_powerstrip_status",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "120g powerstrip status",
|
|
"room": "aquarium",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.120g_powerstrip_status",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "20g powerstrip status",
|
|
"room": "aquarium",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.20g_powerstrip_status",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "55g powerstrip status",
|
|
"room": "aquarium",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.55g_powerstrip_status",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'1733711998590'",
|
|
"automation": "- id: '1733711998590'\n alias: Reptile Room Motion Light\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - binary_sensor.ffmpeg_motion_detection_camera_2\n from: 'off'\n to: 'on'\n conditions: []\n actions:\n - action: light.turn_on\n metadata: {}\n data:\n rgb_color:\n - 129\n - 255\n - 26\n target:\n entity_id: light.led_strip_color\n - action: notify.mobile_app_iphone\n metadata: {}\n data:\n message: motion was detected\n mode: single",
|
|
"config": [
|
|
{
|
|
"name": "led strip color",
|
|
"room": null,
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.led_strip_color",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "ffmpeg motion detection camera 2",
|
|
"room": "reptile_room",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.ffmpeg_motion_detection_camera_2",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'1733724698026'",
|
|
"automation": "- id: '1733724698026'\n alias: iTag Light Color Test\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - binary_sensor.itag_tracking_hub_itag_1_button\n - binary_sensor.itag_tracking_hub_itag_1_button_doubleclick\n - binary_sensor.itag_tracking_hub_itag_2_button\n - binary_sensor.itag_tracking_hub_itag_2_button_doubleclick\n from: 'on'\n to: 'off'\n conditions: []\n actions:\n - if:\n - condition: template\n value_template: '{% if trigger.entity_id == ''binary_sensor.itag_tracking_hub_itag_1_button''\n %}true{%else%}false{%endif%}'\n then:\n - action: light.turn_on\n metadata: {}\n data:\n rgb_color:\n - 1\n - 208\n - 80\n target:\n entity_id: light.smart_bulb_1\n - if:\n - condition: template\n value_template: '{% if trigger.entity_id == ''binary_sensor.itag_tracking_hub_itag_1_button_doubleclick''\n %}true{%else%}false{%endif%}'\n then:\n - action: light.turn_on\n metadata: {}\n data:\n rgb_color:\n - 36\n - 80\n - 255\n target:\n entity_id: light.smart_bulb_1\n - if:\n - condition: template\n value_template: '{% if trigger.entity_id == ''binary_sensor.itag_tracking_hub_itag_2_button''\n %}true{%else%}false{%endif%}'\n then:\n - action: light.turn_on\n metadata: {}\n data:\n rgb_color:\n - 251\n - 0\n - 255\n target:\n entity_id: light.smart_bulb_1\n - if:\n - condition: template\n value_template: '{% if trigger.entity_id ==''binary_sensor.itag_tracking_hub_itag_2_button_doubleclick''\n %}true{%else%}false{%endif%}'\n then:\n - action: light.turn_on\n metadata: {}\n data:\n rgb_color:\n - 255\n - 0\n - 89\n target:\n entity_id: light.smart_bulb_1\n mode: single",
|
|
"config": [
|
|
{
|
|
"name": "itag 1 button",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.itag_tracking_hub_itag_1_button",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "itag 1 button doubleclick",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.itag_tracking_hub_itag_1_button_doubleclick",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "itag 2 button",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.itag_tracking_hub_itag_2_button",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "itag 2 button doubleclick",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.itag_tracking_hub_itag_2_button_doubleclick",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "smart bulb 1",
|
|
"room": null,
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.smart_bulb_1",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'1735089085485'",
|
|
"automation": "- id: '1735089085485'\n alias: 'Sensor: Home Assistant Last Started'\n description: ''\n triggers:\n - trigger: homeassistant\n event: start\n conditions: []\n actions:\n - action: input_datetime.set_datetime\n metadata: {}\n data:\n timestamp: '{{float(as_timestamp(now()),0)}}'\n target:\n entity_id: input_datetime.ha_last_start\n mode: single",
|
|
"config": [
|
|
{
|
|
"name": "ha last start",
|
|
"room": null,
|
|
"type": "input_datetime",
|
|
"id": {
|
|
"entity_id": "input_datetime.ha_last_start",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'1744261059099'",
|
|
"automation": "- id: '1744261059099'\n alias: Reptile Lighting Schedule UI\n description: Uses Time of day sensor now\n triggers:\n - trigger: state\n entity_id:\n - binary_sensor.reptile_lighting_schedule\n enabled: true\n attribute: next_update\n conditions:\n - condition: template\n value_template: '{{ trigger.to_state.state in [''on'', ''off''] }}'\n actions:\n - variables:\n list_lights:\n - light.dorn_and_marceline_lighting\n - light.seafoam_styx_lighting_switch_1\n list_status:\n - binary_sensor.dorn_lighting_status\n - binary_sensor.seafoam_light_status\n - repeat:\n sequence:\n - if:\n - condition: template\n value_template: '{{ is_state( repeat.item ,[''on'',''off'']) }} '\n enabled: true\n then:\n - alias: if disconnected,\n if:\n - condition: template\n value_template: '{{ bool( is_state( repeat.item ,''off'' ) ,false ) }}'\n then:\n - variables:\n message: Reptile Schedule Error! {{ state_attr( repeat.item,'friendly_name'\n ) }} is disconnected. Cannot turn device to {{ trigger.to_state.state\n }}\n - action: logbook.log\n metadata: {}\n data:\n name: Reptile Schedule Error!\n message: '{{message}}||||'\n entity_id: automation.reptile_lighting_schedule_ui\n - action: script.custom_alexa_notification\n metadata: {}\n data:\n target_alexa_speaker:\n entity_id: media_player.alexa_s_baby\n message: '{{message}}'\n volume: Normal Volume\n sound: christmas_05\n else:\n - if:\n - condition: template\n value_template: '{{ is_state( list_lights[(repeat.index - 1) | int ]\n , [''on'',''off'']) }}'\n then:\n - variables:\n message: Reptile lights schedule executed, setting {{ state_attr(\n list_lights[(repeat.index - 1) | int ],'friendly_name' ) }} to\n {{ trigger.to_state.state }}\n - action: logbook.log\n metadata: {}\n data:\n name: Reptile Schedule Executed\n message: '{{message}}|||'\n entity_id: automation.reptile_lighting_schedule_ui\n enabled: false\n - action: script.custom_alexa_notification\n metadata: {}\n data:\n target_alexa_speaker:\n entity_id: media_player.alexa_s_baby\n message: '{{message}}'\n volume: Normal Volume\n sound: christmas_05\n enabled: false\n - action: script.set_state_switch_light\n data:\n bool_invert_state: 'Off'\n select_state: Unknown\n target_entity_set:\n entity_id: '{{list_lights[(repeat.index - 1) | int ]}}'\n entity_trigger:\n entity_id: '{{trigger.entity_id}}'\n enabled: true\n else:\n - action: logbook.log\n metadata: {}\n data:\n name: Reptile Schedule Error!\n message: Problem with reptile lights schedule, {{ state_attr(list_lights[(repeat.index\n - 1) | int ], 'friendly_name') }} is unavailable, Cannot turn device\n to {{ trigger.to_state.state }}\n entity_id: automation.reptile_lighting_schedule_ui\n for_each: '{{ list_status | list }}'\n mode: single",
|
|
"config": [
|
|
{
|
|
"name": "seafoam light status",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.seafoam_light_status",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "dorn lighting status",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.dorn_lighting_status",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "reptile lighting schedule",
|
|
"room": "reptile_room",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.reptile_lighting_schedule",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "dorn and marceline lighting",
|
|
"room": null,
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.dorn_and_marceline_lighting",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "seafoam styx lighting switch 1",
|
|
"room": null,
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.seafoam_styx_lighting_switch_1",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "alexa baby speaker",
|
|
"room": "baby",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.alexa_s_baby",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Reptile Lighting Schedule UI",
|
|
"room": null,
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.reptile_lighting_schedule_ui",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'1744768566586'",
|
|
"automation": "- id: '1744768566586'\n alias: Staging LED Strip Motion Detect\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - binary_sensor.motion_sensor_29_motion\n from: 'off'\n to: 'on'\n - trigger: state\n entity_id:\n - binary_sensor.motion_sensor_29_motion\n from: 'on'\n to: 'off'\n conditions: []\n actions:\n - if:\n - condition: template\n value_template: '{{ bool( is_state(''binary_sensor.motion_sensor_29_motion'',[''on''])\n ,false) }}'\n then:\n - action: light.turn_on\n metadata: {}\n data:\n rgb_color:\n - 255\n - 204\n - 2\n brightness_step_pct: 100\n target:\n entity_id: light.led_strip_color\n else:\n - action: light.turn_on\n metadata: {}\n data:\n rgb_color:\n - 1\n - 97\n - 253\n brightness_step_pct: 0\n target:\n entity_id: light.led_strip_color\n mode: single",
|
|
"config": [
|
|
{
|
|
"name": "led strip color",
|
|
"room": null,
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.led_strip_color",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "motion sensor 29 motion",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.motion_sensor_29_motion",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'1749869580049'",
|
|
"automation": "- id: '1749869580049'\n alias: Aquarium Lighting Scheduled On/Off 120\n description: Aquarium Lighting turned On/Off according to a schedule\n triggers:\n - trigger: state\n entity_id:\n - binary_sensor.120g_aquarium_lighting_schedule\n attribute: next_update\n enabled: true\n conditions:\n - condition: template\n value_template: '{{ trigger.to_state.state in [''on'', ''off''] }}'\n enabled: true\n actions:\n - action: script.set_state_switch_light\n data:\n bool_invert_state: 'Off'\n select_state: Unknown\n entity_trigger:\n entity_id: '{{trigger.entity_id}}'\n target_entity_set:\n entity_id:\n - light.120g_aquarium_light\n - switch.120g_aquarium_pump\n mode: single",
|
|
"config": [
|
|
{
|
|
"name": "120g aquarium lighting schedule",
|
|
"room": "aquarium",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.120g_aquarium_lighting_schedule",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "120g aquarium light",
|
|
"room": "aquarium",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.120g_aquarium_light",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "120g aquarium pump",
|
|
"room": "aquarium",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.120g_aquarium_pump",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'1733562107777'",
|
|
"automation": "- id: '1733562107777'\n alias: Cat Fountain Problem Notification\n description: \"Detects and notifies based on problems with: \\n- Tank Disconnected\\\n \\ \\n- Low Water Level.\\rNOTE: This automation does NOT set any sensor values.\"\n triggers:\n - trigger: numeric_state\n entity_id:\n - sensor.cat_fountain_remaining_water\n below: 33\n for:\n hours: 0\n minutes: 20\n seconds: 0\n enabled: true\n above: 0\n - trigger: state\n entity_id:\n - binary_sensor.cat_fountain_water_tank_status\n for:\n hours: 0\n minutes: 9\n seconds: 0\n to: 'off'\n from: 'on'\n conditions:\n - condition: template\n value_template: '{{ bool( states(''binary_sensor.cat_fountain_wi_fi''),false\n ) }}'\n enabled: true\n actions:\n - variables:\n water_level: '{{ states(''sensor.cat_fountain_remaining_water'') | int(999)\n }}'\n critical_threshold_upper: 30\n critical: \"{%- if water_level | int(0) <= critical_threshold_upper | int(0)\\\n \\ %}\\n ON\\n{%- else %}\\n OFF\\n{%- endif %}\\n\"\n message: 'Cat water is {% if critical == \"ON\" %}extremely low{% endif %} at\n {{ water_level }}% in Area: {{ area_name(trigger.entity_id) }} :: Please fill\n immediately!!'\n - if:\n - condition: template\n value_template: '{{ bool( states(''binary_sensor.cat_fountain_water_tank_status'')\n ,false)}}'\n then:\n - action: script.notification_dispatcher\n metadata: {}\n data:\n message: '{{message}}'\n notification_channel:\n - iPhone\n - iPad\n - macBook\n - persistant\n - sms\n - alexa\n bool_critical: '{{critical}}'\n sound: default\n sms_targets:\n - 7188138156@mms.att.net\n email_targets:\n - gbtunney@mac.com\n alias: Low Water Notification\n else:\n - action: script.notification_dispatcher\n metadata: {}\n data:\n message: 'Cat fountain tank appears to be disconnected for more than 10 min\n in Area: {{ area_name(trigger.entity_id) }}. The last recorded water remaining\n was {{ states(''sensor.cat_fountain_water_volume'') | int(999) }} % :: Please\n fix immediately!!'\n notification_channel:\n - iPhone\n - iPad\n - macBook\n - persistant\n - alexa\n bool_critical: 'OFF'\n sound: default\n sms_targets:\n - 7188138156@mms.att.net\n email_targets:\n - gbtunney@mac.com\n alias: Cat Fountain Disconnected Notification\n alias: Notification Conditional\n mode: single",
|
|
"config": [
|
|
{
|
|
"name": "cat fountain remaining water",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.cat_fountain_remaining_water",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "cat fountain water tank status",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.cat_fountain_water_tank_status",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "cat fountain wi fi",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.cat_fountain_wi_fi",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "cat fountain water volume",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.cat_fountain_water_volume",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'1734249603918'",
|
|
"automation": "- id: '1734249603918'\n alias: 'Sensor: Cat Fountain Tank Filled'\n description: '- Determines if the tank has been filled based on if new volume is\n HIGHER than last recorded. - If filled, sets a timestamp variable so there is\n a ''days since last fill'' counter.'\n triggers:\n - trigger: numeric_state\n entity_id:\n - sensor.cat_fountain_remaining_water\n value_template: '{{ bool( (( states( trigger.entity_id ) | int(999) - states(''sensor.cat_fountain_water_volume'') |\n int(999) ) > 20 ) ) }} '\n above: 0\n below: 100\n conditions:\n - condition: template\n value_template: '{{ bool( states(''binary_sensor.cat_fountain_water_tank_status''),false\n )and bool( states(''binary_sensor.cat_fountain_wi_fi''),false ) }}'\n actions:\n - action: logbook.log\n metadata: {}\n data:\n name: Cat Fountain Tank Filled!\n message: The cat fountain was just filled and is currently at {{ states( trigger.entity_id\n ) }}%. It was previously filled {{ states('sensor.cat_fountain_days_since_last_fill')}}\n days ago.\n entity_id: sensor.cat_fountain_days_since_last_fill\n - action: input_datetime.set_datetime\n metadata: {}\n data:\n timestamp: '{{float(as_timestamp(now()),0)}}'\n target:\n entity_id: input_datetime.cat_fountain_tank_last_filled_date\n mode: single",
|
|
"config": [
|
|
{
|
|
"name": "cat fountain remaining water",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.cat_fountain_remaining_water",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "cat fountain water tank status",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.cat_fountain_water_tank_status",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "cat fountain wi fi",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.cat_fountain_wi_fi",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "cat fountain water volume",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.cat_fountain_water_volume",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "cat fountain days since last fill",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.cat_fountain_days_since_last_fill",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "cat fountain tank last filled date",
|
|
"room": null,
|
|
"type": "input_datetime",
|
|
"id": {
|
|
"entity_id": "input_datetime.cat_fountain_tank_last_filled_date",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'1733608231107'",
|
|
"automation": "- id: '1733608231107'\n alias: Reptile Lighting Schedule\n description: Uses Time of day sensor now\n triggers:\n - trigger: state\n entity_id:\n - binary_sensor.reptile_lighting_schedule\n enabled: true\n attribute: next_update\n conditions:\n - condition: template\n value_template: '{{ trigger.to_state.state in [''on'', ''off''] }}'\n actions:\n - action: script.set_state_switch_light\n data:\n bool_invert_state: 'Off'\n select_state: Unknown\n target_entity_set:\n entity_id: light.reptile_lights\n entity_trigger:\n entity_id: '{{trigger.entity_id}}'\n mode: single",
|
|
"config": [
|
|
{
|
|
"name": "reptile lighting schedule",
|
|
"room": "reptile_room",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.reptile_lighting_schedule",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "reptile lights",
|
|
"room": "reptile_room",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.reptile_lights",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
}
|
|
] |