2201 lines
112 KiB
JSON
2201 lines
112 KiB
JSON
[
|
|
{
|
|
"id": "'1710795370401'",
|
|
"automation": "- id: '1710795370401'\n alias: Door Open TTS Alert\n description: Sends a TTS alert through selected speakers when the front or back\n door is opened, indicating which door was triggered.\n trigger:\n - platform: state\n entity_id:\n - binary_sensor.back_door_contact\n id: back_door\n from: null\n to: 'on'\n - platform: state\n entity_id:\n - binary_sensor.front_door_contact\n id: front_door\n from: null\n to: 'on'\n action:\n - choose:\n - conditions:\n - condition: trigger\n id: back_door\n sequence:\n - service: media_player.volume_set\n data:\n volume_level: 0.8\n target:\n entity_id:\n - media_player.kitchen_speaker\n - media_player.bedroom_speaker\n - service: tts.cloud_say\n data:\n message: Back door opened.\n entity_id: media_player.kitchen_speaker\n - service: tts.cloud_say\n data:\n message: Back door opened.\n entity_id: media_player.bedroom_speaker\n - conditions:\n - condition: trigger\n id: front_door\n sequence:\n - service: media_player.volume_set\n data:\n volume_level: 0.8\n target:\n entity_id:\n - media_player.kitchen_speaker\n - media_player.bedroom_speaker\n - service: tts.cloud_say\n data:\n entity_id: media_player.kitchen_speaker\n message: Front door opened.\n - service: tts.cloud_say\n data:\n message: Front Door opened.\n entity_id: media_player.bedroom_speaker",
|
|
"config": [
|
|
{
|
|
"name": "Back Door Contact",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.back_door_contact",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Front Door Contact",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.front_door_contact",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Bedroom Speaker",
|
|
"room": null,
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.bedroom_speaker",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Kitchen Speaker",
|
|
"room": null,
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.kitchen_speaker",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'1710543988869'",
|
|
"automation": "- id: '1710543988869'\n alias: Adjust Indoor Lighting Based on Cloud Coverage\n description: Dynamically adjusts the indoor light brightness based on cloud coverage\n percentage during the day.\n trigger:\n - platform: state\n entity_id: sensor.openweathermap_cloud_coverage\n condition:\n - condition: state\n entity_id: sun.sun\n state: above_horizon\n action:\n - service: input_number.set_value\n target:\n entity_id: input_number.home_light_brightness\n data:\n value: \"{% set baseline_brightness = 30 %} {% set max_adjustment = 100 %} {%\\\n \\ set cloud_coverage = states('sensor.openweathermap_cloud_coverage') | float(default=0)\\\n \\ %}\\n{% if cloud_coverage is none %}\\n {% set cloud_coverage = 0 %}\\n{%\\\n \\ endif %}\\n{% set calculated_brightness = baseline_brightness + ((cloud_coverage\\\n \\ / 100) * (max_adjustment - baseline_brightness)) %} {% if calculated_brightness\\\n \\ > max_adjustment %}\\n {% set calculated_brightness = max_adjustment %}\\n\\\n {% elif calculated_brightness < 0 %}\\n {% set calculated_brightness = 0 %}\\n\\\n {% endif %}\\n{{ calculated_brightness }}\\n\"\n mode: single",
|
|
"config": [
|
|
{
|
|
"name": "Home Light Brightness",
|
|
"room": null,
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.home_light_brightness",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Openweathermap Cloud Coverage",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.openweathermap_cloud_coverage",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Sun",
|
|
"room": null,
|
|
"type": "sun",
|
|
"id": {
|
|
"entity_id": "sun.sun",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'1710640274265'",
|
|
"automation": "- id: '1710640274265'\n alias: Upstairs AC Controllor\n description: ''\n trigger:\n - platform: numeric_state\n entity_id: sensor.bedroom_motion_sensor_temperature\n above: 75\n id: above_75\n - platform: numeric_state\n entity_id: sensor.bedroom_motion_sensor_temperature\n below: 70\n id: below_70\n - platform: time_pattern\n hours: /01\n condition:\n - condition: template\n value_template: '{{ is_state(''input_boolean.frigidaire_ac_button'', ''off'')\n and is_state(''input_boolean.lg_ac_button'', ''off'') }}'\n enabled: false\n action:\n - choose:\n - conditions:\n - condition: or\n conditions:\n - condition: trigger\n id:\n - above_75\n - condition: numeric_state\n entity_id: sensor.bedroom_motion_sensor_temperature_measurement\n above: 75\n sequence:\n - service: script.frigidaire_climate_control_upstairs_power_toggle\n data: {}\n - delay: 1\n - service: script.lg_climate_control_upstairs_power_toggle\n data: {}\n - conditions:\n - condition: or\n conditions:\n - condition: trigger\n id:\n - below_70\n - condition: numeric_state\n entity_id: sensor.bedroom_motion_sensor_temperature_measurement\n below: 70\n sequence:\n - service: script.frigidaire_climate_control_upstairs_power_toggle\n data: {}\n - delay: 1\n - service: script.lg_climate_control_upstairs_power_toggle\n data: {}\n mode: single",
|
|
"config": [
|
|
{
|
|
"name": "Frigidaire AC Button",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.frigidaire_ac_button",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "LG AC Button",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.lg_ac_button",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Frigidaire Climate Control Upstairs Power Toggle",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.frigidaire_climate_control_upstairs_power_toggle",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "LG Climate Control Upstairs Power Toggle",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.lg_climate_control_upstairs_power_toggle",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Bedroom Motion Sensor Temperature",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.bedroom_motion_sensor_temperature",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Bedroom Motion Sensor Temperature Measurement",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.bedroom_motion_sensor_temperature_measurement",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'1710979106892'",
|
|
"automation": "- id: '1710979106892'\n alias: LG webOS Smart TV - Turn On Action\n description: ''\n use_blueprint:\n path: cvroque/webostv_turn_on.yaml\n input:\n webostv: 1503b5ade8481f97dd131da4a9772270\n webostv_mac: E4:75:DC:9F:D6:D3\n on_action:\n - service: script.toggle\n metadata: {}\n data: {}\n select_action: true\n custom_action:\n - service: script.lg_tv_upstairs_power_on\n metadata: {}\n data: {}",
|
|
"config": [
|
|
{
|
|
"name": "LG TV Upstairs Power On",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.lg_tv_upstairs_power_on",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Toggle",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.toggle",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'1726203993067'",
|
|
"automation": "- id: '1726203993067'\n alias: Adjust No Motion Delay with Hue Dimmer\n description: Set no motion delay to 30 when button 1 is pressed, reset on button\n 4 or after 30 minutes.\n trigger:\n - device_id: 3f330cd2e69e8ee831d5c5f0ab4bc433\n domain: hue\n platform: device\n type: short_release\n subtype: 1\n unique_id: b21ca135-d892-465c-91f0-934426a4a5c9\n - device_id: 3f330cd2e69e8ee831d5c5f0ab4bc433\n domain: hue\n platform: device\n type: short_release\n subtype: 4\n unique_id: some-unique-id-for-button-4\n action:\n - choose:\n - conditions:\n - condition: trigger\n id: b21ca135-d892-465c-91f0-934426a4a5c9\n sequence:\n - data:\n value: 30\n target:\n entity_id: input_number.bedroom_no_motion_delay\n action: input_number.set_value\n - wait_for_trigger:\n - platform: event\n event_type: deconz_event\n event_data:\n id: 3f330cd2e69e8ee831d5c5f0ab4bc433\n event: 4002\n - delay: 00:30:00\n - data:\n value: 0\n target:\n entity_id: input_number.bedroom_no_motion_delay\n action: input_number.set_value\n mode: single",
|
|
"config": [
|
|
{
|
|
"name": "Bedroom No Motion Delay",
|
|
"room": null,
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.bedroom_no_motion_delay",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Device 3f330cd2e69e8ee831d5c5f0ab4bc433",
|
|
"room": null,
|
|
"type": null,
|
|
"id": {
|
|
"entity_id": null,
|
|
"device_id": "3f330cd2e69e8ee831d5c5f0ab4bc433"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'1699732340926'",
|
|
"automation": "- id: '1699732340926'\n alias: Frigidare Power Toggle\n description: ''\n trigger:\n - platform: state\n entity_id:\n - input_boolean.frigidaire_ac_button\n condition: []\n action:\n - service: script.frigidaire_climate_control_upstairs_power_toggle\n data: {}\n mode: single",
|
|
"config": [
|
|
{
|
|
"name": "Frigidaire AC Button",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.frigidaire_ac_button",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Frigidaire Climate Control Upstairs Power Toggle",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.frigidaire_climate_control_upstairs_power_toggle",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'1699732652226'",
|
|
"automation": "- id: '1699732652226'\n alias: LG AC Power Toggle\n description: ''\n trigger:\n - platform: state\n entity_id:\n - input_boolean.lg_ac_button\n condition: []\n action:\n - service: script.lg_climate_control_upstairs_power_toggle\n data: {}\n mode: single",
|
|
"config": [
|
|
{
|
|
"name": "LG AC Button",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.lg_ac_button",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "LG Climate Control Upstairs Power Toggle",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.lg_climate_control_upstairs_power_toggle",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "417395bc-bd64-40a3-b20a-9062d426a01f",
|
|
"automation": "- alias: 00 - Google Home Automatic Resume\n id: 417395bc-bd64-40a3-b20a-9062d426a01f\n mode: parallel\n max_exceeded: silent\n trigger:\n - platform: event\n enabled: true\n event_type: call_service\n event_data:\n domain: media_player\n service: play_media\n variables:\n announce_volume: '{{ state_attr(''script.google_home_resume'', ''settings'').get(''announce_volume_automation'')\n }}'\n id: play\n - platform: event\n enabled: true\n event_type: call_service\n event_data:\n domain: cast\n service: show_lovelace_view\n id: cast\n variables:\n version: 2023.8.0\n settings:\n primary_spotcast: justin\n radio_data:\n NPO Radio 2:\n picture: secret radio_picture_url\n title: Er is maar één NPO Radio 2\n speaker_groups:\n media_player.home_google:\n - media_player.ytube_music_player\n default_volume_level: 0.25\n dummy_player: media_player.vlc_telnet\n default_resume_delay:\n seconds: 20\n max_runtime:\n minutes: 10\n enable_automation: true\n dashboard_cast: true\n announce_volume_automation: 0.4\n entities: '{%- set e = trigger.event.data.service_data.entity_id %} {%- set e\n = (e | replace('' '', '''')).split('','') if e is string else e %} {%- set e\n = expand(e) | map(attribute=''entity_id'') | list %} {%- set speaker_groups\n = settings.get(''speaker_groups'') | default({}, true) %} {%- set members =\n speaker_groups.items() | selectattr(''0'', ''in'', e) | map(attribute=''1'')\n | sum(start=[]) %} {{ e + members }}\n\n '\n condition:\n - alias: Check if automation in enabled in script settings\n condition: template\n value_template: '{{ settings.enable_automation | default(true) }}'\n - alias: Check if announce was set on the service call\n condition: template\n value_template: '{{ trigger.id == ''cast'' or trigger.event.data.service_data.get(''announce'',\n false) }}'\n - alias: Check if dashboard resume is enabled in case of dashboard cast trigger\n condition: template\n value_template: '{{ trigger.id == ''play'' or settings.get(''dashboard_cast'')\n | default(true) or settings.get(''dashboard_cast'') is none }}'\n action:\n - alias: Set variables to be used in the automation\n variables:\n start_time: '{{ start_time if start_time is defined else now() }}'\n speaker_groups: '{{ settings.get(''speaker_groups'') | default({}, true) }}'\n speaker_group_list: '{{ speaker_groups.keys() | list }}'\n cast_entities: '{{ integration_entities(''cast'') }}'\n spotify_entities: '{{ integration_entities(''spotify'') }}'\n primary_spotcast_check: '{%- set accounts = spotify_entities | map(''replace'',\n ''media_player.spotify_'', '''') | list %} {{ spotify_entities | count <=\n 1 or settings.get(''primary_spotcast'') in accounts }}\n\n '\n ytube_music_entities: '{{ integration_entities(''ytube_music_player'') | select(''match'',\n ''^media_player.'') | list }}\n\n '\n resume_active: \"{{ expand(integration_entities('group'))\\n | selectattr('entity_id',\\\n \\ 'search', 'group.resume_active_ghresume')\\n | map(attribute='attributes.entity_id')\\n\\\n \\ | map('list')\\n | sum(start=[])\\n}}\\n\"\n resume_action_false: \"{{ expand(integration_entities('group'))\\n | selectattr('entity_id',\\\n \\ 'search', 'group.resume_action_false_ghresume')\\n | map(attribute='attributes.entity_id')\\n\\\n \\ | map('list')\\n | sum(start=[])\\n}}\\n\"\n - alias: Failsafe to remove all groups if no resume scripts are not running\n if: \"{{ \\n is_state_attr('script.google_home_resume', 'current', 0)\\n and integration_entities('group')\\n\\\n \\ | select('search', 'ghresume')\\n | list | count > 0\\n}}\\n\"\n then:\n - alias: Which groups to remove\n variables:\n groups_existing: '{{ integration_entities(''group'') | select(''search'',\n ''ghresume'') | list }}\n\n '\n - alias: Loop to remove groups\n repeat:\n for_each: '{{ groups_existing }}'\n sequence:\n - alias: Remove one group\n service: group.remove\n data:\n object_id: '{{ states[repeat.item].object_id }}'\n - alias: Check if target is already being resumed on in a group which is already\n being resumed\n condition: template\n value_template: \"{%- set groups = states.group\\n | selectattr('entity_id',\\\n \\ 'search', 'resume_script_active_ghresume_')\\n | map(attribute='entity_id')\\n\\\n \\ | list\\n%} {%- set active = expand(groups)\\n | rejectattr('state',\\\n \\ 'in', ['unknown', 'unavailable'])\\n | map(attribute='entity_id')\\n\\\n \\ | unique\\n | list\\n%} {%- set members =\\\n \\ speaker_groups.items() | selectattr('0', 'in', active) | map(attribute='1')\\\n \\ | sum(start=[]) %} {%- set active = active + members %} {%- set target_members\\\n \\ = speaker_groups.items() | selectattr('0', 'in', entities) | map(attribute='1')\\\n \\ | sum(start=[]) %} {%- set entities = (entities + target_members) | reject('in',\\\n \\ speaker_group_list) | unique | list %} {{ entities | reject('in', active)\\\n \\ | list | count > 0 }}\\n\"\n - alias: Are there Spotify entities?\n if: '{{ integration_entities(''spotify'') | count > 0 }}'\n then:\n - alias: Update Spotify entities\n service: homeassistant.update_entity\n target:\n entity_id: '{{ integration_entities(''spotify'') }}'\n - alias: Set data_source and determine target list\n variables:\n data_source: automation\n target_list: \"{{\\n integration_entities('cast')\\n | select('in', entities)\\n\\\n \\ | list\\n}}\\n\"\n - variables:\n player_data: \"{%- if player_data is undefined %}\\n {# general information for\\\n \\ all entities #}\\n {%- set ns = namespace(info=[], groups_playing=[]) %}\\n\\\n \\ {%- for entity in expand(cast_entities) %}\\n {%- set members = speaker_groups[entity.entity_id]\\n\\\n \\ if speaker_groups is defined\\n and\\\n \\ iif(speaker_groups)\\n and entity.entity_id in speaker_group_list\\n\\\n \\ else []\\n %}\\n {%- set screen = entity.attributes.device_class\\\n \\ is not defined %}\\n {%- set type = iif(members,'group',iif(screen,'screen','speaker'))\\\n \\ %}\\n {%- for group in speaker_group_list %}\\n {%- set members\\\n \\ = speaker_groups.items() | selectattr('0', 'eq', group) | map(attribute='1')\\\n \\ | list | first %}\\n {%- set members_playing = expand(members) | selectattr('state',\\\n \\ 'eq', 'playing') | list | count == members | count %}\\n {%- set content_list\\\n \\ = expand(members) | selectattr('attributes.media_content_id', 'defined')\\\n \\ | map(attribute='attributes.media_content_id') | list %}\\n {%- set\\\n \\ group_playing = members_playing and content_list | select('eq', content_list[0])\\\n \\ | list | count == content_list | count %}\\n {%- set ns.groups_playing\\\n \\ = ns.groups_playing + [ group ] if group_playing else ns.groups_playing\\\n \\ %}\\n {%- endfor %}\\n {%- set groups_playing = ns.groups_playing\\\n \\ %}\\n {%- if type == 'speaker' %}\\n {% set groups = speaker_groups.items()\\\n \\ | selectattr('1', 'search', entity.entity_id) | map(attribute='0') | list\\\n \\ %}\\n {% set playing = groups | select('in', groups_playing) | list\\\n \\ | count > 0 %}\\n {% set type = 'playing_member' if playing else type\\\n \\ %}\\n {%- endif %}\\n {%- set state = 'off' if type == 'group' and\\\n \\ not entity.entity_id in groups_playing else entity.state %}\\n {%- set\\\n \\ general = dict(\\n data_source = data_source,\\n\\\n \\ entity_id = entity.entity_id,\\n \\\n \\ state = state,\\n type = type,\\n\\\n \\ members = members\\n \\\n \\ )\\n if type = 'playing_member'\\n \\\n \\ else dict(entity_id = entity.entity_id, type = type, members=[])\\n\\\n \\ %}\\n {# check if there is a Spotify account playing on this entity\\\n \\ #}\\n {%- set list_check = expand([ entity.entity_id ] + members) |\\\n \\ map(attribute='name') | list %}\\n {%- set spotify_entity = expand(spotify_entities)\\n\\\n \\ | selectattr('state', 'eq', 'playing')\\n\\\n \\ | selectattr('attributes.source', 'in',\\\n \\ list_check)\\n | map(attribute='object_id')\\n\\\n \\ | join\\n \\\n \\ | replace('spotify_', '')\\n %}\\n {# add volume level #}\\n \\\n \\ {%- if not state in ['off', 'unavailable', 'unknown'] or type == 'playing_member'\\\n \\ %}\\n {%- set additional = dict(volume_level = entity.attributes.get('volume_level',\\\n \\ settings.get('default_volume_level')) | round(2, default=0.25)) %}\\n \\\n \\ {%- else %}\\n {%- set additional = {} %}\\n {%- endif %}\\n\\\n \\ {# add metadata for playing entities #}\\n {%- if type == 'playing_member'%}\\n\\\n \\ {%- elif (spotify_entity or\\n (\\n entity.state\\\n \\ == 'playing'\\n and expand(speaker_groups.items()\\n \\\n \\ | selectattr('0', 'eq', entity.entity_id)\\n \\\n \\ | list) \\n | rejectattr('state',\\\n \\ 'eq', 'playing')\\n | list\\n \\\n \\ | count == 0\\n )) and (type = 'group' or entity.entity_id\\\n \\ in groups_playing)\\n %}\\n {%- set additional = dict(additional,\\\n \\ **dict(\\n state = 'playing',\\n \\\n \\ app_name = entity.attributes.get('app_name', 'no\\\n \\ app'),\\n media_content_id = (entity.attributes.get('media_content_id',\\\n \\ {}) | from_json).get('contentId', 'no media_content')\\n \\\n \\ if entity.attributes.get('app_name')\\\n \\ == 'Google Podcasts'\\n \\\n \\ else entity.attributes.get('media_content_id', 'no media_content'),\\n\\\n \\ media_position = (as_timestamp(now()) |\\\n \\ round(2)\\n - as_timestamp(entity.attributes.get('media_position_updated_at',\\\n \\ now())) | round(2)\\n \\\n \\ + entity.attributes.get('media_position', 0)) | round(2)\\n \\\n \\ ))\\n %}\\n {# add Spotify account #}\\n\\\n \\ {%- if entity.attributes.get('app_name') == 'Spotify' %}\\n \\\n \\ {%- set spotcast = spotify_entity if spotify_entity\\n \\\n \\ and settings.primary_spotcast is defined\\n \\\n \\ and spotify_entity = settings.primary_spotcast\\n\\\n \\ and spotify_entities | count > 1\\n \\\n \\ and primary_spotcast_check\\n \\\n \\ else 'primary_account' %}\\n {%- set additional\\\n \\ = dict(additional,\\n **dict(state='playing',\\n\\\n \\ spotcast = spotcast\\n \\\n \\ )\\n )\\\n \\ \\n %}\\n {# add information for ytube_music_player integration\\\n \\ #}\\n {%- elif entity.entity_id in expand(ytube_music_entities)\\n\\\n \\ | selectattr('state', 'eq', 'playing')\\n\\\n \\ | selectattr('attributes.remote_player_id',\\\n \\ 'defined')\\n | map(attribute='attributes.remote_player_id')\\n\\\n \\ | list\\n %}\\n {%- set\\\n \\ additional = dict(additional,\\n **dict(app_name='Ytube\\\n \\ Music Player',\\n yt_player=expand(ytube_music_entities)\\\n \\ | selectattr('attributes.remote_player_id', 'defined') | selectattr('attributes.remote_player_id',\\\n \\ 'eq', entity.entity_id) | map(attribute='entity_id') | join,\\n \\\n \\ media_content_id = 'ytube_music'\\n \\\n \\ )\\n \\\n \\ ) \\n %}\\n {# add information for web streams (including\\\n \\ TuneIn) #}\\n {%- elif entity.attributes.get('app_name') not in ['Spotify',\\\n \\ 'YouTube', 'YouTube Music'] %}\\n {%- if entity.attributes.get('media_artist')\\\n \\ in (settings.get('radio_data') | default({}, true)).keys() | list %}\\n \\\n \\ {%- set data = settings.radio_data[entity.attributes.media_artist]\\\n \\ %}\\n {%- set picture, title = data.get('picture'), data.get('title')\\\n \\ %}\\n {%- endif %}\\n {%- set additional = dict(additional,\\\n \\ **dict(\\n media_artist = 'Google\\\n \\ Podcasts' if entity.attributes.get('app_name') == 'Google Podcasts'\\n \\\n \\ else entity.attributes.get('media_artist',\\\n \\ 'no artist'),\\n media_title = title\\\n \\ if title is defined else entity.attributes.get('media_title', 'no title'),\\n\\\n \\ media_content_type = '' ~ entity.attributes.get('media_content_type',\\\n \\ 'no type'),\\n entity_picture = picture\\\n \\ if picture is defined else entity.attributes.get('entity_picture', 'no pic')\\n\\\n \\ ))\\n %}\\n {%- endif\\\n \\ %}\\n {%- endif %}\\n {# cobmine all data #}\\n {%- set ns.info\\\n \\ = ns.info + [ dict(general, **additional) if additional is defined else\\\n \\ general ] %}\\n {%- endfor %}\\n {% set player_data = ns.info %}\\n{%- endif\\\n \\ %} {{ player_data }}\\n\"\n - alias: Interrupt YouTube music if needed\n if: '{{ player_data | selectattr(''entity_id'', ''in'', target_list) | selectattr(''yt_player'',\n ''defined'') | list | count > 0 }}\n\n '\n then:\n - service: ytube_music_player.call_method\n data:\n entity_id: '{{ player_data | selectattr(''entity_id'', ''in'', target_list)\n | selectattr(''yt_player'', ''defined'') | map(attribute=''yt_player'')\n | list }}\n\n '\n command: interrupt_start\n - if: '{{ trigger.id == ''play'' and announce_volume is defined and iif(announce_volume)\n }}'\n then:\n - wait_template: '{{ is_state(entities|first, ''idle'') }}'\n - alias: Set volume for announcement\n service: media_player.volume_set\n target:\n entity_id: '{{ entities }}'\n data:\n volume_level: '{{ announce_volume }}'\n - alias: Short delay\n delay: 0.5\n - alias: Check again if target is already being resumed\n condition: template\n value_template: \"{%- set groups = states.group\\n | selectattr('entity_id',\\\n \\ 'search', 'resume_script_active_ghresume_')\\n | map(attribute='entity_id')\\n\\\n \\ | list\\n%} {%- set active = expand(groups)\\n | rejectattr('state',\\\n \\ 'in', ['unknown', 'unavailable'])\\n | map(attribute='entity_id')\\n\\\n \\ | unique\\n | list\\n%} {%- set members =\\\n \\ speaker_groups.items() | selectattr('0', 'in', active) | map(attribute='1')\\\n \\ | sum(start=[]) %} {%- set active = active + members %} {%- set target_members\\\n \\ = speaker_groups.items() | selectattr('0', 'in', entities) | map(attribute='1')\\\n \\ | sum(start=[]) %} {%- set entities = (entities + target_members) | reject('in',\\\n \\ speaker_group_list) | unique | list %} {{ entities | reject('in', active)\\\n \\ | list | count > 0 }}\\n\"\n - alias: Send actions using Google Home Resume script\n service: script.turn_on\n target:\n entity_id: script.google_home_resume\n data:\n variables:\n start_time: '{{ start_time }}'\n automation: true\n target_list: '{{ target_list }}'\n player_data: '{{ player_data }}'",
|
|
"config": [
|
|
{
|
|
"name": "Home",
|
|
"room": null,
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.home",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Google Home Resume",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.google_home_resume",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Turn On",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.turn_on",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'1699583739347'",
|
|
"automation": "- id: '1699583739347'\n alias: 'Switch: Bedroom All Lights Off'\n description: Long Press Off Button\n trigger:\n - device_id: 3f330cd2e69e8ee831d5c5f0ab4bc433\n domain: hue\n platform: device\n type: long_press\n subtype: 4\n unique_id: 96d604ca-c2a4-4d4f-84f2-dbc6728ae2ae\n - device_id: c0fe949098f7ff63239d22535cf3240a\n domain: hue\n platform: device\n type: long_press\n subtype: 4\n unique_id: bce336b1-6bc2-4a46-bdd5-1c7bf7bbfd13\n condition: []\n action:\n - service: light.turn_off\n data:\n transition: 5\n target: null\n entity_id: light.all_lights\n mode: single",
|
|
"config": [
|
|
{
|
|
"name": "All lights group",
|
|
"room": "unknown",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.all_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Device 3f330cd2e69e8ee831d5c5f0ab4bc433",
|
|
"room": null,
|
|
"type": null,
|
|
"id": {
|
|
"entity_id": null,
|
|
"device_id": "3f330cd2e69e8ee831d5c5f0ab4bc433"
|
|
}
|
|
},
|
|
{
|
|
"name": "Device c0fe949098f7ff63239d22535cf3240a",
|
|
"room": null,
|
|
"type": null,
|
|
"id": {
|
|
"entity_id": null,
|
|
"device_id": "c0fe949098f7ff63239d22535cf3240a"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'1699583900858'",
|
|
"automation": "- id: '1699583900858'\n alias: 'Switch: Bedroom All Lights On'\n description: Long Press On Button\n trigger:\n - device_id: 3f330cd2e69e8ee831d5c5f0ab4bc433\n domain: hue\n platform: device\n type: long_press\n subtype: 1\n unique_id: b21ca135-d892-465c-91f0-934426a4a5c9\n condition: []\n action:\n - service: light.turn_on\n data:\n transition: 60\n color_temp: 228\n brightness_pct: 100\n target:\n entity_id: light.all_lights\n mode: single",
|
|
"config": [
|
|
{
|
|
"name": "All lights group",
|
|
"room": "unknown",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.all_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Device 3f330cd2e69e8ee831d5c5f0ab4bc433",
|
|
"room": null,
|
|
"type": null,
|
|
"id": {
|
|
"entity_id": null,
|
|
"device_id": "3f330cd2e69e8ee831d5c5f0ab4bc433"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'1699584786811'",
|
|
"automation": "- id: '1699584786811'\n alias: 'Switch: Bedroom Lights On'\n description: Short Press On Button\n trigger:\n - device_id: 3f330cd2e69e8ee831d5c5f0ab4bc433\n domain: hue\n platform: device\n type: short_release\n subtype: 1\n unique_id: b21ca135-d892-465c-91f0-934426a4a5c9\n condition: []\n action:\n - data:\n transition: 5\n color_temp: 234\n brightness_pct: 100\n target:\n device_id:\n - 3e85e140da7932a78fa8c0c855488192\n - 0df99c2f064682cb887bdbc6004b11ff\n - 4f72c3af81e2dbfec9b42c8daa27bff6\n - e2863f42283465b7f5d3f51bdbf80ca2\n action: light.turn_on\n mode: single",
|
|
"config": [
|
|
{
|
|
"name": "Device 0df99c2f064682cb887bdbc6004b11ff",
|
|
"room": null,
|
|
"type": null,
|
|
"id": {
|
|
"entity_id": null,
|
|
"device_id": "0df99c2f064682cb887bdbc6004b11ff"
|
|
}
|
|
},
|
|
{
|
|
"name": "Device 3e85e140da7932a78fa8c0c855488192",
|
|
"room": null,
|
|
"type": null,
|
|
"id": {
|
|
"entity_id": null,
|
|
"device_id": "3e85e140da7932a78fa8c0c855488192"
|
|
}
|
|
},
|
|
{
|
|
"name": "Device 3f330cd2e69e8ee831d5c5f0ab4bc433",
|
|
"room": null,
|
|
"type": null,
|
|
"id": {
|
|
"entity_id": null,
|
|
"device_id": "3f330cd2e69e8ee831d5c5f0ab4bc433"
|
|
}
|
|
},
|
|
{
|
|
"name": "Device 4f72c3af81e2dbfec9b42c8daa27bff6",
|
|
"room": null,
|
|
"type": null,
|
|
"id": {
|
|
"entity_id": null,
|
|
"device_id": "4f72c3af81e2dbfec9b42c8daa27bff6"
|
|
}
|
|
},
|
|
{
|
|
"name": "Device e2863f42283465b7f5d3f51bdbf80ca2",
|
|
"room": null,
|
|
"type": null,
|
|
"id": {
|
|
"entity_id": null,
|
|
"device_id": "e2863f42283465b7f5d3f51bdbf80ca2"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'1699584786811'",
|
|
"automation": "- id: '1699584786811'\n alias: 'Switch: Bedroom Lights On'\n description: Short Press On Button\n trigger:\n - device_id: 3f330cd2e69e8ee831d5c5f0ab4bc433\n domain: hue\n platform: device\n type: short_release\n subtype: 1\n unique_id: b21ca135-d892-465c-91f0-934426a4a5c9\n condition: []\n action:\n - data:\n transition: 5\n color_temp: 234\n brightness_pct: 100\n target:\n device_id:\n - 3e85e140da7932a78fa8c0c855488192\n - 0df99c2f064682cb887bdbc6004b11ff\n - 4f72c3af81e2dbfec9b42c8daa27bff6\n - e2863f42283465b7f5d3f51bdbf80ca2\n action: light.turn_on\n mode: single",
|
|
"config": [
|
|
{
|
|
"name": "Device 0df99c2f064682cb887bdbc6004b11ff",
|
|
"room": null,
|
|
"type": null,
|
|
"id": {
|
|
"entity_id": null,
|
|
"device_id": "0df99c2f064682cb887bdbc6004b11ff"
|
|
}
|
|
},
|
|
{
|
|
"name": "Device 3e85e140da7932a78fa8c0c855488192",
|
|
"room": null,
|
|
"type": null,
|
|
"id": {
|
|
"entity_id": null,
|
|
"device_id": "3e85e140da7932a78fa8c0c855488192"
|
|
}
|
|
},
|
|
{
|
|
"name": "Device 3f330cd2e69e8ee831d5c5f0ab4bc433",
|
|
"room": null,
|
|
"type": null,
|
|
"id": {
|
|
"entity_id": null,
|
|
"device_id": "3f330cd2e69e8ee831d5c5f0ab4bc433"
|
|
}
|
|
},
|
|
{
|
|
"name": "Device 4f72c3af81e2dbfec9b42c8daa27bff6",
|
|
"room": null,
|
|
"type": null,
|
|
"id": {
|
|
"entity_id": null,
|
|
"device_id": "4f72c3af81e2dbfec9b42c8daa27bff6"
|
|
}
|
|
},
|
|
{
|
|
"name": "Device e2863f42283465b7f5d3f51bdbf80ca2",
|
|
"room": null,
|
|
"type": null,
|
|
"id": {
|
|
"entity_id": null,
|
|
"device_id": "e2863f42283465b7f5d3f51bdbf80ca2"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'1699584906064'",
|
|
"automation": "- id: '1699584906064'\n alias: 'Switch: Bedroom Lights Off'\n description: Short Press Off Button\n trigger:\n - device_id: 3f330cd2e69e8ee831d5c5f0ab4bc433\n domain: hue\n platform: device\n type: short_release\n subtype: 4\n unique_id: 96d604ca-c2a4-4d4f-84f2-dbc6728ae2ae\n condition: []\n action:\n - data:\n transition: 5\n target:\n device_id:\n - 3e85e140da7932a78fa8c0c855488192\n - 0df99c2f064682cb887bdbc6004b11ff\n - 4f72c3af81e2dbfec9b42c8daa27bff6\n - e2863f42283465b7f5d3f51bdbf80ca2\n action: light.turn_off\n mode: single",
|
|
"config": [
|
|
{
|
|
"name": "Device 0df99c2f064682cb887bdbc6004b11ff",
|
|
"room": null,
|
|
"type": null,
|
|
"id": {
|
|
"entity_id": null,
|
|
"device_id": "0df99c2f064682cb887bdbc6004b11ff"
|
|
}
|
|
},
|
|
{
|
|
"name": "Device 3e85e140da7932a78fa8c0c855488192",
|
|
"room": null,
|
|
"type": null,
|
|
"id": {
|
|
"entity_id": null,
|
|
"device_id": "3e85e140da7932a78fa8c0c855488192"
|
|
}
|
|
},
|
|
{
|
|
"name": "Device 3f330cd2e69e8ee831d5c5f0ab4bc433",
|
|
"room": null,
|
|
"type": null,
|
|
"id": {
|
|
"entity_id": null,
|
|
"device_id": "3f330cd2e69e8ee831d5c5f0ab4bc433"
|
|
}
|
|
},
|
|
{
|
|
"name": "Device 4f72c3af81e2dbfec9b42c8daa27bff6",
|
|
"room": null,
|
|
"type": null,
|
|
"id": {
|
|
"entity_id": null,
|
|
"device_id": "4f72c3af81e2dbfec9b42c8daa27bff6"
|
|
}
|
|
},
|
|
{
|
|
"name": "Device e2863f42283465b7f5d3f51bdbf80ca2",
|
|
"room": null,
|
|
"type": null,
|
|
"id": {
|
|
"entity_id": null,
|
|
"device_id": "e2863f42283465b7f5d3f51bdbf80ca2"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'1699590281953'",
|
|
"automation": "- id: '1699590281953'\n alias: 'Switch: Downstairs Lights Off'\n description: Short Press Off Button\n trigger:\n - device_id: c0fe949098f7ff63239d22535cf3240a\n domain: hue\n platform: device\n type: short_release\n subtype: 4\n unique_id: bce336b1-6bc2-4a46-bdd5-1c7bf7bbfd13\n condition: []\n action:\n - service: light.turn_off\n data:\n transition: 5\n target:\n device_id:\n - ae9a7a6ecc1a78fb729248e254f52b32\n - 2fbfe2a1a69c726b59f2876e08c597f9\n - 04b3402eedc91e13a89c8d108bc7fd56\n - 1e2569baf7100aa8803bea93d7c70707\n - 4285466a8f1c5d3a42b2db310dff1f69\n - 303d1584166e2c7c7de70d806228e855\n mode: single",
|
|
"config": [
|
|
{
|
|
"name": "Device 04b3402eedc91e13a89c8d108bc7fd56",
|
|
"room": null,
|
|
"type": null,
|
|
"id": {
|
|
"entity_id": null,
|
|
"device_id": "04b3402eedc91e13a89c8d108bc7fd56"
|
|
}
|
|
},
|
|
{
|
|
"name": "Device 1e2569baf7100aa8803bea93d7c70707",
|
|
"room": null,
|
|
"type": null,
|
|
"id": {
|
|
"entity_id": null,
|
|
"device_id": "1e2569baf7100aa8803bea93d7c70707"
|
|
}
|
|
},
|
|
{
|
|
"name": "Device 2fbfe2a1a69c726b59f2876e08c597f9",
|
|
"room": null,
|
|
"type": null,
|
|
"id": {
|
|
"entity_id": null,
|
|
"device_id": "2fbfe2a1a69c726b59f2876e08c597f9"
|
|
}
|
|
},
|
|
{
|
|
"name": "Device 303d1584166e2c7c7de70d806228e855",
|
|
"room": null,
|
|
"type": null,
|
|
"id": {
|
|
"entity_id": null,
|
|
"device_id": "303d1584166e2c7c7de70d806228e855"
|
|
}
|
|
},
|
|
{
|
|
"name": "Device 4285466a8f1c5d3a42b2db310dff1f69",
|
|
"room": null,
|
|
"type": null,
|
|
"id": {
|
|
"entity_id": null,
|
|
"device_id": "4285466a8f1c5d3a42b2db310dff1f69"
|
|
}
|
|
},
|
|
{
|
|
"name": "Device ae9a7a6ecc1a78fb729248e254f52b32",
|
|
"room": null,
|
|
"type": null,
|
|
"id": {
|
|
"entity_id": null,
|
|
"device_id": "ae9a7a6ecc1a78fb729248e254f52b32"
|
|
}
|
|
},
|
|
{
|
|
"name": "Device c0fe949098f7ff63239d22535cf3240a",
|
|
"room": null,
|
|
"type": null,
|
|
"id": {
|
|
"entity_id": null,
|
|
"device_id": "c0fe949098f7ff63239d22535cf3240a"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'1699590566951'",
|
|
"automation": "- id: '1699590566951'\n alias: 'Switch: Downstairs Lights On'\n description: Short Press On Button\n trigger:\n - device_id: c0fe949098f7ff63239d22535cf3240a\n domain: hue\n platform: device\n type: short_release\n subtype: 1\n unique_id: 28d403aa-6339-4a1e-a63f-7f0e98dbccf0\n condition: []\n action:\n - service: light.turn_on\n data:\n color_temp: 412\n brightness_pct: 100\n transition: 15\n target:\n device_id:\n - ae9a7a6ecc1a78fb729248e254f52b32\n - 2fbfe2a1a69c726b59f2876e08c597f9\n - 04b3402eedc91e13a89c8d108bc7fd56\n - 4285466a8f1c5d3a42b2db310dff1f69\n - 303d1584166e2c7c7de70d806228e855\n - 1e2569baf7100aa8803bea93d7c70707\n mode: single",
|
|
"config": [
|
|
{
|
|
"name": "Device 04b3402eedc91e13a89c8d108bc7fd56",
|
|
"room": null,
|
|
"type": null,
|
|
"id": {
|
|
"entity_id": null,
|
|
"device_id": "04b3402eedc91e13a89c8d108bc7fd56"
|
|
}
|
|
},
|
|
{
|
|
"name": "Device 1e2569baf7100aa8803bea93d7c70707",
|
|
"room": null,
|
|
"type": null,
|
|
"id": {
|
|
"entity_id": null,
|
|
"device_id": "1e2569baf7100aa8803bea93d7c70707"
|
|
}
|
|
},
|
|
{
|
|
"name": "Device 2fbfe2a1a69c726b59f2876e08c597f9",
|
|
"room": null,
|
|
"type": null,
|
|
"id": {
|
|
"entity_id": null,
|
|
"device_id": "2fbfe2a1a69c726b59f2876e08c597f9"
|
|
}
|
|
},
|
|
{
|
|
"name": "Device 303d1584166e2c7c7de70d806228e855",
|
|
"room": null,
|
|
"type": null,
|
|
"id": {
|
|
"entity_id": null,
|
|
"device_id": "303d1584166e2c7c7de70d806228e855"
|
|
}
|
|
},
|
|
{
|
|
"name": "Device 4285466a8f1c5d3a42b2db310dff1f69",
|
|
"room": null,
|
|
"type": null,
|
|
"id": {
|
|
"entity_id": null,
|
|
"device_id": "4285466a8f1c5d3a42b2db310dff1f69"
|
|
}
|
|
},
|
|
{
|
|
"name": "Device ae9a7a6ecc1a78fb729248e254f52b32",
|
|
"room": null,
|
|
"type": null,
|
|
"id": {
|
|
"entity_id": null,
|
|
"device_id": "ae9a7a6ecc1a78fb729248e254f52b32"
|
|
}
|
|
},
|
|
{
|
|
"name": "Device c0fe949098f7ff63239d22535cf3240a",
|
|
"room": null,
|
|
"type": null,
|
|
"id": {
|
|
"entity_id": null,
|
|
"device_id": "c0fe949098f7ff63239d22535cf3240a"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'1727766777846'",
|
|
"automation": "- id: '1727766777846'\n alias: Toggle Sleep Sensor\n description: Turns someone sleeping input boolean on and off\n trigger:\n - device_id: 3f330cd2e69e8ee831d5c5f0ab4bc433\n domain: hue\n platform: device\n type: long_press\n subtype: 3\n unique_id: b6bc9eb5-6ddc-45d4-a74e-85261136851d\n condition: []\n action:\n - action: input_boolean.toggle\n target:\n entity_id: input_boolean.someone_sleeping\n data: {}\n mode: single",
|
|
"config": [
|
|
{
|
|
"name": "Someone Sleeping",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.someone_sleeping",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Device 3f330cd2e69e8ee831d5c5f0ab4bc433",
|
|
"room": null,
|
|
"type": null,
|
|
"id": {
|
|
"entity_id": null,
|
|
"device_id": "3f330cd2e69e8ee831d5c5f0ab4bc433"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "Auto populate Hue group input select",
|
|
"automation": "- alias: Auto populate Hue group input select\n id: Auto populate Hue group input select\n mode: restart\n trigger:\n platform: event\n event_type: delayed_homeassistant_start\n action:\n service: input_select.set_options\n target:\n entity_id: input_select.hue_group\n data:\n options: \"{{states.light\\n |selectattr('attributes.is_hue_group','eq',true)\\n\\\n \\ |map(attribute='name')|list}}\\n\"",
|
|
"config": [
|
|
{
|
|
"name": "Hue Group",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.hue_group",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "Auto populate Hue dynamic scene input select",
|
|
"automation": "- alias: Auto populate Hue dynamic scene input select\n id: Auto populate Hue dynamic scene input select\n mode: restart\n trigger:\n - platform: event\n event_type: delayed_homeassistant_start\n - platform: state\n entity_id: input_select.hue_group\n action:\n service: input_select.set_options\n target:\n entity_id: input_select.hue_dynamic_scene\n data:\n options: \"{% set hue_group = states('input_select.hue_group') %} {{states.scene\\n\\\n \\ |selectattr('attributes.group_name','eq',hue_group)\\n |selectattr('attributes.is_dynamic','eq',true)\\n\\\n \\ |map(attribute='name')|list}}\\n\"",
|
|
"config": [
|
|
{
|
|
"name": "Hue Dynamic Scene",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.hue_dynamic_scene",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Hue Group",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.hue_group",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'1710545712946'",
|
|
"automation": "- id: '1710545712946'\n alias: Turn Off Lights on No Motion\n description: Turns off lights in various areas when no motion is detected, with\n room-specific delays.\n trigger:\n - platform: state\n entity_id: binary_sensor.bedroom_motion_sensor\n to: 'off'\n for: 00:{{ '%02d' | format(states('input_number.bedroom_no_motion_delay') | int)\n }}:00\n id: bedroom_no_motion\n - platform: state\n entity_id: binary_sensor.kitchen_motion_sensor\n to: 'off'\n for: 00:{{ '%02d' | format(states('input_number.kitchen_no_motion_delay') | int)\n }}:00\n id: kitchen_no_motion\n - platform: state\n entity_id: binary_sensor.stair_motion_sensor\n to: 'off'\n for: 00:{{ '%02d' | format(states('input_number.stairs_no_motion_delay') | int)\n }}:00\n id: stairs_no_motion\n - platform: state\n entity_id: binary_sensor.media_room_motion_sensor\n to: 'off'\n for: 00:{{ '%02d' | format(states('input_number.media_room_no_motion_delay') |\n int) }}:00\n id: media_room_no_motion\n - platform: state\n entity_id: binary_sensor.front_door_contact\n to: 'off'\n for: 00:{{ '%02d' | format(states('input_number.downstairs_no_motion_delay') |\n int) }}:00\n id: front_door_closed\n - platform: state\n entity_id: binary_sensor.back_door_contact\n to: 'off'\n for: 00:{{ '%02d' | format(states('input_number.downstairs_no_motion_delay') |\n int) }}:00\n id: back_door_closed\n condition:\n - condition: state\n entity_id: input_boolean.sync_music_lights\n state: 'off'\n - condition: state\n entity_id: input_boolean.theme_mode\n state: 'off'\n action:\n - choose:\n - conditions:\n - condition: trigger\n id: bedroom_no_motion\n sequence:\n - service: light.turn_off\n entity_id:\n - light.bedroom_overhead_light\n - light.bed_light_strip_1\n - light.bed_light_strip_2\n - light.floorlamp\n - light.media_room_overhead_light\n - conditions:\n - condition: trigger\n id: kitchen_no_motion\n sequence:\n - service: light.turn_off\n entity_id:\n - light.kitchen_overhead_1\n - light.kitchen_overhead_2\n - light.laundry_room_overhead_1\n - light.laundry_room_overhead_2\n - conditions:\n - condition: trigger\n id: stairs_no_motion\n sequence:\n - service: light.turn_off\n entity_id:\n - light.stairs_light_strip\n - light.stairs_overhead_light\n - conditions:\n - condition: trigger\n id: media_room_no_motion\n sequence:\n - service: light.turn_off\n entity_id:\n - light.media_room_overhead_light\n - conditions:\n - condition: trigger\n id: front_door_closed\n sequence:\n - service: light.turn_off\n entity_id:\n - light.living_room_light\n - light.dining_room_light\n - conditions:\n - condition: trigger\n id: back_door_closed\n sequence:\n - service: light.turn_off\n entity_id:\n - light.kitchen_overhead_1\n - light.kitchen_overhead_2\n - light.laundry_room_overhead_1\n - light.laundry_room_overhead_2\n mode: parallel\n max: 10",
|
|
"config": [
|
|
{
|
|
"name": "Back Door Contact",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.back_door_contact",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Bedroom Motion Sensor",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.bedroom_motion_sensor",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Front Door Contact",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.front_door_contact",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Kitchen Motion Sensor",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.kitchen_motion_sensor",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Media Room Motion Sensor",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.media_room_motion_sensor",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Stair Motion Sensor",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.stair_motion_sensor",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Sync Music Lights",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.sync_music_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Theme Mode",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.theme_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Bedroom No Motion Delay",
|
|
"room": null,
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.bedroom_no_motion_delay",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Downstairs No Motion Delay",
|
|
"room": null,
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.downstairs_no_motion_delay",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Kitchen No Motion Delay",
|
|
"room": null,
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.kitchen_no_motion_delay",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Media Room No Motion Delay",
|
|
"room": null,
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.media_room_no_motion_delay",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Stairs No Motion Delay",
|
|
"room": null,
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.stairs_no_motion_delay",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Bed Light Strip 1",
|
|
"room": null,
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.bed_light_strip_1",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Bed Light Strip 2",
|
|
"room": null,
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.bed_light_strip_2",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Bedroom Overhead Light",
|
|
"room": null,
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.bedroom_overhead_light",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Dining Room Light",
|
|
"room": null,
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.dining_room_light",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Floorlamp",
|
|
"room": null,
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.floorlamp",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Kitchen Overhead 1",
|
|
"room": null,
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.kitchen_overhead_1",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Kitchen Overhead 2",
|
|
"room": null,
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.kitchen_overhead_2",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Laundry Room Overhead 1",
|
|
"room": null,
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.laundry_room_overhead_1",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Laundry Room Overhead 2",
|
|
"room": null,
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.laundry_room_overhead_2",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Living Room Light",
|
|
"room": null,
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.living_room_light",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Media Room Overhead Light",
|
|
"room": null,
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.media_room_overhead_light",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Stairs Light Strip",
|
|
"room": null,
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.stairs_light_strip",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Stairs Overhead Light",
|
|
"room": null,
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.stairs_overhead_light",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'1710639809027'",
|
|
"automation": "- id: '1710639809027'\n alias: Turn On Lights on Motion\n description: Turns on lights in various areas when no motion is detected, with room-specific\n delays.\n trigger:\n - platform: state\n entity_id: binary_sensor.bedroom_motion_sensor\n to: 'on'\n for: 00:00:{{ '%02d' | format(states('input_number.bedroom_motion_delay') | int)\n }}\n id: bedroom_motion\n - platform: state\n entity_id: binary_sensor.kitchen_motion_sensor\n to: 'on'\n for: 00:00:{{ '%02d' | format(states('input_number.kitchen_motion_delay') | int)\n }}\n id: kitchen_motion\n - platform: state\n entity_id: binary_sensor.media_room_motion_sensor\n to: 'on'\n for: 00:00:{{ '%02d' | format(states('input_number.media_room_motion_delay') |\n int) }}\n id: media_room_motion\n - platform: state\n entity_id: binary_sensor.stair_motion_sensor\n to: 'on'\n for: 00:00:{{ '%02d' | format(states('input_number.stairs_motion_delay') | int)\n }}\n id: stairs_motion\n - platform: state\n entity_id: binary_sensor.front_door_contact\n to: 'on'\n for: 00:00:{{ '%02d' | format(states('input_number.downstairs_motion_delay')|\n int) }}\n id: front_door_opened\n - platform: state\n entity_id: binary_sensor.back_door_contact\n to: 'on'\n for: 00:00:{{ '%02d' | format(states('input_number.downstairs_motion_delay')|\n int) }}\n id: back_door_opened\n condition:\n - condition: state\n entity_id: input_boolean.sync_music_lights\n state: 'off'\n - condition: state\n entity_id: input_boolean.theme_mode\n state: 'off'\n action:\n - choose:\n - conditions:\n - condition: trigger\n id: kitchen_motion\n sequence:\n - choose:\n - conditions:\n - condition: state\n state: 'on'\n entity_id: input_boolean.enable_color_mode\n sequence:\n - service: light.turn_on\n entity_id:\n - light.kitchen_overhead_1\n - light.kitchen_overhead_2\n - light.laundry_room_overhead_1\n - light.laundry_room_overhead_2\n data:\n brightness_pct: '{{ light_brightness }}'\n color_name: '{{ light_color }}'\n default:\n - service: light.turn_on\n entity_id:\n - light.kitchen_overhead_1\n - light.kitchen_overhead_2\n - light.laundry_room_overhead_1\n - light.laundry_room_overhead_2\n data:\n brightness_pct: '{{ light_brightness }}'\n kelvin: '{{ light_kelvin }}'\n - conditions:\n - condition: trigger\n id: stairs_motion\n sequence:\n - choose:\n - conditions:\n - condition: state\n state: 'on'\n entity_id: input_boolean.enable_color_mode\n sequence:\n - service: light.turn_ON\n entity_id:\n - light.stairs_overhead_light\n - light.stairs_light_strip\n data:\n brightness_pct: '{{ light_brightness }}'\n color_name: '{{ light_color }}'\n default:\n - service: light.turn_ON\n entity_id:\n - light.stairs_overhead_light\n - light.stairs_light_strip\n data:\n brightness_pct: '{{ light_brightness }}'\n kelvin: '{{ light_kelvin }}'\n - conditions:\n - condition: trigger\n id: bedroom_motion\n sequence:\n - choose:\n - conditions:\n - condition: state\n entity_id: input_boolean.someone_sleeping\n state: 'on'\n sequence:\n - choose:\n - conditions:\n - condition: state\n state: 'on'\n entity_id: input_boolean.enable_color_mode\n sequence:\n - service: light.turn_on\n entity_id:\n - light.bed_light_strip_1\n - light.bed_light_strip_2\n data:\n color_name: '{{ light_color }}'\n brightness_pct: 10\n default:\n - service: light.turn_on\n entity_id:\n - light.bed_light_strip_1\n - light.bed_light_strip_2\n data:\n kelvin: '{{ light_kelvin }}'\n brightness_pct: 10\n - conditions:\n - condition: and\n conditions:\n - condition: state\n state: 'on'\n entity_id: input_boolean.enable_color_mode\n - condition: state\n entity_id: input_boolean.someone_sleeping\n state: 'off'\n sequence:\n - service: light.turn_on\n entity_id:\n - light.floorlamp\n - light.bedroom_overhead_light\n - light.bed_light_strip_1\n - light.bed_light_strip_2\n data:\n color_name: '{{ light_color }}'\n brightness_pct: 10\n default:\n - service: light.turn_on\n entity_id:\n - light.floorlamp\n - light.bedroom_overhead_light\n - light.bed_light_strip_1\n - light.bed_light_strip_2\n data:\n brightness_pct: '{{ light_brightness }}'\n kelvin: '{{ light_kelvin }}'\n - conditions:\n - condition: trigger\n id: media_room_motion\n sequence:\n - choose:\n - conditions:\n - condition: state\n state: 'on'\n entity_id: input_boolean.enable_color_mode\n sequence:\n - service: light.turn_ON\n entity_id:\n - light.media_room_overhead_light\n data:\n brightness_pct: '{{ light_brightness }}'\n color_name: '{{ light_color }}'\n default:\n - service: light.turn_ON\n entity_id:\n - light.media_room_overhead_light\n data:\n brightness_pct: '{{ light_brightness }}'\n kelvin: '{{ light_kelvin }}'\n - conditions:\n - condition: trigger\n id: front_door_opened\n sequence:\n - choose:\n - conditions:\n - condition: state\n state: 'on'\n entity_id: input_boolean.enable_color_mode\n sequence:\n - service: light.turn_on\n entity_id:\n - light.living_room_light\n - light.dining_room_light\n data:\n brightness_pct: '{{ light_brightness }}'\n color_name: '{{ light_color }}'\n default:\n - service: light.turn_on\n entity_id:\n - light.living_room_light\n - light.dining_room_light\n data:\n brightness_pct: '{{ light_brightness }}'\n kelvin: '{{ light_kelvin }}'\n - conditions:\n - condition: trigger\n id: back_door_opened\n sequence:\n - choose:\n - conditions:\n - condition: state\n state: 'on'\n entity_id: input_boolean.enable_color_mode\n sequence:\n - service: light.turn_ON\n entity_id:\n - light.kitchen_overhead_1\n - light.kitchen_overhead_2\n - light.laundry_room_overhead_1\n - light.laundry_room_overhead_2\n data:\n brightness_pct: '{{ light_brightness }}'\n color_name: '{{ light_color }}'\n default:\n - service: light.turn_ON\n entity_id:\n - light.kitchen_overhead_1\n - light.kitchen_overhead_2\n - light.laundry_room_overhead_1\n - light.laundry_room_overhead_2\n data:\n brightness_pct: '{{ light_brightness }}'\n kelvin: '{{ light_kelvin }}'\n variables:\n light_brightness: '{{ states(''input_number.home_light_brightness'') | int }}'\n light_color: '{{ states(''input_select.light_color'') }}'\n light_kelvin: '{{ states(''input_select.light_kelvin'') }}'\n mode: single",
|
|
"config": [
|
|
{
|
|
"name": "Back Door Contact",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.back_door_contact",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Bedroom Motion Sensor",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.bedroom_motion_sensor",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Front Door Contact",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.front_door_contact",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Kitchen Motion Sensor",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.kitchen_motion_sensor",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Media Room Motion Sensor",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.media_room_motion_sensor",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Stair Motion Sensor",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.stair_motion_sensor",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Enable Color Mode",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.enable_color_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Someone Sleeping",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.someone_sleeping",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Sync Music Lights",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.sync_music_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Theme Mode",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.theme_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Bedroom Motion Delay",
|
|
"room": null,
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.bedroom_motion_delay",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Downstairs Motion Delay",
|
|
"room": null,
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.downstairs_motion_delay",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Home Light Brightness",
|
|
"room": null,
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.home_light_brightness",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Kitchen Motion Delay",
|
|
"room": null,
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.kitchen_motion_delay",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Media Room Motion Delay",
|
|
"room": null,
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.media_room_motion_delay",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Stairs Motion Delay",
|
|
"room": null,
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.stairs_motion_delay",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Light Color",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.light_color",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Light Kelvin",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.light_kelvin",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Bed Light Strip 1",
|
|
"room": null,
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.bed_light_strip_1",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Bed Light Strip 2",
|
|
"room": null,
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.bed_light_strip_2",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Bedroom Overhead Light",
|
|
"room": null,
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.bedroom_overhead_light",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Dining Room Light",
|
|
"room": null,
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.dining_room_light",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Floorlamp",
|
|
"room": null,
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.floorlamp",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Kitchen Overhead 1",
|
|
"room": null,
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.kitchen_overhead_1",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Kitchen Overhead 2",
|
|
"room": null,
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.kitchen_overhead_2",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Laundry Room Overhead 1",
|
|
"room": null,
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.laundry_room_overhead_1",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Laundry Room Overhead 2",
|
|
"room": null,
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.laundry_room_overhead_2",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Living Room Light",
|
|
"room": null,
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.living_room_light",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Media Room Overhead Light",
|
|
"room": null,
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.media_room_overhead_light",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Stairs Light Strip",
|
|
"room": null,
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.stairs_light_strip",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Stairs Overhead Light",
|
|
"room": null,
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.stairs_overhead_light",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "1cdcc41b990443baad193c766e929fa4",
|
|
"automation": "- alias: Adjust Brightness of On Lights Except Screens\n description: Adjusts the brightness of lights that are currently on (except screen\n lights) when input_number for brightness changes\n trigger:\n - platform: state\n entity_id: input_number.home_light_brightness\n action:\n - service: light.turn_on\n data:\n brightness_pct: '{{ states(''input_number.home_light_brightness'') | int }}'\n target:\n entity_id: \"{% set ns = namespace(lights=[]) %} {% for light in states.light\\\n \\ %}\\n {% if light.state == 'on' and '_screen' not in light.entity_id %}\\n\\\n \\ {% set ns.lights = ns.lights + [ light.entity_id ] %}\\n {% endif %}\\n\\\n {% endfor %} {{ ns.lights }}\\n\"\n mode: parallel\n id: 1cdcc41b990443baad193c766e929fa4",
|
|
"config": [
|
|
{
|
|
"name": "Home Light Brightness",
|
|
"room": null,
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.home_light_brightness",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "cc5b7c3fd79a4d5ea054d706af05c445",
|
|
"automation": "- id: cc5b7c3fd79a4d5ea054d706af05c445\n alias: Set Light to Selected Color\n trigger:\n - platform: state\n entity_id: input_select.light_color\n action:\n - service: input_boolean.turn_off\n metadata: {}\n data: {}\n target:\n entity_id:\n - input_boolean.normal_lights\n - input_boolean.sync_music_lights\n - input_boolean.theme_mode\n - service: input_boolean.turn_on\n target:\n entity_id: input_boolean.enable_color_mode\n data: {}\n - service: light.turn_on\n target:\n entity_id: light.all_lights\n data:\n color_name: '{{ states(''input_select.light_color'') }}'\n mode: parallel",
|
|
"config": [
|
|
{
|
|
"name": "All lights group",
|
|
"room": "unknown",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.all_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Enable Color Mode",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.enable_color_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Normal Lights",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.normal_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Sync Music Lights",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.sync_music_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Theme Mode",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.theme_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Light Color",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.light_color",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'1721875125353'",
|
|
"automation": "- id: '1721875125353'\n alias: Outdoor Night Light\n description: ''\n trigger:\n - platform: state\n entity_id:\n - binary_sensor.back_door_contact\n from: 'off'\n to: 'on'\n condition:\n - condition: sun\n after: sunset\n action:\n - service: switch.toggle\n data: {}\n target:\n device_id: 985b699e0a29cb7a1bcc100865344644\n - delay:\n hours: 0\n minutes: 15\n seconds: 0\n milliseconds: 0\n - service: switch.toggle\n metadata: {}\n data: {}\n target:\n device_id: 985b699e0a29cb7a1bcc100865344644\n mode: single",
|
|
"config": [
|
|
{
|
|
"name": "Back Door Contact",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.back_door_contact",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Device 985b699e0a29cb7a1bcc100865344644",
|
|
"room": null,
|
|
"type": null,
|
|
"id": {
|
|
"entity_id": null,
|
|
"device_id": "985b699e0a29cb7a1bcc100865344644"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'1711417104881'",
|
|
"automation": "- id: '1711417104881'\n alias: Normal Light On\n description: ''\n trigger:\n - platform: state\n entity_id:\n - input_boolean.normal_lights\n to: 'on'\n from: 'off'\n condition: []\n action:\n - service: input_boolean.turn_off\n metadata: {}\n data: {}\n target:\n entity_id:\n - input_boolean.enable_color_mode\n - input_boolean.sync_music_lights\n - input_boolean.theme_mode\n mode: single",
|
|
"config": [
|
|
{
|
|
"name": "Enable Color Mode",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.enable_color_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Normal Lights",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.normal_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Sync Music Lights",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.sync_music_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Theme Mode",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.theme_mode",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'1710456822979'",
|
|
"automation": "- id: '1710456822979'\n alias: Theme is off\n description: ''\n trigger:\n - platform: state\n entity_id:\n - input_boolean.theme_mode\n from: 'on'\n to: 'off'\n condition: []\n action:\n - service: input_boolean.turn_on\n data: {}\n target:\n entity_id: input_boolean.normal_lights\n mode: single",
|
|
"config": [
|
|
{
|
|
"name": "Normal Lights",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.normal_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Theme Mode",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.theme_mode",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'1711150276270'",
|
|
"automation": "- id: '1711150276270'\n alias: Set Lights to Selected Temperature\n description: ''\n trigger:\n - platform: state\n entity_id:\n - input_select.light_kelvin\n condition: []\n action:\n - service: input_boolean.turn_off\n metadata: {}\n data: {}\n target:\n entity_id:\n - input_boolean.enable_color_mode\n - input_boolean.theme_mode\n - input_boolean.sync_music_lights\n - service: input_boolean.turn_on\n data: {}\n target:\n entity_id: input_boolean.normal_lights\n - service: light.turn_on\n target:\n entity_id: light.all_lights\n data:\n kelvin: '{{ light_kelvin }}'\n variables:\n light_kelvin: '{{ states(''input_select.light_kelvin'') }}'\n mode: parallel",
|
|
"config": [
|
|
{
|
|
"name": "All lights group",
|
|
"room": "unknown",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.all_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Enable Color Mode",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.enable_color_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Normal Lights",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.normal_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Sync Music Lights",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.sync_music_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Theme Mode",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.theme_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Light Kelvin",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.light_kelvin",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'1710103968772'",
|
|
"automation": "- id: '1710103968772'\n alias: Sync Sengled with Hue - Dynamic Palette\n description: Mimic Hue dynamic scene on Sengled lights\n trigger:\n - platform: template\n value_template: '{{ state_attr(''light.home'', ''dynamics'') }}'\n enabled: true\n action:\n - service: light.turn_on\n data:\n entity_id:\n - light.bed_light_strip_1\n - light.laundry_room_overhead_1\n brightness: '{{ state_attr(''light.media_room_overhead_light'', ''brightness'')}}'\n rgb_color: '{{ state_attr(''light.media_room_overhead_light'', ''rgb_color'')\n }}'\n - service: light.turn_on\n data:\n entity_id:\n - light.stairs_light_strip\n - light.kitchen_overhead_1\n - light.living_room_light\n brightness: '{{ state_attr(''light.stairs_overhead_light'', ''brightness'')\n }}'\n rgb_color: '{{ state_attr(''light.stairs_overhead_light'', ''rgb_color'') }}'\n - service: light.turn_on\n data:\n entity_id:\n - light.kitchen_overhead_2\n - light.laundry_room_overhead_2\n brightness: '{{ state_attr(''light.bedroom_overhead_light'', ''brightness'')\n }}'\n rgb_color: '{{ state_attr(''light.bedroom_overhead_light'', ''rgb_color'') }}'\n - service: light.turn_on\n data:\n entity_id:\n - light.dining_room_light\n - light.bed_light_strip_2\n brightness: '{{ state_attr(''light.floorlamp'', ''brightness'') }}'\n rgb_color: '{{ state_attr(''light.floorlamp'', ''rgb_color'') }}'\n mode: single\n max: 10",
|
|
"config": [
|
|
{
|
|
"name": "Bed Light Strip 1",
|
|
"room": null,
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.bed_light_strip_1",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Bed Light Strip 2",
|
|
"room": null,
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.bed_light_strip_2",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Bedroom Overhead Light",
|
|
"room": null,
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.bedroom_overhead_light",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Dining Room Light",
|
|
"room": null,
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.dining_room_light",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Floorlamp",
|
|
"room": null,
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.floorlamp",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Kitchen Overhead 1",
|
|
"room": null,
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.kitchen_overhead_1",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Kitchen Overhead 2",
|
|
"room": null,
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.kitchen_overhead_2",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Laundry Room Overhead 1",
|
|
"room": null,
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.laundry_room_overhead_1",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Laundry Room Overhead 2",
|
|
"room": null,
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.laundry_room_overhead_2",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Living Room Light",
|
|
"room": null,
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.living_room_light",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Media Room Overhead Light",
|
|
"room": null,
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.media_room_overhead_light",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Stairs Light Strip",
|
|
"room": null,
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.stairs_light_strip",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Stairs Overhead Light",
|
|
"room": null,
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.stairs_overhead_light",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'1710456631644'",
|
|
"automation": "- id: '1710456631644'\n alias: Persistent Theme Lights\n description: ''\n trigger:\n - platform: state\n entity_id:\n - binary_sensor.hue_groups_dynamic_scening\n from: 'off'\n to: 'on'\n condition: []\n action:\n - service: input_boolean.turn_on\n metadata: {}\n data: {}\n target:\n entity_id: input_boolean.theme_mode\n mode: single",
|
|
"config": [
|
|
{
|
|
"name": "Hue Groups Dynamic Scening",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.hue_groups_dynamic_scening",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Theme Mode",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.theme_mode",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'1710456739075'",
|
|
"automation": "- id: '1710456739075'\n alias: Theme Is Running\n description: ''\n trigger:\n - platform: state\n entity_id:\n - input_boolean.theme_mode\n from: null\n to: 'on'\n condition: []\n action:\n - service: input_boolean.turn_off\n metadata: {}\n data: {}\n target:\n entity_id:\n - input_boolean.normal_lights\n - input_boolean.enable_color_mode\n - input_boolean.sync_music_lights\n mode: single",
|
|
"config": [
|
|
{
|
|
"name": "Enable Color Mode",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.enable_color_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Normal Lights",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.normal_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Sync Music Lights",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.sync_music_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Theme Mode",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.theme_mode",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'1711221914901'",
|
|
"automation": "- id: '1711221914901'\n alias: Setup Evening Lights\n description: ''\n trigger:\n - platform: state\n entity_id:\n - input_select.time_of_day\n to: Evening\n condition: []\n action:\n - service: input_number.set_value\n metadata: {}\n data:\n value: 5\n target:\n entity_id: input_number.bedroom_no_motion_delay\n - service: input_number.set_value\n metadata: {}\n data:\n value: 10\n target:\n entity_id: input_number.kitchen_no_motion_delay\n - service: input_number.set_value\n metadata: {}\n data:\n value: 0\n target:\n entity_id: input_number.downstairs_no_motion_delay\n - service: input_number.set_value\n metadata: {}\n data:\n value: 2\n target:\n entity_id: input_number.stairs_no_motion_delay\n - service: input_number.set_value\n metadata: {}\n data:\n value: 10\n target:\n entity_id: input_number.media_room_no_motion_delay\n - service: input_number.set_value\n metadata: {}\n data:\n value: 0\n target:\n entity_id: input_number.bedroom_motion_delay\n - service: input_number.set_value\n metadata: {}\n data:\n value: 0\n target:\n entity_id: input_number.downstairs_motion_delay\n - service: input_number.set_value\n metadata: {}\n data:\n value: 0\n target:\n entity_id: input_number.kitchen_motion_delay\n - service: input_number.set_value\n metadata: {}\n data:\n value: 0\n target:\n entity_id: input_number.stairs_motion_delay\n - service: input_number.set_value\n metadata: {}\n data:\n value: 0\n target:\n entity_id: input_number.media_room_motion_delay\n mode: single",
|
|
"config": [
|
|
{
|
|
"name": "Bedroom Motion Delay",
|
|
"room": null,
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.bedroom_motion_delay",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Bedroom No Motion Delay",
|
|
"room": null,
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.bedroom_no_motion_delay",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Downstairs Motion Delay",
|
|
"room": null,
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.downstairs_motion_delay",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Downstairs No Motion Delay",
|
|
"room": null,
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.downstairs_no_motion_delay",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Kitchen Motion Delay",
|
|
"room": null,
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.kitchen_motion_delay",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Kitchen No Motion Delay",
|
|
"room": null,
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.kitchen_no_motion_delay",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Media Room Motion Delay",
|
|
"room": null,
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.media_room_motion_delay",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Media Room No Motion Delay",
|
|
"room": null,
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.media_room_no_motion_delay",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Stairs Motion Delay",
|
|
"room": null,
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.stairs_motion_delay",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Stairs No Motion Delay",
|
|
"room": null,
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.stairs_no_motion_delay",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Time of Day",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.time_of_day",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'1711221871324'",
|
|
"automation": "- id: '1711221871324'\n alias: Setup Afternoon Lights\n description: ''\n trigger:\n - platform: state\n entity_id:\n - input_select.time_of_day\n to: Afternoon\n condition: []\n action:\n - service: input_number.set_value\n metadata: {}\n data:\n value: 5\n target:\n entity_id: input_number.bedroom_no_motion_delay\n - service: input_number.set_value\n metadata: {}\n data:\n value: 0\n target:\n entity_id: input_number.bedroom_motion_delay\n - service: input_number.set_value\n metadata: {}\n data:\n value: 0\n target:\n entity_id: input_number.downstairs_motion_delay\n - service: input_number.set_value\n metadata: {}\n data:\n value: 15\n target:\n entity_id: input_number.downstairs_no_motion_delay\n - service: input_number.set_value\n metadata: {}\n data:\n value: 0\n target:\n entity_id: input_number.kitchen_motion_delay\n - service: input_number.set_value\n metadata: {}\n data:\n value: 15\n target:\n entity_id: input_number.kitchen_no_motion_delay\n - service: input_number.set_value\n metadata: {}\n data:\n value: 5\n target:\n entity_id: input_number.stairs_motion_delay\n - service: input_number.set_value\n metadata: {}\n data:\n value: 0\n target:\n entity_id: input_number.stairs_no_motion_delay\n - service: input_number.set_value\n metadata: {}\n data:\n value: 30\n target:\n entity_id: input_number.media_room_motion_delay\n - service: input_number.set_value\n metadata: {}\n data:\n value: 0\n target:\n entity_id: input_number.media_room_no_motion_delay\n mode: single",
|
|
"config": [
|
|
{
|
|
"name": "Bedroom Motion Delay",
|
|
"room": null,
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.bedroom_motion_delay",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Bedroom No Motion Delay",
|
|
"room": null,
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.bedroom_no_motion_delay",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Downstairs Motion Delay",
|
|
"room": null,
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.downstairs_motion_delay",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Downstairs No Motion Delay",
|
|
"room": null,
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.downstairs_no_motion_delay",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Kitchen Motion Delay",
|
|
"room": null,
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.kitchen_motion_delay",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Kitchen No Motion Delay",
|
|
"room": null,
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.kitchen_no_motion_delay",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Media Room Motion Delay",
|
|
"room": null,
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.media_room_motion_delay",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Media Room No Motion Delay",
|
|
"room": null,
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.media_room_no_motion_delay",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Stairs Motion Delay",
|
|
"room": null,
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.stairs_motion_delay",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Stairs No Motion Delay",
|
|
"room": null,
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.stairs_no_motion_delay",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Time of Day",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.time_of_day",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'1711155740786'",
|
|
"automation": "- id: '1711155740786'\n alias: Setup Morning Lights\n description: ''\n trigger:\n - platform: state\n entity_id:\n - input_select.time_of_day\n to: Morning\n condition: []\n action:\n - service: input_number.set_value\n metadata: {}\n data:\n value: 15\n target:\n entity_id: input_number.bedroom_no_motion_delay\n - service: input_number.set_value\n metadata: {}\n data:\n value: 30\n target:\n entity_id: input_number.downstairs_no_motion_delay\n - service: input_number.set_value\n metadata: {}\n data:\n value: 15\n target:\n entity_id: input_number.kitchen_no_motion_delay\n - service: input_number.set_value\n metadata: {}\n data:\n value: 0\n target:\n entity_id: input_number.stairs_no_motion_delay\n - service: input_number.set_value\n metadata: {}\n data:\n value: 10\n target:\n entity_id: input_number.media_room_no_motion_delay\n - service: input_number.set_value\n metadata: {}\n data:\n value: 30\n target:\n entity_id: input_number.bedroom_motion_delay\n - service: input_number.set_value\n metadata: {}\n data:\n value: 0\n target:\n entity_id: input_number.downstairs_motion_delay\n - service: input_number.set_value\n metadata: {}\n data:\n value: 0\n target:\n entity_id: input_number.kitchen_motion_delay\n - service: input_number.set_value\n metadata: {}\n data:\n value: 0\n target:\n entity_id: input_number.stairs_motion_delay\n - service: input_number.set_value\n metadata: {}\n data:\n value: 0\n target:\n entity_id: input_number.media_room_motion_delay\n mode: single",
|
|
"config": [
|
|
{
|
|
"name": "Bedroom Motion Delay",
|
|
"room": null,
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.bedroom_motion_delay",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Bedroom No Motion Delay",
|
|
"room": null,
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.bedroom_no_motion_delay",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Downstairs Motion Delay",
|
|
"room": null,
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.downstairs_motion_delay",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Downstairs No Motion Delay",
|
|
"room": null,
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.downstairs_no_motion_delay",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Kitchen Motion Delay",
|
|
"room": null,
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.kitchen_motion_delay",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Kitchen No Motion Delay",
|
|
"room": null,
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.kitchen_no_motion_delay",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Media Room Motion Delay",
|
|
"room": null,
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.media_room_motion_delay",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Media Room No Motion Delay",
|
|
"room": null,
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.media_room_no_motion_delay",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Stairs Motion Delay",
|
|
"room": null,
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.stairs_motion_delay",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Stairs No Motion Delay",
|
|
"room": null,
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.stairs_no_motion_delay",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Time of Day",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.time_of_day",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'1711155393194'",
|
|
"automation": "- id: '1711155393194'\n alias: Setup Late Night Lights\n description: ''\n trigger:\n - platform: state\n entity_id:\n - input_select.time_of_day\n to: Late Night\n condition: []\n action:\n - service: input_number.set_value\n metadata: {}\n data:\n value: 0\n target:\n entity_id: input_number.bedroom_no_motion_delay\n - service: input_number.set_value\n metadata: {}\n data:\n value: 0\n target:\n entity_id: input_number.downstairs_no_motion_delay\n - service: input_number.set_value\n metadata: {}\n data:\n value: 10\n target:\n entity_id: input_number.kitchen_no_motion_delay\n - service: input_number.set_value\n metadata: {}\n data:\n value: 0\n target:\n entity_id: input_number.media_room_no_motion_delay\n - service: input_number.set_value\n metadata: {}\n data:\n value: 0\n target:\n entity_id: input_number.stairs_no_motion_delay\n - service: input_number.set_value\n metadata: {}\n data:\n value: 30\n target:\n entity_id: input_number.bedroom_motion_delay\n - service: input_number.set_value\n metadata: {}\n data:\n value: 0\n target:\n entity_id: input_number.downstairs_motion_delay\n - service: input_number.set_value\n metadata: {}\n data:\n value: 0\n target:\n entity_id: input_number.kitchen_motion_delay\n - service: input_number.set_value\n metadata: {}\n data:\n value: 0\n target:\n entity_id: input_number.stairs_motion_delay\n - service: input_number.set_value\n metadata: {}\n data:\n value: 0\n target:\n entity_id: input_number.media_room_motion_delay\n mode: single",
|
|
"config": [
|
|
{
|
|
"name": "Bedroom Motion Delay",
|
|
"room": null,
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.bedroom_motion_delay",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Bedroom No Motion Delay",
|
|
"room": null,
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.bedroom_no_motion_delay",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Downstairs Motion Delay",
|
|
"room": null,
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.downstairs_motion_delay",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Downstairs No Motion Delay",
|
|
"room": null,
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.downstairs_no_motion_delay",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Kitchen Motion Delay",
|
|
"room": null,
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.kitchen_motion_delay",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Kitchen No Motion Delay",
|
|
"room": null,
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.kitchen_no_motion_delay",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Media Room Motion Delay",
|
|
"room": null,
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.media_room_motion_delay",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Media Room No Motion Delay",
|
|
"room": null,
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.media_room_no_motion_delay",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Stairs Motion Delay",
|
|
"room": null,
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.stairs_motion_delay",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Stairs No Motion Delay",
|
|
"room": null,
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.stairs_no_motion_delay",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Time of Day",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.time_of_day",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'1710642496243'",
|
|
"automation": "- id: '1710642496243'\n alias: Update Time of Day\n description: Automatically updates the 'time_of_day' input select based on the current\n time and predefined start times.\n trigger:\n - platform: time\n at: 00:00:01\n - platform: time\n at: input_datetime.morning_start\n - platform: time\n at: input_datetime.afternoon_start\n - platform: time\n at: input_datetime.evening_start\n - platform: time\n at: input_datetime.late_night_start\n condition: []\n action:\n - choose:\n - conditions:\n - condition: template\n value_template: '{{ now().time() >= strptime(states(''input_datetime.morning_start''),\n ''%H:%M:%S'').time() and now().time() < strptime(states(''input_datetime.afternoon_start''),\n ''%H:%M:%S'').time() }}'\n sequence:\n - service: input_select.select_option\n data:\n entity_id: input_select.time_of_day\n option: Morning\n - conditions:\n - condition: template\n value_template: '{{ now().time() >= strptime(states(''input_datetime.afternoon_start''),\n ''%H:%M:%S'').time() and now().time() < strptime(states(''input_datetime.evening_start''),\n ''%H:%M:%S'').time() }}'\n sequence:\n - service: input_select.select_option\n data:\n entity_id: input_select.time_of_day\n option: Afternoon\n - conditions:\n - condition: template\n value_template: '{{ now().time() >= strptime(states(''input_datetime.evening_start''),\n ''%H:%M:%S'').time() and now().time() < strptime(states(''input_datetime.late_night_start''),\n ''%H:%M:%S'').time() }}'\n sequence:\n - service: input_select.select_option\n data:\n entity_id: input_select.time_of_day\n option: Evening\n - conditions:\n - condition: template\n value_template: '{{ now().time() >= strptime(states(''input_datetime.late_night_start''),\n ''%H:%M:%S'').time() or now().time() < strptime(states(''input_datetime.morning_start''),\n ''%H:%M:%S'').time() }}'\n sequence:\n - service: input_select.select_option\n data:\n entity_id: input_select.time_of_day\n option: Late Night\n mode: single",
|
|
"config": [
|
|
{
|
|
"name": "Afternoon Start",
|
|
"room": null,
|
|
"type": "input_datetime",
|
|
"id": {
|
|
"entity_id": "input_datetime.afternoon_start",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Evening Start",
|
|
"room": null,
|
|
"type": "input_datetime",
|
|
"id": {
|
|
"entity_id": "input_datetime.evening_start",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Late Night Start",
|
|
"room": null,
|
|
"type": "input_datetime",
|
|
"id": {
|
|
"entity_id": "input_datetime.late_night_start",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Morning Start",
|
|
"room": null,
|
|
"type": "input_datetime",
|
|
"id": {
|
|
"entity_id": "input_datetime.morning_start",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Time of Day",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.time_of_day",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'1707603165027'",
|
|
"automation": "- id: '1707603165027'\n alias: Play Clock Sound on the Half-Hour\n description: Plays a clock sound every half-hour when the sun is up\n trigger:\n - platform: time_pattern\n minutes: '30'\n condition:\n - condition: state\n entity_id: sun.sun\n state: above_horizon\n action:\n - service: media_player.play_media\n target:\n entity_id: media_player.home\n data:\n media_content_id: media-source://media_source/local/antique-wood-chime-bell-ring.wav\n media_content_type: music",
|
|
"config": [
|
|
{
|
|
"name": "Home",
|
|
"room": null,
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.home",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Sun",
|
|
"room": null,
|
|
"type": "sun",
|
|
"id": {
|
|
"entity_id": "sun.sun",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'1709497089270'",
|
|
"automation": "- id: '1709497089270'\n alias: Play Clock Sound on the Hour\n description: Plays a clock sound every hour when the sun is up and not playing frog\n sounds\n trigger:\n - platform: time_pattern\n minutes: '0'\n condition:\n - condition: state\n entity_id: sun.sun\n state: above_horizon\n - condition: state\n entity_id: input_boolean.frog_sounds_today\n state: 'off'\n action:\n - service: media_player.play_media\n target:\n entity_id: media_player.home\n data:\n media_content_id: media-source://media_source/local/antique-wood-chime-bell-ring.wav\n media_content_type: music\n mode: single",
|
|
"config": [
|
|
{
|
|
"name": "Frog Sounds Today",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.frog_sounds_today",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Home",
|
|
"room": null,
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.home",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Sun",
|
|
"room": null,
|
|
"type": "sun",
|
|
"id": {
|
|
"entity_id": "sun.sun",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'1709228035694'",
|
|
"automation": "- id: '1709228035694'\n alias: Random Frog Chime During Daylight Hours\n description: Plays a random frog call every hour during daylight hours on randomly\n selected days.\n trigger:\n - platform: time_pattern\n hours: '01'\n condition:\n - condition: state\n entity_id: sun.sun\n state: above_horizon\n - condition: state\n entity_id: input_boolean.frog_sounds_today\n state: 'on'\n enabled: true\n action:\n - variables:\n chosen_frog: '{{ [''https://www.floridamuseum.ufl.edu/wp-content/uploads/sites/108/2018/11/barking-treefrog-chorus.mp3'',\n ''https://www.floridamuseum.ufl.edu/wp-content/uploads/sites/108/2018/11/bird-voiced-treefrog.mp3'',\n ''https://www.floridamuseum.ufl.edu/wp-content/uploads/sites/108/2018/11/bronze-frog.mp3'',\n ''https://www.floridamuseum.ufl.edu/wp-content/uploads/sites/108/2018/11/carpenter-frog.mp3'',\n ''https://www.floridamuseum.ufl.edu/wp-content/uploads/sites/108/2020/11/southern-gray-treefrog-mating-call.mp3'',\n ''https://www.floridamuseum.ufl.edu/wp-content/uploads/sites/108/2020/11/southern-gray-treefrog-rain-call.mp3'',\n ''https://www.floridamuseum.ufl.edu/wp-content/uploads/sites/108/2018/11/narrow-mouthed-toad.mp3'',\n ''https://www.floridamuseum.ufl.edu/wp-content/uploads/sites/108/2018/11/florida-gopher-frog.mp3'',\n ''https://www.floridamuseum.ufl.edu/wp-content/uploads/sites/108/2018/11/green-treefrog.mp3'',\n ''https://www.floridamuseum.ufl.edu/wp-content/uploads/sites/108/2018/11/green-treefrog-chorus.mp3'',\n ''https://www.floridamuseum.ufl.edu/wp-content/uploads/sites/108/2018/11/green-treefrog-rain-call.mp3'',\n ''https://www.floridamuseum.ufl.edu/wp-content/uploads/sites/108/2018/11/little-grass-frog.mp3'',\n ''https://www.floridamuseum.ufl.edu/wp-content/uploads/sites/108/2018/11/little-grass-frog-rhythmic.mp3'',\n ''https://www.floridamuseum.ufl.edu/wp-content/uploads/sites/108/2018/11/oak-toad-breeding-call.mp3'',\n ''https://www.floridamuseum.ufl.edu/wp-content/uploads/sites/108/2018/11/ornate-chorus-frog.mp3'',\n ''https://www.floridamuseum.ufl.edu/wp-content/uploads/sites/108/2018/11/pig-frog.mp3'',\n ''https://www.floridamuseum.ufl.edu/wp-content/uploads/sites/108/2018/11/pinewoods-treefrog.mp3'',\n ''https://www.floridamuseum.ufl.edu/wp-content/uploads/sites/108/2018/11/pinewoods-treefrog-chorus.mp3'',\n ''https://www.floridamuseum.ufl.edu/wp-content/uploads/sites/108/2018/11/florida-chorus-frog.mp3'',\n ''https://www.floridamuseum.ufl.edu/wp-content/uploads/sites/108/2018/11/southern-cricket-frog.mp3'',\n ''https://www.floridamuseum.ufl.edu/wp-content/uploads/sites/108/2018/11/southern-cricket-frog-chorus.mp3'',\n ''https://www.floridamuseum.ufl.edu/wp-content/uploads/sites/108/2018/11/southern-leopard-frog-chorus.mp3'',\n ''https://www.floridamuseum.ufl.edu/wp-content/uploads/sites/108/2018/11/southern-toad-breeding-chorus.mp3'',\n ''https://www.floridamuseum.ufl.edu/wp-content/uploads/sites/108/2018/11/spring-peeper.mp3'',\n ''https://www.floridamuseum.ufl.edu/wp-content/uploads/sites/108/2020/11/spring-peeper-chorus-mating-call.mp3'',\n ''https://www.floridamuseum.ufl.edu/wp-content/uploads/sites/108/2018/11/squirrel-treefrog.mp3'',\n ''https://www.floridamuseum.ufl.edu/wp-content/uploads/sites/108/2018/11/squirrel-treefrog-chorus.mp3'',\n ''https://www.floridamuseum.ufl.edu/wp-content/uploads/sites/108/2018/11/group-chorus-spring.mp3'',\n ''https://www.floridamuseum.ufl.edu/wp-content/uploads/sites/108/2018/11/group-chorus-summer-july.mp3'',\n ''https://www.floridamuseum.ufl.edu/wp-content/uploads/sites/108/2018/11/group-chorus-summer-august.mp3'',\n ''https://www.floridamuseum.ufl.edu/wp-content/uploads/sites/108/2018/11/group-chorus-winter.mp3'',\n ''https://www.floridamuseum.ufl.edu/wp-content/uploads/sites/108/2020/10/Cuban-treefrog-calls_03.mp3''\n ][(range(0, 32) | random)] }}\n\n '\n - service: media_player.volume_set\n data:\n volume_level: 1\n target:\n entity_id: media_player.bedroom_speaker\n - service: media_player.play_media\n data:\n entity_id: media_player.bedroom_speaker\n media_content_id: '{{ chosen_frog }}'\n media_content_type: music\n - service: media_player.volume_set\n data:\n volume_level: 1\n target:\n entity_id: media_player.kitchen_speaker\n - service: media_player.play_media\n data:\n entity_id: media_player.kitchen_speaker\n media_content_id: '{{ chosen_frog }}'\n media_content_type: music\n mode: single",
|
|
"config": [
|
|
{
|
|
"name": "Frog Sounds Today",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.frog_sounds_today",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Bedroom Speaker",
|
|
"room": null,
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.bedroom_speaker",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Kitchen Speaker",
|
|
"room": null,
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.kitchen_speaker",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Sun",
|
|
"room": null,
|
|
"type": "sun",
|
|
"id": {
|
|
"entity_id": "sun.sun",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'1709326067269'",
|
|
"automation": "- id: '1709326067269'\n alias: Determine Daily Frog Sound Playback\n description: This automation will run the script just after midnight each day to\n randomly determine if the frog sounds should play that day.\n trigger:\n - platform: time\n at: 00:01:00\n action:\n - service: script.1709327333198\n data: {}",
|
|
"config": [
|
|
{
|
|
"name": "1709327333198",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.1709327333198",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
}
|
|
] |