This commit is contained in:
Blackymas
2022-12-28 12:50:33 +01:00

View File

@@ -232,6 +232,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*'
@@ -249,6 +254,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*'
@@ -288,7 +298,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:
@@ -302,6 +312,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*'
@@ -310,7 +321,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:
@@ -324,6 +335,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*'
@@ -332,7 +344,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:
@@ -346,6 +358,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*'
@@ -354,7 +367,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:
@@ -368,6 +381,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*'
@@ -376,7 +390,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:
@@ -390,6 +404,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*'
@@ -398,7 +413,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:
@@ -412,6 +427,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*'
@@ -420,7 +436,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:
@@ -434,6 +450,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*'
@@ -442,7 +459,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:
@@ -456,6 +473,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*'
@@ -464,7 +482,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:
@@ -478,6 +496,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*'
@@ -486,7 +505,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:
@@ -500,6 +519,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*'
@@ -508,7 +528,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:
@@ -522,6 +542,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*'
@@ -530,7 +551,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:
@@ -544,6 +565,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*'
@@ -552,7 +574,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:
@@ -566,6 +588,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*'
@@ -574,7 +597,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:
@@ -588,6 +611,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*'
@@ -596,7 +620,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:
@@ -610,6 +634,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*'
@@ -618,7 +643,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:
@@ -632,6 +657,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*'
@@ -640,7 +666,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:
@@ -654,6 +680,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*'
@@ -662,7 +689,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:
@@ -676,6 +703,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*'
@@ -684,7 +712,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:
@@ -698,6 +726,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*'
@@ -706,7 +735,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:
@@ -720,6 +749,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*'
@@ -728,7 +758,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:
@@ -742,6 +772,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*'
@@ -750,7 +781,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:
@@ -764,6 +795,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*'
@@ -772,7 +804,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:
@@ -786,6 +818,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*'
@@ -794,7 +827,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:
@@ -808,6 +841,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*'
@@ -816,7 +850,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:
@@ -830,6 +864,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*'
@@ -838,7 +873,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:
@@ -852,6 +887,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*'
@@ -860,7 +896,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:
@@ -874,6 +910,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*'
@@ -882,7 +919,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:
@@ -896,6 +933,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*'
@@ -904,7 +942,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:
@@ -918,6 +956,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*'
@@ -926,7 +965,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:
@@ -940,6 +979,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*'
@@ -948,7 +988,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:
@@ -962,6 +1002,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*'
@@ -970,7 +1011,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:
@@ -984,6 +1025,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*'
@@ -1084,6 +1126,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"
@@ -2243,6 +2287,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 -%}
@@ -2576,6 +2622,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:
@@ -2628,6 +2676,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 -%}
@@ -3061,6 +3111,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 }}"
@@ -3539,13 +3591,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 }}"
@@ -3580,13 +3642,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 }}"
@@ -3634,6 +3706,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:
@@ -3645,6 +3719,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:
@@ -3667,6 +3743,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:
@@ -3684,6 +3762,8 @@ action:
- conditions:
- condition: trigger
id: weather_state_change
- condition: template
value_template: "{{ trigger.event.data.new_state.state != 'unavailable' }}"
sequence:
- if:
- condition: template
@@ -5354,6 +5434,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