[ { "id": "Automate Heating - Turn Off Heating Based On Outside Temperature", "automation": "- alias: Automate Heating - Turn Off Heating Based On Outside Temperature\n description: 'This automation will turn on the heating if the following are true;\n\n * The outside temperature is greater than or equal to the threshold (default:\n 15)\n\n * The time of day falls between the operating hours (default: 07:00-16:00)\n\n * The heating is currently turned on'\n trigger:\n - platform: state\n entity_id:\n - sensor.ibs_th_10f3_temperature\n condition:\n - condition: state\n entity_id: input_boolean.override_heating\n state: 'off'\n - condition: template\n value_template: '{{ state_attr(''sensor.ibs_th_10f3_temperature'', ''temperature'')|float(2)\n >= states(''input_number.heating_automation_setpoint'')|float(2) }}'\n alias: Outdoor temperature goes above threshold\n - condition: time\n after: input_datetime.heating_automation_start_time\n before: input_datetime.heating_automation_end_time\n weekday:\n - mon\n - tue\n - wed\n - thu\n - fri\n - sat\n - sun\n alias: Time is within automation window\n - condition: state\n entity_id: climate.home\n state: heat\n alias: The heating is currently on\n action:\n - service: evohome.set_system_mode\n data:\n mode: HeatingOff\n alias: Set heating controller to 'Off'\n - service: script.notification_handler\n data_template:\n is_critical: false\n is_debug: true\n is_system: false\n title: Home Assistant\n message: Heating turned off by climate control\n mode: single", "config": [ { "name": "outdoor temperature sensor", "room": "outside", "type": "sensor", "id": { "entity_id": "sensor.ibs_th_10f3_temperature", "device_id": null } }, { "name": "heating override toggle", "room": "home", "type": "input_boolean", "id": { "entity_id": "input_boolean.override_heating", "device_id": null } }, { "name": "heating automation setpoint", "room": "home", "type": "input_number", "id": { "entity_id": "input_number.heating_automation_setpoint", "device_id": null } }, { "name": "heating automation start time", "room": "home", "type": "input_datetime", "id": { "entity_id": "input_datetime.heating_automation_start_time", "device_id": null } }, { "name": "heating automation end time", "room": "home", "type": "input_datetime", "id": { "entity_id": "input_datetime.heating_automation_end_time", "device_id": null } }, { "name": "home climate controller", "room": "home", "type": "climate", "id": { "entity_id": "climate.home", "device_id": null } }, { "name": "Notification Handler Script", "room": null, "type": "script", "id": { "entity_id": "script.notification_handler", "device_id": null } } ] }, { "id": "Automate Heating - Turn Off Heating Based On Proximity", "automation": "- alias: Automate Heating - Turn Off Heating Based On Proximity\n description: ''\n trigger:\n - platform: numeric_state\n entity_id: proximity.home\n above: '2'\n for:\n hours: 0\n minutes: 1\n seconds: 0\n alias: Proximity sensor detects no occupancy\n - platform: state\n entity_id:\n - sensor.people_home\n to: 'False'\n for:\n hours: 0\n minutes: 1\n seconds: 0\n alias: No occupancy detected for 1 minute\n condition:\n - condition: state\n entity_id: climate.home\n state: 'off'\n alias: No occupancy detected\n - condition: state\n entity_id: proximity.home\n attribute: dir_of_travel\n state: away_from\n for:\n hours: 0\n minutes: 1\n seconds: 0\n alias: Proximity sensor detects travel away from home for 1 minute\n action:\n - service: evohome.set_system_mode\n data:\n mode: HeatingOff\n alias: Set heating controller to 'Off'\n - service: script.notification_handler\n data_template:\n is_critical: false\n is_debug: true\n is_system: false\n message: Heating turned off by proximity\n title: Home Assistant\n mode: single", "config": [ { "name": "home climate controller", "room": "home", "type": "climate", "id": { "entity_id": "climate.home", "device_id": null } }, { "name": "proximity sensor", "room": "home", "type": "sensor", "id": { "entity_id": "proximity.home", "device_id": null } }, { "name": "people home sensor", "room": "home", "type": "sensor", "id": { "entity_id": "sensor.people_home", "device_id": null } }, { "name": "Notification Handler Script", "room": null, "type": "script", "id": { "entity_id": "script.notification_handler", "device_id": null } } ] }, { "id": "Automate Heating - Turn On Heating Based On Outside Temperature and Occupancy/Proximity", "automation": "- alias: Automate Heating - Turn On Heating Based On Outside Temperature and Occupancy/Proximity\n description: 'This automation will turn off the heating if the following are true;\n\n * The outside temperature is less than or equal to the threshold (default: 15)\n\n * The time of day falls inside of the operating hours (default: 07:00-16:00)\n\n * The heating is currently turned off\n\n * Somebody is home\n\n\n OR\n\n\n * The heating is currently turned off\n\n * The average household temperature is less than or equal to the threshold (default:\n 19)\n\n * Somebody is home'\n trigger:\n - platform: state\n entity_id:\n - sensor.ibs_th_10f3_temperature\n condition:\n - condition: template\n value_template: '{{ state_attr(''sensor.ibs_th_10f3_temperature'', ''temperature'')|float(2)\n <= states(''input_number.heating_automation_setpoint'')|float(2) }}'\n - condition: or\n conditions:\n - condition: and\n conditions:\n - condition: time\n after: input_datetime.heating_automation_end_time\n before: input_datetime.heating_automation_start_time\n - condition: state\n entity_id: climate.home\n state: 'off'\n - condition: or\n conditions:\n - condition: state\n entity_id: sensor.people_home\n state: 'True'\n for:\n hours: 0\n minutes: 1\n seconds: 0\n alias: Occupancy detected for 1 minute\n - condition: numeric_state\n entity_id: climate.home\n below: '1'\n alias: Proximity sensor detects occupancy\n alias: Occupancy sensor(s) detect occupancy\n - condition: and\n conditions:\n - condition: state\n entity_id: climate.home\n state: 'off'\n alias: The heating is currently off\n - condition: numeric_state\n entity_id: sensor.average_household_temperature\n below: input_number.heating_automation_minimum_internal_temperature\n alias: Average household temperature is below the threshold\n - condition: or\n conditions:\n - condition: state\n entity_id: sensor.people_home\n state: 'True'\n for:\n hours: 0\n minutes: 1\n seconds: 0\n alias: Occupancy detected for 1 minute\n - condition: numeric_state\n entity_id: proximity.home\n below: '1'\n alias: Proximity sensor detects occupancy\n action:\n - service: evohome.reset_system\n data: {}\n - service: script.notification_handler\n data_template:\n is_critical: false\n is_debug: true\n is_system: false\n title: Home Assistant\n message: Heating turned on by climate control and/or proximity\n mode: single", "config": [ { "name": "outdoor temperature sensor", "room": "outside", "type": "sensor", "id": { "entity_id": "sensor.ibs_th_10f3_temperature", "device_id": null } }, { "name": "heating automation setpoint", "room": "home", "type": "input_number", "id": { "entity_id": "input_number.heating_automation_setpoint", "device_id": null } }, { "name": "heating automation start time", "room": "home", "type": "input_datetime", "id": { "entity_id": "input_datetime.heating_automation_start_time", "device_id": null } }, { "name": "heating automation end time", "room": "home", "type": "input_datetime", "id": { "entity_id": "input_datetime.heating_automation_end_time", "device_id": null } }, { "name": "home climate controller", "room": "home", "type": "climate", "id": { "entity_id": "climate.home", "device_id": null } }, { "name": "proximity sensor", "room": "home", "type": "sensor", "id": { "entity_id": "proximity.home", "device_id": null } }, { "name": "people home sensor", "room": "home", "type": "sensor", "id": { "entity_id": "sensor.people_home", "device_id": null } }, { "name": "average household temperature sensor", "room": "home", "type": "sensor", "id": { "entity_id": "sensor.average_household_temperature", "device_id": null } }, { "name": "heating automation minimum internal temperature", "room": "home", "type": "input_number", "id": { "entity_id": "input_number.heating_automation_minimum_internal_temperature", "device_id": null } }, { "name": "Notification Handler Script", "room": null, "type": "script", "id": { "entity_id": "script.notification_handler", "device_id": null } } ] }, { "id": "Automate Heating - Turn On Heating On When Travelling Back To House", "automation": "- alias: Automate Heating - Turn On Heating On When Travelling Back To House\n description: ''\n trigger:\n - platform: numeric_state\n entity_id: proximity.home\n for:\n hours: 0\n minutes: 1\n seconds: 0\n below: '15'\n alias: Proximity sensor detects travel within 15 miles of home\n condition:\n - condition: state\n entity_id: proximity.home\n attribute: dir_of_travel\n for:\n hours: 0\n minutes: 0\n seconds: 0\n state: towards\n alias: Proximity sensor detects direction of travel towards home\n - condition: or\n conditions:\n - condition: and\n conditions:\n - condition: time\n after: input_datetime.heating_automation_end_time\n before: input_datetime.heating_automation_start_time\n alias: The time is outside of the automation threshold\n - condition: state\n entity_id: climate.home\n state: 'off'\n alias: The heating is off\n - condition: and\n conditions:\n - condition: state\n entity_id: climate.home\n state: 'off'\n alias: The heating is off\n - condition: numeric_state\n entity_id: sensor.average_household_temperature\n below: input_number.heating_automation_minimum_internal_temperature\n alias: The internal temperature is less than the threshold\n action:\n - service: evohome.reset_system\n data: {}\n - service: script.notification_handler\n data_template:\n is_critical: false\n is_debug: true\n is_system: false\n message: Heating turned on by proximity\n title: Home Assistant\n mode: single", "config": [ { "name": "heating automation start time", "room": "home", "type": "input_datetime", "id": { "entity_id": "input_datetime.heating_automation_start_time", "device_id": null } }, { "name": "heating automation end time", "room": "home", "type": "input_datetime", "id": { "entity_id": "input_datetime.heating_automation_end_time", "device_id": null } }, { "name": "home climate controller", "room": "home", "type": "climate", "id": { "entity_id": "climate.home", "device_id": null } }, { "name": "proximity sensor", "room": "home", "type": "sensor", "id": { "entity_id": "proximity.home", "device_id": null } }, { "name": "average household temperature sensor", "room": "home", "type": "sensor", "id": { "entity_id": "sensor.average_household_temperature", "device_id": null } }, { "name": "heating automation minimum internal temperature", "room": "home", "type": "input_number", "id": { "entity_id": "input_number.heating_automation_minimum_internal_temperature", "device_id": null } }, { "name": "Notification Handler Script", "room": null, "type": "script", "id": { "entity_id": "script.notification_handler", "device_id": null } } ] }, { "id": "Scene Example", "automation": "- alias: Scene Example\n description: Example automation that creates a dynamic scene to snapshot an entity\n or group of entities before applying a pre-defined scene when motion is detected.\n When the motion stops the dynamic scene is applied and then deleted.\n trigger:\n - platform: state\n entity_id:\n - binary_sensor.landing_motion\n from: 'off'\n to: 'on'\n id: detected\n - platform: state\n entity_id:\n - binary_sensor.landing_motion\n from: 'on'\n to: 'off'\n id: cleared\n for:\n hours: 0\n minutes: 3\n seconds: 0\n condition:\n - condition: sun\n before: sunrise\n after: sunset\n action:\n - choose:\n - conditions:\n - condition: trigger\n id:\n - detected\n sequence:\n - service: scene.create\n metadata: {}\n data:\n scene_id: before\n snapshot_entities:\n - light.ikea_led2035g10_landing\n - service: scene.turn_on\n metadata: {}\n target:\n entity_id: scene.landing_light\n - conditions:\n - condition: trigger\n id:\n - cleared\n sequence:\n - service: scene.turn_on\n target:\n entity_id: scene.before\n data: {}\n - service: scene.delete\n metadata: {}\n data: {}\n target:\n entity_id: scene.before\n mode: single", "config": [ { "name": "landing motion sensor", "room": "landing", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.landing_motion", "device_id": null } }, { "name": "landing light", "room": "landing", "type": "light", "id": { "entity_id": "light.ikea_led2035g10_landing", "device_id": null } }, { "name": "landing light scene", "room": "landing", "type": "scene", "id": { "entity_id": "scene.landing_light", "device_id": null } }, { "name": "Before Scene", "room": null, "type": "scene", "id": { "entity_id": "scene.before", "device_id": null } } ] }, { "id": "'1642965174159'", "automation": "- id: '1642965174159'\n alias: Start of Kids Bedtime\n description: ''\n trigger:\n - platform: time\n at: input_datetime.start_of_kids_bedtime\n condition: []\n action:\n - service: light.turn_on\n data:\n brightness_pct: 50\n color_name: darkviolet\n target:\n entity_id: light.signify_netherlands_b_v_llc013_huelight\n mode: single", "config": [ { "name": "kids bedtime start time", "room": "kids_bedroom", "type": "input_datetime", "id": { "entity_id": "input_datetime.start_of_kids_bedtime", "device_id": null } }, { "name": "kids hue light", "room": "kids_bedroom", "type": "light", "id": { "entity_id": "light.signify_netherlands_b_v_llc013_huelight", "device_id": null } } ] }, { "id": "'1642965384035'", "automation": "- id: '1642965384035'\n alias: Kids Lights Out\n description: ''\n trigger:\n - platform: time\n at: input_datetime.kids_lights_out\n condition: []\n action:\n - service: light.turn_on\n data:\n brightness_pct: 20\n color_name: violet\n target:\n entity_id: light.signify_netherlands_b_v_llc013_huelight\n mode: single", "config": [ { "name": "kids hue light", "room": "kids_bedroom", "type": "light", "id": { "entity_id": "light.signify_netherlands_b_v_llc013_huelight", "device_id": null } }, { "name": "kids lights out time", "room": "kids_bedroom", "type": "input_datetime", "id": { "entity_id": "input_datetime.kids_lights_out", "device_id": null } } ] }, { "id": "'1643101162633'", "automation": "- id: '1643101162633'\n alias: Turn off all lights in kids bedroom\n description: Turn off all lights in kids bedroom at 08:30 on a workday or 09:00\n at any other time\n trigger:\n - platform: time\n at: input_datetime.kids_lights_off_weekday\n - platform: time\n at: input_datetime.kids_lights_off_weekend\n condition:\n - condition: or\n conditions:\n - condition: state\n entity_id: binary_sensor.workday_sensor\n state: 'on'\n - condition: time\n after: 08:55:00\n weekday:\n - mon\n - tue\n - wed\n - thu\n - fri\n - sat\n - sun\n action:\n - service: light.turn_off\n data: {}\n target:\n entity_id: light.all_kids_bedroom_lights\n mode: single", "config": [ { "name": "kids lights off weekday time", "room": "kids_bedroom", "type": "input_datetime", "id": { "entity_id": "input_datetime.kids_lights_off_weekday", "device_id": null } }, { "name": "kids lights off weekend time", "room": "kids_bedroom", "type": "input_datetime", "id": { "entity_id": "input_datetime.kids_lights_off_weekend", "device_id": null } }, { "name": "workday sensor", "room": "home", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.workday_sensor", "device_id": null } }, { "name": "all kids bedroom lights", "room": "kids_bedroom", "type": "light", "id": { "entity_id": "light.all_kids_bedroom_lights", "device_id": null } } ] }, { "id": "'1643165481081'", "automation": "- id: '1643165481081'\n alias: Turn Off Master Bedroom Lights Daily\n description: ''\n trigger:\n - platform: time\n at: input_datetime.master_bedroom_lights_off_am\n condition: []\n action:\n - service: light.turn_off\n data: {}\n target:\n entity_id: light.all_master_bedroom_lights\n mode: single", "config": [ { "name": "master bedroom lights off time", "room": "master_bedroom", "type": "input_datetime", "id": { "entity_id": "input_datetime.master_bedroom_lights_off_am", "device_id": null } }, { "name": "all master bedroom lights", "room": "master_bedroom", "type": "light", "id": { "entity_id": "light.all_master_bedroom_lights", "device_id": null } } ] }, { "id": "'1643465573814'", "automation": "- id: '1643465573814'\n alias: Low battery level detection & notification for all battery sensors\n description: ''\n use_blueprint:\n path: sbyx/low-battery-level-detection-notification-for-all-battery-sensors.yaml\n input:\n actions:\n - service: script.notification_handler\n data_template:\n is_critical: false\n is_debug: false\n is_system: false\n title: Low battery warning!\n message: Low Battery detected on device {{sensors}}. Charge or replace the\n battery/batteries as soon as possible.\n - service: notify.persistent_notification\n data:\n message: Low Battery detected on device {{sensors}}. Charge or replace the\n battery/batteries as soon as possible.\n title: Low battery warning!\n exclude:\n entity_id:\n - sensor.myphone_battery_level\n - sensor.myphone_battery_state\n - sensor.jessicaiphone_battery_level\n - sensor.macos_internal_battery_level\n - sensor.jonathans_ipad_pro_battery_level\n threshold: 20", "config": [ { "name": "Notification Handler Script", "room": null, "type": "script", "id": { "entity_id": "script.notification_handler", "device_id": null } }, { "name": "Jessica iPhone Battery Level", "room": null, "type": "sensor", "id": { "entity_id": "sensor.jessicaiphone_battery_level", "device_id": null } }, { "name": "Jonathan's iPad Pro Battery Level", "room": null, "type": "sensor", "id": { "entity_id": "sensor.jonathans_ipad_pro_battery_level", "device_id": null } }, { "name": "macOS Internal Battery Level", "room": null, "type": "sensor", "id": { "entity_id": "sensor.macos_internal_battery_level", "device_id": null } }, { "name": "My Phone Battery Level", "room": null, "type": "sensor", "id": { "entity_id": "sensor.myphone_battery_level", "device_id": null } }, { "name": "My Phone Battery State", "room": null, "type": "sensor", "id": { "entity_id": "sensor.myphone_battery_state", "device_id": null } } ] }, { "id": "'1643466860803'", "automation": "- id: '1643466860803'\n alias: Master Bedroom Light Sunrise Effect\n description: ''\n use_blueprint:\n path: sbyx/wake-up-light-alarm-with-sunrise-effect.yaml\n input:\n manual_time: 06:45:00\n light_entity: light.bed_light_huelight\n sunrise_duration: 45\n check_entity: binary_sensor.workday_sensor", "config": [ { "name": "workday sensor", "room": "home", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.workday_sensor", "device_id": null } }, { "name": "bed light", "room": "master_bedroom", "type": "light", "id": { "entity_id": "light.bed_light_huelight", "device_id": "3370d04b7ff80f8083990d294b3bd01b" } } ] }, { "id": "'1648915782728'", "automation": "- id: '1648915782728'\n alias: openHASP Comms Cabinet back to page 1\n trigger:\n - platform: template\n value_template: '{{ state_attr(''openhasp.comms_cabinet'',''idle'') != ''off''\n }}'\n for: 00:00:01\n condition:\n - condition: template\n value_template: '{{ states(''openhasp.comms_cabinet'') != ''1'' and states(''openhasp.comms_cabinet'')\n != ''unavailable'' }}'\n action:\n - service: openhasp.change_page\n data:\n page: 1\n target:\n entity_id: openhasp.comms_cabinet", "config": [ { "name": "openhas comms cabinet", "room": "comms_cabinet", "type": "openhasp", "id": { "entity_id": "openhasp.comms_cabinet", "device_id": null } } ] }, { "id": "'1648916510909'", "automation": "- id: '1648916510909'\n alias: openHASP Night mode\n trigger:\n - platform: numeric_state\n entity_id: sun.sun\n attribute: elevation\n below: -1\n condition:\n - condition: template\n value_template: '{{ (as_timestamp(now()) - as_timestamp(states(''sensor.uptime_78'')))\n / 60 > 2 }}'\n action:\n - service: mqtt.publish\n data:\n topic: hasp/plates/config/gui\n payload: '{\"idle2\":120}'", "config": [ { "name": "sun sensor", "room": "outside", "type": "sensor", "id": { "entity_id": "sun.sun", "device_id": null } }, { "name": "uptime sensor", "room": "home", "type": "sensor", "id": { "entity_id": "sensor.uptime_78", "device_id": null } } ] }, { "id": "'1648916529373'", "automation": "- id: '1648916529373'\n alias: openHASP Day mode\n trigger:\n - platform: numeric_state\n entity_id: sun.sun\n attribute: elevation\n above: 1\n condition:\n - condition: template\n value_template: '{{ (as_timestamp(now()) - as_timestamp(states(''sensor.uptime_78'')))\n / 60 > 2 }}'\n action:\n - service: mqtt.publish\n data:\n topic: hasp/plates/config/gui\n payload: '{\"idle2\":0}'", "config": [ { "name": "sun sensor", "room": "outside", "type": "sensor", "id": { "entity_id": "sun.sun", "device_id": null } }, { "name": "uptime sensor", "room": "home", "type": "sensor", "id": { "entity_id": "sensor.uptime_78", "device_id": null } } ] }, { "id": "'1650279657325'", "automation": "- id: '1650279657325'\n alias: No Occupancy Detected\n description: ''\n trigger:\n - platform: state\n entity_id: sensor.people_home\n to: 'False'\n for:\n hours: 0\n minutes: 5\n seconds: 0\n from: 'True'\n condition: []\n action:\n - service: script.notification_handler\n data_template:\n is_critical: false\n is_debug: true\n is_system: false\n message: No occupancy detected for five minutes!\n - service: script.away_mode\n data: {}\n mode: single", "config": [ { "name": "people home sensor", "room": "home", "type": "sensor", "id": { "entity_id": "sensor.people_home", "device_id": null } }, { "name": "Away Mode Script", "room": null, "type": "script", "id": { "entity_id": "script.away_mode", "device_id": null } }, { "name": "Notification Handler Script", "room": null, "type": "script", "id": { "entity_id": "script.notification_handler", "device_id": null } } ] }, { "id": "'1650279683721'", "automation": "- id: '1650279683721'\n alias: Occupancy Detected\n description: ''\n trigger:\n - platform: state\n entity_id: sensor.people_home\n for:\n hours: 0\n minutes: 2\n seconds: 0\n from: 'False'\n to: 'True'\n condition: []\n action:\n - parallel:\n - service: script.notification_handler\n data_template:\n is_critical: false\n is_debug: false\n is_system: false\n message: Occupancy detected for two minutes!\n - service: script.1682284192701\n data: {}\n - type: turn_on\n device_id: b10706c56923680ebd822ca2da14e087\n entity_id: switch.kitchendehumidifier\n domain: switch\n - type: turn_on\n device_id: eeddeb7c0df4fc8ba5e7e0f1d34b1eba\n entity_id: switch.diningroomdehumidifier\n domain: switch\n mode: single", "config": [ { "name": "people home sensor", "room": "home", "type": "sensor", "id": { "entity_id": "sensor.people_home", "device_id": null } }, { "name": "dehumidifier switch 1", "room": "kitchen", "type": "switch", "id": { "entity_id": "switch.kitchendehumidifier", "device_id": "b10706c56923680ebd822ca2da14e087" } }, { "name": "dehumidifier switch 2", "room": "dining_room", "type": "switch", "id": { "entity_id": "switch.diningroomdehumidifier", "device_id": "eeddeb7c0df4fc8ba5e7e0f1d34b1eba" } }, { "name": "Script 1682284192701", "room": null, "type": "script", "id": { "entity_id": "script.1682284192701", "device_id": null } }, { "name": "Notification Handler Script", "room": null, "type": "script", "id": { "entity_id": "script.notification_handler", "device_id": null } } ] }, { "id": "'1652822427159'", "automation": "- id: '1652822427159'\n alias: Bathroom Automation\n description: ''\n trigger:\n - platform: state\n entity_id:\n - binary_sensor.lumi_lumi_motion_agl04_iaszone\n alias: Movement detected\n to: 'on'\n - type: opened\n platform: device\n device_id: 06bbe71fbeda062d4c873167f88495c4\n entity_id: binary_sensor.lumi_lumi_sensor_magnet_aq2_opening\n domain: binary_sensor\n condition: []\n action:\n - if:\n - condition: time\n after: input_datetime.bathroom_night_start\n before: input_datetime.bathroom_night_end\n then:\n - service: scene.turn_on\n target:\n entity_id: scene.bathroom_night_toilet_and_sink_lights_only_warm_white_50_brightness\n data: {}\n - wait_for_trigger:\n - platform: state\n entity_id:\n - binary_sensor.lumi_lumi_motion_agl04_iaszone\n to: 'off'\n for:\n hours: 0\n minutes: 5\n seconds: 0\n - service: scene.turn_on\n target:\n entity_id: scene.reset_bathroom_lights_lights_off\n data: {}\n - stop: null\n else:\n - if:\n - condition: state\n entity_id: sensor.bathroom_light_level_below_threshold\n for:\n hours: 0\n minutes: 1\n seconds: 0\n state: 'True'\n then:\n - service: scene.turn_on\n target:\n entity_id: scene.reset_bathroom_lights_lights_on\n data: {}\n else:\n - if:\n - condition: state\n entity_id: input_boolean.bathroom_temporary_override\n state: 'off'\n then:\n - service: scene.turn_on\n target:\n entity_id: scene.reset_bathroom_lights_lights_off\n data: {}\n else:\n - service: input_boolean.turn_off\n data: {}\n target:\n entity_id: input_boolean.bathroom_temporary_override\n - wait_for_trigger:\n - platform: state\n entity_id:\n - binary_sensor.lumi_lumi_motion_agl04_iaszone\n for:\n hours: 0\n minutes: 5\n seconds: 0\n to: 'off'\n - if:\n - condition: state\n entity_id: input_boolean.bathroom_temporary_override\n state: 'off'\n then:\n - service: scene.turn_on\n target:\n entity_id: scene.reset_bathroom_lights_lights_off\n data: {}\n else:\n - service: input_boolean.turn_off\n data: {}\n target:\n entity_id: input_boolean.bathroom_temporary_override\n - stop: null\n mode: restart", "config": [ { "name": "bathroom night start time", "room": "bathroom", "type": "input_datetime", "id": { "entity_id": "input_datetime.bathroom_night_start", "device_id": null } }, { "name": "bathroom night end time", "room": "bathroom", "type": "input_datetime", "id": { "entity_id": "input_datetime.bathroom_night_end", "device_id": null } }, { "name": "bathroom temporary override", "room": "bathroom", "type": "input_boolean", "id": { "entity_id": "input_boolean.bathroom_temporary_override", "device_id": null } }, { "name": "bathroom light level threshold sensor", "room": "bathroom", "type": "sensor", "id": { "entity_id": "sensor.bathroom_light_level_below_threshold", "device_id": null } }, { "name": "bathroom door sensor device", "room": "bathroom", "type": "binary_sensor", "id": { "entity_id": null, "device_id": "06bbe71fbeda062d4c873167f88495c4" } }, { "name": "bathroom night toilet and sink lights scene", "room": "bathroom", "type": "scene", "id": { "entity_id": "scene.bathroom_night_toilet_and_sink_lights_only_warm_white_50_brightness", "device_id": null } }, { "name": "reset bathroom lights lights off scene", "room": "bathroom", "type": "scene", "id": { "entity_id": "scene.reset_bathroom_lights_lights_off", "device_id": null } }, { "name": "reset bathroom lights lights on scene", "room": "bathroom", "type": "scene", "id": { "entity_id": "scene.reset_bathroom_lights_lights_on", "device_id": null } }, { "name": "bathroom motion sensor", "room": "bathroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.lumi_lumi_motion_agl04_iaszone", "device_id": "13ff591684fab210e196fd1e5b72b37e" } }, { "name": "bathroom door sensor", "room": "bathroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.lumi_lumi_sensor_magnet_aq2_opening", "device_id": "06bbe71fbeda062d4c873167f88495c4" } }, { "name": "master bedroom motion sensor", "room": "master_bedroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.lumi_lumi_motion_agl04_iaszone", "device_id": null } } ] }, { "id": "'1652902195686'", "automation": "- id: '1652902195686'\n alias: Bathroom Lights Turned Off With Physical Switch\n description: ''\n trigger:\n - platform: state\n entity_id:\n - binary_sensor.aqara_rtcgq13lm_occupancy\n to: 'on'\n condition:\n - condition: state\n entity_id: light.bathroom\n for:\n hours: 0\n minutes: 1\n seconds: 0\n state: unavailable\n action:\n - service: script.notification_handler\n data_template:\n is_critical: false\n is_debug: false\n is_system: true\n message: Someone turned the bathroom light switch off again!\n mode: single", "config": [ { "name": "bathroom light", "room": "bathroom", "type": "light", "id": { "entity_id": "light.bathroom", "device_id": null } }, { "name": "bathroom occupancy sensor", "room": "bathroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.aqara_rtcgq13lm_occupancy", "device_id": "6d1f04a713e3d15eb1df4a170e6da93d" } }, { "name": "Notification Handler Script", "room": null, "type": "script", "id": { "entity_id": "script.notification_handler", "device_id": null } } ] }, { "id": "'1659437476662'", "automation": "- id: '1659437476662'\n alias: Handle Bathroom Override Toggle\n description: ''\n trigger:\n - platform: state\n entity_id:\n - input_boolean.bathroom_temporary_override\n - platform: event\n event_type: timer.started\n event_data:\n entity_id: timer.bathroom_override\n - platform: event\n event_type: timer.finished\n event_data:\n entity_id: timer.bathroom_override\n id: bathroom.timer.finished\n - platform: event\n event_type: timer.cancelled\n event_data:\n entity_id: timer.bathroom_override\n id: bathroom.timer.cancelled\n condition: []\n action:\n - if:\n - condition: state\n entity_id: input_boolean.bathroom_temporary_override\n state: 'on'\n - condition: not\n conditions:\n - condition: trigger\n id: bathroom.timer.finished\n - condition: trigger\n id: bathroom.timer.cancelled\n then:\n - service: timer.start\n data_template:\n duration:\n minutes: '{{ states(''input_number.bathroom_override_parameter'')|int }}'\n target:\n entity_id: timer.bathroom_override\n else:\n - service: timer.finish\n data: {}\n target:\n entity_id: timer.bathroom_override\n - if:\n - condition: or\n conditions:\n - condition: trigger\n id: bathroom.timer.finished\n - condition: trigger\n id: bathroom.timer.cancelled\n then:\n - service: input_boolean.turn_off\n data: {}\n target:\n entity_id: input_boolean.bathroom_temporary_override\n - if:\n - type: is_no_motion\n condition: device\n device_id: 6d1f04a713e3d15eb1df4a170e6da93d\n entity_id: binary_sensor.aqara_rtcgq13lm_occupancy\n domain: binary_sensor\n then:\n - service: scene.turn_on\n target:\n entity_id: scene.reset_bathroom_lights_lights_off\n metadata: {}\n mode: restart", "config": [ { "name": "bathroom temporary override", "room": "bathroom", "type": "input_boolean", "id": { "entity_id": "input_boolean.bathroom_temporary_override", "device_id": null } }, { "name": "bathroom override timer", "room": "bathroom", "type": "timer", "id": { "entity_id": "timer.bathroom_override", "device_id": null } }, { "name": "bathroom override parameter", "room": "bathroom", "type": "input_number", "id": { "entity_id": "input_number.bathroom_override_parameter", "device_id": null } }, { "name": "bathroom occupancy sensor device", "room": "bathroom", "type": "binary_sensor", "id": { "entity_id": null, "device_id": "6d1f04a713e3d15eb1df4a170e6da93d" } }, { "name": "bathroom motion sensor device 2", "room": "bathroom", "type": "binary_sensor", "id": { "entity_id": null, "device_id": "6d1f04a713e3d15eb1df4a170e6da93d" } }, { "name": "reset bathroom lights lights off scene", "room": "bathroom", "type": "scene", "id": { "entity_id": "scene.reset_bathroom_lights_lights_off", "device_id": null } }, { "name": "bathroom occupancy sensor", "room": "bathroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.aqara_rtcgq13lm_occupancy", "device_id": "6d1f04a713e3d15eb1df4a170e6da93d" } } ] }, { "id": "'1659550336880'", "automation": "- id: '1659550336880'\n alias: Start Timer\n description: ''\n trigger:\n - platform: state\n entity_id:\n - input_button.start_timer\n condition: []\n action:\n - service: timer.start\n data: {}\n target:\n entity_id: timer.bathroom_override\n mode: single", "config": [ { "name": "bathroom override timer", "room": "bathroom", "type": "timer", "id": { "entity_id": "timer.bathroom_override", "device_id": null } }, { "name": "start timer button", "room": "bathroom", "type": "input_button", "id": { "entity_id": "input_button.start_timer", "device_id": null } } ] }, { "id": "'1659550360716'", "automation": "- id: '1659550360716'\n alias: Stop Timer\n description: ''\n trigger:\n - platform: state\n entity_id:\n - input_button.stop_times\n condition: []\n action:\n - service: timer.cancel\n data: {}\n target:\n entity_id: timer.bathroom_override\n mode: single", "config": [ { "name": "bathroom override timer", "room": "bathroom", "type": "timer", "id": { "entity_id": "timer.bathroom_override", "device_id": null } }, { "name": "stop timer button", "room": "bathroom", "type": "input_button", "id": { "entity_id": "input_button.stop_times", "device_id": null } } ] }, { "id": "'1662203563568'", "automation": "- id: '1662203563568'\n alias: Bathroom Door\n description: 'Announce reminder to close door if do not disturb is off.\n\n\n Announce still open after 5 minutes if do not disturb is off. Send mobile notification\n if person is home.\n\n\n Announce still open every 5 minutes if do not disturb is off. Send mobile notification\n if person is home.'\n trigger:\n - type: opened\n platform: device\n device_id: 06bbe71fbeda062d4c873167f88495c4\n entity_id: binary_sensor.lumi_lumi_sensor_magnet_aq2_opening\n domain: binary_sensor\n condition:\n - type: is_not_occupied\n condition: device\n device_id: 13ff591684fab210e196fd1e5b72b37e\n entity_id: binary_sensor.lumi_lumi_motion_agl04_occupancy\n domain: binary_sensor\n action:\n - service: input_boolean.turn_on\n data: {}\n target:\n entity_id: input_boolean.bathroom_door_alerts\n alias: Re-enable alerts\n - if:\n - condition: state\n entity_id: binary_sensor.do_not_disturb\n state: 'off'\n then:\n - delay:\n hours: 0\n minutes: 0\n seconds: 20\n milliseconds: 0\n - if:\n - type: is_open\n condition: device\n device_id: 06bbe71fbeda062d4c873167f88495c4\n entity_id: binary_sensor.lumi_lumi_sensor_magnet_aq2_opening\n domain: binary_sensor\n then:\n - service: notify.alexa_media\n data:\n message: Please close the bathroom door when done.\n target: media_player.landing_echo_dot\n data:\n type: tts\n alias: Announce reminder to close bathroom door.\n - repeat:\n count: '1'\n sequence:\n - if:\n - condition: and\n conditions:\n - type: is_open\n condition: device\n device_id: 06bbe71fbeda062d4c873167f88495c4\n entity_id: binary_sensor.lumi_lumi_sensor_magnet_aq2_opening\n domain: binary_sensor\n - condition: state\n entity_id: input_boolean.bathroom_door_alerts\n state: 'on'\n alias: Alerts have not been disabled\n then:\n - delay:\n hours: 0\n minutes: 5\n seconds: 0\n milliseconds: 0\n - choose:\n - conditions:\n - condition: state\n entity_id: binary_sensor.do_not_disturb\n state: 'off'\n sequence:\n - service: notify.alexa_media\n data:\n message: The bathroom door is open.\n target: media_player.landing_echo_dot\n data:\n type: tts\n - service: script.notification_handler\n data_template:\n is_critical: false\n is_debug: false\n is_system: false\n message: The bathroom door is open.\n alias: Send mobile notification if home\n else:\n - service: input_boolean.turn_on\n data: {}\n target:\n entity_id: input_boolean.bathroom_door_alerts\n alias: Re-enable alerts\n - stop: Door was closed.\n alias: Announce/send first reminder at 5 minutes, if door is still open\n - parallel:\n - repeat:\n while:\n - condition: and\n conditions:\n - condition: state\n entity_id: input_boolean.bathroom_door_alerts\n state: 'on'\n alias: Alerts have not been disabled\n - type: is_open\n condition: device\n device_id: 06bbe71fbeda062d4c873167f88495c4\n entity_id: binary_sensor.lumi_lumi_sensor_magnet_aq2_opening\n domain: binary_sensor\n alias: Door is open and alerts are enabled\n sequence:\n - delay:\n hours: 0\n minutes: 5\n seconds: 0\n milliseconds: 0\n - if:\n - condition: and\n conditions:\n - condition: state\n entity_id: input_boolean.bathroom_door_alerts\n state: 'off'\n - type: is_open\n condition: device\n device_id: 06bbe71fbeda062d4c873167f88495c4\n entity_id: binary_sensor.lumi_lumi_sensor_magnet_aq2_opening\n domain: binary_sensor\n then:\n - choose:\n - conditions:\n - condition: state\n entity_id: binary_sensor.do_not_disturb\n state: 'off'\n sequence:\n - service: notify.alexa_media\n data:\n message: '\"The bathroom door has been left open for {{ ((as_timestamp(now())\n - as_timestamp(states.binary_sensor.door_contact_contact.last_changed))/60|round(0))|int\n }} minutes.\"'\n target: media_player.landing_echo_dot\n data:\n type: tts\n - service: script.notification_handler\n data_template:\n is_critical: false\n is_debug: false\n is_system: false\n message: '\"The bathroom door has been left open for {{ ((as_timestamp(now())\n - as_timestamp(states.binary_sensor.door_contact_contact.last_changed))/60|round(0))|int\n }} minutes.\"'\n alias: Send mobile notification if home\n else:\n - service: input_boolean.turn_on\n data: {}\n target:\n entity_id: input_boolean.bathroom_door_alerts\n alias: Re-enable alerts\n - stop: Door was closed.\n alias: Announce/send reminders every 5 minutes, if door is still open\n mode: restart", "config": [ { "name": "do not disturb sensor", "room": "home", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.do_not_disturb", "device_id": null } }, { "name": "bathroom door alerts", "room": "bathroom", "type": "input_boolean", "id": { "entity_id": "input_boolean.bathroom_door_alerts", "device_id": null } }, { "name": "landing echo dot", "room": "landing", "type": "media_player", "id": { "entity_id": "media_player.landing_echo_dot", "device_id": null } }, { "name": "door contact sensor", "room": "bathroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.door_contact_contact", "device_id": null } }, { "name": "bathroom motion sensor device", "room": "bathroom", "type": "binary_sensor", "id": { "entity_id": null, "device_id": "13ff591684fab210e196fd1e5b72b37e" } }, { "name": "bathroom door sensor device", "room": "bathroom", "type": "binary_sensor", "id": { "entity_id": null, "device_id": "06bbe71fbeda062d4c873167f88495c4" } }, { "name": "bathroom motion sensor", "room": "bathroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.lumi_lumi_motion_agl04_iaszone", "device_id": "13ff591684fab210e196fd1e5b72b37e" } }, { "name": "bathroom door sensor", "room": "bathroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.lumi_lumi_sensor_magnet_aq2_opening", "device_id": "06bbe71fbeda062d4c873167f88495c4" } }, { "name": "bathroom motion sensor occupancy", "room": "bathroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.lumi_lumi_motion_agl04_occupancy", "device_id": "13ff591684fab210e196fd1e5b72b37e" } }, { "name": "Notification Handler Script", "room": null, "type": "script", "id": { "entity_id": "script.notification_handler", "device_id": null } } ] }, { "id": "'1642844969174'", "automation": "- id: '1642844969174'\n alias: Octopus Go Off Peak\n description: ''\n trigger:\n - platform: time\n at: input_datetime.octopus_go_off_peak_start\n condition: []\n action:\n - service: select.select_option\n data:\n option: Off Peak\n target:\n entity_id: select.octopus_go\n - service: select.select_option\n data:\n option: offpeak\n target:\n entity_id: select.daily_energy_octopus\n - service: input_number.set_value\n data:\n value: '{{ states(''input_number.octopus_go_off_peak'')|float + ( states(''input_number.electricity_standing_charge'')|float\n / 24) }}'\n target:\n entity_id: input_number.octopus_go\n - service: select.select_option\n data:\n option: Off Peak\n target:\n entity_id:\n - select.washing_machine\n - select.dishwasher\n - select.tumble_dryer\n mode: single", "config": [ { "name": "octopus go off peak start time", "room": "home", "type": "input_datetime", "id": { "entity_id": "input_datetime.octopus_go_off_peak_start", "device_id": null } }, { "name": "octopus go selector", "room": "home", "type": "select", "id": { "entity_id": "select.octopus_go", "device_id": null } }, { "name": "daily energy octopus selector", "room": "home", "type": "select", "id": { "entity_id": "select.daily_energy_octopus", "device_id": null } }, { "name": "octopus go off peak rate", "room": "home", "type": "input_number", "id": { "entity_id": "input_number.octopus_go_off_peak", "device_id": null } }, { "name": "electricity standing charge", "room": "home", "type": "input_number", "id": { "entity_id": "input_number.electricity_standing_charge", "device_id": null } }, { "name": "washing machine selector", "room": "kitchen", "type": "select", "id": { "entity_id": "select.washing_machine", "device_id": null } }, { "name": "dishwasher selector", "room": "kitchen", "type": "select", "id": { "entity_id": "select.dishwasher", "device_id": null } }, { "name": "tumble dryer selector", "room": "kitchen", "type": "select", "id": { "entity_id": "select.tumble_dryer", "device_id": null } }, { "name": "Octopus Go", "room": null, "type": "input_number", "id": { "entity_id": "input_number.octopus_go", "device_id": null } } ] }, { "id": "'1642845099522'", "automation": "- id: '1642845099522'\n alias: Octopus Go Peak\n description: ''\n trigger:\n - platform: time\n at: input_datetime.octopus_go_off_peak_end\n condition: []\n action:\n - service: select.select_option\n data:\n option: Peak\n target:\n entity_id: select.octopus_go\n - service: select.select_option\n data:\n option: peak\n target:\n entity_id: select.daily_energy_octopus\n - service: input_number.set_value\n data:\n value: '{{ states(''input_number.octopus_go_peak'')|float + ( states(''input_number.electricity_standing_charge'')|float\n / 24) }}'\n target:\n entity_id: input_number.octopus_go\n - service: select.select_option\n data:\n option: Peak\n target:\n entity_id:\n - select.washing_machine\n - select.dishwasher\n - select.tumble_dryer\n mode: single", "config": [ { "name": "octopus go selector", "room": "home", "type": "select", "id": { "entity_id": "select.octopus_go", "device_id": null } }, { "name": "daily energy octopus selector", "room": "home", "type": "select", "id": { "entity_id": "select.daily_energy_octopus", "device_id": null } }, { "name": "electricity standing charge", "room": "home", "type": "input_number", "id": { "entity_id": "input_number.electricity_standing_charge", "device_id": null } }, { "name": "washing machine selector", "room": "kitchen", "type": "select", "id": { "entity_id": "select.washing_machine", "device_id": null } }, { "name": "dishwasher selector", "room": "kitchen", "type": "select", "id": { "entity_id": "select.dishwasher", "device_id": null } }, { "name": "tumble dryer selector", "room": "kitchen", "type": "select", "id": { "entity_id": "select.tumble_dryer", "device_id": null } }, { "name": "octopus go off peak end time", "room": "home", "type": "input_datetime", "id": { "entity_id": "input_datetime.octopus_go_off_peak_end", "device_id": null } }, { "name": "octopus go peak rate", "room": "home", "type": "input_number", "id": { "entity_id": "input_number.octopus_go_peak", "device_id": null } }, { "name": "Octopus Go", "room": null, "type": "input_number", "id": { "entity_id": "input_number.octopus_go", "device_id": null } } ] }, { "id": "'1653477172590'", "automation": "- id: '1653477172590'\n alias: Update E.on Tariff Data\n description: ''\n trigger:\n - platform: time\n at: 00:00:00\n condition: []\n action:\n - service: input_number.set_value\n data:\n value: 0.098\n target:\n entity_id: input_number.e_on_gas\n - service: input_number.set_value\n data:\n value: 0.272\n target:\n entity_id: input_number.gas_standing_charge\n mode: single", "config": [ { "name": "e.on gas rate", "room": "home", "type": "input_number", "id": { "entity_id": "input_number.e_on_gas", "device_id": null } }, { "name": "gas standing charge", "room": "home", "type": "input_number", "id": { "entity_id": "input_number.gas_standing_charge", "device_id": null } } ] }, { "id": "'1642204942069'", "automation": "- id: '1642204942069'\n alias: Low Tyre Pressure\n description: Send mobile notification when low tyre pressure is detected.\n trigger:\n - type: problem\n platform: device\n device_id: 814ef11cf14e3dcfcd1341bb5bf7cb98\n entity_id: binary_sensor.bv70vdl_tire_pressure_all\n domain: binary_sensor\n condition: []\n action:\n - service: script.notification_handler\n data_template:\n is_critical: true\n is_debug: false\n is_system: false\n title: Kia eNiro\n message: Low tyre pressure - please check the vehicle!\n mode: single", "config": [ { "name": "kia eniro tire pressure sensor", "room": "vehicle", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.bv70vdl_tire_pressure_all", "device_id": "814ef11cf14e3dcfcd1341bb5bf7cb98" } }, { "name": "kia eniro ev battery plug sensor", "room": "vehicle", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.bv70vdl_ev_battery_plug", "device_id": "814ef11cf14e3dcfcd1341bb5bf7cb98" } }, { "name": "kia eniro ev battery charge sensor", "room": "vehicle", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.bv70vdl_ev_battery_charge", "device_id": "814ef11cf14e3dcfcd1341bb5bf7cb98" } }, { "name": "Notification Handler Script", "room": null, "type": "script", "id": { "entity_id": "script.notification_handler", "device_id": null } } ] }, { "id": "'1642205140114'", "automation": "- id: '1642205140114'\n alias: Plugged In, Not Charging\n description: The vehicle is plugged in but is not charging\n trigger:\n - type: plugged_in\n platform: device\n device_id: 814ef11cf14e3dcfcd1341bb5bf7cb98\n entity_id: binary_sensor.bv70vdl_ev_battery_plug\n domain: binary_sensor\n condition:\n - type: is_not_charging\n condition: device\n device_id: 814ef11cf14e3dcfcd1341bb5bf7cb98\n entity_id: binary_sensor.bv70vdl_ev_battery_charge\n domain: binary_sensor\n action:\n - service: script.notification_handler\n data_template:\n is_critical: true\n is_debug: false\n is_system: false\n title: Kia eNiro\n message: The vehicle is plugged in but is not charging! Please check the vehicle!\n mode: single", "config": [ { "name": "kia eniro tire pressure sensor", "room": "vehicle", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.bv70vdl_tire_pressure_all", "device_id": "814ef11cf14e3dcfcd1341bb5bf7cb98" } }, { "name": "kia eniro ev battery plug sensor", "room": "vehicle", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.bv70vdl_ev_battery_plug", "device_id": "814ef11cf14e3dcfcd1341bb5bf7cb98" } }, { "name": "kia eniro ev battery charge sensor", "room": "vehicle", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.bv70vdl_ev_battery_charge", "device_id": "814ef11cf14e3dcfcd1341bb5bf7cb98" } }, { "name": "Notification Handler Script", "room": null, "type": "script", "id": { "entity_id": "script.notification_handler", "device_id": null } } ] }, { "id": "'1660126561130'", "automation": "- id: '1660126561130'\n alias: Meaco Fan Remote Handler\n description: Automation handler for Meaco Fan via Tasmota IR / MQTT\n trigger:\n - platform: state\n entity_id:\n - input_button.meaco_fan_power\n id: Meaco_Fan_Power\n - platform: state\n entity_id:\n - input_button.meaco_fan_speed\n id: Meaco_Fan_Speed\n - platform: state\n entity_id:\n - input_button.meaco_fan_speed_2\n id: Meaco_Fan_Speed_2\n - platform: state\n entity_id:\n - input_button.meaco_fan_eco_mode\n id: Meaco_Fan_Eco\n - platform: state\n entity_id:\n - input_button.meaco_fan_horizontal_oscillation\n id: Meaco_Fan_Horizontal_Oscillation\n - platform: state\n entity_id:\n - input_button.meaco_fan_vertical_oscillation\n id: Meaco_Fan_Vertical_Oscillation\n - platform: state\n entity_id:\n - input_button.meaco_fan_light\n id: Meaco_Fan_Light\n - platform: state\n entity_id:\n - input_button.meaco_fan_pre_off\n id: Meaco_Fan_Pre_Off\n - platform: state\n entity_id:\n - input_button.meaco_fan_pre_on\n id: Meaco_Fan_Pre_On\n condition: []\n action:\n - if:\n - condition: trigger\n id: Meaco_Fan_Power\n then:\n - service: mqtt.publish\n data:\n topic: cmnd/TasmotaIRBridge/IRsend\n payload: '{\"Protocol\":\"NEC\",\"Bits\":32,\"Data\":\"0x1FE49B6\",\"DataLSB\":\"0x807F926D\",\"Repeat\":0}'\n else:\n - if:\n - condition: trigger\n id: Meaco_Fan_Speed\n then:\n - service: mqtt.publish\n data:\n topic: cmnd/TasmotaIRBridge/IRsend\n payload: '{\"Protocol\":\"NEC\",\"Bits\":32,\"Data\":\"0x1FE916E\",\"DataLSB\":\"0x807F8976\",\"Repeat\":0}'\n else:\n - if:\n - condition: trigger\n id: Meaco_Fan_Speed_2\n then:\n - service: mqtt.publish\n data:\n topic: cmnd/TasmotaIRBridge/IRsend\n payload: '{\"Protocol\":\"NEC\",\"Bits\":32,\"Data\":\"0x1FEF906\",\"DataLSB\":\"0x807F9F60\",\"Repeat\":0}'\n else:\n - if:\n - condition: trigger\n id: Meaco_Fan_Eco\n then:\n - service: mqtt.publish\n data:\n topic: cmnd/TasmotaIRBridge/IRsend\n payload: '{\"Protocol\":\"NEC\",\"Bits\":32,\"Data\":\"0x1FE817E\",\"DataLSB\":\"0x807F817E\",\"Repeat\":0}'\n else:\n - if:\n - condition: trigger\n id: Meaco_Fan_Horizontal_Oscillation\n then:\n - service: mqtt.publish\n data:\n topic: cmnd/TasmotaIRBridge/IRsend\n payload: '{\"Protocol\":\"NEC\",\"Bits\":32,\"Data\":\"0x1FEE11E\",\"DataLSB\":\"0x807F8778\",\"Repeat\":0}'\n else:\n - if:\n - condition: trigger\n id: Meaco_Fan_Vertical_Oscillation\n then:\n - service: mqtt.publish\n data:\n topic: cmnd/TasmotaIRBridge/IRsend\n payload: '{\"Protocol\":\"NEC\",\"Bits\":32,\"Data\":\"0x1FE51AE\",\"DataLSB\":\"0x807F8A75\",\"Repeat\":0}'\n else:\n - if:\n - condition: trigger\n id: Meaco_Fan_Light\n then:\n - service: mqtt.publish\n data:\n topic: cmnd/TasmotaIRBridge/IRsend\n payload: '{\"Protocol\":\"NEC\",\"Bits\":32,\"Data\":\"0x1FE7986\",\"DataLSB\":\"0x807F9E61\",\"Repeat\":0}'\n else:\n - if:\n - condition: trigger\n id: Meaco_Fan_Pre_Off\n then:\n - service: mqtt.publish\n data:\n topic: cmnd/TasmotaIRBridge/IRsend\n payload: '{\"Protocol\":\"NEC\",\"Bits\":32,\"Data\":\"0x1FEC13E\",\"DataLSB\":\"0x807F837C\",\"Repeat\":0}'\n else:\n - if:\n - condition: trigger\n id: Meaco_Fan_Pre_On\n then:\n - service: mqtt.publish\n data:\n topic: cmnd/TasmotaIRBridge/IRsend\n payload: '{\"Protocol\":\"NEC\",\"Bits\":32,\"Data\":\"0x1FE41BE\",\"DataLSB\":\"0x807F827D\",\"Repeat\":0}'\n mode: single", "config": [ { "name": "meaco fan power button", "room": "home", "type": "input_button", "id": { "entity_id": "input_button.meaco_fan_power", "device_id": null } }, { "name": "meaco fan speed button", "room": "home", "type": "input_button", "id": { "entity_id": "input_button.meaco_fan_speed", "device_id": null } }, { "name": "meaco fan speed 2 button", "room": "home", "type": "input_button", "id": { "entity_id": "input_button.meaco_fan_speed_2", "device_id": null } }, { "name": "meaco fan eco mode button", "room": "home", "type": "input_button", "id": { "entity_id": "input_button.meaco_fan_eco_mode", "device_id": null } }, { "name": "meaco fan horizontal oscillation button", "room": "home", "type": "input_button", "id": { "entity_id": "input_button.meaco_fan_horizontal_oscillation", "device_id": null } }, { "name": "meaco fan vertical oscillation button", "room": "home", "type": "input_button", "id": { "entity_id": "input_button.meaco_fan_vertical_oscillation", "device_id": null } }, { "name": "meaco fan light button", "room": "home", "type": "input_button", "id": { "entity_id": "input_button.meaco_fan_light", "device_id": null } }, { "name": "meaco fan pre off button", "room": "home", "type": "input_button", "id": { "entity_id": "input_button.meaco_fan_pre_off", "device_id": null } }, { "name": "meaco fan pre on button", "room": "home", "type": "input_button", "id": { "entity_id": "input_button.meaco_fan_pre_on", "device_id": null } } ] }, { "id": "'1662325491348'", "automation": "- id: '1662325491348'\n alias: Internet Connection Monitor\n description: ''\n trigger:\n - platform: state\n entity_id:\n - binary_sensor.internet\n from: 'on'\n to: 'off'\n for:\n hours: 0\n minutes: 1\n seconds: 0\n id: WAN_DOWN\n - platform: state\n entity_id:\n - binary_sensor.internet\n from: 'off'\n to: 'on'\n for:\n hours: 0\n minutes: 1\n seconds: 0\n id: WAN_UP\n condition:\n - condition: state\n entity_id: input_boolean.do_not_disturb\n state: 'off'\n enabled: false\n action:\n - if:\n - condition: trigger\n id: WAN_DOWN\n then:\n - service: input_datetime.set_datetime\n data:\n datetime: '{{ now().strftime(''%Y-%m-%d %H:%M:%S'') }}'\n target:\n entity_id: input_datetime.internet_down_time\n - service: script.notification_handler\n data_template:\n is_critical: true\n is_debug: false\n is_system: true\n title: Internet Connection Down\n message: The primary internet connection was lost at {{ as_timestamp(states('input_datetime.internet_down_time'))|\n timestamp_custom('%d/%m/%Y %H:%M') }}.\n else:\n - if:\n - condition: trigger\n id: WAN_UP\n then:\n - service: input_datetime.set_datetime\n data:\n datetime: '{{ now().strftime(''%Y-%m-%d %H:%M:%S'') }}'\n target:\n entity_id: input_datetime.internet_restored_time\n - service: script.notification_handler\n data_template:\n is_critical: true\n is_debug: false\n is_system: true\n title: Internet Connection Restored\n message: The primary internet connection was restored at {{ as_timestamp(states('input_datetime.internet_restored_time'))|\n timestamp_custom('%d/%m/%Y %H:%M') }}. The internet was down for {{ ((state_attr('input_datetime.internet_restored_time','timestamp')-state_attr('input_datetime.internet_down_time','timestamp'))/60)|round(0)\n }} {% if ((state_attr('input_datetime.internet_restored_time','timestamp')-state_attr('input_datetime.internet_down_time','timestamp'))/60)|round(0)\n > 1 %} minutes {% else %} minute {% endif %}.\n mode: single", "config": [ { "name": "internet sensor", "room": "home", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.internet", "device_id": null } }, { "name": "internet down time", "room": "home", "type": "input_datetime", "id": { "entity_id": "input_datetime.internet_down_time", "device_id": null } }, { "name": "internet restored time", "room": "home", "type": "input_datetime", "id": { "entity_id": "input_datetime.internet_restored_time", "device_id": null } }, { "name": "Do Not Disturb", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.do_not_disturb", "device_id": null } }, { "name": "Notification Handler Script", "room": null, "type": "script", "id": { "entity_id": "script.notification_handler", "device_id": null } } ] }, { "id": "'1648058728133'", "automation": "- id: '1648058728133'\n alias: Automate Heating - Turn Off Heating Based On Outside Temperature\n description: 'This automation will turn on the heating if the following are true;\n\n * The outside temperature is greater than or equal to the threshold (default:\n 15)\n\n * The time of day falls between the operating hours (default: 07:00-16:00)\n\n * The heating is currently turned on'\n trigger:\n - platform: state\n entity_id:\n - sensor.ibs_th_10f3_temperature\n condition:\n - condition: state\n entity_id: input_boolean.override_heating\n state: 'off'\n - condition: template\n value_template: '{{ state_attr(''sensor.ibs_th_10f3_temperature'', ''temperature'')|float(2)\n >= states(''input_number.heating_automation_setpoint'')|float(2) }}'\n alias: Outdoor temperature goes above threshold\n - condition: time\n after: input_datetime.heating_automation_start_time\n before: input_datetime.heating_automation_end_time\n weekday:\n - mon\n - tue\n - wed\n - thu\n - fri\n - sat\n - sun\n alias: Time is within automation window\n - condition: state\n entity_id: climate.home\n state: heat\n alias: The heating is currently on\n action:\n - service: evohome.set_system_mode\n data:\n mode: HeatingOff\n alias: Set heating controller to 'Off'\n - service: script.notification_handler\n data_template:\n is_critical: false\n is_debug: true\n is_system: false\n title: Home Assistant\n message: Heating turned off by climate control\n mode: single", "config": [ { "name": "outdoor temperature sensor", "room": "outside", "type": "sensor", "id": { "entity_id": "sensor.ibs_th_10f3_temperature", "device_id": null } }, { "name": "heating override toggle", "room": "home", "type": "input_boolean", "id": { "entity_id": "input_boolean.override_heating", "device_id": null } }, { "name": "heating automation setpoint", "room": "home", "type": "input_number", "id": { "entity_id": "input_number.heating_automation_setpoint", "device_id": null } }, { "name": "heating automation start time", "room": "home", "type": "input_datetime", "id": { "entity_id": "input_datetime.heating_automation_start_time", "device_id": null } }, { "name": "heating automation end time", "room": "home", "type": "input_datetime", "id": { "entity_id": "input_datetime.heating_automation_end_time", "device_id": null } }, { "name": "home climate controller", "room": "home", "type": "climate", "id": { "entity_id": "climate.home", "device_id": null } }, { "name": "Notification Handler Script", "room": null, "type": "script", "id": { "entity_id": "script.notification_handler", "device_id": null } } ] }, { "id": "'1648058847418'", "automation": "- id: '1648058847418'\n alias: Automate Heating - Turn On Heating Based On Outside Temperature and Occupancy/Proximity\n description: 'This automation will turn off the heating if the following are true;\n\n * The outside temperature is less than or equal to the threshold (default: 15)\n\n * The time of day falls inside of the operating hours (default: 07:00-16:00)\n\n * The heating is currently turned off\n\n * Somebody is home\n\n\n OR\n\n\n * The heating is currently turned off\n\n * The average household temperature is less than or equal to the threshold (default:\n 19)\n\n * Somebody is home'\n trigger:\n - platform: state\n entity_id:\n - sensor.ibs_th_10f3_temperature\n condition:\n - condition: template\n value_template: '{{ state_attr(''sensor.ibs_th_10f3_temperature'', ''temperature'')|float(2)\n <= states(''input_number.heating_automation_setpoint'')|float(2) }}'\n - condition: or\n conditions:\n - condition: and\n conditions:\n - condition: time\n after: input_datetime.heating_automation_end_time\n before: input_datetime.heating_automation_start_time\n - condition: state\n entity_id: climate.home\n state: 'off'\n - condition: or\n conditions:\n - condition: state\n entity_id: sensor.people_home\n state: 'True'\n for:\n hours: 0\n minutes: 1\n seconds: 0\n alias: Occupancy detected for 1 minute\n - condition: numeric_state\n entity_id: climate.home\n below: '1'\n alias: Proximity sensor detects occupancy\n alias: Occupancy sensor(s) detect occupancy\n - condition: and\n conditions:\n - condition: state\n entity_id: climate.home\n state: 'off'\n alias: The heating is currently off\n - condition: numeric_state\n entity_id: sensor.average_household_temperature\n below: input_number.heating_automation_minimum_internal_temperature\n alias: Average household temperature is below the threshold\n - condition: or\n conditions:\n - condition: state\n entity_id: sensor.people_home\n state: 'True'\n for:\n hours: 0\n minutes: 1\n seconds: 0\n alias: Occupancy detected for 1 minute\n - condition: numeric_state\n entity_id: proximity.home\n below: '1'\n alias: Proximity sensor detects occupancy\n action:\n - service: evohome.reset_system\n data: {}\n - service: script.notification_handler\n data_template:\n is_critical: false\n is_debug: true\n is_system: false\n title: Home Assistant\n message: Heating turned on by climate control and/or proximity\n mode: single", "config": [ { "name": "outdoor temperature sensor", "room": "outside", "type": "sensor", "id": { "entity_id": "sensor.ibs_th_10f3_temperature", "device_id": null } }, { "name": "heating automation setpoint", "room": "home", "type": "input_number", "id": { "entity_id": "input_number.heating_automation_setpoint", "device_id": null } }, { "name": "heating automation start time", "room": "home", "type": "input_datetime", "id": { "entity_id": "input_datetime.heating_automation_start_time", "device_id": null } }, { "name": "heating automation end time", "room": "home", "type": "input_datetime", "id": { "entity_id": "input_datetime.heating_automation_end_time", "device_id": null } }, { "name": "home climate controller", "room": "home", "type": "climate", "id": { "entity_id": "climate.home", "device_id": null } }, { "name": "proximity sensor", "room": "home", "type": "sensor", "id": { "entity_id": "proximity.home", "device_id": null } }, { "name": "people home sensor", "room": "home", "type": "sensor", "id": { "entity_id": "sensor.people_home", "device_id": null } }, { "name": "average household temperature sensor", "room": "home", "type": "sensor", "id": { "entity_id": "sensor.average_household_temperature", "device_id": null } }, { "name": "heating automation minimum internal temperature", "room": "home", "type": "input_number", "id": { "entity_id": "input_number.heating_automation_minimum_internal_temperature", "device_id": null } }, { "name": "Notification Handler Script", "room": null, "type": "script", "id": { "entity_id": "script.notification_handler", "device_id": null } } ] }, { "id": "'1652456295222'", "automation": "- id: '1652456295222'\n alias: Automate Heating - Turn Off Heating Based On Proximity\n description: ''\n trigger:\n - platform: numeric_state\n entity_id: proximity.home\n above: '2'\n for:\n hours: 0\n minutes: 1\n seconds: 0\n alias: Proximity sensor detects no occupancy\n - platform: state\n entity_id:\n - sensor.people_home\n to: 'False'\n for:\n hours: 0\n minutes: 1\n seconds: 0\n alias: No occupancy detected for 1 minute\n condition:\n - condition: state\n entity_id: climate.home\n state: 'off'\n alias: No occupancy detected\n - condition: state\n entity_id: proximity.home\n attribute: dir_of_travel\n state: away_from\n for:\n hours: 0\n minutes: 1\n seconds: 0\n alias: Proximity sensor detects travel away from home for 1 minute\n action:\n - service: evohome.set_system_mode\n data:\n mode: HeatingOff\n alias: Set heating controller to 'Off'\n - service: script.notification_handler\n data_template:\n is_critical: false\n is_debug: true\n is_system: false\n message: Heating turned off by proximity\n title: Home Assistant\n mode: single", "config": [ { "name": "home climate controller", "room": "home", "type": "climate", "id": { "entity_id": "climate.home", "device_id": null } }, { "name": "proximity sensor", "room": "home", "type": "sensor", "id": { "entity_id": "proximity.home", "device_id": null } }, { "name": "people home sensor", "room": "home", "type": "sensor", "id": { "entity_id": "sensor.people_home", "device_id": null } }, { "name": "Notification Handler Script", "room": null, "type": "script", "id": { "entity_id": "script.notification_handler", "device_id": null } } ] }, { "id": "'1652457169939'", "automation": "- id: '1652457169939'\n alias: Automate Heating - Turn On Heating On When Travelling Back To House\n description: ''\n trigger:\n - platform: numeric_state\n entity_id: proximity.home\n for:\n hours: 0\n minutes: 1\n seconds: 0\n below: '15'\n alias: Proximity sensor detects travel within 15 miles of home\n condition:\n - condition: state\n entity_id: proximity.home\n attribute: dir_of_travel\n for:\n hours: 0\n minutes: 0\n seconds: 0\n state: towards\n alias: Proximity sensor detects direction of travel towards home\n - condition: or\n conditions:\n - condition: and\n conditions:\n - condition: time\n after: input_datetime.heating_automation_end_time\n before: input_datetime.heating_automation_start_time\n alias: The time is outside of the automation threshold\n - condition: state\n entity_id: climate.home\n state: 'off'\n alias: The heating is off\n - condition: and\n conditions:\n - condition: state\n entity_id: climate.home\n state: 'off'\n alias: The heating is off\n - condition: numeric_state\n entity_id: sensor.average_household_temperature\n below: input_number.heating_automation_minimum_internal_temperature\n alias: The internal temperature is less than the threshold\n action:\n - service: evohome.reset_system\n data: {}\n - service: script.notification_handler\n data_template:\n is_critical: false\n is_debug: true\n is_system: false\n message: Heating turned on by proximity\n title: Home Assistant\n mode: single", "config": [ { "name": "heating automation start time", "room": "home", "type": "input_datetime", "id": { "entity_id": "input_datetime.heating_automation_start_time", "device_id": null } }, { "name": "heating automation end time", "room": "home", "type": "input_datetime", "id": { "entity_id": "input_datetime.heating_automation_end_time", "device_id": null } }, { "name": "home climate controller", "room": "home", "type": "climate", "id": { "entity_id": "climate.home", "device_id": null } }, { "name": "proximity sensor", "room": "home", "type": "sensor", "id": { "entity_id": "proximity.home", "device_id": null } }, { "name": "average household temperature sensor", "room": "home", "type": "sensor", "id": { "entity_id": "sensor.average_household_temperature", "device_id": null } }, { "name": "heating automation minimum internal temperature", "room": "home", "type": "input_number", "id": { "entity_id": "input_number.heating_automation_minimum_internal_temperature", "device_id": null } }, { "name": "Notification Handler Script", "room": null, "type": "script", "id": { "entity_id": "script.notification_handler", "device_id": null } } ] }, { "id": "'1659712311617'", "automation": "- id: '1659712311617'\n alias: Check / Alert EV Range\n description: Check the range of the car, if the car is below the threshold and is\n not charging, send a mobile notification.\n trigger:\n - platform: time_pattern\n hours: /6\n condition:\n - condition: state\n entity_id: binary_sensor.do_not_disturb\n state: 'off'\n action:\n - service: script.car_ev_battery_low\n data: {}\n mode: single", "config": [ { "name": "do not disturb sensor", "room": "home", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.do_not_disturb", "device_id": null } }, { "name": "Car EV Battery Low Script", "room": null, "type": "script", "id": { "entity_id": "script.car_ev_battery_low", "device_id": null } } ] }, { "id": "'1659740704133'", "automation": "- id: '1659740704133'\n alias: Shutdown Synology NAS\n description: Shutdown the Synology NAS at 11pm if there are no active streams from\n Channels DVR or Plex.\n trigger:\n - platform: time\n at: input_datetime.synology_nas_shut_down_time\n condition:\n - condition: state\n entity_id: switch.synology_ds2419_ii\n state: 'on'\n action:\n - repeat:\n while:\n - condition: or\n conditions:\n - condition: state\n entity_id: media_player.channels_apple_tv_living_room\n state: playing\n - condition: state\n entity_id: media_player.channels_apple_tv_dining_room\n state: playing\n - condition: state\n entity_id: media_player.channels_apple_tv_kitchen\n state: playing\n - condition: numeric_state\n entity_id: sensor.plex_synology\n above: '0'\n - condition: state\n entity_id: sensor.sabnzbd_status\n state: Downloading\n sequence:\n - delay:\n hours: 0\n minutes: 5\n seconds: 0\n milliseconds: 0\n - service: switch.turn_off\n data: {}\n target:\n entity_id: switch.synology_ds2419_ii\n mode: single", "config": [ { "name": "synology nas shutdown time", "room": "home", "type": "input_datetime", "id": { "entity_id": "input_datetime.synology_nas_shut_down_time", "device_id": null } }, { "name": "synology nas switch", "room": "home", "type": "switch", "id": { "entity_id": "switch.synology_ds2419_ii", "device_id": null } }, { "name": "channels apple tv living room", "room": "living_room", "type": "media_player", "id": { "entity_id": "media_player.channels_apple_tv_living_room", "device_id": null } }, { "name": "channels apple tv dining room", "room": "dining_room", "type": "media_player", "id": { "entity_id": "media_player.channels_apple_tv_dining_room", "device_id": null } }, { "name": "channels apple tv kitchen", "room": "kitchen", "type": "media_player", "id": { "entity_id": "media_player.channels_apple_tv_kitchen", "device_id": null } }, { "name": "plex synology sensor", "room": "home", "type": "sensor", "id": { "entity_id": "sensor.plex_synology", "device_id": null } }, { "name": "sabnzbd status sensor", "room": "home", "type": "sensor", "id": { "entity_id": "sensor.sabnzbd_status", "device_id": null } } ] }, { "id": "'1659742903099'", "automation": "- id: '1659742903099'\n alias: Start Synology NAS\n description: ''\n trigger:\n - platform: time\n at: input_datetime.synology_nas_start_time\n condition: []\n action:\n - service: script.notification_handler\n data_template:\n is_critical: false\n is_debug: false\n is_system: true\n message: Starting NAS\n enabled: false\n - service: switch.turn_on\n data: {}\n target:\n entity_id: switch.synology_ds2419_ii\n - wait_for_trigger:\n - platform: state\n entity_id:\n - sensor.hpds_temperature_11\n from: unavailable\n continue_on_timeout: true\n timeout:\n minutes: 5\n - service: script.notification_handler\n data_template:\n is_critical: false\n is_debug: false\n is_system: true\n message: NAS Started - Restarting Plex\n enabled: false\n - service: script.restart_plex\n data: {}\n mode: single", "config": [ { "name": "synology nas start time", "room": "home", "type": "input_datetime", "id": { "entity_id": "input_datetime.synology_nas_start_time", "device_id": null } }, { "name": "synology nas switch", "room": "home", "type": "switch", "id": { "entity_id": "switch.synology_ds2419_ii", "device_id": null } }, { "name": "hpds temperature sensor", "room": "home", "type": "sensor", "id": { "entity_id": "sensor.hpds_temperature_11", "device_id": null } }, { "name": "Notification Handler Script", "room": null, "type": "script", "id": { "entity_id": "script.notification_handler", "device_id": null } }, { "name": "Restart Plex Script", "room": null, "type": "script", "id": { "entity_id": "script.restart_plex", "device_id": null } } ] }, { "id": "'1660381160136'", "automation": "- id: '1660381160136'\n alias: Reset Landing Light\n description: ''\n trigger:\n - platform: state\n entity_id:\n - light.landing_light\n from: unavailable\n for:\n hours: 0\n minutes: 1\n seconds: 0\n condition: []\n action:\n - service: light.turn_on\n data:\n brightness_pct: 100\n target:\n entity_id: light.landing_light\n mode: single", "config": [ { "name": "Landing Light", "room": "Landing", "type": "light", "id": { "entity_id": "light.landing_light", "device_id": null } } ] }, { "id": "'1660409561761'", "automation": "- id: '1660409561761'\n alias: Reset Bathroom Lights\n description: ''\n trigger:\n - platform: state\n entity_id:\n - light.ikea_tradfri_led2005r5_1\n - light.ikea_tradfri_led2005r5_2\n - light.ikea_tradfri_led2005r5_3\n - light.ikea_tradfri_led2005r5_4\n - light.ikea_tradfri_led2005r5_5\n from: unavailable\n for:\n hours: 0\n minutes: 1\n seconds: 0\n condition: []\n action:\n - service: light.turn_on\n data:\n brightness_pct: 100\n target:\n entity_id:\n - light.ikea_tradfri_led2005r5_1\n - light.ikea_tradfri_led2005r5_2\n - light.ikea_tradfri_led2005r5_3\n - light.ikea_tradfri_led2005r5_4\n - light.ikea_tradfri_led2005r5_5\n mode: single", "config": [ { "name": "bathroom light 1", "room": "bathroom", "type": "light", "id": { "entity_id": "light.ikea_tradfri_led2005r5_1", "device_id": null } }, { "name": "bathroom light 2", "room": "bathroom", "type": "light", "id": { "entity_id": "light.ikea_tradfri_led2005r5_2", "device_id": null } }, { "name": "bathroom light 3", "room": "bathroom", "type": "light", "id": { "entity_id": "light.ikea_tradfri_led2005r5_3", "device_id": null } }, { "name": "bathroom light 4", "room": "bathroom", "type": "light", "id": { "entity_id": "light.ikea_tradfri_led2005r5_4", "device_id": null } }, { "name": "bathroom light 5", "room": "bathroom", "type": "light", "id": { "entity_id": "light.ikea_tradfri_led2005r5_5", "device_id": null } } ] }, { "id": "'1660409604264'", "automation": "- id: '1660409604264'\n alias: Reset Kids Bedroom Light\n description: ''\n trigger:\n - platform: state\n entity_id:\n - light.kids_bedroom_light\n from: unavailable\n for:\n hours: 0\n minutes: 1\n seconds: 0\n condition: []\n action:\n - service: light.turn_on\n data:\n brightness_pct: 100\n target:\n entity_id: light.kids_bedroom_light\n mode: single", "config": [ { "name": "kids bedroom light", "room": "kids_bedroom", "type": "light", "id": { "entity_id": "light.kids_bedroom_light", "device_id": null } } ] }, { "id": "'1660409638841'", "automation": "- id: '1660409638841'\n alias: Reset Master Bedroom Bedroom Light\n description: ''\n trigger:\n - platform: state\n entity_id:\n - light.master_bedroom_light_light\n from: unavailable\n for:\n hours: 0\n minutes: 1\n seconds: 0\n condition: []\n action:\n - service: light.turn_on\n data:\n brightness_pct: 100\n target:\n entity_id: light.master_bedroom_light_light\n mode: single", "config": [ { "name": "master bedroom light", "room": "master_bedroom", "type": "light", "id": { "entity_id": "light.master_bedroom_light_light", "device_id": null } } ] }, { "id": "'1659781024207'", "automation": "- id: '1659781024207'\n alias: Handle Automations on Home Assistant Start\n description: ''\n trigger:\n - platform: homeassistant\n event: start\n condition: []\n action:\n - service: script.turn_off_bathroom_lights_if_on_for_extended_period\n data: {}\n mode: single", "config": [ { "name": "Turn Off Bathroom Lights If On For Extended Period Script", "room": null, "type": "script", "id": { "entity_id": "script.turn_off_bathroom_lights_if_on_for_extended_period", "device_id": null } } ] }, { "id": "'1659783652299'", "automation": "- id: '1659783652299'\n alias: Turn Off Lights Left On For Extended Period\n description: ''\n trigger:\n - platform: time_pattern\n hours: /1\n condition: []\n action:\n - parallel:\n - service: script.turn_off_bathroom_lights_if_on_for_extended_period\n data: {}\n - service: script.turn_off_kids_bedroom_light_if_on_for_extended_period\n data: {}\n mode: single", "config": [ { "name": "Turn Off Bathroom Lights If On For Extended Period Script", "room": null, "type": "script", "id": { "entity_id": "script.turn_off_bathroom_lights_if_on_for_extended_period", "device_id": null } }, { "name": "Turn Off Kids Bedroom Light If On For Extended Period Script", "room": null, "type": "script", "id": { "entity_id": "script.turn_off_kids_bedroom_light_if_on_for_extended_period", "device_id": null } } ] }, { "id": "'1662802346790'", "automation": "- id: '1662802346790'\n alias: Test Alexa Actionable Notifications\n description: ''\n trigger:\n - platform: event\n event_type: alexa_actionable_notification\n event_data:\n event_id: actionable_notification_turn_thing_off\n event_response_type: ResponseYes\n id: turn_thing_off\n - platform: event\n event_type: alexa_actionable_notification\n event_data:\n event_id: actionable_notification_turn_thing_on\n event_response_type: ResponseYes\n id: turn_thing_on\n condition: []\n action:\n - if:\n - condition: trigger\n id: turn_thing_off\n then:\n - type: turn_off\n device_id: eeddeb7c0df4fc8ba5e7e0f1d34b1eba\n entity_id: switch.diningroomdehumidifier\n domain: switch\n else:\n - if:\n - condition: trigger\n id: turn_thing_on\n then:\n - type: turn_on\n device_id: eeddeb7c0df4fc8ba5e7e0f1d34b1eba\n entity_id: switch.diningroomdehumidifier\n domain: switch\n mode: single", "config": [ { "name": "dehumidifier switch 2", "room": "dining_room", "type": "switch", "id": { "entity_id": "switch.diningroomdehumidifier", "device_id": "eeddeb7c0df4fc8ba5e7e0f1d34b1eba" } } ] }, { "id": "'1660170841995'", "automation": "- id: '1660170841995'\n alias: Kitchen Echo Dot Timer Handler\n description: ''\n trigger:\n - platform: state\n entity_id:\n - sensor.kitchen_echo_dot_next_timer\n from: unavailable\n id: kitchen_timer_started\n - platform: state\n entity_id:\n - sensor.kitchen_echo_dot_next_timer\n id: kitchen_timer_cancelled\n to: unavailable\n - platform: event\n event_type: timer.finished\n event_data:\n event_data:\n entity_id: timer.alexa_timer_kitchen\n id: internal_kitchen_timer_finished\n - platform: event\n event_type: timer.cancelled\n event_data:\n event_data:\n entity_id: timer.alexa_timer_kitchen\n id: internal_kitchen_timer_cancelled\n condition: []\n action:\n - if:\n - condition: trigger\n id: kitchen_timer_started\n then:\n - service: script.notification_handler\n data_template:\n is_critical: false\n is_debug: false\n is_system: false\n message: A {{ ((as_timestamp(states('sensor.kitchen_echo_dot_next_timer'))\n - as_timestamp(now()))/60)|round(0) }} minute timer has been started in\n the kitchen.\n - service: timer.start\n data:\n duration:\n minutes: '{{ ((as_timestamp(states(''sensor.kitchen_echo_dot_next_timer''))\n - as_timestamp(now()))/60)|round(0) }}'\n target:\n entity_id: timer.alexa_timer_kitchen\n else:\n - if:\n - condition: trigger\n id: kitchen_timer_cancelled\n then:\n - service: script.notification_handler\n data_template:\n is_critical: false\n is_debug: false\n is_system: false\n message: The kitchen timer has finished/been cancelled.\n - service: timer.cancel\n target:\n entity_id: timer.alexa_timer_kitchen\n data: {}\n - if:\n - condition: trigger\n id: internal_kitchen_timer_finished\n then:\n - service: script.notification_handler\n data_template:\n is_critical: false\n is_debug: false\n is_system: false\n message: Timer Finished\n - if:\n - condition: trigger\n id: internal_kitchen_timer_cancelled\n then:\n - service: script.notification_handler\n data_template:\n is_critical: false\n is_debug: false\n is_system: false\n message: Timer Cancelled\n mode: single", "config": [ { "name": "kitchen echo dot next timer sensor", "room": "kitchen", "type": "sensor", "id": { "entity_id": "sensor.kitchen_echo_dot_next_timer", "device_id": null } }, { "name": "alexa timer kitchen", "room": "kitchen", "type": "timer", "id": { "entity_id": "timer.alexa_timer_kitchen", "device_id": null } }, { "name": "Notification Handler Script", "room": null, "type": "script", "id": { "entity_id": "script.notification_handler", "device_id": null } } ] }, { "id": "'1649586908882'", "automation": "- id: '1649586908882'\n alias: Notify Tumble Dryer Finished\n description: ''\n trigger:\n - platform: state\n entity_id:\n - input_select.dryer_state_machine\n to: job_completed\n from: job_ongoing\n condition: []\n action:\n - service: script.notification_handler\n data_template:\n is_critical: false\n is_debug: false\n is_system: false\n message: The tumble dryer has finished.\n mode: single", "config": [ { "name": "dryer state machine", "room": "kitchen", "type": "input_select", "id": { "entity_id": "input_select.dryer_state_machine", "device_id": null } }, { "name": "Notification Handler Script", "room": null, "type": "script", "id": { "entity_id": "script.notification_handler", "device_id": null } } ] }, { "id": "'1649710773908'", "automation": "- id: '1649710773908'\n alias: Notify Washing Machine Finished\n description: ''\n trigger:\n - platform: state\n entity_id:\n - input_select.washing_machine_state_machine\n to: job_completed\n for:\n hours: 0\n minutes: 0\n seconds: 0\n from: job_ongoing\n condition: []\n action:\n - service: script.notification_handler\n data_template:\n is_critical: false\n is_debug: false\n is_system: false\n message: Washing machine has finished!\n mode: single", "config": [ { "name": "washing machine selector", "room": "kitchen", "type": "select", "id": { "entity_id": "select.washing_machine", "device_id": null } }, { "name": "washing machine state machine", "room": "kitchen", "type": "input_select", "id": { "entity_id": "input_select.washing_machine_state_machine", "device_id": null } }, { "name": "Notification Handler Script", "room": null, "type": "script", "id": { "entity_id": "script.notification_handler", "device_id": null } } ] }, { "id": "'1649711525841'", "automation": "- id: '1649711525841'\n alias: Notify Dishwasher Finished\n description: ''\n trigger:\n - platform: state\n entity_id:\n - input_select.dishwasher_state_machine\n for:\n hours: 0\n minutes: 0\n seconds: 0\n to: job_completed\n from: job_ongoing\n condition: []\n action:\n - service: script.notification_handler\n data_template:\n is_critical: false\n is_debug: false\n is_system: false\n message: Dishwasher has finished!\n mode: single", "config": [ { "name": "dishwasher selector", "room": "kitchen", "type": "select", "id": { "entity_id": "select.dishwasher", "device_id": null } }, { "name": "dishwasher state machine", "room": "kitchen", "type": "input_select", "id": { "entity_id": "input_select.dishwasher_state_machine", "device_id": null } }, { "name": "Notification Handler Script", "room": null, "type": "script", "id": { "entity_id": "script.notification_handler", "device_id": null } } ] }, { "id": "'1659661507139'", "automation": "- id: '1659661507139'\n alias: Default turn-on brightness and color temperature for light(s)\n description: ''\n use_blueprint:\n path: Noblewolf/default-turn-on-brightness-color-temperature-for-lights.yaml\n input:\n target_lights: light.ikea_tradfri_led2035g10\n light_color_temperature: 154", "config": [ { "name": "light with default settings", "room": "home", "type": "light", "id": { "entity_id": "light.ikea_tradfri_led2035g10", "device_id": null } } ] }, { "id": "'1643466109155'", "automation": "- id: '1643466109155'\n alias: Offline detection for Z2M devices with last_seen\n description: ''\n use_blueprint:\n path: Mr-Groch/offline-notification-for-sensors-with-last_seen.yaml\n input:\n actions:\n - service: script.notification_handler\n data_template:\n is_critical: false\n is_debug: false\n is_system: true\n message: Zigbee device {{sensors}} offline\n hours: 24", "config": [ { "name": "Notification Handler Script", "room": null, "type": "script", "id": { "entity_id": "script.notification_handler", "device_id": null } } ] }, { "id": "'1662883842115'", "automation": "- id: '1662883842115'\n alias: Washing Machine\n description: Monitor the state of the washing machine smart plug to determine the\n running state.\n use_blueprint:\n path: leofabri/appliance-status-monitor.yaml\n input:\n appliance_socket: switch.washingmachine\n appliance_power_sensor: sensor.washingmachine_energy_power\n appliance_state_machine: input_select.washing_machine_state_machine\n appliance_job_cycle: input_boolean.washing_machine_job_cycle\n delayed_job_completion_timer: timer.washing_machine_delayed_job_completion_timer\n automation_self_trigger: input_boolean.washing_machine_automation_self_trigger\n delayed_job_completion_duration: 60\n appliance_starting_power_threshold: 10\n appliance_finishing_power_threshold: 5", "config": [ { "name": "washing machine selector", "room": "kitchen", "type": "select", "id": { "entity_id": "select.washing_machine", "device_id": null } }, { "name": "washing machine state machine", "room": "kitchen", "type": "input_select", "id": { "entity_id": "input_select.washing_machine_state_machine", "device_id": null } }, { "name": "washing machine switch", "room": "kitchen", "type": "switch", "id": { "entity_id": "switch.washingmachine", "device_id": null } }, { "name": "washing machine power sensor", "room": "kitchen", "type": "sensor", "id": { "entity_id": "sensor.washingmachine_energy_power", "device_id": null } }, { "name": "washing machine job cycle", "room": "kitchen", "type": "input_boolean", "id": { "entity_id": "input_boolean.washing_machine_job_cycle", "device_id": null } }, { "name": "washing machine delayed job completion timer", "room": "kitchen", "type": "timer", "id": { "entity_id": "timer.washing_machine_delayed_job_completion_timer", "device_id": null } }, { "name": "washing machine automation self trigger", "room": "kitchen", "type": "input_boolean", "id": { "entity_id": "input_boolean.washing_machine_automation_self_trigger", "device_id": null } } ] }, { "id": "'1662884201766'", "automation": "- id: '1662884201766'\n alias: Dishwasher\n description: Monitor the state of the washing machine smart plug to determine the\n running state.\n use_blueprint:\n path: leofabri/appliance-status-monitor.yaml\n input:\n appliance_socket: switch.dishwasher\n appliance_power_sensor: sensor.dishwasher_energy_power\n appliance_starting_power_threshold: 20\n appliance_finishing_power_threshold: 15\n appliance_suspended_sensor: []\n appliance_state_machine: input_select.dishwasher_state_machine\n appliance_job_cycle: input_boolean.dishwasher_job_cycle\n delayed_job_completion_timer: timer.dishwasher_delayed_job_completion_timer\n automation_self_trigger: input_boolean.dishwasher_automation_self_trigger\n delayed_job_completion_duration: 60", "config": [ { "name": "dishwasher selector", "room": "kitchen", "type": "select", "id": { "entity_id": "select.dishwasher", "device_id": null } }, { "name": "dishwasher state machine", "room": "kitchen", "type": "input_select", "id": { "entity_id": "input_select.dishwasher_state_machine", "device_id": null } }, { "name": "dishwasher switch", "room": "kitchen", "type": "switch", "id": { "entity_id": "switch.dishwasher", "device_id": null } }, { "name": "dishwasher power sensor", "room": "kitchen", "type": "sensor", "id": { "entity_id": "sensor.dishwasher_energy_power", "device_id": null } }, { "name": "dishwasher job cycle", "room": "kitchen", "type": "input_boolean", "id": { "entity_id": "input_boolean.dishwasher_job_cycle", "device_id": null } }, { "name": "dishwasher delayed job completion timer", "room": "kitchen", "type": "timer", "id": { "entity_id": "timer.dishwasher_delayed_job_completion_timer", "device_id": null } }, { "name": "dishwasher automation self trigger", "room": "kitchen", "type": "input_boolean", "id": { "entity_id": "input_boolean.dishwasher_automation_self_trigger", "device_id": null } } ] }, { "id": "'1662884366995'", "automation": "- id: '1662884366995'\n alias: Tumble Dryer\n description: Monitor the state of the tumble dryer smart plug to determine the running\n state.\n use_blueprint:\n path: leofabri/appliance-status-monitor.yaml\n input:\n appliance_socket: switch.tasmota_6\n appliance_power_sensor: sensor.tasmota_energy_power\n appliance_starting_power_threshold: 8\n appliance_finishing_power_threshold: 6\n appliance_suspended_sensor: []\n appliance_state_machine: input_select.dryer_state_machine\n appliance_job_cycle: input_boolean.dryer_automation_self_trigger\n delayed_job_completion_timer: timer.dryer_delayed_job_completion_timer\n automation_self_trigger: input_boolean.dryer_automation_self_trigger\n delayed_job_completion_duration: 1", "config": [ { "name": "dryer state machine", "room": "kitchen", "type": "input_select", "id": { "entity_id": "input_select.dryer_state_machine", "device_id": null } }, { "name": "tumble dryer switch", "room": "kitchen", "type": "switch", "id": { "entity_id": "switch.tasmota_6", "device_id": null } }, { "name": "tumble dryer power sensor", "room": "kitchen", "type": "sensor", "id": { "entity_id": "sensor.tasmota_energy_power", "device_id": null } }, { "name": "dryer automation self trigger", "room": "kitchen", "type": "input_boolean", "id": { "entity_id": "input_boolean.dryer_automation_self_trigger", "device_id": null } }, { "name": "dryer delayed job completion timer", "room": "kitchen", "type": "timer", "id": { "entity_id": "timer.dryer_delayed_job_completion_timer", "device_id": null } } ] }, { "id": "'1663151512612'", "automation": "- id: '1663151512612'\n alias: Warn UPS Battery Fail\n description: Warn that the UPS battery is failing.\n trigger:\n - platform: state\n entity_id:\n - sensor.ups_status_data\n to: ALARM OL RB\n - platform: state\n entity_id:\n - sensor.ups_status_data\n to: ALARM OL CHRG RB\n condition: []\n action:\n - service: script.notification_handler\n data_template:\n is_critical: true\n is_debug: false\n is_system: true\n message: The UPS battery is failing. Please order a new battery!\n - service: notify.persistent_notification\n data:\n message: The UPS battery is failing. Please order a new battery!\n mode: single", "config": [ { "name": "ups status data sensor", "room": "home", "type": "sensor", "id": { "entity_id": "sensor.ups_status_data", "device_id": null } }, { "name": "Notification Handler Script", "room": null, "type": "script", "id": { "entity_id": "script.notification_handler", "device_id": null } } ] }, { "id": "'1663790375453'", "automation": "- id: '1663790375453'\n description: ''\n trigger:\n - platform: state\n entity_id:\n - input_boolean.override_heating\n id: heating.toggle.on\n from: 'off'\n to: 'on'\n - platform: state\n entity_id:\n - input_boolean.override_heating\n id: heating.toggle.off\n from: 'on'\n to: 'off'\n - platform: event\n event_type: timer.started\n event_data:\n entity_id: timer.heating_override\n id: heating.timer.started\n enabled: false\n - platform: event\n event_type: timer.finished\n event_data:\n entity_id: timer.heating_override\n id: heating.timer.finished\n - platform: event\n event_type: timer.cancelled\n event_data:\n entity_id: timer.heating_override\n id: heating.timer.cancelled\n condition: []\n action:\n - if:\n - condition: state\n entity_id: input_boolean.override_heating\n state: 'on'\n - condition: not\n conditions:\n - condition: trigger\n id: heating.timer.finished\n - condition: trigger\n id: heating.timer.cancelled\n - condition: trigger\n id: heating.toggle.off\n then:\n - service: timer.start\n data_template:\n duration:\n hours: 2\n target:\n entity_id: timer.heating_override\n - service: script.notification_handler\n data_template:\n is_critical: false\n is_debug: false\n is_system: false\n message: Heating override enabled for 2 hours.\n - service: evohome.set_system_mode\n data:\n mode: Auto\n else:\n - service: timer.finish\n data: {}\n target:\n entity_id: timer.heating_override\n - if:\n - condition: or\n conditions:\n - condition: trigger\n id: heating.timer.finished\n - condition: trigger\n id: heating.timer.cancelled\n - condition: trigger\n id: heating.toggle.off\n then:\n - service: input_boolean.turn_off\n data: {}\n target:\n entity_id: input_boolean.override_heating\n - service: script.notification_handler\n data_template:\n is_critical: false\n is_debug: false\n is_system: false\n message: Heating override ended.\n mode: restart", "config": [ { "name": "heating override toggle", "room": "home", "type": "input_boolean", "id": { "entity_id": "input_boolean.override_heating", "device_id": null } }, { "name": "heating override timer", "room": "home", "type": "timer", "id": { "entity_id": "timer.heating_override", "device_id": null } }, { "name": "Notification Handler Script", "room": null, "type": "script", "id": { "entity_id": "script.notification_handler", "device_id": null } } ] }, { "id": "'1664061109754'", "automation": "- id: '1664061109754'\n alias: washer has finished\n description: ''\n use_blueprint:\n path: sbyx/notify-or-do-something-when-an-appliance-like-a-dishwasher-or-washing-machine-finishes.yaml\n input:\n power_sensor: sensor.washingmachine_energy_power\n actions:\n - service: notify.mobile_app_myphone\n data:\n message: Washer Done\n pre_actions:\n - service: notify.mobile_app_myphone\n data:\n message: Washer started\n finishing_hysteresis: 1\n finishing_threshold: 4", "config": [ { "name": "washing machine power sensor", "room": "kitchen", "type": "sensor", "id": { "entity_id": "sensor.washingmachine_energy_power", "device_id": null } } ] }, { "id": "'1666456945222'", "automation": "- id: '1666456945222'\n alias: Solar Trigger Output Source Change\n description: ''\n trigger:\n - platform: state\n entity_id:\n - input_select.solar_output_source_priority\n condition: []\n action:\n - service: mqtt.publish\n data:\n topic: homeassistant/sensor/inverter\n payload: \"{% if is_state(\\\"input_select.solar_output_source_priority\\\", \\\"POP00\\\n \\ (Utility first)\\\") %}\\n POP00\\n{% elif is_state(\\\"input_select.solar_output_source_priority\\\"\\\n , \\\"POP01 (Solar first)\\\") %}\\n POP01\\n{% elif is_state(\\\"input_select.solar_output_source_priority\\\"\\\n , \\\"POP02 (SBU)\\\") %}\\n POP02\\n{% endif %}\\n\"\n mode: single", "config": [ { "name": "Solar Output Source Priority Select", "room": null, "type": "input_select", "id": { "entity_id": "input_select.solar_output_source_priority", "device_id": null } } ] }, { "id": "'1666457147127'", "automation": "- id: '1666457147127'\n alias: Solar Trigger Charge Priority Change\n description: ''\n trigger:\n - platform: state\n entity_id:\n - input_select.solar_charger_priority\n condition: []\n action:\n - service: mqtt.publish\n data:\n topic: homeassistant/sensor/inverter\n payload: \"{% if is_state(\\\"input_select.solar_charger_priority\\\", \\\"PCP00 (Utility\\\n \\ first)\\\") %}\\n PCP00\\n{% elif is_state(\\\"input_select.solar_charger_priority\\\"\\\n , \\\"PCP01 (Solar first)\\\") %}\\n PCP01\\n{% elif is_state(\\\"input_select.solar_charger_priority\\\"\\\n , \\\"PCP02 (Solar and utility)\\\") %}\\n PCP02\\n{% elif is_state(\\\"input_select.solar_charger_priority\\\"\\\n , \\\"PCP03 (Solar only)\\\") %}\\n PCP03\\n{% endif %}\\n\"\n mode: single", "config": [ { "name": "Solar Charger Priority Select", "room": null, "type": "input_select", "id": { "entity_id": "input_select.solar_charger_priority", "device_id": null } } ] }, { "id": "'1670104706285'", "automation": "- id: '1670104706285'\n alias: Christmas Lights\n description: ''\n trigger:\n - platform: sun\n event: sunrise\n offset: 0\n id: sunrise\n - platform: sun\n event: sunset\n offset: 0\n id: sunset\n - platform: time\n at: '23:00:00'\n id: christmaslightsoff\n condition: []\n action:\n - if:\n - condition: trigger\n id: sunrise\n then:\n - type: turn_on\n device_id: 54167e25f784cea84dbf3699a277e260\n entity_id: light.candelabra\n domain: light\n - type: turn_on\n device_id: 9d296a1490273b3d1f63b1f8055dda92\n entity_id: light.twinkly_69dced\n domain: light\n alias: Turn on indoor Christmas lights at sunrise\n - if:\n - condition: trigger\n id: sunset\n then:\n - type: turn_on\n device_id: 925d9b89952a34621a5660622e2d3ab1\n entity_id: light.outside_christmas_lights\n domain: light\n alias: Turn on outdoor Christmas lights at sunset\n - if:\n - condition: trigger\n id: christmaslightsoff\n then:\n - service: light.turn_off\n data: {}\n target:\n entity_id: light.all_christmas_lights\n alias: Turn off all Christmas lights at 11pm\n mode: single", "config": [ { "name": "candelabra light", "room": "home", "type": "light", "id": { "entity_id": "light.candelabra", "device_id": "54167e25f784cea84dbf3699a277e260" } }, { "name": "twinkly light", "room": "home", "type": "light", "id": { "entity_id": "light.twinkly_69dced", "device_id": "9d296a1490273b3d1f63b1f8055dda92" } }, { "name": "outside christmas lights", "room": "outside", "type": "light", "id": { "entity_id": "light.outside_christmas_lights", "device_id": "925d9b89952a34621a5660622e2d3ab1" } }, { "name": "all christmas lights", "room": "home", "type": "light", "id": { "entity_id": "light.all_christmas_lights", "device_id": null } } ] }, { "id": "'1672574835692'", "automation": "- id: '1672574835692'\n alias: Heat Car\n description: ''\n trigger:\n - platform: state\n entity_id:\n - input_boolean.heater\n to: 'on'\n condition: []\n action:\n - service: notify.mobile_app_myphone\n data:\n message: Car climate enabled for 10 minutes\n - service: kia_uvo.start_climate\n data:\n device_id: 814ef11cf14e3dcfcd1341bb5bf7cb98\n duration: 10\n temperature: 22\n heating: '1'\n flseat: '8'\n frseat: '8'\n - delay:\n hours: 0\n minutes: 15\n seconds: 0\n milliseconds: 0\n - service: input_boolean.turn_off\n data: {}\n target:\n entity_id: input_boolean.heater\n mode: single", "config": [ { "name": "kia eniro tire pressure sensor", "room": "vehicle", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.bv70vdl_tire_pressure_all", "device_id": "814ef11cf14e3dcfcd1341bb5bf7cb98" } }, { "name": "kia eniro ev battery plug sensor", "room": "vehicle", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.bv70vdl_ev_battery_plug", "device_id": "814ef11cf14e3dcfcd1341bb5bf7cb98" } }, { "name": "kia eniro ev battery charge sensor", "room": "vehicle", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.bv70vdl_ev_battery_charge", "device_id": "814ef11cf14e3dcfcd1341bb5bf7cb98" } }, { "name": "car heater toggle", "room": "vehicle", "type": "input_boolean", "id": { "entity_id": "input_boolean.heater", "device_id": null } } ] }, { "id": "'1672680576968'", "automation": "- id: '1672680576968'\n alias: IKEA Tradfri E1743 On Off Switch Handler\n description: Handler for IKEA Tradfri E1743 On Off Switch\n trigger:\n - device_id: f8fb2ca1130dadb5200218a5ff048811\n domain: zha\n platform: device\n type: remote_button_short_press\n subtype: turn_on\n id: bathroom_on\n - device_id: f8fb2ca1130dadb5200218a5ff048811\n domain: zha\n platform: device\n type: remote_button_short_press\n subtype: turn_off\n id: bathroom_off\n condition: []\n action:\n - if:\n - condition: or\n conditions:\n - condition: trigger\n id: bathroom_on\n - condition: template\n value_template: '{{ ikea_switch_on==true }}'\n then:\n - service: input_boolean.turn_on\n data: {}\n target:\n entity_id: input_boolean.bathroom_temporary_override\n - service: timer.start\n data: {}\n target:\n entity_id: timer.bathroom_override\n - if:\n - condition: and\n conditions:\n - condition: state\n state: 'off'\n entity_id: light.all_master_bathroom_lights\n - condition: time\n after: input_datetime.bathroom_night_start\n before: input_datetime.bathroom_night_end\n then:\n - service: scene.turn_on\n target:\n entity_id: scene.bathroom_night_toilet_and_sink_lights_only_warm_white_50_brightness\n metadata: {}\n else:\n - service: scene.turn_on\n target:\n entity_id: scene.reset_bathroom_lights_lights_on\n metadata: {}\n - choose:\n - conditions:\n - condition: and\n conditions:\n - condition: state\n entity_id: light.all_master_bathroom_lights\n state: 'off'\n - condition: time\n after: input_datetime.bathroom_night_start\n before: input_datetime.bathroom_night_end\n sequence:\n - service: scene.turn_on\n target:\n entity_id: scene.bathroom_night_toilet_and_sink_lights_only_warm_white_50_brightness\n metadata: {}\n - conditions:\n - condition: state\n entity_id: light.all_master_bathroom_lights\n state: 'on'\n sequence: []\n enabled: false\n - if:\n - condition: or\n conditions:\n - condition: trigger\n id: bathroom_off\n - condition: template\n value_template: '{{ ikea_switch_off==true }}'\n then:\n - service: input_boolean.turn_off\n data: {}\n target:\n entity_id: input_boolean.bathroom_temporary_override\n - service: scene.turn_on\n target:\n entity_id: scene.reset_bathroom_lights_lights_off\n metadata: {}", "config": [ { "name": "bathroom night start time", "room": "bathroom", "type": "input_datetime", "id": { "entity_id": "input_datetime.bathroom_night_start", "device_id": null } }, { "name": "bathroom night end time", "room": "bathroom", "type": "input_datetime", "id": { "entity_id": "input_datetime.bathroom_night_end", "device_id": null } }, { "name": "bathroom temporary override", "room": "bathroom", "type": "input_boolean", "id": { "entity_id": "input_boolean.bathroom_temporary_override", "device_id": null } }, { "name": "bathroom override timer", "room": "bathroom", "type": "timer", "id": { "entity_id": "timer.bathroom_override", "device_id": null } }, { "name": "ikea tradfri on off switch", "room": "bathroom", "type": "remote", "id": { "entity_id": null, "device_id": "f8fb2ca1130dadb5200218a5ff048811" } }, { "name": "all master bathroom lights", "room": "bathroom", "type": "light", "id": { "entity_id": "light.all_master_bathroom_lights", "device_id": null } }, { "name": "bathroom night toilet and sink lights scene", "room": "bathroom", "type": "scene", "id": { "entity_id": "scene.bathroom_night_toilet_and_sink_lights_only_warm_white_50_brightness", "device_id": null } }, { "name": "reset bathroom lights lights off scene", "room": "bathroom", "type": "scene", "id": { "entity_id": "scene.reset_bathroom_lights_lights_off", "device_id": null } }, { "name": "reset bathroom lights lights on scene", "room": "bathroom", "type": "scene", "id": { "entity_id": "scene.reset_bathroom_lights_lights_on", "device_id": null } } ] }, { "id": "'1672681347783'", "automation": "- id: '1672681347783'\n alias: Kids bedroom 4-way Switch Handler\n description: Handler for Kids bedroom 4-way Switch\n trigger:\n - device_id: 33d593b9a5375f714ad2ad6a93dbb1f8\n domain: zha\n platform: device\n type: remote_button_short_press\n subtype: button_1\n id: Kids bedroom 4-way Switch \"1_single\" action\n - device_id: 33d593b9a5375f714ad2ad6a93dbb1f8\n domain: zha\n platform: device\n type: remote_button_double_press\n subtype: button_1\n id: Kids bedroom 4-way Switch \"1_double\" action\n - device_id: 33d593b9a5375f714ad2ad6a93dbb1f8\n domain: zha\n platform: device\n type: remote_button_long_press\n subtype: button_1\n id: Kids bedroom 4-way Switch \"1_hold\" action\n - device_id: 33d593b9a5375f714ad2ad6a93dbb1f8\n domain: zha\n platform: device\n type: remote_button_short_press\n subtype: button_2\n id: Kids bedroom 4-way Switch \"2_single\" action\n - device_id: 33d593b9a5375f714ad2ad6a93dbb1f8\n domain: zha\n platform: device\n type: remote_button_double_press\n subtype: button_2\n id: Kids bedroom 4-way Switch \"2_double\" action\n - device_id: 33d593b9a5375f714ad2ad6a93dbb1f8\n domain: zha\n platform: device\n type: remote_button_long_press\n subtype: button_2\n id: Kids bedroom 4-way Switch \"2_hold\" action\n - device_id: 33d593b9a5375f714ad2ad6a93dbb1f8\n domain: zha\n platform: device\n type: remote_button_short_press\n subtype: button_3\n id: Kids bedroom 4-way Switch \"3_single\" action\n - device_id: 33d593b9a5375f714ad2ad6a93dbb1f8\n domain: zha\n platform: device\n type: remote_button_double_press\n subtype: button_3\n id: Kids bedroom 4-way Switch \"3_double\" action\n - device_id: 33d593b9a5375f714ad2ad6a93dbb1f8\n domain: zha\n platform: device\n type: remote_button_long_press\n subtype: button_3\n id: Kids bedroom 4-way Switch \"3_hold\" action\n - device_id: 33d593b9a5375f714ad2ad6a93dbb1f8\n domain: zha\n platform: device\n type: remote_button_short_press\n subtype: button_4\n id: Kids bedroom 4-way Switch \"4_single\" action\n - device_id: 33d593b9a5375f714ad2ad6a93dbb1f8\n domain: zha\n platform: device\n type: remote_button_double_press\n subtype: button_4\n id: Kids bedroom 4-way Switch \"4_double\" action\n - platform: device\n device_id: 33d593b9a5375f714ad2ad6a93dbb1f8\n domain: button\n entity_id: button.kids_bedroom_4_way_switch_identify\n type: pressed\n id: Kids bedroom 4-way Switch \"4_hold\" action\n condition: []\n action:\n - if:\n - condition: trigger\n id: Kids bedroom 4-way Switch \"1_single\" action\n then:\n - service: light.toggle\n data:\n brightness_pct: 100\n transition: 1\n target:\n entity_id: light.kids_bedroom_light_light\n - if:\n - condition: trigger\n id: Kids bedroom 4-way Switch \"1_double\" action\n then:\n - service: light.toggle\n data:\n brightness_pct: 50\n transition: 1\n target:\n entity_id: light.kids_bedroom_light_light\n - if:\n - condition: trigger\n id: Kids bedroom 4-way Switch \"1_hold\" action\n then:\n - service: light.turn_off\n data:\n transition: 1\n target:\n entity_id: light.kids_bedroom_light_light\n - if:\n - condition: trigger\n id: Kids bedroom 4-way Switch \"2_single\" action\n then:\n - service: light.toggle\n data:\n color_name: white\n brightness_pct: 100\n transition: 1\n target:\n entity_id: light.signify_netherlands_b_v_llc013_huelight\n - if:\n - condition: trigger\n id: Kids bedroom 4-way Switch \"2_double\" action\n then:\n - service: light.toggle\n data:\n brightness_pct: 50\n color_name: white\n transition: 1\n target:\n entity_id: light.signify_netherlands_b_v_llc013_huelight\n - if:\n - condition: trigger\n id: Kids bedroom 4-way Switch \"2_hold\" action\n then:\n - service: light.turn_off\n data:\n transition: 1\n target:\n entity_id: light.signify_netherlands_b_v_llc013_huelight\n - if:\n - condition: trigger\n id: Kids bedroom 4-way Switch \"3_single\" action\n then:\n - service: light.turn_off\n data:\n transition: 1\n target:\n entity_id: light.kids_bedroom_light_light\n - service: light.turn_on\n data:\n brightness_pct: 20\n color_name: violet\n transition: 1\n target:\n entity_id: light.signify_netherlands_b_v_llc013_huelight\n - if:\n - condition: trigger\n id: Kids bedroom 4-way Switch \"3_double\" action\n then:\n - service: light.toggle\n target:\n entity_id: light.kids_led_lights\n data:\n brightness_pct: 50\n enabled: false\n - if:\n - condition: trigger\n id: Kids bedroom 4-way Switch \"3_hold\" action\n then:\n - service: light.turn_off\n target:\n entity_id: light.kids_led_lights\n data: {}\n enabled: false\n - if:\n - condition: trigger\n id: Kids bedroom 4-way Switch \"4_single\" action\n then:\n - service: light.turn_off\n data:\n transition: 1\n target:\n entity_id: light.all_kids_bedroom_lights\n - if:\n - condition: trigger\n id: Kids bedroom 4-way Switch \"4_double\" action\n then:\n - service: light.turn_off\n data:\n transition: 1\n target:\n entity_id: light.all_kids_bedroom_lights\n - if:\n - condition: trigger\n id: Kids bedroom 4-way Switch \"4_hold\" action\n then:\n - service: light.turn_off\n data:\n transition: 1\n target:\n entity_id: light.all_kids_bedroom_lights", "config": [ { "name": "kids hue light", "room": "kids_bedroom", "type": "light", "id": { "entity_id": "light.signify_netherlands_b_v_llc013_huelight", "device_id": null } }, { "name": "all kids bedroom lights", "room": "kids_bedroom", "type": "light", "id": { "entity_id": "light.all_kids_bedroom_lights", "device_id": null } }, { "name": "kids bedroom light", "room": "kids_bedroom", "type": "light", "id": { "entity_id": "light.kids_bedroom_light", "device_id": null } }, { "name": "kids led lights", "room": "kids_bedroom", "type": "light", "id": { "entity_id": "light.kids_led_lights", "device_id": null } }, { "name": "kids bedroom 4-way switch", "room": "kids_bedroom", "type": "button", "id": { "entity_id": "button.kids_bedroom_4_way_switch_identify", "device_id": "33d593b9a5375f714ad2ad6a93dbb1f8" } }, { "name": "Kids Bedroom Light Light", "room": "Kids Bedroom", "type": "light", "id": { "entity_id": "light.kids_bedroom_light_light", "device_id": null } } ] }, { "id": "'1672682220334'", "automation": "- id: '1672682220334'\n alias: Master bedroom 4-way Switch Handler\n description: Handler for Master bedroom 4-way Switch\n trigger:\n - device_id: caba5eff8e8af6e4295cfba68159c656\n domain: zha\n platform: device\n type: remote_button_short_press\n subtype: button_1\n id: Master bedroom 4-way Switch \"1_single\" action\n - device_id: caba5eff8e8af6e4295cfba68159c656\n domain: zha\n platform: device\n type: remote_button_double_press\n subtype: button_1\n id: Master bedroom 4-way Switch \"1_double\" action\n enabled: true\n - device_id: caba5eff8e8af6e4295cfba68159c656\n domain: zha\n platform: device\n type: remote_button_long_press\n subtype: button_1\n id: Master bedroom 4-way Switch \"1_hold\" action\n enabled: true\n - device_id: caba5eff8e8af6e4295cfba68159c656\n domain: zha\n platform: device\n type: remote_button_short_press\n subtype: button_2\n id: Master bedroom 4-way Switch \"2_single\" action\n - device_id: caba5eff8e8af6e4295cfba68159c656\n domain: zha\n platform: device\n type: remote_button_double_press\n subtype: button_2\n id: Master bedroom 4-way Switch \"2_double\" action\n - device_id: caba5eff8e8af6e4295cfba68159c656\n domain: zha\n platform: device\n type: remote_button_long_press\n subtype: button_2\n id: Master bedroom 4-way Switch \"2_hold\" action\n enabled: true\n - device_id: caba5eff8e8af6e4295cfba68159c656\n domain: zha\n platform: device\n type: remote_button_short_press\n subtype: button_3\n id: Master bedroom 4-way Switch \"3_single\" action\n - device_id: caba5eff8e8af6e4295cfba68159c656\n domain: zha\n platform: device\n type: remote_button_double_press\n subtype: button_3\n id: Master bedroom 4-way Switch \"3_double\" action\n enabled: true\n - device_id: caba5eff8e8af6e4295cfba68159c656\n domain: zha\n platform: device\n type: remote_button_long_press\n subtype: button_3\n id: Master bedroom 4-way Switch \"3_hold\" action\n enabled: true\n - device_id: caba5eff8e8af6e4295cfba68159c656\n domain: zha\n platform: device\n type: remote_button_short_press\n subtype: button_4\n id: Master bedroom 4-way Switch \"4_single\" action\n - device_id: caba5eff8e8af6e4295cfba68159c656\n domain: zha\n platform: device\n type: remote_button_double_press\n subtype: button_4\n id: Master bedroom 4-way Switch \"4_double\" action\n enabled: true\n - device_id: caba5eff8e8af6e4295cfba68159c656\n domain: zha\n platform: device\n type: remote_button_long_press\n subtype: button_4\n id: Master bedroom 4-way Switch \"4_hold\" action\n enabled: true\n condition: []\n action:\n - if:\n - condition: trigger\n id: Master bedroom 4-way Switch \"1_single\" action\n then:\n - service: light.toggle\n data:\n brightness_pct: 100\n transition: 1\n target:\n entity_id: light.master_bedroom_light_light\n - if:\n - condition: trigger\n id: Master bedroom 4-way Switch \"1_double\" action\n then:\n - service: light.toggle\n data:\n brightness_pct: 50\n transition: 1\n target:\n entity_id: light.master_bedroom_light_light\n - if:\n - condition: trigger\n id: Master bedroom 4-way Switch \"1_hold\" action\n then:\n - service: light.turn_off\n data:\n transition: 1\n target:\n entity_id: light.master_bedroom_light_light\n - if:\n - condition: trigger\n id: Master bedroom 4-way Switch \"2_single\" action\n then:\n - service: light.toggle\n data:\n transition: 1\n brightness_pct: 100\n target:\n entity_id: light.bed_light_huelight\n - if:\n - condition: trigger\n id: Master bedroom 4-way Switch \"2_double\" action\n then:\n - service: light.toggle\n data:\n transition: 0\n brightness_pct: 50\n target:\n entity_id: light.bed_light_huelight\n - if:\n - condition: trigger\n id: Master bedroom 4-way Switch \"2_hold\" action\n then:\n - service: light.turn_off\n data:\n transition: 1\n target:\n entity_id: light.bed_light_huelight\n - if:\n - condition: trigger\n id: Master bedroom 4-way Switch \"3_single\" action\n then:\n - service: light.toggle\n data:\n color_temp: 500\n brightness_pct: 50\n transition: 1\n target:\n entity_id: light.bed_light_huelight\n - service: light.turn_off\n data:\n transition: 1\n target:\n entity_id: light.master_bedroom_light_light\n - if:\n - condition: trigger\n id: Master bedroom 4-way Switch \"3_double\" action\n then:\n - service: light.turn_off\n data:\n transition: 1\n target:\n entity_id: light.master_bedroom_light_light\n - service: light.toggle\n data:\n brightness_pct: 25\n transition: 1\n color_temp: 500\n target:\n entity_id: light.bed_light_huelight\n - if:\n - condition: trigger\n id: Master bedroom 4-way Switch \"3_hold\" action\n then:\n - service: light.toggle\n target:\n device_id: 9f24909fc3d2d24894d3855bb9905d4a\n data:\n brightness_pct: 25\n - service: light.toggle\n data:\n brightness_pct: 25\n color_name: white\n target:\n device_id: 5c6fe9297a29501c1b5cbe311065dd39\n - if:\n - condition: trigger\n id: Master bedroom 4-way Switch \"4_single\" action\n then:\n - service: light.turn_off\n data:\n transition: 1\n target:\n entity_id: light.all_master_bedroom_lights\n - if:\n - condition: trigger\n id: Master bedroom 4-way Switch \"4_double\" action\n then: []\n - if:\n - condition: trigger\n id: Master bedroom 4-way Switch \"4_hold\" action\n then: []\n mode: single", "config": [ { "name": "all master bedroom lights", "room": "master_bedroom", "type": "light", "id": { "entity_id": "light.all_master_bedroom_lights", "device_id": null } }, { "name": "master bedroom light", "room": "master_bedroom", "type": "light", "id": { "entity_id": "light.master_bedroom_light_light", "device_id": null } }, { "name": "bed light", "room": "master_bedroom", "type": "light", "id": { "entity_id": "light.bed_light_huelight", "device_id": "3370d04b7ff80f8083990d294b3bd01b" } }, { "name": "master bedroom 4-way switch", "room": "master_bedroom", "type": "remote", "id": { "entity_id": null, "device_id": "caba5eff8e8af6e4295cfba68159c656" } }, { "name": "additional light device 1", "room": "master_bedroom", "type": "light", "id": { "entity_id": null, "device_id": "9f24909fc3d2d24894d3855bb9905d4a" } }, { "name": "additional light device 2", "room": "master_bedroom", "type": "light", "id": { "entity_id": null, "device_id": "5c6fe9297a29501c1b5cbe311065dd39" } } ] }, { "id": "'1672738881426'", "automation": "- id: '1672738881426'\n alias: USB Dongle Alert Handler\n description: Send notifications if USB dongles are unplugged\n trigger:\n - platform: state\n entity_id:\n - binary_sensor.bluetooth_radio_2\n from: 'on'\n to: 'off'\n for:\n hours: 0\n minutes: 0\n seconds: 30\n id: ASUS USB-BT500\n - platform: state\n entity_id:\n - binary_sensor.bluetooth_radio\n from: 'on'\n to: 'off'\n for:\n hours: 0\n minutes: 0\n seconds: 30\n id: Bluetooth Radio\n - platform: state\n entity_id:\n - binary_sensor.ramses_rf\n from: 'on'\n to: 'off'\n for:\n hours: 0\n minutes: 0\n seconds: 30\n id: Ramses RF\n - platform: state\n entity_id:\n - binary_sensor.rfxtrx433\n from: 'on'\n to: 'off'\n for:\n hours: 0\n minutes: 0\n seconds: 30\n id: RFXtrx433\n - platform: state\n entity_id:\n - binary_sensor.rtl433_dongle\n from: 'on'\n to: 'off'\n for:\n hours: 0\n minutes: 0\n seconds: 30\n id: RTL433 Dongle\n - platform: state\n entity_id:\n - binary_sensor.sonoff_zigbee_3_0_usb_dongle_plus\n from: 'on'\n to: 'off'\n for:\n hours: 0\n minutes: 0\n seconds: 30\n id: Sonoff Zigbee 3.0 USB Dongle Plus\n condition: []\n action:\n - if:\n - condition: trigger\n id: ASUS USB-BT500\n then:\n - service: script.notification_handler\n data_template:\n is_critical: false\n is_debug: false\n is_system: true\n title: Home Assistant\n message: ASUS USB-BT500 USB stick is no longer present!\n - if:\n - condition: trigger\n id: Bluetooth Radio\n then:\n - service: script.notification_handler\n data_template:\n is_critical: true\n is_debug: false\n is_system: true\n title: Home Assistant\n message: Bluetooth USB stick is no longer present!\n - if:\n - condition: trigger\n id: Ramses RF\n then:\n - service: script.notification_handler\n data_template:\n is_critical: true\n is_debug: false\n is_system: true\n title: Home Assistant\n message: Ramses RF (EvoHome) USB stick is no longer present!\n - if:\n - condition: trigger\n id: RFXtrx433\n then:\n - service: script.notification_handler\n data_template:\n is_critical: false\n is_debug: false\n is_system: true\n title: Home Assistant\n message: RFXtrx433 USB stick is no longer present!\n - if:\n - condition: trigger\n id: RTL433 Dongle\n then:\n - service: script.notification_handler\n data_template:\n is_critical: true\n is_debug: false\n is_system: true\n title: Home Assistant\n message: RTL433 USB stick is no longer present!\n - if:\n - condition: trigger\n id: Sonoff Zigbee 3.0 USB Dongle Plus\n then:\n - service: script.notification_handler\n data_template:\n is_critical: true\n is_debug: false\n is_system: true\n title: Home Assistant\n message: Zigbee USB stick is no longer present! Most lights and sensors will\n not work until this is resolved!\n mode: single", "config": [ { "name": "bluetooth radio 2 sensor", "room": "home", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.bluetooth_radio_2", "device_id": null } }, { "name": "bluetooth radio sensor", "room": "home", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.bluetooth_radio", "device_id": null } }, { "name": "ramses rf sensor", "room": "home", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.ramses_rf", "device_id": null } }, { "name": "rfxtrx433 sensor", "room": "home", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.rfxtrx433", "device_id": null } }, { "name": "rtl433 dongle sensor", "room": "home", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.rtl433_dongle", "device_id": null } }, { "name": "sonoff zigbee dongle sensor", "room": "home", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.sonoff_zigbee_3_0_usb_dongle_plus", "device_id": null } }, { "name": "Notification Handler Script", "room": null, "type": "script", "id": { "entity_id": "script.notification_handler", "device_id": null } } ] }, { "id": "'1672740004063'", "automation": "- id: '1672740004063'\n alias: Philips Hue Dimmer Handler\n description: Handler for Philips Hue Dimmer switch/remote\n trigger:\n - device_id: cd63a92d4200b7767391b4421c12bdec\n domain: zha\n platform: device\n type: remote_button_short_press\n subtype: turn_on\n id: Philips Hue Dimmer \"on_press\" action\n - device_id: cd63a92d4200b7767391b4421c12bdec\n domain: zha\n platform: device\n type: remote_button_double_press\n subtype: turn_on\n id: Philips Hue Dimmer \"double on_press\" action\n - device_id: cd63a92d4200b7767391b4421c12bdec\n domain: zha\n platform: device\n type: remote_button_short_press\n subtype: turn_off\n id: Philips Hue Dimmer \"off_press\" action\n - device_id: cd63a92d4200b7767391b4421c12bdec\n domain: zha\n platform: device\n type: remote_button_double_press\n subtype: turn_off\n id: Philips Hue Dimmer \"double off_press\" action\n - device_id: cd63a92d4200b7767391b4421c12bdec\n domain: zha\n platform: device\n type: remote_button_short_press\n subtype: dim_up\n id: Philips Hue Dimmer \"up_press\" action\n - device_id: cd63a92d4200b7767391b4421c12bdec\n domain: zha\n platform: device\n type: remote_button_short_press\n subtype: dim_down\n id: Philips Hue Dimmer \"down_press\" action\n - device_id: cd63a92d4200b7767391b4421c12bdec\n domain: zha\n platform: device\n type: remote_button_long_press\n subtype: turn_off\n id: Philips Hue Dimmer \"off_hold\" action\n condition: []\n action:\n - if:\n - condition: trigger\n id: Philips Hue Dimmer \"on_press\" action\n then:\n - choose:\n - conditions:\n - condition: state\n entity_id: binary_sensor.do_not_disturb\n state: 'on'\n sequence:\n - service: light.turn_on\n data:\n transition: 1\n brightness_pct: 20\n target:\n entity_id: light.master_bedroom_light_light\n default:\n - service: light.turn_on\n data:\n transition: 1\n brightness_pct: 100\n target:\n entity_id: light.master_bedroom_light_light\n - if:\n - condition: trigger\n id: Philips Hue Dimmer \"double on_press\" action\n then:\n - choose:\n - conditions:\n - condition: state\n entity_id: binary_sensor.do_not_disturb\n state: 'on'\n sequence:\n - service: light.turn_on\n data:\n transition: 1\n color_temp: 500\n brightness_pct: 20\n target:\n entity_id: light.bed_light_huelight\n default:\n - service: light.turn_on\n data:\n transition: 1\n color_temp: 153\n brightness_pct: 20\n target:\n entity_id: light.bed_light_huelight\n alias: Set brightness to 20% at night, otherwise 100%\n - if:\n - condition: trigger\n id: Philips Hue Dimmer \"off_press\" action\n then:\n - service: light.turn_off\n data:\n transition: 1\n target:\n entity_id: light.master_bedroom_light_light\n - if:\n - condition: trigger\n id: Philips Hue Dimmer \"double off_press\" action\n then:\n - service: light.turn_off\n data:\n transition: 1\n target:\n entity_id: light.bed_light_huelight\n - if:\n - condition: trigger\n id: Philips Hue Dimmer \"up_press\" action\n then:\n - choose:\n - conditions:\n - condition: and\n conditions:\n - condition: device\n type: is_on\n device_id: b0972a48b3f209015f387e0e8a36c474\n entity_id: light.master_bedroom_light_light\n domain: light\n - condition: device\n type: is_off\n device_id: 3370d04b7ff80f8083990d294b3bd01b\n entity_id: light.bed_light_huelight\n domain: light\n sequence:\n - device_id: b0972a48b3f209015f387e0e8a36c474\n domain: light\n entity_id: light.master_bedroom_light_light\n type: brightness_increase\n alias: Master Bedroom Light On\n - choose:\n - conditions:\n - condition: and\n conditions:\n - condition: device\n type: is_on\n device_id: 3370d04b7ff80f8083990d294b3bd01b\n entity_id: light.bed_light_huelight\n domain: light\n - condition: device\n type: is_off\n device_id: b0972a48b3f209015f387e0e8a36c474\n entity_id: light.master_bedroom_light_light\n domain: light\n sequence:\n - device_id: 3370d04b7ff80f8083990d294b3bd01b\n domain: light\n entity_id: light.bed_light_huelight\n type: brightness_increase\n alias: Master Bedroom Bed Light On\n - choose:\n - conditions:\n - condition: and\n conditions:\n - condition: device\n type: is_on\n device_id: 3370d04b7ff80f8083990d294b3bd01b\n entity_id: light.bed_light_huelight\n domain: light\n - condition: device\n type: is_on\n device_id: b0972a48b3f209015f387e0e8a36c474\n entity_id: light.master_bedroom_light_light\n domain: light\n sequence:\n - device_id: b0972a48b3f209015f387e0e8a36c474\n domain: light\n entity_id: light.master_bedroom_light_light\n type: brightness_increase\n - device_id: 3370d04b7ff80f8083990d294b3bd01b\n domain: light\n entity_id: light.bed_light_huelight\n type: brightness_increase\n alias: Master Bedroom All Lights On\n - if:\n - condition: trigger\n id: Philips Hue Dimmer \"down_press\" action\n then:\n - device_id: b0972a48b3f209015f387e0e8a36c474\n domain: light\n entity_id: light.master_bedroom_light_light\n type: brightness_decrease\n enabled: false\n - choose:\n - conditions:\n - condition: and\n conditions:\n - condition: device\n type: is_on\n device_id: b0972a48b3f209015f387e0e8a36c474\n entity_id: light.master_bedroom_light_light\n domain: light\n - condition: device\n type: is_off\n device_id: 3370d04b7ff80f8083990d294b3bd01b\n entity_id: light.bed_light_huelight\n domain: light\n sequence:\n - device_id: b0972a48b3f209015f387e0e8a36c474\n domain: light\n entity_id: light.master_bedroom_light_light\n type: brightness_decrease\n alias: Master Bedroom Light On\n - choose:\n - conditions:\n - condition: and\n conditions:\n - condition: device\n type: is_on\n device_id: 3370d04b7ff80f8083990d294b3bd01b\n entity_id: light.bed_light_huelight\n domain: light\n - condition: device\n type: is_off\n device_id: b0972a48b3f209015f387e0e8a36c474\n entity_id: light.master_bedroom_light_light\n domain: light\n sequence:\n - device_id: 3370d04b7ff80f8083990d294b3bd01b\n domain: light\n entity_id: light.bed_light_huelight\n type: brightness_decrease\n alias: Master Bedroom Bed Light On\n - choose:\n - conditions:\n - condition: and\n conditions:\n - condition: device\n type: is_on\n device_id: 3370d04b7ff80f8083990d294b3bd01b\n entity_id: light.bed_light_huelight\n domain: light\n - condition: device\n type: is_on\n device_id: b0972a48b3f209015f387e0e8a36c474\n entity_id: light.master_bedroom_light_light\n domain: light\n sequence:\n - device_id: b0972a48b3f209015f387e0e8a36c474\n domain: light\n entity_id: light.master_bedroom_light_light\n type: brightness_decrease\n - device_id: 3370d04b7ff80f8083990d294b3bd01b\n domain: light\n entity_id: light.bed_light_huelight\n type: brightness_decrease\n alias: Master Bedroom All Lights On\n - if:\n - condition: trigger\n id: Philips Hue Dimmer \"off_hold\" action\n then:\n - service: light.turn_off\n data:\n transition: 1\n target:\n entity_id:\n - light.master_bedroom_light_light\n - light.bed_light_huelight\n mode: single", "config": [ { "name": "do not disturb sensor", "room": "home", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.do_not_disturb", "device_id": null } }, { "name": "master bedroom light", "room": "master_bedroom", "type": "light", "id": { "entity_id": "light.master_bedroom_light_light", "device_id": null } }, { "name": "bed light", "room": "master_bedroom", "type": "light", "id": { "entity_id": "light.bed_light_huelight", "device_id": "3370d04b7ff80f8083990d294b3bd01b" } }, { "name": "philips hue dimmer switch", "room": "master_bedroom", "type": "remote", "id": { "entity_id": null, "device_id": "cd63a92d4200b7767391b4421c12bdec" } }, { "name": "master bedroom light device", "room": "master_bedroom", "type": "light", "id": { "entity_id": null, "device_id": "b0972a48b3f209015f387e0e8a36c474" } } ] }, { "id": "'1672763007964'", "automation": "- id: '1672763007964'\n alias: Dehumidifier Handler\n description: Handler to notify when dehumidifiers need emptying\n trigger:\n - platform: state\n entity_id:\n - sensor.dining_room_dehumidifier_state\n to: Standby\n for:\n hours: 0\n minutes: 5\n seconds: 0\n from: Active\n id: Dining Room Dehumidifier\n - platform: state\n entity_id:\n - sensor.kitchen_energy_state\n from: Active\n to: Standby\n for:\n hours: 0\n minutes: 5\n seconds: 0\n id: Kitchen Dehumidifier\n condition: []\n action:\n - if:\n - condition: trigger\n id: Dining Room Dehumidifier\n then:\n - service: script.notification_handler\n data_template:\n is_critical: false\n is_debug: false\n is_system: false\n message: Empty dining room dehumidifier!\n - if:\n - condition: trigger\n id: Kitchen Dehumidifier\n then:\n - service: script.notification_handler\n data_template:\n is_critical: false\n is_debug: false\n is_system: false\n message: Empty kitchen dehumidifier!\n mode: single", "config": [ { "name": "dining room dehumidifier state sensor", "room": "dining_room", "type": "sensor", "id": { "entity_id": "sensor.dining_room_dehumidifier_state", "device_id": null } }, { "name": "kitchen energy state sensor", "room": "kitchen", "type": "sensor", "id": { "entity_id": "sensor.kitchen_energy_state", "device_id": null } }, { "name": "Notification Handler Script", "room": null, "type": "script", "id": { "entity_id": "script.notification_handler", "device_id": null } } ] }, { "id": "'1672776928202'", "automation": "- id: '1672776928202'\n alias: Bedtime\n description: ''\n trigger:\n - platform: time\n at: '20:30:00'\n condition:\n - condition: state\n entity_id: binary_sensor.school_day\n state: 'on'\n action:\n - service: media_player.volume_set\n data:\n volume_level: 0.75\n target:\n entity_id: media_player.landing_echo_dot\n - type: turn_off\n device_id: 2c0a4369b033b5ef7e8fedbfa30abb0f\n entity_id: light.storylight\n domain: light\n - type: turn_on\n device_id: 2c0a4369b033b5ef7e8fedbfa30abb0f\n entity_id: light.storylight\n domain: light\n - delay:\n hours: 0\n minutes: 0\n seconds: 1\n milliseconds: 0\n - type: turn_off\n device_id: 2c0a4369b033b5ef7e8fedbfa30abb0f\n entity_id: light.storylight\n domain: light\n - delay:\n hours: 0\n minutes: 0\n seconds: 1\n milliseconds: 0\n - type: turn_on\n device_id: 2c0a4369b033b5ef7e8fedbfa30abb0f\n entity_id: light.storylight\n domain: light\n - delay:\n hours: 0\n minutes: 0\n seconds: 1\n milliseconds: 0\n - service: notify.alexa_media\n data:\n message: Time for bed. iPad's away. Night night.\n target: media_player.landing_echo_dot\n data:\n type: tts\n - delay:\n hours: 0\n minutes: 0\n seconds: 10\n milliseconds: 0\n - service: notify.alexa_media\n data:\n message: Time for bed. iPad's away. Night night.\n target: media_player.landing_echo_dot\n data:\n type: tts\n - type: turn_off\n device_id: c53730b0680e2b69fe48ee4402b789b1\n entity_id: switch.abigail_s_ipad\n domain: switch\n - type: turn_off\n device_id: d71e950cd4686d97294e7d6802d51f29\n entity_id: switch.george_s_ipad\n domain: switch\n mode: single", "config": [ { "name": "landing echo dot", "room": "landing", "type": "media_player", "id": { "entity_id": "media_player.landing_echo_dot", "device_id": null } }, { "name": "school day sensor", "room": "home", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.school_day", "device_id": null } }, { "name": "storylight", "room": "kids_bedroom", "type": "light", "id": { "entity_id": "light.storylight", "device_id": "2c0a4369b033b5ef7e8fedbfa30abb0f" } }, { "name": "abigail's ipad switch", "room": "kids_bedroom", "type": "switch", "id": { "entity_id": "switch.abigail_s_ipad", "device_id": "c53730b0680e2b69fe48ee4402b789b1" } }, { "name": "george's ipad switch", "room": "kids_bedroom", "type": "switch", "id": { "entity_id": "switch.george_s_ipad", "device_id": "d71e950cd4686d97294e7d6802d51f29" } } ] }, { "id": "'1672934008638'", "automation": "- id: '1672934008638'\n alias: Philips Hue Smart Button Handler\n description: Handler for Philips Hue Smart Button\n trigger:\n - device_id: dccd62e50d847fc0e16580a4a0afde21\n domain: zha\n platform: device\n type: remote_button_short_press\n subtype: turn_on\n id: Signify Netherlands B.V. ROM001 \"on\"\n - device_id: dccd62e50d847fc0e16580a4a0afde21\n domain: zha\n platform: device\n type: remote_button_long_press\n subtype: turn_on\n id: Signify Netherlands B.V. ROM001 \"hold\"\n - device_id: dccd62e50d847fc0e16580a4a0afde21\n domain: zha\n platform: device\n type: remote_button_double_press\n subtype: turn_on\n id: Signify Netherlands B.V. ROM001 \"double\"\n - device_id: dccd62e50d847fc0e16580a4a0afde21\n domain: zha\n platform: device\n type: remote_button_triple_press\n subtype: turn_on\n id: Signify Netherlands B.V. ROM001 \"triple\"\n - device_id: dccd62e50d847fc0e16580a4a0afde21\n domain: zha\n platform: device\n type: remote_button_quadruple_press\n subtype: turn_on\n id: Signify Netherlands B.V. ROM001 \"quadruple\"\n - device_id: dccd62e50d847fc0e16580a4a0afde21\n domain: zha\n platform: device\n type: remote_button_quintuple_press\n subtype: turn_on\n id: Signify Netherlands B.V. ROM001 \"quintuple\"\n - device_id: dccd62e50d847fc0e16580a4a0afde21\n domain: zha\n platform: device\n type: remote_button_short_release\n subtype: turn_on\n id: Signify Netherlands B.V. ROM001 \"on released\"\n - device_id: dccd62e50d847fc0e16580a4a0afde21\n domain: zha\n platform: device\n type: remote_button_long_release\n subtype: turn_on\n id: Signify Netherlands B.V. ROM001 \"on release long press\"\n condition: []\n action: []\n mode: single", "config": [ { "name": "philips hue smart button", "room": "home", "type": "remote", "id": { "entity_id": null, "device_id": "dccd62e50d847fc0e16580a4a0afde21" } } ] }, { "id": "'1673137894967'", "automation": "- id: '1673137894967'\n alias: Bathroom New\n description: ''\n trigger: []\n condition: []\n action:\n - repeat:\n while:\n - type: is_occupied\n condition: device\n device_id: 13ff591684fab210e196fd1e5b72b37e\n entity_id: binary_sensor.lumi_lumi_motion_agl04_occupancy\n domain: binary_sensor\n - condition: state\n entity_id: input_boolean.bathroom_temporary_override\n state: 'on'\n sequence:\n - delay:\n hours: 0\n minutes: 1\n seconds: 0\n milliseconds: 0\n - service: notify.mobile_app_myphone\n data:\n message: Override ended, occupancy cleared.\n mode: single", "config": [ { "name": "bathroom temporary override", "room": "bathroom", "type": "input_boolean", "id": { "entity_id": "input_boolean.bathroom_temporary_override", "device_id": null } }, { "name": "bathroom motion sensor device", "room": "bathroom", "type": "binary_sensor", "id": { "entity_id": null, "device_id": "13ff591684fab210e196fd1e5b72b37e" } }, { "name": "bathroom motion sensor", "room": "bathroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.lumi_lumi_motion_agl04_iaszone", "device_id": "13ff591684fab210e196fd1e5b72b37e" } }, { "name": "bathroom motion sensor occupancy", "room": "bathroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.lumi_lumi_motion_agl04_occupancy", "device_id": "13ff591684fab210e196fd1e5b72b37e" } } ] }, { "id": "'1673213709016'", "automation": "- id: '1673213709016'\n alias: Bathroom Occupancy Detection\n description: ''\n use_blueprint:\n path: AlexanderBabel/occupancy.yaml\n input:\n door_sensor: binary_sensor.lumi_lumi_sensor_magnet_aq2_opening\n motion_sensor: binary_sensor.lumi_lumi_motion_agl04_iaszone\n turn_off_delay: 60\n occupancy_helper: input_boolean.bathroom_occupancy_helper\n last_motion_helper: input_datetime.bathroom_last_motion", "config": [ { "name": "bathroom occupancy helper", "room": "bathroom", "type": "input_boolean", "id": { "entity_id": "input_boolean.bathroom_occupancy_helper", "device_id": null } }, { "name": "bathroom last motion", "room": "bathroom", "type": "input_datetime", "id": { "entity_id": "input_datetime.bathroom_last_motion", "device_id": null } }, { "name": "bathroom motion sensor", "room": "bathroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.lumi_lumi_motion_agl04_iaszone", "device_id": "13ff591684fab210e196fd1e5b72b37e" } }, { "name": "bathroom door sensor", "room": "bathroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.lumi_lumi_sensor_magnet_aq2_opening", "device_id": "06bbe71fbeda062d4c873167f88495c4" } }, { "name": "master bedroom motion sensor", "room": "master_bedroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.lumi_lumi_motion_agl04_iaszone", "device_id": null } } ] }, { "id": "'1673557785450'", "automation": "- id: '1673557785450'\n alias: LoraTap 3-button switch Jessica handler\n description: ''\n trigger:\n - device_id: 9c56b6e42144c29116d5c51d41c6a0a5\n domain: zha\n platform: device\n type: remote_button_short_press\n subtype: button_1\n id: button_1_single\n - device_id: 9c56b6e42144c29116d5c51d41c6a0a5\n domain: zha\n platform: device\n type: remote_button_double_press\n subtype: button_1\n id: button_1_double\n - device_id: 9c56b6e42144c29116d5c51d41c6a0a5\n domain: zha\n platform: device\n type: remote_button_long_press\n subtype: button_1\n id: button_1_long\n - device_id: 9c56b6e42144c29116d5c51d41c6a0a5\n domain: zha\n platform: device\n type: remote_button_short_press\n subtype: button_2\n id: button_2_single\n - device_id: 9c56b6e42144c29116d5c51d41c6a0a5\n domain: zha\n platform: device\n type: remote_button_double_press\n subtype: button_2\n id: button_2_double\n - device_id: 9c56b6e42144c29116d5c51d41c6a0a5\n domain: zha\n platform: device\n type: remote_button_long_press\n subtype: button_2\n id: button_2_long\n - device_id: 9c56b6e42144c29116d5c51d41c6a0a5\n domain: zha\n platform: device\n type: remote_button_short_press\n subtype: button_3\n id: button_3_single\n - device_id: 9c56b6e42144c29116d5c51d41c6a0a5\n domain: zha\n platform: device\n type: remote_button_double_press\n subtype: button_3\n id: button_3_double\n - device_id: 9c56b6e42144c29116d5c51d41c6a0a5\n domain: zha\n platform: device\n type: remote_button_long_press\n subtype: button_3\n id: button_3_long\n condition: []\n action:\n - choose:\n - conditions:\n - condition: trigger\n id: button_1_single\n sequence:\n - service: light.toggle\n data:\n transition: 1\n target:\n entity_id: light.master_bedroom_light_light\n - conditions:\n - condition: trigger\n id: button_1_double\n sequence: []\n - conditions:\n - condition: trigger\n id: button_1_long\n sequence: []\n - conditions:\n - condition: trigger\n id: button_2_single\n sequence:\n - service: light.toggle\n data:\n transition: 1\n target:\n entity_id: light.bed_light_huelight\n - conditions:\n - condition: trigger\n id: button_2_double\n sequence: []\n - conditions:\n - condition: trigger\n id: button_2_long\n sequence: []\n - conditions:\n - condition: trigger\n id: button_3_single\n sequence:\n - service: light.turn_off\n data:\n transition: 1\n target:\n entity_id: light.all_master_bedroom_lights\n - conditions:\n - condition: trigger\n id: button_3_double\n sequence: []\n - conditions:\n - condition: trigger\n id: button_3_long\n sequence: []\n mode: single", "config": [ { "name": "all master bedroom lights", "room": "master_bedroom", "type": "light", "id": { "entity_id": "light.all_master_bedroom_lights", "device_id": null } }, { "name": "master bedroom light", "room": "master_bedroom", "type": "light", "id": { "entity_id": "light.master_bedroom_light_light", "device_id": null } }, { "name": "bed light", "room": "master_bedroom", "type": "light", "id": { "entity_id": "light.bed_light_huelight", "device_id": "3370d04b7ff80f8083990d294b3bd01b" } }, { "name": "loratap 3-button switch jessica", "room": "master_bedroom", "type": "remote", "id": { "entity_id": null, "device_id": "9c56b6e42144c29116d5c51d41c6a0a5" } } ] }, { "id": "'1673559903698'", "automation": "- id: '1673559903698'\n alias: LoraTap 3-button switch Jonathan handler\n description: ''\n trigger:\n - device_id: ba0003bb3f3278e9e0c2b9d3ff98d26b\n domain: zha\n platform: device\n type: remote_button_short_press\n subtype: button_1\n id: button_1_single\n - device_id: ba0003bb3f3278e9e0c2b9d3ff98d26b\n domain: zha\n platform: device\n type: remote_button_double_press\n subtype: button_1\n id: button_1_double\n - device_id: ba0003bb3f3278e9e0c2b9d3ff98d26b\n domain: zha\n platform: device\n type: remote_button_long_press\n subtype: button_1\n id: button_1_long\n - device_id: ba0003bb3f3278e9e0c2b9d3ff98d26b\n domain: zha\n platform: device\n type: remote_button_short_press\n subtype: button_2\n id: button_2_single\n - device_id: ba0003bb3f3278e9e0c2b9d3ff98d26b\n domain: zha\n platform: device\n type: remote_button_double_press\n subtype: button_2\n id: button_2_double\n - device_id: ba0003bb3f3278e9e0c2b9d3ff98d26b\n domain: zha\n platform: device\n type: remote_button_long_press\n subtype: button_2\n id: button_2_long\n - device_id: ba0003bb3f3278e9e0c2b9d3ff98d26b\n domain: zha\n platform: device\n type: remote_button_short_press\n subtype: button_3\n id: button_3_single\n - device_id: ba0003bb3f3278e9e0c2b9d3ff98d26b\n domain: zha\n platform: device\n type: remote_button_double_press\n subtype: button_3\n id: button_3_double\n - device_id: ba0003bb3f3278e9e0c2b9d3ff98d26b\n domain: zha\n platform: device\n type: remote_button_long_press\n subtype: button_3\n id: button_3_long\n condition: []\n action:\n - choose:\n - conditions:\n - condition: trigger\n id: button_1_single\n sequence:\n - service: light.toggle\n data:\n transition: 1\n target:\n entity_id: light.master_bedroom_light_light\n - conditions:\n - condition: trigger\n id: button_1_double\n sequence: []\n - conditions:\n - condition: trigger\n id: button_1_long\n sequence: []\n - conditions:\n - condition: trigger\n id: button_2_single\n sequence:\n - service: light.toggle\n data:\n transition: 1\n target:\n entity_id: light.bed_light_huelight\n - conditions:\n - condition: trigger\n id: button_2_double\n sequence: []\n - conditions:\n - condition: trigger\n id: button_2_long\n sequence: []\n - conditions:\n - condition: trigger\n id: button_3_single\n sequence:\n - service: light.turn_off\n data:\n transition: 1\n target:\n entity_id: light.all_master_bedroom_lights\n - conditions:\n - condition: trigger\n id: button_3_double\n sequence: []\n - conditions:\n - condition: trigger\n id: button_3_long\n sequence: []\n mode: single", "config": [ { "name": "all master bedroom lights", "room": "master_bedroom", "type": "light", "id": { "entity_id": "light.all_master_bedroom_lights", "device_id": null } }, { "name": "master bedroom light", "room": "master_bedroom", "type": "light", "id": { "entity_id": "light.master_bedroom_light_light", "device_id": null } }, { "name": "bed light", "room": "master_bedroom", "type": "light", "id": { "entity_id": "light.bed_light_huelight", "device_id": "3370d04b7ff80f8083990d294b3bd01b" } }, { "name": "loratap 3-button switch jonathan", "room": "master_bedroom", "type": "remote", "id": { "entity_id": null, "device_id": "ba0003bb3f3278e9e0c2b9d3ff98d26b" } } ] }, { "id": "'1673615338578'", "automation": "- id: '1673615338578'\n alias: Smoke Alarm Handler\n description: ''\n trigger:\n - type: smoke\n platform: device\n device_id: f8861f1cadb0fa928b8ec0a4c11e642d\n entity_id: binary_sensor.heiman_smokesensor_ef_3_0_iaszone\n domain: binary_sensor\n id: Detected\n - platform: state\n entity_id:\n - binary_sensor.heiman_smokesensor_ef_3_0_iaszone\n from: 'on'\n to: 'off'\n id: Cleared\n - type: no_smoke\n platform: device\n device_id: f8861f1cadb0fa928b8ec0a4c11e642d\n entity_id: binary_sensor.heiman_smokesensor_ef_3_0_iaszone\n domain: binary_sensor\n for:\n hours: 0\n minutes: 0\n seconds: 10\n id: Cleared\n enabled: false\n - type: smoke\n platform: device\n device_id: 5e868b278814b618bf258ae395a1358c\n entity_id: binary_sensor.heiman_smokesensor_ef_3_0_iaszone_2\n domain: binary_sensor\n id: Detected\n - platform: state\n entity_id:\n - binary_sensor.heiman_smokesensor_ef_3_0_iaszone_2\n from: 'on'\n to: 'off'\n id: Cleared\n - type: no_smoke\n platform: device\n device_id: 5e868b278814b618bf258ae395a1358c\n entity_id: binary_sensor.heiman_smokesensor_ef_3_0_iaszone_2\n domain: binary_sensor\n id: Cleared\n for:\n hours: 0\n minutes: 0\n seconds: 10\n enabled: false\n condition: []\n action:\n - service: script.notification_handler\n data_template:\n is_critical: true\n is_debug: false\n is_system: false\n title: Smoke {{ trigger.id.title() }} in {{ area_name(trigger.entity_id) }}!\n message: Smoke {{ trigger.id.title() }} in {{ area_name(trigger.entity_id) }}!\n mode: single", "config": [ { "name": "smoke sensor 1", "room": "home", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.heiman_smokesensor_ef_3_0_iaszone", "device_id": "f8861f1cadb0fa928b8ec0a4c11e642d" } }, { "name": "smoke sensor 2", "room": "home", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.heiman_smokesensor_ef_3_0_iaszone_2", "device_id": "5e868b278814b618bf258ae395a1358c" } }, { "name": "Notification Handler Script", "room": null, "type": "script", "id": { "entity_id": "script.notification_handler", "device_id": null } } ] }, { "id": "'1673621771425'", "automation": "- id: '1673621771425'\n alias: Carbon Monoxide Alarm Handler\n description: ''\n trigger:\n - type: gas\n platform: device\n device_id: eb34842260ff4412790dea2b0e13b5e8\n entity_id: binary_sensor.heiman_cosensor_ef_3_0_iaszone\n domain: binary_sensor\n id: Detected\n - type: no_gas\n platform: device\n device_id: eb34842260ff4412790dea2b0e13b5e8\n entity_id: binary_sensor.heiman_cosensor_ef_3_0_iaszone\n domain: binary_sensor\n id: Cleared\n for:\n hours: 0\n minutes: 0\n seconds: 30\n enabled: false\n - platform: state\n entity_id:\n - binary_sensor.heiman_cosensor_ef_3_0_iaszone\n from: 'on'\n to: 'off'\n id: Cleared\n condition: []\n action:\n - service: script.notification_handler\n data_template:\n is_critical: true\n is_debug: false\n is_system: false\n title: Carbon Monoxide {{ trigger.id.title() }} in {{ area_name(trigger.entity_id)\n }}!\n message: Carbon Monoxide {{ trigger.id.title() }} in {{ area_name(trigger.entity_id)\n }}!\n mode: single", "config": [ { "name": "carbon monoxide sensor", "room": "home", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.heiman_cosensor_ef_3_0_iaszone", "device_id": "eb34842260ff4412790dea2b0e13b5e8" } }, { "name": "Notification Handler Script", "room": null, "type": "script", "id": { "entity_id": "script.notification_handler", "device_id": null } } ] }, { "id": "'1673881006523'", "automation": "- id: '1673881006523'\n alias: Notify Zigbee Outage\n description: Send a notification if the All Zigbee Lights group becomes unavailable\n trigger:\n - platform: state\n entity_id:\n - light.silicon_labs_ezsp_all_zigbee_lights_zha_group_0x0008\n to: unavailable\n id: unavailable\n - platform: state\n entity_id:\n - light.silicon_labs_ezsp_all_zigbee_lights_zha_group_0x0008\n id: available\n from: unavailable\n enabled: false\n condition: []\n action:\n - if:\n - condition: trigger\n id: unavailable\n then:\n - service: script.notification_handler\n data_template:\n is_critical: true\n is_debug: false\n is_system: true\n title: Home Assistant\n message: The Zigbee network appears to be down.\n else:\n - service: script.notification_handler\n data_template:\n is_critical: true\n is_debug: false\n is_system: true\n title: Home Assistant\n message: The Zigbee network appears to be down.\n mode: single", "config": [ { "name": "all zigbee lights group", "room": "home", "type": "light", "id": { "entity_id": "light.silicon_labs_ezsp_all_zigbee_lights_zha_group_0x0008", "device_id": null } }, { "name": "Notification Handler Script", "room": null, "type": "script", "id": { "entity_id": "script.notification_handler", "device_id": null } } ] }, { "id": "'1674058394534'", "automation": "- id: '1674058394534'\n alias: Kids Bedroom Light Sunrise Effect\n description: ''\n use_blueprint:\n path: sbyx/wake-up-light-alarm-with-sunrise-effect.yaml\n input:\n light_entity: light.kids_bedroom_light_light\n sunrise_duration: 15\n check_entity: binary_sensor.school_day\n end_brightness: 200\n manual_time: 07:15:00", "config": [ { "name": "kids bedroom light", "room": "kids_bedroom", "type": "light", "id": { "entity_id": "light.kids_bedroom_light", "device_id": null } }, { "name": "school day sensor", "room": "home", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.school_day", "device_id": null } }, { "name": "Kids Bedroom Light Light", "room": "Kids Bedroom", "type": "light", "id": { "entity_id": "light.kids_bedroom_light_light", "device_id": null } } ] }, { "id": "'1674516886522'", "automation": "- id: '1674516886522'\n alias: Dining Room Lights Handler\n description: ''\n trigger:\n - device_id: 61f9c63578d75df91ecb5c6463fb91c8\n domain: zha\n platform: device\n type: remote_button_short_press\n subtype: button_1\n id: 1_Single\n - device_id: 61f9c63578d75df91ecb5c6463fb91c8\n domain: zha\n platform: device\n type: remote_button_double_press\n subtype: button_1\n id: 1_Double\n - device_id: 61f9c63578d75df91ecb5c6463fb91c8\n domain: zha\n platform: device\n type: remote_button_long_press\n subtype: button_1\n id: 1_Hold\n - device_id: 61f9c63578d75df91ecb5c6463fb91c8\n domain: zha\n platform: device\n type: remote_button_short_press\n subtype: button_2\n id: 2_Single\n - device_id: 61f9c63578d75df91ecb5c6463fb91c8\n domain: zha\n platform: device\n type: remote_button_double_press\n subtype: button_2\n id: 2_Double\n - device_id: 61f9c63578d75df91ecb5c6463fb91c8\n domain: zha\n platform: device\n type: remote_button_long_press\n subtype: button_2\n id: 2_Hold\n - device_id: 61f9c63578d75df91ecb5c6463fb91c8\n domain: zha\n platform: device\n type: remote_button_short_press\n subtype: button_3\n id: 3_Single\n - device_id: 61f9c63578d75df91ecb5c6463fb91c8\n domain: zha\n platform: device\n type: remote_button_double_press\n subtype: button_3\n id: 3_Double\n - device_id: 61f9c63578d75df91ecb5c6463fb91c8\n domain: zha\n platform: device\n type: remote_button_long_press\n subtype: button_3\n id: 3_Hold\n - device_id: 61f9c63578d75df91ecb5c6463fb91c8\n domain: zha\n platform: device\n type: remote_button_short_press\n subtype: button_4\n id: 4_Single\n - device_id: 61f9c63578d75df91ecb5c6463fb91c8\n domain: zha\n platform: device\n type: remote_button_double_press\n subtype: button_4\n id: 4_Double\n - device_id: 61f9c63578d75df91ecb5c6463fb91c8\n domain: zha\n platform: device\n type: remote_button_long_press\n subtype: button_4\n id: 4_Hold\n - device_id: 61f9c63578d75df91ecb5c6463fb91c8\n domain: zha\n platform: device\n type: remote_button_short_press\n subtype: button_5\n id: 5_Single\n - device_id: 61f9c63578d75df91ecb5c6463fb91c8\n domain: zha\n platform: device\n type: remote_button_double_press\n subtype: button_5\n id: 5_Double\n - device_id: 61f9c63578d75df91ecb5c6463fb91c8\n domain: zha\n platform: device\n type: remote_button_long_press\n subtype: button_5\n id: 5_Hold\n - device_id: 61f9c63578d75df91ecb5c6463fb91c8\n domain: zha\n platform: device\n type: remote_button_short_press\n subtype: button_6\n id: 6_Single\n - device_id: 61f9c63578d75df91ecb5c6463fb91c8\n domain: zha\n platform: device\n type: remote_button_double_press\n subtype: button_6\n id: 6_Double\n - device_id: 61f9c63578d75df91ecb5c6463fb91c8\n domain: zha\n platform: device\n type: remote_button_long_press\n subtype: button_6\n id: 6_Hold\n condition: []\n action:\n - choose:\n - conditions:\n - condition: trigger\n id: 1_Single\n sequence:\n - service: light.toggle\n data:\n transition: 2\n color_temp: 238\n brightness_pct: 100\n target:\n entity_id: light.dining_room_lights\n - conditions:\n - condition: trigger\n id: 1_Double\n sequence:\n - service: light.turn_on\n data:\n transition: 2\n color_temp: 238\n brightness_pct: 100\n target:\n entity_id: light.dining_room_lights\n - conditions:\n - condition: trigger\n id: 1_Hold\n sequence:\n - service: light.turn_off\n data:\n transition: 2\n target:\n entity_id: light.dining_room_lights\n - conditions:\n - condition: trigger\n id: 3_Single\n sequence:\n - service: light.turn_on\n data:\n brightness_step_pct: -10\n target:\n entity_id: light.dining_room_lights\n - conditions:\n - condition: trigger\n id: 4_Single\n sequence:\n - service: light.turn_on\n data:\n brightness_step_pct: 10\n target:\n entity_id: light.dining_room_lights\n - conditions:\n - condition: trigger\n id: 5_Single\n sequence:\n - service: light.turn_on\n data:\n color_temp: '{{state_attr(''light.dining_room_lights'', ''color_temp'')|int\n + 34.6}}\n\n '\n target:\n entity_id: light.dining_room_lights\n - conditions:\n - condition: trigger\n id: 6_Single\n sequence:\n - service: light.turn_on\n data:\n color_temp: '{{state_attr(''light.dining_room_lights'', ''color_temp'')|int\n - 34.6}}\n\n '\n target:\n entity_id: light.dining_room_lights\n mode: restart", "config": [ { "name": "dining room lights", "room": "dining_room", "type": "light", "id": { "entity_id": "light.dining_room_lights", "device_id": null } }, { "name": "dining room lights switch", "room": "dining_room", "type": "remote", "id": { "entity_id": null, "device_id": "61f9c63578d75df91ecb5c6463fb91c8" } } ] }, { "id": "'1674569382639'", "automation": "- id: '1674569382639'\n alias: Advanced Circadian Lighting\n description: ''\n use_blueprint:\n path: dimkaram/advanced_circadian_lighting.yaml\n input:\n circadian_function: Day & night (cosine)\n lights_target:\n entity_id: light.dining_room_lights\n presence_entity: sensor.people_home\n sleep_mode: None\n circadian_type: Sun", "config": [ { "name": "people home sensor", "room": "home", "type": "sensor", "id": { "entity_id": "sensor.people_home", "device_id": null } }, { "name": "dining room lights", "room": "dining_room", "type": "light", "id": { "entity_id": "light.dining_room_lights", "device_id": null } } ] }, { "id": "'1674574826588'", "automation": "- id: '1674574826588'\n alias: Saving Sessions Handler\n description: Handler for Octopus Energy Saving Sessions\n trigger:\n - platform: calendar\n event: start\n offset: -0:1:0\n entity_id: calendar.octopus_energy_saving_sessions\n id: StartOfEvent\n - platform: calendar\n event: end\n offset: 0:1:0\n entity_id: calendar.octopus_energy_saving_sessions\n id: EndOfEvent\n condition: []\n action:\n - choose:\n - conditions:\n - condition: trigger\n id: StartOfEvent\n sequence:\n - service: switch.turn_off\n data: {}\n target:\n entity_id: switch.saving_session\n - conditions:\n - condition: trigger\n id: EndOfEvent\n sequence:\n - service: switch.turn_on\n data: {}\n target:\n entity_id: switch.saving_session\n mode: single", "config": [ { "name": "saving session switch", "room": "home", "type": "switch", "id": { "entity_id": "switch.saving_session", "device_id": null } }, { "name": "calendar octopus energy saving sessions", "room": "home", "type": "calendar", "id": { "entity_id": "calendar.octopus_energy_saving_sessions", "device_id": null } } ] }, { "id": "'1676115894031'", "automation": "- id: '1676115894031'\n alias: wled_f1352d_text\n description: ''\n trigger:\n - platform: state\n entity_id:\n - input_text.wled_f1352d_text\n condition: []\n action:\n - service: rest_command.wled_f1352d_text\n data:\n text: '{{states[''input_text.wled_f1352d_text''].state}}'\n mode: single", "config": [ { "name": "wled f1352d text input", "room": "home", "type": "input_text", "id": { "entity_id": "input_text.wled_f1352d_text", "device_id": null } } ] }, { "id": "'1676118038462'", "automation": "- id: '1676118038462'\n alias: wled_d9dc04_text\n description: ''\n trigger:\n - platform: state\n entity_id:\n - input_text.wled_d9dc04_text\n condition: []\n action:\n - service: rest_command.wled_d9dc04_text\n data:\n text: '{{states[''input_text.wled_d9dc04_text''].state}}'\n mode: single", "config": [ { "name": "wled d9dc04 text input", "room": "home", "type": "input_text", "id": { "entity_id": "input_text.wled_d9dc04_text", "device_id": null } } ] }, { "id": "'1677537054099'", "automation": "- id: '1677537054099'\n alias: AuroraWatch\n description: ''\n trigger:\n - type: turned_on\n platform: device\n device_id: e4d0b8bdaaaaa86fb38beaec451d697c\n entity_id: binary_sensor.aurora_visibility_aurora_visibility_alert\n domain: binary_sensor\n condition: []\n action:\n - service: script.notification_handler\n data_template:\n is_critical: true\n is_debug: false\n is_system: false\n title: AuroraWatch Alert\n message: The aurora borealis will likely be visible in your location!\n mode: single", "config": [ { "name": "aurora visibility alert sensor", "room": "outside", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.aurora_visibility_aurora_visibility_alert", "device_id": "e4d0b8bdaaaaa86fb38beaec451d697c" } }, { "name": "Notification Handler Script", "room": null, "type": "script", "id": { "entity_id": "script.notification_handler", "device_id": null } } ] }, { "id": "'1682286128927'", "automation": "- id: '1682286128927'\n alias: Enhanced Bathroom Lights Automation\n description: ''\n use_blueprint:\n path: Blackshome/sensor-light.yaml\n input:\n include_night_light_control:\n - use_transition\n motion_trigger:\n - binary_sensor.bathroom_binary_sensors\n light_switch:\n entity_id: scene.reset_bathroom_lights_lights_on\n include_light_control:\n - use_brightness\n - use_transition\n include_bypass: bypass_enabled_stop\n bypass_time_delay: 10\n include_ambient: ambient_disabled\n ambient_light_sensor: sensor.lumi_lumi_sen_ill_mgl01_illuminance\n ambient_light_options: ambient_light_option_enabled\n include_zone: zone_disabled\n include_night_lights: night_lights_enabled\n night_lights:\n entity_id: scene.bathroom_night_toilet_and_sink_lights_only_warm_white_50_brightness\n night_lights_after_time: input_datetime.bathroom_night_start\n night_lights_before_time: input_datetime.bathroom_night_end\n motion_bypass: input_boolean.bathroom_temporary_override\n ambient_light_value: 90\n end_scenes:\n - scene.reset_bathroom_lights_lights_off", "config": [ { "name": "bathroom night start time", "room": "bathroom", "type": "input_datetime", "id": { "entity_id": "input_datetime.bathroom_night_start", "device_id": null } }, { "name": "bathroom night end time", "room": "bathroom", "type": "input_datetime", "id": { "entity_id": "input_datetime.bathroom_night_end", "device_id": null } }, { "name": "bathroom temporary override", "room": "bathroom", "type": "input_boolean", "id": { "entity_id": "input_boolean.bathroom_temporary_override", "device_id": null } }, { "name": "bathroom binary sensors", "room": "bathroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.bathroom_binary_sensors", "device_id": null } }, { "name": "bathroom illuminance sensor", "room": "bathroom", "type": "sensor", "id": { "entity_id": "sensor.lumi_lumi_sen_ill_mgl01_illuminance", "device_id": null } }, { "name": "bathroom night toilet and sink lights scene", "room": "bathroom", "type": "scene", "id": { "entity_id": "scene.bathroom_night_toilet_and_sink_lights_only_warm_white_50_brightness", "device_id": null } }, { "name": "reset bathroom lights lights off scene", "room": "bathroom", "type": "scene", "id": { "entity_id": "scene.reset_bathroom_lights_lights_off", "device_id": null } }, { "name": "reset bathroom lights lights on scene", "room": "bathroom", "type": "scene", "id": { "entity_id": "scene.reset_bathroom_lights_lights_on", "device_id": null } } ] }, { "id": "Carbon Monoxide Alarm Handler", "automation": "- alias: Carbon Monoxide Alarm Handler\n description: ''\n trigger:\n - type: gas\n platform: device\n device_id: eb34842260ff4412790dea2b0e13b5e8\n entity_id: binary_sensor.heiman_cosensor_ef_3_0_iaszone\n domain: binary_sensor\n id: Detected\n - type: no_gas\n platform: device\n device_id: eb34842260ff4412790dea2b0e13b5e8\n entity_id: binary_sensor.heiman_cosensor_ef_3_0_iaszone\n domain: binary_sensor\n id: Cleared\n for:\n hours: 0\n minutes: 0\n seconds: 30\n enabled: false\n - platform: state\n entity_id:\n - binary_sensor.heiman_cosensor_ef_3_0_iaszone\n from: 'on'\n to: 'off'\n id: Cleared\n condition: []\n action:\n - service: script.notification_handler\n data_template:\n is_critical: true\n is_debug: false\n is_system: false\n title: Carbon Monoxide {{ trigger.id.title() }} in {{ area_name(trigger.entity_id)\n }}!\n message: Carbon Monoxide {{ trigger.id.title() }} in {{ area_name(trigger.entity_id)\n }}!\n mode: single", "config": [ { "name": "carbon monoxide sensor", "room": "home", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.heiman_cosensor_ef_3_0_iaszone", "device_id": "eb34842260ff4412790dea2b0e13b5e8" } }, { "name": "Notification Handler Script", "room": null, "type": "script", "id": { "entity_id": "script.notification_handler", "device_id": null } } ] }, { "id": "Dehumidifier Handler", "automation": "- alias: Dehumidifier Handler\n description: Handler to notify when dehumidifiers need emptying\n trigger:\n - platform: state\n entity_id:\n - sensor.dining_room_dehumidifier_state\n to: Standby\n for:\n hours: 0\n minutes: 5\n seconds: 0\n from: Active\n id: Dining Room Dehumidifier\n - platform: state\n entity_id:\n - sensor.kitchen_energy_state\n from: Active\n to: Standby\n for:\n hours: 0\n minutes: 5\n seconds: 0\n id: Kitchen Dehumidifier\n condition: []\n action:\n - if:\n - condition: trigger\n id: Dining Room Dehumidifier\n then:\n - service: script.notification_handler\n data_template:\n is_critical: false\n is_debug: false\n is_system: false\n message: Empty dining room dehumidifier!\n - if:\n - condition: trigger\n id: Kitchen Dehumidifier\n then:\n - service: script.notification_handler\n data_template:\n is_critical: false\n is_debug: false\n is_system: false\n message: Empty kitchen dehumidifier!\n mode: single", "config": [ { "name": "dining room dehumidifier state sensor", "room": "dining_room", "type": "sensor", "id": { "entity_id": "sensor.dining_room_dehumidifier_state", "device_id": null } }, { "name": "kitchen energy state sensor", "room": "kitchen", "type": "sensor", "id": { "entity_id": "sensor.kitchen_energy_state", "device_id": null } }, { "name": "Notification Handler Script", "room": null, "type": "script", "id": { "entity_id": "script.notification_handler", "device_id": null } } ] }, { "id": "Dining Room Lights Handler", "automation": "- alias: Dining Room Lights Handler\n description: ''\n trigger:\n - device_id: 61f9c63578d75df91ecb5c6463fb91c8\n domain: zha\n platform: device\n type: remote_button_short_press\n subtype: button_1\n id: 1_Single\n - device_id: 61f9c63578d75df91ecb5c6463fb91c8\n domain: zha\n platform: device\n type: remote_button_double_press\n subtype: button_1\n id: 1_Double\n - device_id: 61f9c63578d75df91ecb5c6463fb91c8\n domain: zha\n platform: device\n type: remote_button_long_press\n subtype: button_1\n id: 1_Hold\n - device_id: 61f9c63578d75df91ecb5c6463fb91c8\n domain: zha\n platform: device\n type: remote_button_short_press\n subtype: button_2\n id: 2_Single\n - device_id: 61f9c63578d75df91ecb5c6463fb91c8\n domain: zha\n platform: device\n type: remote_button_double_press\n subtype: button_2\n id: 2_Double\n - device_id: 61f9c63578d75df91ecb5c6463fb91c8\n domain: zha\n platform: device\n type: remote_button_long_press\n subtype: button_2\n id: 2_Hold\n - device_id: 61f9c63578d75df91ecb5c6463fb91c8\n domain: zha\n platform: device\n type: remote_button_short_press\n subtype: button_3\n id: 3_Single\n - device_id: 61f9c63578d75df91ecb5c6463fb91c8\n domain: zha\n platform: device\n type: remote_button_double_press\n subtype: button_3\n id: 3_Double\n - device_id: 61f9c63578d75df91ecb5c6463fb91c8\n domain: zha\n platform: device\n type: remote_button_long_press\n subtype: button_3\n id: 3_Hold\n - device_id: 61f9c63578d75df91ecb5c6463fb91c8\n domain: zha\n platform: device\n type: remote_button_short_press\n subtype: button_4\n id: 4_Single\n - device_id: 61f9c63578d75df91ecb5c6463fb91c8\n domain: zha\n platform: device\n type: remote_button_double_press\n subtype: button_4\n id: 4_Double\n - device_id: 61f9c63578d75df91ecb5c6463fb91c8\n domain: zha\n platform: device\n type: remote_button_long_press\n subtype: button_4\n id: 4_Hold\n - device_id: 61f9c63578d75df91ecb5c6463fb91c8\n domain: zha\n platform: device\n type: remote_button_short_press\n subtype: button_5\n id: 5_Single\n - device_id: 61f9c63578d75df91ecb5c6463fb91c8\n domain: zha\n platform: device\n type: remote_button_double_press\n subtype: button_5\n id: 5_Double\n - device_id: 61f9c63578d75df91ecb5c6463fb91c8\n domain: zha\n platform: device\n type: remote_button_long_press\n subtype: button_5\n id: 5_Hold\n - device_id: 61f9c63578d75df91ecb5c6463fb91c8\n domain: zha\n platform: device\n type: remote_button_short_press\n subtype: button_6\n id: 6_Single\n - device_id: 61f9c63578d75df91ecb5c6463fb91c8\n domain: zha\n platform: device\n type: remote_button_double_press\n subtype: button_6\n id: 6_Double\n - device_id: 61f9c63578d75df91ecb5c6463fb91c8\n domain: zha\n platform: device\n type: remote_button_long_press\n subtype: button_6\n id: 6_Hold\n condition: []\n action:\n - choose:\n - conditions:\n - condition: trigger\n id: 1_Single\n sequence:\n - service: light.toggle\n data:\n transition: 2\n color_temp: 238\n brightness_pct: 100\n target:\n entity_id: light.dining_room_lights\n - conditions:\n - condition: trigger\n id: 1_Double\n sequence:\n - service: light.turn_on\n data:\n transition: 2\n color_temp: 238\n brightness_pct: 100\n target:\n entity_id: light.dining_room_lights\n - conditions:\n - condition: trigger\n id: 1_Hold\n sequence:\n - service: light.turn_off\n data:\n transition: 2\n target:\n entity_id: light.dining_room_lights\n - conditions:\n - condition: trigger\n id: 3_Single\n sequence:\n - service: light.turn_on\n data:\n brightness_step_pct: -10\n target:\n entity_id: light.dining_room_lights\n - conditions:\n - condition: trigger\n id: 4_Single\n sequence:\n - service: light.turn_on\n data:\n brightness_step_pct: 10\n target:\n entity_id: light.dining_room_lights\n - conditions:\n - condition: trigger\n id: 5_Single\n sequence:\n - service: light.turn_on\n data:\n color_temp: '{{state_attr(''light.dining_room_lights'', ''color_temp'')|int\n + 34.6}}\n\n '\n target:\n entity_id: light.dining_room_lights\n - conditions:\n - condition: trigger\n id: 6_Single\n sequence:\n - service: light.turn_on\n data:\n color_temp: '{{state_attr(''light.dining_room_lights'', ''color_temp'')|int\n - 34.6}}\n\n '\n target:\n entity_id: light.dining_room_lights\n mode: restart", "config": [ { "name": "dining room lights", "room": "dining_room", "type": "light", "id": { "entity_id": "light.dining_room_lights", "device_id": null } }, { "name": "dining room lights switch", "room": "dining_room", "type": "remote", "id": { "entity_id": null, "device_id": "61f9c63578d75df91ecb5c6463fb91c8" } } ] }, { "id": "GivEnergy EVC Handler", "automation": "- alias: GivEnergy EVC Handler\n description: ''\n triggers:\n - entity_id:\n - sensor.givenergy_evc_mode\n id: get_evc_mode\n trigger: state\n - entity_id:\n - input_select.givenergy_evc_mode\n id: set_evc_mode\n from: null\n to: null\n trigger: state\n - trigger: state\n entity_id:\n - sensor.givenergy_evc_max_battery_discharge_power\n from: null\n to: null\n id: get_max_discharge_value\n - trigger: state\n entity_id:\n - input_number.givenergy_evc_max_battery_discharge_power\n from: null\n to: null\n id: set_max_discharge_value\n - trigger: state\n entity_id:\n - sensor.givenergy_evc_session_energy_limit\n from: null\n to: null\n id: get_session_limit_value\n - trigger: state\n entity_id:\n - input_number.givenergy_evc_session_energy_limit\n from: null\n to: null\n id: set_session_limit_value\n - trigger: state\n entity_id:\n - sensor.givenergy_evc_max_import_capacity\n from: null\n to: null\n id: get_max_import_capacity_value\n - trigger: state\n entity_id:\n - input_number.givenergy_evc_max_import_capacity\n from: null\n to: null\n id: set_max_import_capacity_value\n - trigger: state\n entity_id:\n - sensor.givenergy_evc_solar_export_split\n from: null\n to: null\n id: get_solar_split_value\n - trigger: state\n entity_id:\n - input_number.givenergy_evc_solar_export_split\n from: null\n to: null\n id: set_solar_split_value\n - entity_id:\n - sensor.givenergy_evc_inverter_control_mode\n id: get_inverter_control_mode\n trigger: state\n - entity_id:\n - input_select.givenergy_evc_configure_inverter_mode\n id: set_inverter_control_mode\n from: null\n to: null\n trigger: state\n - trigger: state\n entity_id:\n - sensor.givenergy_evc_charge_power_limit\n from: null\n to: null\n id: get_charge_power_limit_value\n - trigger: state\n entity_id:\n - input_number.givenergy_evc_charge_power_limit\n from: null\n to: null\n id: set_charge_power_limit_value\n - entity_id:\n - sensor.givenergy_evc_configuration_mode\n id: get_configuration_mode\n trigger: state\n - entity_id:\n - input_select.givenergy_evc_configuration_mode\n id: set_configuration_mode\n from: null\n to: null\n trigger: state\n conditions: []\n actions:\n - choose:\n - conditions:\n - condition: trigger\n id:\n - get_evc_mode\n sequence:\n - metadata: {}\n data:\n option: '{{ states(''sensor.givenergy_evc_mode'') }}'\n target:\n entity_id: input_select.givenergy_evc_mode\n action: input_select.select_option\n - conditions:\n - condition: trigger\n id:\n - set_evc_mode\n sequence:\n - metadata: {}\n data_template:\n mode: \"{% if is_state('input_select.givenergy_evc_mode','Hybrid') %}\\n \\\n \\ Eco\\n{% elif is_state('input_select.givenergy_evc_mode','Solar') %}\\n\\\n \\ SuperEco\\n{% elif is_state('input_select.givenergy_evc_mode','Grid')\\\n \\ %}\\n Boost\\n{% else %}\\n ModbusSlave\\n{% endif %}\\n\"\n action: rest_command.givenergy_evc_setmode\n - conditions:\n - condition: trigger\n id:\n - get_max_discharge_value\n sequence:\n - action: input_number.set_value\n metadata: {}\n data:\n value: '{{ states(''sensor.givenergy_evc_max_battery_discharge_power'')|float\n }}'\n target:\n entity_id: input_number.givenergy_evc_max_battery_discharge_power\n - conditions:\n - condition: trigger\n id:\n - set_max_discharge_value\n sequence:\n - metadata: {}\n data: {}\n action: rest_command.givenergy_evc_configure_inverter_control\n - conditions:\n - condition: trigger\n id:\n - get_session_limit_value\n sequence:\n - action: input_number.set_value\n metadata: {}\n data:\n value: '{{ states(''sensor.givenergy_evc_session_energy_limit'')|float }}'\n target:\n entity_id: input_number.givenergy_evc_session_energy_limit\n - conditions:\n - condition: trigger\n id:\n - set_session_limit_value\n sequence:\n - metadata: {}\n data_template:\n limit: '{{ states(''input_number.givenergy_evc_session_energy_limit'')|float\n }}\n\n '\n action: rest_command.givenergy_evc_session_energy_limit\n - conditions:\n - condition: trigger\n id:\n - get_max_import_capacity_value\n sequence:\n - action: input_number.set_value\n metadata: {}\n data:\n value: '{{ states(''sensor.givenergy_evc_max_import_capacity'')|int }}'\n target:\n entity_id: input_number.givenergy_evc_max_import_capacity\n - conditions:\n - condition: trigger\n id:\n - set_max_import_capacity_value\n sequence:\n - metadata: {}\n data_template:\n value: '{{ states(''input_number.givenergy_evc_max_import_capacity'')|int\n }}\n\n '\n action: rest_command.givenergy_evc_max_import_capacity\n - conditions:\n - condition: trigger\n id:\n - get_solar_split_value\n sequence:\n - action: input_number.set_value\n metadata: {}\n data:\n value: '{{ states(''sensor.givenergy_evc_solar_export_split'')|float }}'\n target:\n entity_id: input_number.givenergy_evc_solar_export_split\n - conditions:\n - condition: trigger\n id:\n - set_solar_split_value\n sequence:\n - metadata: {}\n data: {}\n action: rest_command.givenergy_evc_configure_inverter_control\n - conditions:\n - condition: trigger\n id:\n - get_inverter_control_mode\n sequence:\n - metadata: {}\n data:\n option: \"{% if is_state('sensor.givenergy_evc_inverter_control_mode','SuperEco')\\\n \\ %}\\n Solar\\n{% elif is_state('sensor.givenergy_evc_inverter_control_mode','Eco')\\\n \\ %}\\n Hybrid\\n{% else %}\\n Boost\\n{% endif %}\"\n target:\n entity_id: input_select.givenergy_evc_configure_inverter_mode\n action: input_select.select_option\n - conditions:\n - condition: trigger\n id:\n - set_inverter_control_mode\n sequence:\n - metadata: {}\n data: {}\n action: rest_command.givenergy_evc_configure_inverter_control\n - conditions:\n - condition: trigger\n id:\n - get_charge_power_limit_value\n sequence:\n - action: input_number.set_value\n metadata: {}\n data:\n value: '{{ states(''sensor.givenergy_evc_charge_power_limit'')|int }}'\n target:\n entity_id: input_number.givenergy_evc_charge_power_limit\n - conditions:\n - condition: trigger\n id:\n - set_charge_power_limit_value\n sequence:\n - metadata: {}\n data_template:\n value: '{{ states(''input_number.givenergy_evc_charge_power_limit'')|int\n }}\n\n '\n action: rest_command.givenergy_evc_charge_power_limit\n - conditions:\n - condition: trigger\n id:\n - get_configuration_mode\n sequence:\n - metadata: {}\n data:\n option: \"{% if is_state('sensor.givenergy_evc_configuration_mode','A') %}\\n\\\n \\ A: Standalone\\n{% elif is_state('sensor.givenergy_evc_configuration_mode','B')\\\n \\ %}\\n B: Standalone with PV\\n{% elif is_state('sensor.givenergy_evc_configuration_mode','C')\\\n \\ %}\\n C: CT Meter\\n{% elif is_state('sensor.givenergy_evc_configuration_mode','D')\\\n \\ %}\\n D: Inverter Cloud Control\\n{% else %}\\n Unknown\\n{% endif %}\\n\"\n target:\n entity_id: input_select.givenergy_evc_configuration_mode\n action: input_select.select_option\n - conditions:\n - condition: trigger\n id:\n - set_configuration_mode\n sequence:\n - metadata: {}\n data_template:\n mode: \"{% if is_state('input_select.givenergy_evc_configuration_mode','A:\\\n \\ Standalone') %}\\n A\\n{% elif is_state('input_select.givenergy_evc_configuration_mode','B:\\\n \\ Standalone with PV') %}\\n B\\n{% elif is_state('input_select.givenergy_evc_configuration_mode','C:\\\n \\ CT Meter') %}\\n C\\n{% elif is_state('input_select.givenergy_evc_configuration_mode','D:\\\n \\ Inverter Cloud Control') %}\\n D\\n{% else %}\\n Unknown\\n{% endif %}\\n\"\n action: rest_command.givenergy_evc_set_configuration_mode\n mode: parallel\n max: 30", "config": [ { "name": "GivEnergy EVC Charge Power Limit Input", "room": null, "type": "input_number", "id": { "entity_id": "input_number.givenergy_evc_charge_power_limit", "device_id": null } }, { "name": "GivEnergy EVC Max Battery Discharge Power Input", "room": null, "type": "input_number", "id": { "entity_id": "input_number.givenergy_evc_max_battery_discharge_power", "device_id": null } }, { "name": "GivEnergy EVC Max Import Capacity Input", "room": null, "type": "input_number", "id": { "entity_id": "input_number.givenergy_evc_max_import_capacity", "device_id": null } }, { "name": "GivEnergy EVC Session Energy Limit Input", "room": null, "type": "input_number", "id": { "entity_id": "input_number.givenergy_evc_session_energy_limit", "device_id": null } }, { "name": "GivEnergy EVC Solar Export Split Input", "room": null, "type": "input_number", "id": { "entity_id": "input_number.givenergy_evc_solar_export_split", "device_id": null } }, { "name": "GivEnergy EVC Configuration Mode Select", "room": null, "type": "input_select", "id": { "entity_id": "input_select.givenergy_evc_configuration_mode", "device_id": null } }, { "name": "GivEnergy EVC Configure Inverter Mode Select", "room": null, "type": "input_select", "id": { "entity_id": "input_select.givenergy_evc_configure_inverter_mode", "device_id": null } }, { "name": "GivEnergy EVC Mode Select", "room": null, "type": "input_select", "id": { "entity_id": "input_select.givenergy_evc_mode", "device_id": null } }, { "name": "GivEnergy EVC Charge Power Limit Sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.givenergy_evc_charge_power_limit", "device_id": null } }, { "name": "GivEnergy EVC Configuration Mode Sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.givenergy_evc_configuration_mode", "device_id": null } }, { "name": "GivEnergy EVC Inverter Control Mode Sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.givenergy_evc_inverter_control_mode", "device_id": null } }, { "name": "GivEnergy EVC Max Battery Discharge Power Sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.givenergy_evc_max_battery_discharge_power", "device_id": null } }, { "name": "GivEnergy EVC Max Import Capacity Sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.givenergy_evc_max_import_capacity", "device_id": null } }, { "name": "GivEnergy EVC Mode Sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.givenergy_evc_mode", "device_id": null } }, { "name": "GivEnergy EVC Session Energy Limit Sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.givenergy_evc_session_energy_limit", "device_id": null } }, { "name": "GivEnergy EVC Solar Export Split Sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.givenergy_evc_solar_export_split", "device_id": null } } ] }, { "id": "Grid Status Notifications", "automation": "- alias: Grid Status Notifications\n description: Notifies loss / resumption of grid status to home battery system\n trigger:\n - platform: state\n entity_id:\n - binary_sensor.grid_status\n from: 'off'\n to: 'on'\n for:\n hours: 0\n minutes: 0\n seconds: 10\n id: grid_lost\n - platform: state\n entity_id:\n - binary_sensor.grid_status\n from: 'on'\n to: 'off'\n for:\n hours: 0\n minutes: 0\n seconds: 10\n id: grid_resumed\n condition: []\n action:\n - if:\n - condition: trigger\n id:\n - grid_lost\n then:\n - service: script.notification_handler\n data_template:\n is_critical: false\n is_debug: false\n is_system: false\n message: \"Connection to the grid lost - house is on battery. \\nCurrent load\\\n \\ is {{ states('sensor.givtcp_XXXXXXXXXX_load_power')|int }}W.\\nCurrent\\\n \\ state of charge is {{ states('sensor.givtcp_XXXXXXXXXX_soc')|int }}%.\\n\\\n Battery will last approximately {{ ((states('sensor.givtcp_XXXXXXXXXX_discharge_time_remaining')|int)/60)|int\\\n \\ }} hours.\\n\"\n - if:\n - condition: trigger\n id:\n - grid_resumed\n then:\n - service: script.notification_handler\n data_template:\n is_critical: false\n is_debug: false\n is_system: false\n message: 'Connection to the grid resumed.\n\n Current load is {{ states(''sensor.givtcp_XXXXXXXXXX_load_power'')|int }}W.\n\n Current battery state of charge is {{ states(''sensor.givtcp_XXXXXXXXXX_soc'')|int\n }}%.\n\n '\n mode: single", "config": [ { "name": "grid status sensor", "room": "home", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.grid_status", "device_id": null } }, { "name": "Notification Handler Script", "room": null, "type": "script", "id": { "entity_id": "script.notification_handler", "device_id": null } } ] }, { "id": "Extract Event Details from Email", "automation": "- alias: Extract Event Details from Email\n trigger:\n - platform: event\n event_type: imap_content\n condition:\n - condition: template\n value_template: '{{ \"Fill your boots on\" in trigger.event.data[''text''] }}\n\n '\n action:\n - variables:\n email_content: '{{ trigger.event.data[''text''] }}'\n regex_date: Fill your boots on {{ states('input_text.octopus_free_electricity_regex_date')|string\n }}\n regex_start: Fill your boots on {{ states('input_text.octopus_free_electricity_regex_start')|string\n }}\n regex_end: Fill your boots on {{ states('input_text.octopus_free_electricity_regex_end')|string\n }}\n event_date: '{% set match = email_content | regex_findall_index(regex_date)\n %} {{ match if match else None }}\n\n '\n start_time_raw: '{% set regex_date = states(''input_text.octopus_free_electricity_regex_start'')\n %} {% set match = email_content | regex_findall_index(regex_start) %} {{ match\n if match else None }}\n\n '\n end_time_raw: '{% set regex_date = states(''input_text.octopus_free_electricity_regex_end'')\n %} {% set match = email_content | regex_findall_index(regex_end) %} {{ match\n if match else None }}\n\n '\n start_time: \"{% if start_time_raw is not none %}\\n {{ (start_time_raw | int\\\n \\ + 12) if 'pm' in email_content and start_time_raw | int < 12 else start_time_raw\\\n \\ | int }}\\n{% else %}\\n None\\n{% endif %}\\n\"\n end_time: \"{% if end_time_raw is not none %}\\n {{ (end_time_raw | int + 12)\\\n \\ if 'pm' in email_content and end_time_raw | int < 12 else end_time_raw |\\\n \\ int }}\\n{% else %}\\n None\\n{% endif %}\\n\"\n start_datetime: \"{% if event_date and start_time is not none %}\\n {% set current_year\\\n \\ = now().year %}\\n {% set parsed_date = strptime(event_date + ' ' + current_year|string,\\\n \\ '%A %d %B %Y') %}\\n {% if parsed_date < now().replace(tzinfo=None) %}\\n\\\n \\ {% set parsed_date = strptime(event_date + ' ' + (current_year + 1)|string,\\\n \\ '%A %d %B %Y') %}\\n {% endif %}\\n {{ parsed_date.strftime('%Y-%m-%d')\\\n \\ }} {{ '%02d:00:00' | format(start_time) }}\\n{% else %}\\n None\\n{% endif\\\n \\ %}\\n\"\n end_datetime: \"{% if event_date and end_time is not none %}\\n {% set current_year\\\n \\ = now().year %}\\n {% set parsed_date = strptime(event_date + ' ' + current_year|string,\\\n \\ '%A %d %B %Y') %}\\n {% if parsed_date < now().replace(tzinfo=None) %}\\n\\\n \\ {% set parsed_date = strptime(event_date + ' ' + (current_year + 1)|string,\\\n \\ '%A %d %B %Y') %}\\n {% endif %}\\n {{ parsed_date.strftime('%Y-%m-%d')\\\n \\ }} {{ '%02d:00:00' | format(end_time) }}\\n{% else %}\\n None\\n{% endif %}\\n\"\n - target:\n entity_id: input_datetime.octopus_free_electricity_start\n data:\n datetime: '{{ start_datetime if start_datetime is not none else ''1970-01-01\n 00:00:00'' }}\n\n '\n action: input_datetime.set_datetime\n - target:\n entity_id: input_datetime.octopus_free_electricity_end\n data:\n datetime: '{{ end_datetime if end_datetime is not none else ''1970-01-01 00:00:00''\n }}\n\n '\n action: input_datetime.set_datetime", "config": [ { "name": "octopus free electricity start time", "room": "home", "type": "input_datetime", "id": { "entity_id": "input_datetime.octopus_free_electricity_start", "device_id": null } }, { "name": "octopus free electricity end time", "room": "home", "type": "input_datetime", "id": { "entity_id": "input_datetime.octopus_free_electricity_end", "device_id": null } }, { "name": "octopus free electricity regex date", "room": "home", "type": "input_text", "id": { "entity_id": "input_text.octopus_free_electricity_regex_date", "device_id": null } }, { "name": "octopus free electricity regex start", "room": "home", "type": "input_text", "id": { "entity_id": "input_text.octopus_free_electricity_regex_start", "device_id": null } }, { "name": "octopus free electricity regex end", "room": "home", "type": "input_text", "id": { "entity_id": "input_text.octopus_free_electricity_regex_end", "device_id": null } } ] } ]