diff --git a/nspanel_blueprint.yaml b/nspanel_blueprint.yaml index 8794855..6b90bb2 100644 --- a/nspanel_blueprint.yaml +++ b/nspanel_blueprint.yaml @@ -182,6 +182,11 @@ The goal was to create a version that allows everyone to use the NSpanel fully l - switch - input_boolean - cover + - automation + - button + - input_button + - scene + - script left_button_name: name: Name "Left Button" (Optional) description: '* *Left Button label - 10 characters are supported*' @@ -199,6 +204,11 @@ The goal was to create a version that allows everyone to use the NSpanel fully l - switch - input_boolean - cover + - automation + - button + - input_button + - scene + - script right_button_name: name: Name "Right Button" (Optional) description: '* *Right Button label - 10 characters are supported*' @@ -238,7 +248,7 @@ The goal was to create a version that allows everyone to use the NSpanel fully l ##### BUTTONS ##### entity01: name: Button 01 (Optional) - description: '* *Displayed on **"Button Page 1"** - (ONLY light | switch | cover | input_boolean | automation | button | input_button | scene | person)*' + description: '* *Displayed on **"Button Page 1"** - (ONLY light | switch | cover | input_boolean | automation | button | input_button | scene | person | script)*' default: [] selector: entity: @@ -252,6 +262,7 @@ The goal was to create a version that allows everyone to use the NSpanel fully l - input_button - scene - person + - script entity01_name: name: Name "Button 01" (Optional) description: '* *Button label - 10 characters are supported*' @@ -260,7 +271,7 @@ The goal was to create a version that allows everyone to use the NSpanel fully l text: {} entity02: name: Button 02 (Optional) - description: '* *Displayed on **"Button Page 1"** - (ONLY light | switch | cover | input_boolean | automation | button | input_button | scene | person)*' + description: '* *Displayed on **"Button Page 1"** - (ONLY light | switch | cover | input_boolean | automation | button | input_button | scene | person | script)*' default: [] selector: entity: @@ -274,6 +285,7 @@ The goal was to create a version that allows everyone to use the NSpanel fully l - input_button - scene - person + - script entity02_name: name: Name "Button 02" (Optional) description: '* *Button label - 10 characters are supported*' @@ -282,7 +294,7 @@ The goal was to create a version that allows everyone to use the NSpanel fully l text: {} entity03: name: Button 03 (Optional) - description: '* *Displayed on **"Button Page 1"** - (ONLY light | switch | cover | input_boolean | automation | button | input_button | scene | person)*' + description: '* *Displayed on **"Button Page 1"** - (ONLY light | switch | cover | input_boolean | automation | button | input_button | scene | person | script)*' default: [] selector: entity: @@ -296,6 +308,7 @@ The goal was to create a version that allows everyone to use the NSpanel fully l - input_button - scene - person + - script entity03_name: name: Name "Button 03" (Optional) description: '* *Button label - 10 characters are supported*' @@ -304,7 +317,7 @@ The goal was to create a version that allows everyone to use the NSpanel fully l text: {} entity04: name: Button 04 (Optional) - description: '* *Displayed on **"Button Page 1"** - (ONLY light | switch | cover | input_boolean | automation | button | input_button | scene | person)*' + description: '* *Displayed on **"Button Page 1"** - (ONLY light | switch | cover | input_boolean | automation | button | input_button | scene | person | script)*' default: [] selector: entity: @@ -318,6 +331,7 @@ The goal was to create a version that allows everyone to use the NSpanel fully l - input_button - scene - person + - script entity04_name: name: Name "Button 04" (Optional) description: '* *Button label - 10 characters are supported*' @@ -326,7 +340,7 @@ The goal was to create a version that allows everyone to use the NSpanel fully l text: {} entity05: name: Button 05 (Optional) - description: '* *Displayed on **"Button Page 1"** - (ONLY light | switch | cover | input_boolean | automation | button | input_button | scene | person)*' + description: '* *Displayed on **"Button Page 1"** - (ONLY light | switch | cover | input_boolean | automation | button | input_button | scene | person | script)*' default: [] selector: entity: @@ -340,6 +354,7 @@ The goal was to create a version that allows everyone to use the NSpanel fully l - input_button - scene - person + - script entity05_name: name: Name "Button 05" (Optional) description: '* *Button label - 10 characters are supported*' @@ -348,7 +363,7 @@ The goal was to create a version that allows everyone to use the NSpanel fully l text: {} entity06: name: Button 06 (Optional) - description: '* *Displayed on **"Button Page 1"** - (ONLY light | switch | cover | input_boolean | automation | button | input_button | scene | person)*' + description: '* *Displayed on **"Button Page 1"** - (ONLY light | switch | cover | input_boolean | automation | button | input_button | scene | person | script)*' default: [] selector: entity: @@ -362,6 +377,7 @@ The goal was to create a version that allows everyone to use the NSpanel fully l - input_button - scene - person + - script entity06_name: name: Name "Button 06" (Optional) description: '* *Button label - 10 characters are supported*' @@ -370,7 +386,7 @@ The goal was to create a version that allows everyone to use the NSpanel fully l text: {} entity07: name: Button 07 (Optional) - description: '* *Displayed on **"Button Page 1"** - (ONLY light | switch | cover | input_boolean | automation | button | input_button | scene | person)*' + description: '* *Displayed on **"Button Page 1"** - (ONLY light | switch | cover | input_boolean | automation | button | input_button | scene | person | script)*' default: [] selector: entity: @@ -384,6 +400,7 @@ The goal was to create a version that allows everyone to use the NSpanel fully l - input_button - scene - person + - script entity07_name: name: Name "Button 07" (Optional) description: '* *Button label - 10 characters are supported*' @@ -392,7 +409,7 @@ The goal was to create a version that allows everyone to use the NSpanel fully l text: {} entity08: name: Button 08 (Optional) - description: '* *Displayed on **"Button Page 1"** - (ONLY light | switch | cover | input_boolean | automation | button | input_button | scene | person)*' + description: '* *Displayed on **"Button Page 1"** - (ONLY light | switch | cover | input_boolean | automation | button | input_button | scene | person | script)*' default: [] selector: entity: @@ -406,6 +423,7 @@ The goal was to create a version that allows everyone to use the NSpanel fully l - input_button - scene - person + - script entity08_name: name: Name "Button 08" (Optional) description: '* *Button label - 10 characters are supported*' @@ -414,7 +432,7 @@ The goal was to create a version that allows everyone to use the NSpanel fully l text: {} entity09: name: Button 09 (Optional) - description: '* *Displayed on **"Button Page 2"** - (ONLY light | switch | cover | input_boolean | automation | button | input_button | scene | person)*' + description: '* *Displayed on **"Button Page 2"** - (ONLY light | switch | cover | input_boolean | automation | button | input_button | scene | person | script)*' default: [] selector: entity: @@ -428,6 +446,7 @@ The goal was to create a version that allows everyone to use the NSpanel fully l - input_button - scene - person + - script entity09_name: name: Name "Button 09" (Optional) description: '* *Button label - 10 characters are supported*' @@ -436,7 +455,7 @@ The goal was to create a version that allows everyone to use the NSpanel fully l text: {} entity10: name: Button 10 (Optional) - description: '* *Displayed on **"Button Page 2"** - (ONLY light | switch | cover | input_boolean | automation | button | input_button | scene | person)*' + description: '* *Displayed on **"Button Page 2"** - (ONLY light | switch | cover | input_boolean | automation | button | input_button | scene | person | script)*' default: [] selector: entity: @@ -450,6 +469,7 @@ The goal was to create a version that allows everyone to use the NSpanel fully l - input_button - scene - person + - script entity10_name: name: Name "Button 10" (Optional) description: '* *Button label - 10 characters are supported*' @@ -458,7 +478,7 @@ The goal was to create a version that allows everyone to use the NSpanel fully l text: {} entity11: name: Button 11 (Optional) - description: '* *Displayed on **"Button Page 2"** - (ONLY light | switch | cover | input_boolean | automation | button | input_button | scene | person)*' + description: '* *Displayed on **"Button Page 2"** - (ONLY light | switch | cover | input_boolean | automation | button | input_button | scene | person | script)*' default: [] selector: entity: @@ -472,6 +492,7 @@ The goal was to create a version that allows everyone to use the NSpanel fully l - input_button - scene - person + - script entity11_name: name: Name "Button 11" (Optional) description: '* *Button label - 10 characters are supported*' @@ -480,7 +501,7 @@ The goal was to create a version that allows everyone to use the NSpanel fully l text: {} entity12: name: Button 12 (Optional) - description: '* *Displayed on **"Button Page 2"** - (ONLY light | switch | cover | input_boolean | automation | button | input_button | scene | person)*' + description: '* *Displayed on **"Button Page 2"** - (ONLY light | switch | cover | input_boolean | automation | button | input_button | scene | person | script)*' default: [] selector: entity: @@ -494,6 +515,7 @@ The goal was to create a version that allows everyone to use the NSpanel fully l - input_button - scene - person + - script entity12_name: name: Name "Button 12" (Optional) description: '* *Button label - 10 characters are supported*' @@ -502,7 +524,7 @@ The goal was to create a version that allows everyone to use the NSpanel fully l text: {} entity13: name: Button 13 (Optional) - description: '* *Displayed on **"Button Page 2"** - (ONLY light | switch | cover | input_boolean | automation | button | input_button | scene | person)*' + description: '* *Displayed on **"Button Page 2"** - (ONLY light | switch | cover | input_boolean | automation | button | input_button | scene | person | script)*' default: [] selector: entity: @@ -516,6 +538,7 @@ The goal was to create a version that allows everyone to use the NSpanel fully l - input_button - scene - person + - script entity13_name: name: Name "Button 13" (Optional) description: '* *Button label - 10 characters are supported*' @@ -524,7 +547,7 @@ The goal was to create a version that allows everyone to use the NSpanel fully l text: {} entity14: name: Button 14 (Optional) - description: '* *Displayed on **"Button Page 2"** - (ONLY light | switch | cover | input_boolean | automation | button | input_button | scene | person)*' + description: '* *Displayed on **"Button Page 2"** - (ONLY light | switch | cover | input_boolean | automation | button | input_button | scene | person | script)*' default: [] selector: entity: @@ -538,6 +561,7 @@ The goal was to create a version that allows everyone to use the NSpanel fully l - input_button - scene - person + - script entity14_name: name: Name "Button 14" (Optional) description: '* *Button label - 10 characters are supported*' @@ -546,7 +570,7 @@ The goal was to create a version that allows everyone to use the NSpanel fully l text: {} entity15: name: Button 15 (Optional) - description: '* *Displayed on **"Button Page 2"** - (ONLY light | switch | cover | input_boolean | automation | button | input_button | scene | person)*' + description: '* *Displayed on **"Button Page 2"** - (ONLY light | switch | cover | input_boolean | automation | button | input_button | scene | person | script)*' default: [] selector: entity: @@ -560,6 +584,7 @@ The goal was to create a version that allows everyone to use the NSpanel fully l - input_button - scene - person + - script entity15_name: name: Name "Button 15" (Optional) description: '* *Button label - 10 characters are supported*' @@ -568,7 +593,7 @@ The goal was to create a version that allows everyone to use the NSpanel fully l text: {} entity16: name: Button 16 (Optional) - description: '* *Displayed on **"Button Page 2"** - (ONLY light | switch | cover | input_boolean | automation | button | input_button | scene | person)*' + description: '* *Displayed on **"Button Page 2"** - (ONLY light | switch | cover | input_boolean | automation | button | input_button | scene | person | script)*' default: [] selector: entity: @@ -582,6 +607,7 @@ The goal was to create a version that allows everyone to use the NSpanel fully l - input_button - scene - person + - script entity16_name: name: Name "Button 16" (Optional) description: '* *Button label - 10 characters are supported*' @@ -590,7 +616,7 @@ The goal was to create a version that allows everyone to use the NSpanel fully l text: {} entity17: name: Button 17 (Optional) - description: '* *Displayed on **"Button Page 3"** - (ONLY light | switch | cover | input_boolean | automation | button | input_button | scene | person)*' + description: '* *Displayed on **"Button Page 3"** - (ONLY light | switch | cover | input_boolean | automation | button | input_button | scene | person | script)*' default: [] selector: entity: @@ -604,6 +630,7 @@ The goal was to create a version that allows everyone to use the NSpanel fully l - input_button - scene - person + - script entity17_name: name: Name "Button 17" (Optional) description: '* *Button label - 10 characters are supported*' @@ -612,7 +639,7 @@ The goal was to create a version that allows everyone to use the NSpanel fully l text: {} entity18: name: Button 18 (Optional) - description: '* *Displayed on **"Button Page 3"** - (ONLY light | switch | cover | input_boolean | automation | button | input_button | scene | person)*' + description: '* *Displayed on **"Button Page 3"** - (ONLY light | switch | cover | input_boolean | automation | button | input_button | scene | person | script)*' default: [] selector: entity: @@ -626,6 +653,7 @@ The goal was to create a version that allows everyone to use the NSpanel fully l - input_button - scene - person + - script entity18_name: name: Name "Button 18" (Optional) description: '* *Button label - 10 characters are supported*' @@ -634,7 +662,7 @@ The goal was to create a version that allows everyone to use the NSpanel fully l text: {} entity19: name: Button 19 (Optional) - description: '* *Displayed on **"Button Page 3"** - (ONLY light | switch | cover | input_boolean | automation | button | input_button | scene | person)*' + description: '* *Displayed on **"Button Page 3"** - (ONLY light | switch | cover | input_boolean | automation | button | input_button | scene | person | script)*' default: [] selector: entity: @@ -648,6 +676,7 @@ The goal was to create a version that allows everyone to use the NSpanel fully l - input_button - scene - person + - script entity19_name: name: Name "Button 19" (Optional) description: '* *Button label - 10 characters are supported*' @@ -656,7 +685,7 @@ The goal was to create a version that allows everyone to use the NSpanel fully l text: {} entity20: name: Button 20 (Optional) - description: '* *Displayed on **"Button Page 3"** - (ONLY light | switch | cover | input_boolean | automation | button | input_button | scene | person)*' + description: '* *Displayed on **"Button Page 3"** - (ONLY light | switch | cover | input_boolean | automation | button | input_button | scene | person | script)*' default: [] selector: entity: @@ -670,6 +699,7 @@ The goal was to create a version that allows everyone to use the NSpanel fully l - input_button - scene - person + - script entity20_name: name: Name "Button 20" (Optional) description: '* *Button label - 10 characters are supported*' @@ -678,7 +708,7 @@ The goal was to create a version that allows everyone to use the NSpanel fully l text: {} entity21: name: Button 21 (Optional) - description: '* *Displayed on **"Button Page 3"** - (ONLY light | switch | cover | input_boolean | automation | button | input_button | scene | person)*' + description: '* *Displayed on **"Button Page 3"** - (ONLY light | switch | cover | input_boolean | automation | button | input_button | scene | person | script)*' default: [] selector: entity: @@ -692,6 +722,7 @@ The goal was to create a version that allows everyone to use the NSpanel fully l - input_button - scene - person + - script entity21_name: name: Name "Button 21" (Optional) description: '* *Button label - 10 characters are supported*' @@ -700,7 +731,7 @@ The goal was to create a version that allows everyone to use the NSpanel fully l text: {} entity22: name: Button 22 (Optional) - description: '* *Displayed on **"Button Page 3"** - (ONLY light | switch | cover | input_boolean | automation | button | input_button | scene | person)*' + description: '* *Displayed on **"Button Page 3"** - (ONLY light | switch | cover | input_boolean | automation | button | input_button | scene | person | script)*' default: [] selector: entity: @@ -714,6 +745,7 @@ The goal was to create a version that allows everyone to use the NSpanel fully l - input_button - scene - person + - script entity22_name: name: Name "Button 22" (Optional) description: '* *Button label - 10 characters are supported*' @@ -722,7 +754,7 @@ The goal was to create a version that allows everyone to use the NSpanel fully l text: {} entity23: name: Button 23 (Optional) - description: '* *Displayed on **"Button Page 3"** - (ONLY light | switch | cover | input_boolean | automation | button | input_button | scene | person)*' + description: '* *Displayed on **"Button Page 3"** - (ONLY light | switch | cover | input_boolean | automation | button | input_button | scene | person | script)*' default: [] selector: entity: @@ -736,6 +768,7 @@ The goal was to create a version that allows everyone to use the NSpanel fully l - input_button - scene - person + - script entity23_name: name: Name "Button 23" (Optional) description: '* *Button label - 10 characters are supported*' @@ -744,7 +777,7 @@ The goal was to create a version that allows everyone to use the NSpanel fully l text: {} entity24: name: Button 24 (Optional) - description: '* *Displayed on **"Button Page 3"** - (ONLY light | switch | cover | input_boolean | automation | button | input_button | scene | person)*' + description: '* *Displayed on **"Button Page 3"** - (ONLY light | switch | cover | input_boolean | automation | button | input_button | scene | person | script)*' default: [] selector: entity: @@ -758,6 +791,7 @@ The goal was to create a version that allows everyone to use the NSpanel fully l - input_button - scene - person + - script entity24_name: name: Name "Button 24" (Optional) description: '* *Button label - 10 characters are supported*' @@ -766,7 +800,7 @@ The goal was to create a version that allows everyone to use the NSpanel fully l text: {} entity25: name: Button 25 (Optional) - description: '* *Displayed on **"Button Page 4"** - (ONLY light | switch | cover | input_boolean | automation | button | input_button | scene | person)*' + description: '* *Displayed on **"Button Page 4"** - (ONLY light | switch | cover | input_boolean | automation | button | input_button | scene | person | script)*' default: [] selector: entity: @@ -780,6 +814,7 @@ The goal was to create a version that allows everyone to use the NSpanel fully l - input_button - scene - person + - script entity25_name: name: Name "Button 25" (Optional) description: '* *Button label - 10 characters are supported*' @@ -788,7 +823,7 @@ The goal was to create a version that allows everyone to use the NSpanel fully l text: {} entity26: name: Button 26 (Optional) - description: '* *Displayed on **"Button Page 4"** - (ONLY light | switch | cover | input_boolean | automation | button | input_button | scene | person)*' + description: '* *Displayed on **"Button Page 4"** - (ONLY light | switch | cover | input_boolean | automation | button | input_button | scene | person | script)*' default: [] selector: entity: @@ -802,6 +837,7 @@ The goal was to create a version that allows everyone to use the NSpanel fully l - input_button - scene - person + - script entity26_name: name: Name "Button 26" (Optional) description: '* *Button label - 10 characters are supported*' @@ -810,7 +846,7 @@ The goal was to create a version that allows everyone to use the NSpanel fully l text: {} entity27: name: Button 27 (Optional) - description: '* *Displayed on **"Button Page 4"** - (ONLY light | switch | cover | input_boolean | automation | button | input_button | scene | person)*' + description: '* *Displayed on **"Button Page 4"** - (ONLY light | switch | cover | input_boolean | automation | button | input_button | scene | person | script)*' default: [] selector: entity: @@ -824,6 +860,7 @@ The goal was to create a version that allows everyone to use the NSpanel fully l - input_button - scene - person + - script entity27_name: name: Name "Button 27" (Optional) description: '* *Button label - 10 characters are supported*' @@ -832,7 +869,7 @@ The goal was to create a version that allows everyone to use the NSpanel fully l text: {} entity28: name: Button 28 (Optional) - description: '* *Displayed on **"Button Page 4"** - (ONLY light | switch | cover | input_boolean | automation | button | input_button | scene | person)*' + description: '* *Displayed on **"Button Page 4"** - (ONLY light | switch | cover | input_boolean | automation | button | input_button | scene | person | script)*' default: [] selector: entity: @@ -846,6 +883,7 @@ The goal was to create a version that allows everyone to use the NSpanel fully l - input_button - scene - person + - script entity28_name: name: Name "Button 28" (Optional) description: '* *Button label - 10 characters are supported*' @@ -854,7 +892,7 @@ The goal was to create a version that allows everyone to use the NSpanel fully l text: {} entity29: name: Button 29 (Optional) - description: '* *Displayed on **"Button Page 4"** - (ONLY light | switch | cover | input_boolean | automation | button | input_button | scene | person)*' + description: '* *Displayed on **"Button Page 4"** - (ONLY light | switch | cover | input_boolean | automation | button | input_button | scene | person | script)*' default: [] selector: entity: @@ -868,6 +906,7 @@ The goal was to create a version that allows everyone to use the NSpanel fully l - input_button - scene - person + - script entity29_name: name: Name "Button 29" (Optional) description: '* *Button label - 10 characters are supported*' @@ -876,7 +915,7 @@ The goal was to create a version that allows everyone to use the NSpanel fully l text: {} entity30: name: Button 30 (Optional) - description: '* *Displayed on **"Button Page 4"** - (ONLY light | switch | cover | input_boolean | automation | button | input_button | scene | person)*' + description: '* *Displayed on **"Button Page 4"** - (ONLY light | switch | cover | input_boolean | automation | button | input_button | scene | person | script)*' default: [] selector: entity: @@ -890,6 +929,7 @@ The goal was to create a version that allows everyone to use the NSpanel fully l - input_button - scene - person + - script entity30_name: name: Name "Button 30" (Optional) description: '* *Button label - 10 characters are supported*' @@ -898,7 +938,7 @@ The goal was to create a version that allows everyone to use the NSpanel fully l text: {} entity31: name: Button 31 (Optional) - description: '* *Displayed on **"Button Page 4"** - (ONLY light | switch | cover | input_boolean | automation | button | input_button | scene | person)*' + description: '* *Displayed on **"Button Page 4"** - (ONLY light | switch | cover | input_boolean | automation | button | input_button | scene | person | script)*' default: [] selector: entity: @@ -912,6 +952,7 @@ The goal was to create a version that allows everyone to use the NSpanel fully l - input_button - scene - person + - script entity31_name: name: Name "Button 31" (Optional) description: '* *Button label - 10 characters are supported*' @@ -920,7 +961,7 @@ The goal was to create a version that allows everyone to use the NSpanel fully l text: {} entity32: name: Button 32 (Optional) - description: '* *Displayed on **"Button Page 4"** - (ONLY light | switch | cover | input_boolean | automation | button | input_button | scene | person)*' + description: '* *Displayed on **"Button Page 4"** - (ONLY light | switch | cover | input_boolean | automation | button | input_button | scene | person | script)*' default: [] selector: entity: @@ -934,6 +975,7 @@ The goal was to create a version that allows everyone to use the NSpanel fully l - input_button - scene - person + - script entity32_name: name: Name "Button 32" (Optional) description: '* *Button label - 10 characters are supported*' @@ -1034,6 +1076,8 @@ variables: button_scene_on: "114" button_person_off: "111" button_person_on: "112" + button_script_off: "107" + button_script_on: "108" hardware_button_pic_off: "98" hardware_button_pic_on: "99" @@ -1907,6 +1951,8 @@ action: {%- elif repeat.item.entity is match "button." -%} {{ button_button_off }} {%- elif repeat.item.entity is match "input_button." -%} {{ button_button_off }} {%- elif repeat.item.entity is match "scene." -%} {{ button_scene_off }} + {%- elif repeat.item.entity is match "script." and states[repeat.item.entity].state == 'on' -%} {{ button_script_on }} + {%- elif repeat.item.entity is match "script." and states[repeat.item.entity].state == 'off' -%} {{ button_script_off }} {%- elif repeat.item.entity is match "person." and states[repeat.item.entity].state == 'home' -%} {{ button_person_on }} {%- elif repeat.item.entity is match "person." and states[repeat.item.entity].state != 'home' -%} {{ button_person_off }} {%- endif -%} @@ -2240,6 +2286,8 @@ action: - current_state_entity30 - current_state_entity31 - current_state_entity32 + - condition: template + value_template: "{{ trigger.to_state.state != 'unavailable' }}" sequence: - alias: "Set variable(s) for entity change" variables: @@ -2292,6 +2340,8 @@ action: {%- elif trigger.to_state.entity_id is match "button." -%} {{ button_button_on }} {%- elif trigger.to_state.entity_id is match "input_button." -%} {{ button_button_on }} {%- elif trigger.to_state.entity_id is match "scene." -%} {{ button_scene_on }} + {%- elif trigger.to_state.entity_id is match "script." and trigger.to_state.state == 'on' -%} {{ button_script_on }} + {%- elif trigger.to_state.entity_id is match "script." and trigger.to_state.state == 'off' -%} {{ button_script_off }} {%- elif trigger.to_state.entity_id is match "person." and trigger.to_state.state == 'home' -%} {{ button_person_on }} {%- elif trigger.to_state.entity_id is match "person." and trigger.to_state.state != 'home' -%} {{ button_person_off }} {%- endif -%} @@ -2725,6 +2775,8 @@ action: input_button.press {% elif entity_short is match 'scene.' %} scene.turn_on + {% elif entity_short is match 'script.' %} + script.turn_on {% endif %} data: entity_id: "{{ entity_short }}" @@ -3203,13 +3255,23 @@ action: sequence: - service: >- {% if left_button_entity is match 'light.' %} - light.toggle + light.toggle {% elif left_button_entity is match 'switch.' %} - switch.toggle + switch.toggle {% elif left_button_entity is match 'cover.' %} - cover.toggle + cover.toggle {% elif left_button_entity is match 'input_boolean.' %} - input_boolean.toggle + input_boolean.toggle + {% elif left_button_entity is match 'automation.' %} + automation.toggle + {% elif left_button_entity is match 'button.' %} + button.press + {% elif left_button_entity is match 'input_button.' %} + input_button.press + {% elif left_button_entity is match 'scene.' %} + scene.turn_on + {% elif left_button_entity is match 'script.' %} + script.turn_on {% endif %} data: entity_id: "{{ left_button_entity }}" @@ -3244,13 +3306,23 @@ action: sequence: - service: >- {% if right_button_entity is match 'light.' %} - light.toggle + light.toggle {% elif right_button_entity is match 'switch.' %} - switch.toggle + switch.toggle {% elif right_button_entity is match 'cover.' %} - cover.toggle + cover.toggle {% elif right_button_entity is match 'input_boolean.' %} - input_boolean.toggle + input_boolean.toggle + {% elif right_button_entity is match 'automation.' %} + automation.toggle + {% elif right_button_entity is match 'button.' %} + button.press + {% elif right_button_entity is match 'input_button.' %} + input_button.press + {% elif right_button_entity is match 'scene.' %} + scene.turn_on + {% elif right_button_entity is match 'script.' %} + script.turn_on {% endif %} data: entity_id: "{{ right_button_entity }}" @@ -3298,6 +3370,8 @@ action: - conditions: - condition: trigger id: humidity_state + - condition: template + value_template: "{{ trigger.event.data.new_state.state != 'unavailable' }}" sequence: - service: "{{ command_text_printf }}" data: @@ -3309,6 +3383,8 @@ action: - conditions: - condition: trigger id: hotwatertemp_state + - condition: template + value_template: "{{ trigger.event.data.new_state.state != 'unavailable' }}" sequence: - service: "{{ command_text_printf }}" data: @@ -3331,6 +3407,8 @@ action: - conditions: - condition: trigger id: outdoortemp_state + - condition: template + value_template: "{{ trigger.event.data.new_state.state != 'unavailable' }}" sequence: - service: "{{ command_text_printf }}" data: @@ -3348,6 +3426,8 @@ action: - conditions: - condition: trigger id: weather_state_change + - condition: template + value_template: "{{ trigger.event.data.new_state.state != 'unavailable' }}" sequence: - if: - condition: template @@ -5018,6 +5098,8 @@ action: - conditions: - condition: trigger id: climate_state + - condition: template + value_template: "{{ trigger.event.data.new_state.state != 'unavailable' }}" # - condition: template # value_template: '{{ states(current_page) == page_climate }}' # - condition: template