[ { "id": "656132f5-bee7-4691-8ae4-d7e41f462d5d", "automation": "- id: 656132f5-bee7-4691-8ae4-d7e41f462d5d\n alias: Workday alarm\n triggers:\n - trigger: time\n at: input_datetime.workday_alarm_time\n conditions:\n - condition: state\n entity_id: person.bom\n state: home\n - condition: state\n entity_id: binary_sensor.workday_sensor\n state: 'on'\n - condition: state\n entity_id: input_boolean.alarm\n state: 'on'\n - condition: or\n conditions:\n - condition: template\n value_template: '{{ (is_state(''input_boolean.monday_friday_alarm'', ''on''))}}'\n - condition: template\n value_template: '{{ (is_state(''input_boolean.monday_friday_alarm'', ''off'')\n and now().strftime(''%w'') not in [''1'',''5'']) }}'\n actions:\n - action: media_player.volume_set\n data:\n volume_level: 0\n target:\n entity_id: media_player.bedroom_display\n - action: media_player.play_media\n data:\n media_content_id: media-source://radio_browser/ea8059be-d119-4de3-b27b-0d9bd6aedb17\n media_content_type: audio/mpeg\n target:\n entity_id: media_player.bedroom_display\n - repeat:\n count: 3\n sequence:\n - action: media_player.volume_set\n data:\n volume_level: '{{ repeat.index * 0.1 }}'\n target:\n entity_id: media_player.bedroom_display\n - delay: 00:00:20", "config": [ { "name": "workday alarm time", "room": null, "type": "input_datetime", "id": { "entity_id": "input_datetime.workday_alarm_time", "device_id": null } }, { "name": "bom person", "room": null, "type": "person", "id": { "entity_id": "person.bom", "device_id": null } }, { "name": "workday sensor", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.workday_sensor", "device_id": null } }, { "name": "alarm", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.alarm", "device_id": null } }, { "name": "monday friday alarm", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.monday_friday_alarm", "device_id": null } }, { "name": "bedroom display", "room": "bedroom", "type": "media_player", "id": { "entity_id": "media_player.bedroom_display", "device_id": null } }, { "name": "bedroom media player", "room": "bedroom", "type": "media_player", "id": { "entity_id": "media_player.bedroom", "device_id": null } } ] }, { "id": "c1154511-3a8e-4147-9e23-be6f21c1e3b6", "automation": "- id: c1154511-3a8e-4147-9e23-be6f21c1e3b6\n alias: Turn on alarm next day if off\n trigger:\n - trigger: template\n value_template: '{{ now().strftime(''%H:%M'') == state_attr(''input_datetime.workday_alarm_time'',\n ''timestamp'') + 5*60 | timestamp_custom(''%H:%M'', false) }}'\n condition:\n - condition: state\n entity_id: input_boolean.alarm\n state: 'off'\n action:\n - action: input_boolean.turn_on\n target:\n entity_id: input_boolean.alarm", "config": [ { "name": "workday alarm time", "room": null, "type": "input_datetime", "id": { "entity_id": "input_datetime.workday_alarm_time", "device_id": null } }, { "name": "alarm", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.alarm", "device_id": null } } ] }, { "id": "400c1781-149c-48d7-8042-e313509316f4", "automation": "- id: 400c1781-149c-48d7-8042-e313509316f4\n alias: Adaptive Light\n triggers:\n - trigger: template\n value_template: '{{ now().strftime(''%H:%M'') == (state_attr(''input_datetime.workday_alarm_time'',\n ''timestamp'') - 30*60) | timestamp_custom(''%H:%M'', false) }}\n\n '\n conditions:\n - condition: state\n entity_id: person.bom\n state: home\n - condition: state\n entity_id: binary_sensor.workday_sensor\n state: 'on'\n - condition: state\n entity_id: input_boolean.alarm\n state: 'on'\n - condition: or\n conditions:\n - condition: template\n value_template: '{{ (is_state(''input_boolean.monday_friday_alarm'', ''on''))}}'\n - condition: template\n value_template: '{{ (is_state(''input_boolean.monday_friday_alarm'', ''off'')\n and now().strftime(''%w'') not in [''1'',''5'']) }}'\n actions:\n - repeat:\n count: 30\n sequence:\n - action: light.turn_on\n target:\n entity_id:\n - group.kitchen_lights\n data:\n brightness: '{{ 255 / 30 * repeat.index | int }}'\n color_temp: '{{ 370 - (repeat.index * (120 / 30)) | int }}'\n - delay: 00:01:00", "config": [ { "name": "workday alarm time", "room": null, "type": "input_datetime", "id": { "entity_id": "input_datetime.workday_alarm_time", "device_id": null } }, { "name": "bom person", "room": null, "type": "person", "id": { "entity_id": "person.bom", "device_id": null } }, { "name": "workday sensor", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.workday_sensor", "device_id": null } }, { "name": "alarm", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.alarm", "device_id": null } }, { "name": "monday friday alarm", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.monday_friday_alarm", "device_id": null } }, { "name": "kitchen lights", "room": "kitchen", "type": "light", "id": { "entity_id": "group.kitchen_lights", "device_id": null } } ] }, { "id": "84f5763d-7154-411d-8993-45088630ffec", "automation": "- id: 84f5763d-7154-411d-8993-45088630ffec\n alias: Turn on Alarm automations\n triggers:\n - trigger: template\n value_template: '{{ now().strftime(''%H:%M'') == (state_attr(''input_datetime.workday_alarm_time'',\n ''timestamp'') + 5*60) | timestamp_custom(''%H:%M'', false) }}\n\n '\n actions:\n - if:\n - condition: state\n entity_id: automation.adaptive_light_in_the_morning\n state: 'off'\n then:\n - action: automation.turn_on\n target:\n entity_id: automation.adaptive_light_in_the_morning\n - if:\n - condition: state\n entity_id: automation.workday_alarm\n state: 'off'\n then:\n - action: automation.turn_on\n target:\n entity_id: automation.workday_alarm", "config": [ { "name": "workday alarm time", "room": null, "type": "input_datetime", "id": { "entity_id": "input_datetime.workday_alarm_time", "device_id": null } }, { "name": "adaptive light in the morning", "room": null, "type": "automation", "id": { "entity_id": "automation.adaptive_light_in_the_morning", "device_id": null } }, { "name": "workday alarm automation", "room": null, "type": "automation", "id": { "entity_id": "automation.workday_alarm", "device_id": null } } ] }, { "id": "266c2494-ea35-4d5b-9797-50c844b3ca9c", "automation": "- id: 266c2494-ea35-4d5b-9797-50c844b3ca9c\n alias: Turn on appliances when the first person arrives home\n triggers:\n - trigger: state\n entity_id: group.family_members\n from: not_home\n to: home\n actions:\n - action: light.turn_on\n target:\n entity_id:\n - group.kitchen_lights\n - light.bedroom_light", "config": [ { "name": "family members", "room": null, "type": "group", "id": { "entity_id": "group.family_members", "device_id": null } }, { "name": "kitchen lights", "room": "kitchen", "type": "light", "id": { "entity_id": "group.kitchen_lights", "device_id": null } }, { "name": "bedroom light", "room": "bedroom", "type": "light", "id": { "entity_id": "light.bedroom_light", "device_id": null } } ] }, { "id": "f4fb78a0-c527-4189-a034-f9f30408d1da", "automation": "- id: f4fb78a0-c527-4189-a034-f9f30408d1da\n alias: Turn off appliances when the last person leaves home\n triggers:\n - trigger: state\n entity_id: group.family_members\n from: home\n to: not_home\n actions:\n - action: google_assistant_sdk.send_text_command\n data:\n command: Turn off air conditioner\n - action: light.turn_off\n target:\n entity_id:\n - group.kitchen_lights\n - light.bath_1\n - light.closet_1\n - light.toilet_1\n - light.bedroom_light\n - action: switch.turn_off\n target:\n entity_id:\n - switch.smart_plug\n - switch.smart_plug_2\n - action: media_player.media_pause\n target:\n entity_id: media_player.bedroom", "config": [ { "name": "family members", "room": null, "type": "group", "id": { "entity_id": "group.family_members", "device_id": null } }, { "name": "kitchen lights", "room": "kitchen", "type": "light", "id": { "entity_id": "group.kitchen_lights", "device_id": null } }, { "name": "bedroom light", "room": "bedroom", "type": "light", "id": { "entity_id": "light.bedroom_light", "device_id": null } }, { "name": "bath 1 light", "room": "bathroom", "type": "light", "id": { "entity_id": "light.bath_1", "device_id": null } }, { "name": "closet 1 light", "room": "closet", "type": "light", "id": { "entity_id": "light.closet_1", "device_id": null } }, { "name": "toilet 1 light", "room": "toilet", "type": "light", "id": { "entity_id": "light.toilet_1", "device_id": null } }, { "name": "smart plug", "room": null, "type": "switch", "id": { "entity_id": "switch.smart_plug", "device_id": null } }, { "name": "smart plug 2", "room": null, "type": "switch", "id": { "entity_id": "switch.smart_plug_2", "device_id": null } }, { "name": "bedroom media player", "room": "bedroom", "type": "media_player", "id": { "entity_id": "media_player.bedroom", "device_id": null } } ] }, { "id": "972ddcfd-ef9b-4fbd-a0f5-3a17c7d70a8d", "automation": "- id: 972ddcfd-ef9b-4fbd-a0f5-3a17c7d70a8d\n alias: Turn on air purifier when the first person arrives home\n triggers:\n - trigger: state\n entity_id: group.family_members\n from: not_home\n to: home\n actions:\n - action: media_player.play_media\n target:\n entity_id: media_player.bom_s_echo_dot\n data:\n media_content_type: custom\n media_content_id: ダイキンで空気清浄機を運転して", "config": [ { "name": "family members", "room": null, "type": "group", "id": { "entity_id": "group.family_members", "device_id": null } }, { "name": "bom's echo dot", "room": null, "type": "media_player", "id": { "entity_id": "media_player.bom_s_echo_dot", "device_id": null } } ] }, { "id": "f7ca8b68-2226-42d4-aca2-32b45d98bf19", "automation": "- id: f7ca8b68-2226-42d4-aca2-32b45d98bf19\n alias: Turn off air purifier when the last person leaves home\n triggers:\n - trigger: state\n entity_id: group.family_members\n from: home\n to: not_home\n actions:\n - action: media_player.play_media\n target:\n entity_id: media_player.bom_s_echo_dot\n data:\n media_content_type: custom\n media_content_id: ダイキンで空気清浄機を消して", "config": [ { "name": "family members", "room": null, "type": "group", "id": { "entity_id": "group.family_members", "device_id": null } }, { "name": "bom's echo dot", "room": null, "type": "media_player", "id": { "entity_id": "media_player.bom_s_echo_dot", "device_id": null } } ] }, { "id": "f4fb78a0-c527-4189-a034-f9f30408d1da", "automation": "- id: f4fb78a0-c527-4189-a034-f9f30408d1da\n alias: Turn off appliances\n triggers:\n - trigger: state\n entity_id: group.family_members\n from: home\n to: not_home\n actions:\n - action: google_assistant_sdk.send_text_command\n data:\n command: Turn off bedroom air conditioner\n - action: light.turn_off\n target:\n entity_id:\n - group.kitchen_lights\n - light.bath_1\n - light.closet_1\n - light.toilet_1\n - light.bedroom_light\n - action: switch.turn_off\n target:\n entity_id:\n - switch.smart_plug\n - switch.smart_plug_2\n - action: media_player.media_pause\n target:\n entity_id: media_player.bedroom", "config": [ { "name": "family members", "room": null, "type": "group", "id": { "entity_id": "group.family_members", "device_id": null } }, { "name": "kitchen lights", "room": "kitchen", "type": "light", "id": { "entity_id": "group.kitchen_lights", "device_id": null } }, { "name": "bedroom light", "room": "bedroom", "type": "light", "id": { "entity_id": "light.bedroom_light", "device_id": null } }, { "name": "bath 1 light", "room": "bathroom", "type": "light", "id": { "entity_id": "light.bath_1", "device_id": null } }, { "name": "closet 1 light", "room": "closet", "type": "light", "id": { "entity_id": "light.closet_1", "device_id": null } }, { "name": "toilet 1 light", "room": "toilet", "type": "light", "id": { "entity_id": "light.toilet_1", "device_id": null } }, { "name": "smart plug", "room": null, "type": "switch", "id": { "entity_id": "switch.smart_plug", "device_id": null } }, { "name": "smart plug 2", "room": null, "type": "switch", "id": { "entity_id": "switch.smart_plug_2", "device_id": null } }, { "name": "bedroom media player", "room": "bedroom", "type": "media_player", "id": { "entity_id": "media_player.bedroom", "device_id": null } } ] }, { "id": "f7ca8b68-2226-42d4-aca2-32b45d98bf19", "automation": "- id: f7ca8b68-2226-42d4-aca2-32b45d98bf19\n alias: Turn off air purifier\n triggers:\n - trigger: state\n entity_id: group.family_members\n from: home\n to: not_home\n actions:\n - action: media_player.play_media\n target:\n entity_id: media_player.bom_s_echo_dot\n data:\n media_content_type: custom\n media_content_id: ダイキンで空気清浄機を消して", "config": [ { "name": "family members", "room": null, "type": "group", "id": { "entity_id": "group.family_members", "device_id": null } }, { "name": "bom's echo dot", "room": null, "type": "media_player", "id": { "entity_id": "media_player.bom_s_echo_dot", "device_id": null } } ] }, { "id": "dd3d659f-1e44-4e95-9cff-93d7749a8baa", "automation": "- id: dd3d659f-1e44-4e95-9cff-93d7749a8baa\n alias: Open the curtains\n triggers:\n - trigger: time\n at: 09:00:00\n conditions:\n - condition: state\n entity_id: group.family_members\n state: home\n - condition: state\n entity_id: input_boolean.alarm\n state: 'on'\n actions:\n - action: cover.open_cover\n target:\n entity_id: cover.windowcovering", "config": [ { "name": "alarm", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.alarm", "device_id": null } }, { "name": "family members", "room": null, "type": "group", "id": { "entity_id": "group.family_members", "device_id": null } }, { "name": "window covering", "room": null, "type": "cover", "id": { "entity_id": "cover.windowcovering", "device_id": null } } ] }, { "id": "1f115262-36f4-48c7-81f7-770e271908bc", "automation": "- id: 1f115262-36f4-48c7-81f7-770e271908bc\n alias: Close the curtains\n triggers:\n - trigger: sun\n event: sunset\n actions:\n - action: cover.close_cover\n target:\n entity_id: cover.windowcovering", "config": [ { "name": "window covering", "room": null, "type": "cover", "id": { "entity_id": "cover.windowcovering", "device_id": null } } ] }, { "id": "266c2494-ea35-4d5b-9797-50c844b3ca9c", "automation": "- id: 266c2494-ea35-4d5b-9797-50c844b3ca9c\n alias: Turn on lights\n triggers:\n - trigger: state\n entity_id: group.family_members\n from: not_home\n to: home\n actions:\n - action: light.turn_on\n target:\n entity_id:\n - group.kitchen_lights\n - light.bedroom_light", "config": [ { "name": "family members", "room": null, "type": "group", "id": { "entity_id": "group.family_members", "device_id": null } }, { "name": "kitchen lights", "room": "kitchen", "type": "light", "id": { "entity_id": "group.kitchen_lights", "device_id": null } }, { "name": "bedroom light", "room": "bedroom", "type": "light", "id": { "entity_id": "light.bedroom_light", "device_id": null } } ] }, { "id": "972ddcfd-ef9b-4fbd-a0f5-3a17c7d70a8d", "automation": "- id: 972ddcfd-ef9b-4fbd-a0f5-3a17c7d70a8d\n alias: Turn on air purifier\n triggers:\n - trigger: state\n entity_id: group.family_members\n from: not_home\n to: home\n actions:\n - action: media_player.play_media\n target:\n entity_id: media_player.bom_s_echo_dot\n data:\n media_content_type: custom\n media_content_id: ダイキンで空気清浄機を運転して", "config": [ { "name": "family members", "room": null, "type": "group", "id": { "entity_id": "group.family_members", "device_id": null } }, { "name": "bom's echo dot", "room": null, "type": "media_player", "id": { "entity_id": "media_player.bom_s_echo_dot", "device_id": null } } ] }, { "id": "40d066b5-1a17-43df-8494-ef79a77bba9e", "automation": "- id: 40d066b5-1a17-43df-8494-ef79a77bba9e\n alias: Air conditioner in warm mode\n triggers:\n trigger: state\n entity_id: group.family_members\n from: not_home\n to: home\n conditions:\n - condition: template\n value_template: '{{ states(''sensor.outdoor_temperature'') | float < states(''input_number.warm_temp'')\n | float }}'\n actions:\n - action: google_assistant_sdk.send_text_command\n data:\n command: Turn on the heat\n - delay: 00:00:03\n - action: google_assistant_sdk.send_text_command\n data:\n command: Set the temperature to 22", "config": [ { "name": "family members", "room": null, "type": "group", "id": { "entity_id": "group.family_members", "device_id": null } }, { "name": "outdoor temperature sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.outdoor_temperature", "device_id": null } }, { "name": "warm temperature input", "room": null, "type": "input_number", "id": { "entity_id": "input_number.warm_temp", "device_id": null } } ] }, { "id": "591a2b37-7273-4115-accc-a8eee06d5f95", "automation": "- id: 591a2b37-7273-4115-accc-a8eee06d5f95\n alias: Air conditioner in cool mode\n triggers:\n trigger: state\n entity_id: group.family_members\n from: not_home\n to: home\n conditions:\n - condition: template\n value_template: '{{ states(''sensor.qingping_air_monitor_lite_temperature'') |\n float > states(''input_number.cool_temp'') | float }}'\n actions:\n - action: google_assistant_sdk.send_text_command\n data:\n command: Turn on the cooling\n - delay: 00:00:03\n - action: google_assistant_sdk.send_text_command\n data:\n command: Set the temperature to {{ states('input_number.cool_temp') | float\n | round(0) }}", "config": [ { "name": "family members", "room": null, "type": "group", "id": { "entity_id": "group.family_members", "device_id": null } }, { "name": "qingping air monitor lite temperature", "room": null, "type": "sensor", "id": { "entity_id": "sensor.qingping_air_monitor_lite_temperature", "device_id": null } }, { "name": "cool temperature input", "room": null, "type": "input_number", "id": { "entity_id": "input_number.cool_temp", "device_id": null } } ] }, { "id": "a7a41029-3b03-4eb2-86e3-0474ac1c9d35", "automation": "- id: a7a41029-3b03-4eb2-86e3-0474ac1c9d35\n alias: Turn on bedroom light when the first person arrives home after sunset before\n sunrise\n triggers:\n - trigger: state\n entity_id: group.family_members\n from: not_home\n to: home\n conditions:\n - alias: Sun down\n condition: state\n entity_id: sun.sun\n state: below_horizon\n actions:\n - action: light.turn_off\n target:\n entity_id:\n - light.bedroom_light", "config": [ { "name": "family members", "room": null, "type": "group", "id": { "entity_id": "group.family_members", "device_id": null } }, { "name": "bedroom light", "room": "bedroom", "type": "light", "id": { "entity_id": "light.bedroom_light", "device_id": null } }, { "name": "sun", "room": null, "type": "sun", "id": { "entity_id": "sun.sun", "device_id": null } } ] }, { "id": "2f02ff5e-12d4-4c9a-b2ec-bae05dceae5a", "automation": "- id: 2f02ff5e-12d4-4c9a-b2ec-bae05dceae5a\n alias: Difference between today and tomorrow's temperature\n triggers:\n - trigger: time\n at: '21:00:00'\n actions:\n - action: notify.mobile_app_boms_iphone\n data:\n title: '{{ states(''sensor.low_temperature_forecast_tomorrow'') | float | round(1)\n }}° / {{ states(''sensor.temperature_forecast_tomorrow'') | float | round(1)\n }}° '\n message: '{%- set low_today = states(''sensor.low_temperature_forecast_today'')\n | float %} {%- set low_tomorrow = states(''sensor.low_temperature_forecast_tomorrow'')\n | float %} {%- set low_diff = low_tomorrow - low_today %} {%- set high_today\n = states(''sensor.temperature_forecast_today'') | float %} {%- set high_tomorrow\n = states(''sensor.temperature_forecast_tomorrow'') | float %} {%- set high_diff\n = high_tomorrow - high_today %} {{ low_diff | round(1) }}° / {{ high_diff\n | round(1) }}°'", "config": [ { "name": "low temperature forecast tomorrow", "room": null, "type": "sensor", "id": { "entity_id": "sensor.low_temperature_forecast_tomorrow", "device_id": null } }, { "name": "temperature forecast tomorrow", "room": null, "type": "sensor", "id": { "entity_id": "sensor.temperature_forecast_tomorrow", "device_id": null } }, { "name": "low temperature forecast today", "room": null, "type": "sensor", "id": { "entity_id": "sensor.low_temperature_forecast_today", "device_id": null } }, { "name": "temperature forecast today", "room": null, "type": "sensor", "id": { "entity_id": "sensor.temperature_forecast_today", "device_id": null } }, { "name": "mobile app boms iphone", "room": null, "type": "notify", "id": { "entity_id": "notify.mobile_app_boms_iphone", "device_id": null } } ] }, { "id": "4f4f3157-181b-4906-a1e8-7122b96c9f4f", "automation": "- id: 4f4f3157-181b-4906-a1e8-7122b96c9f4f\n alias: Rainy at workdays\n triggers:\n - trigger: time\n at: input_datetime.workday_alarm_time\n conditions:\n - alias: It is workday\n condition: state\n entity_id: binary_sensor.workday_sensor\n state: 'on'\n - condition: template\n value_template: '{{ states(''sensor.precipitation_forecast_today_work'') | float\n | round(0) > 0 }}'\n actions:\n - action: notify.mobile_app_boms_iphone\n data:\n message: \"Rain is forecast {{ states('sensor.precipitation_forecast_today_work')\\\n \\ | float }}mm at work today. \\n\"", "config": [ { "name": "workday alarm time", "room": null, "type": "input_datetime", "id": { "entity_id": "input_datetime.workday_alarm_time", "device_id": null } }, { "name": "workday sensor", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.workday_sensor", "device_id": null } }, { "name": "precipitation forecast today work", "room": null, "type": "sensor", "id": { "entity_id": "sensor.precipitation_forecast_today_work", "device_id": null } }, { "name": "mobile app boms iphone", "room": null, "type": "notify", "id": { "entity_id": "notify.mobile_app_boms_iphone", "device_id": null } } ] }, { "id": "379575e2-5e5f-450f-9195-3367c293a041", "automation": "- id: 379575e2-5e5f-450f-9195-3367c293a041\n alias: Someone opened the door\n triggers:\n - trigger: state\n entity_id: binary_sensor.parasoll_door_window_sensor_door\n to: 'on'\n conditions:\n - condition: state\n entity_id: group.family_members\n state: not_home\n actions:\n - action: notify.bom_devices\n data:\n message: Someone Opened the Door!", "config": [ { "name": "family members", "room": null, "type": "group", "id": { "entity_id": "group.family_members", "device_id": null } }, { "name": "parasoll door window sensor", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.parasoll_door_window_sensor_door", "device_id": null } }, { "name": "bom devices", "room": null, "type": "notify", "id": { "entity_id": "notify.bom_devices", "device_id": null } } ] }, { "id": "1a692303-ef8f-453d-8575-d1567b9feb07", "automation": "- id: 1a692303-ef8f-453d-8575-d1567b9feb07\n alias: Away not triggered for long time\n triggers:\n - trigger: template\n value_template: '{{ now() - state_attr(''automation.turn_off_appliances'', ''last_triggered'')\n > timedelta(days=2) }}'\n actions:\n - action: notify.mobile_app_boms_iphone\n data:\n message: Away is not triggered for days. Please check the automation.", "config": [ { "name": "turn off appliances automation", "room": null, "type": "automation", "id": { "entity_id": "automation.turn_off_appliances", "device_id": null } }, { "name": "mobile app boms iphone", "room": null, "type": "notify", "id": { "entity_id": "notify.mobile_app_boms_iphone", "device_id": null } } ] }, { "id": "904bb658-7679-4a56-8ae4-74d1527016e6", "automation": "- id: 904bb658-7679-4a56-8ae4-74d1527016e6\n alias: Away triggered\n triggers:\n - trigger: state\n entity_id: group.family_members\n to: not_home\n conditions:\n - condition: state\n entity_id: automation.turn_off_appliances\n state: 'on'\n actions:\n - action: notify.mobile_app_boms_iphone\n data:\n message: Away is triggered. Appliances are turned off.", "config": [ { "name": "family members", "room": null, "type": "group", "id": { "entity_id": "group.family_members", "device_id": null } }, { "name": "turn off appliances automation", "room": null, "type": "automation", "id": { "entity_id": "automation.turn_off_appliances", "device_id": null } }, { "name": "mobile app boms iphone", "room": null, "type": "notify", "id": { "entity_id": "notify.mobile_app_boms_iphone", "device_id": null } } ] }, { "id": "02dc3052-96f8-4aec-a7d7-e9e5c2990376", "automation": "- id: 02dc3052-96f8-4aec-a7d7-e9e5c2990376\n alias: Turn on the lights when button short released before alarm\n triggers:\n - trigger: state\n entity_id: event.rodret_dimmer_button\n to: short_release\n attribute: event_type\n condition:\n - condition: template\n value_template: \"{{ today_at(states('input_datetime.workday_alarm_time')) > now()\\\n \\ }} \\n\"\n actions:\n - action: switch.turn_off\n target:\n entity_id: switch.smart_plug\n - action: light.turn_on\n target:\n entity_id:\n - group.kitchen_lights\n data:\n brightness: 255\n color_temp: 250\n - action: light.turn_on\n target:\n entity_id:\n - light.bedroom_light\n - action: automation.turn_off\n target:\n entity_id: automation.adaptive_light_in_the_morning\n data:\n stop_actions: true", "config": [ { "name": "workday alarm time", "room": null, "type": "input_datetime", "id": { "entity_id": "input_datetime.workday_alarm_time", "device_id": null } }, { "name": "adaptive light in the morning", "room": null, "type": "automation", "id": { "entity_id": "automation.adaptive_light_in_the_morning", "device_id": null } }, { "name": "kitchen lights", "room": "kitchen", "type": "light", "id": { "entity_id": "group.kitchen_lights", "device_id": null } }, { "name": "bedroom light", "room": "bedroom", "type": "light", "id": { "entity_id": "light.bedroom_light", "device_id": null } }, { "name": "smart plug", "room": null, "type": "switch", "id": { "entity_id": "switch.smart_plug", "device_id": null } }, { "name": "rodret dimmer button", "room": null, "type": "event", "id": { "entity_id": "event.rodret_dimmer_button", "device_id": null } } ] }, { "id": "1a4fd1e1-9506-4ca5-88e4-7020e282f64c", "automation": "- id: 1a4fd1e1-9506-4ca5-88e4-7020e282f64c\n alias: Turn on the lights when button short released after alarm\n triggers:\n - trigger: state\n entity_id: event.rodret_dimmer_button\n to: short_release\n attribute: event_type\n condition:\n - condition: template\n value_template: '{{ today_at(states(''input_datetime.workday_alarm_time'')) <=\n now() }}\n\n '\n actions:\n - action: switch.turn_off\n target:\n entity_id: switch.smart_plug\n - action: light.turn_on\n target:\n entity_id:\n - group.kitchen_lights\n data:\n brightness: 255\n color_temp: 250\n - action: light.turn_on\n target:\n entity_id:\n - light.bedroom_light\n - if:\n - condition: state\n entity_id: media_player.bedroom_display\n state: playing\n then:\n - action: media_player.media_stop\n target:\n entity_id: media_player.bedroom_display", "config": [ { "name": "workday alarm time", "room": null, "type": "input_datetime", "id": { "entity_id": "input_datetime.workday_alarm_time", "device_id": null } }, { "name": "bedroom display", "room": "bedroom", "type": "media_player", "id": { "entity_id": "media_player.bedroom_display", "device_id": null } }, { "name": "kitchen lights", "room": "kitchen", "type": "light", "id": { "entity_id": "group.kitchen_lights", "device_id": null } }, { "name": "bedroom light", "room": "bedroom", "type": "light", "id": { "entity_id": "light.bedroom_light", "device_id": null } }, { "name": "smart plug", "room": null, "type": "switch", "id": { "entity_id": "switch.smart_plug", "device_id": null } }, { "name": "bedroom media player", "room": "bedroom", "type": "media_player", "id": { "entity_id": "media_player.bedroom", "device_id": null } }, { "name": "rodret dimmer button", "room": null, "type": "event", "id": { "entity_id": "event.rodret_dimmer_button", "device_id": null } } ] }, { "id": "2299b5c1-273a-42d7-9612-5c0f417d89ea", "automation": "- id: 2299b5c1-273a-42d7-9612-5c0f417d89ea\n alias: Turn off the lights when button 2 short released\n triggers:\n - trigger: state\n entity_id: event.rodret_dimmer_button_2\n to: short_release\n attribute: event_type\n actions:\n - action: light.turn_off\n target:\n entity_id:\n - group.kitchen_lights\n - light.bedroom_light\n - light.closet_1\n - action: switch.turn_off\n target:\n entity_id: switch.smart_plug_2\n - action: media_player.media_pause\n target:\n entity_id: media_player.bedroom", "config": [ { "name": "kitchen lights", "room": "kitchen", "type": "light", "id": { "entity_id": "group.kitchen_lights", "device_id": null } }, { "name": "bedroom light", "room": "bedroom", "type": "light", "id": { "entity_id": "light.bedroom_light", "device_id": null } }, { "name": "closet 1 light", "room": "closet", "type": "light", "id": { "entity_id": "light.closet_1", "device_id": null } }, { "name": "smart plug", "room": null, "type": "switch", "id": { "entity_id": "switch.smart_plug", "device_id": null } }, { "name": "smart plug 2", "room": null, "type": "switch", "id": { "entity_id": "switch.smart_plug_2", "device_id": null } }, { "name": "bedroom media player", "room": "bedroom", "type": "media_player", "id": { "entity_id": "media_player.bedroom", "device_id": null } }, { "name": "rodret dimmer button", "room": null, "type": "event", "id": { "entity_id": "event.rodret_dimmer_button", "device_id": null } }, { "name": "rodret dimmer button 2", "room": null, "type": "event", "id": { "entity_id": "event.rodret_dimmer_button_2", "device_id": null } } ] }, { "id": "42c48061-2974-49b6-b970-43b91fb863c9", "automation": "- id: 42c48061-2974-49b6-b970-43b91fb863c9\n alias: Toggle the smart plug when button 1 long-pressed\n triggers:\n - trigger: state\n entity_id: event.rodret_dimmer_button\n to: long_press\n attribute: event_type\n actions:\n - action: switch.toggle\n target:\n entity_id: switch.smart_plug", "config": [ { "name": "smart plug", "room": null, "type": "switch", "id": { "entity_id": "switch.smart_plug", "device_id": null } }, { "name": "rodret dimmer button", "room": null, "type": "event", "id": { "entity_id": "event.rodret_dimmer_button", "device_id": null } } ] }, { "id": "7e70b56a-bde0-4659-b616-ed2ff15cf5d2", "automation": "- id: 7e70b56a-bde0-4659-b616-ed2ff15cf5d2\n alias: Toggle the smart plug when button 2 long-pressed\n triggers:\n - trigger: state\n entity_id: event.rodret_dimmer_button_2\n to: long_press\n attribute: event_type\n actions:\n - action: switch.toggle\n target:\n entity_id: switch.smart_plug", "config": [ { "name": "smart plug", "room": null, "type": "switch", "id": { "entity_id": "switch.smart_plug", "device_id": null } }, { "name": "rodret dimmer button", "room": null, "type": "event", "id": { "entity_id": "event.rodret_dimmer_button", "device_id": null } }, { "name": "rodret dimmer button 2", "room": null, "type": "event", "id": { "entity_id": "event.rodret_dimmer_button_2", "device_id": null } } ] }, { "id": "eefda598-6363-43c3-b1b3-c04376ca6af1", "automation": "- id: eefda598-6363-43c3-b1b3-c04376ca6af1\n alias: Open the curtain when button 1 long-pressed\n triggers:\n - trigger: state\n entity_id: event.remote_2_button\n to: long_press\n attribute: event_type\n actions:\n - action: cover.open_cover\n target:\n entity_id: cover.windowcovering", "config": [ { "name": "window covering", "room": null, "type": "cover", "id": { "entity_id": "cover.windowcovering", "device_id": null } }, { "name": "remote 2 button", "room": null, "type": "event", "id": { "entity_id": "event.remote_2_button", "device_id": null } } ] }, { "id": "cbbc654d-3a84-4252-8026-cfe5596da866", "automation": "- id: cbbc654d-3a84-4252-8026-cfe5596da866\n alias: Close the curtain when button 2 long-pressed\n triggers:\n - trigger: state\n entity_id: event.remote_2_button_2\n to: long_press\n attribute: event_type\n actions:\n - action: cover.close_cover\n target:\n entity_id: cover.windowcovering", "config": [ { "name": "window covering", "room": null, "type": "cover", "id": { "entity_id": "cover.windowcovering", "device_id": null } }, { "name": "remote 2 button", "room": null, "type": "event", "id": { "entity_id": "event.remote_2_button", "device_id": null } }, { "name": "remote 2 button 2", "room": null, "type": "event", "id": { "entity_id": "event.remote_2_button_2", "device_id": null } } ] } ]