fiftys
July 9, 2020, 6:17am
42
I know its not what your asking/looking for but after a year using HA I recently found/realized you can change the EXECUTE word into anything with:
- action_name: AnyWordHere
entity: script.blahblah
name: Name of your entity
Might Help others.
2 Likes
tom_l
September 6, 2020, 3:29pm
43
Problem is that there is no ‘release’ event. So you can’t do an action while the button is held and stop it when released.
1 Like
I see, like pressing on a Volume Up button on a TV remote? It may be possible to use the 3 Lovelace actions
tap_action: increase volume by one step
hold_action: start loop of step-wise increase, until either max is reached, or
double_tap_action: stop the previous process
i use the following :
platform: template
switches:
test:
value_template: >
{% if is_state('switch.test','on') %}
false
{% endif %}
turn_on:
turn_off:
So the template will turn the switch off when you turn it on. Since the value template will not trigger the switch when it turns off , you have a momentary switch that will only trigger on, and then will turn itself off
riyas
(Riyas)
March 1, 2021, 10:29pm
46
Hi, for me this one works. But by default, it assumes the state as “On”. I want it to be off. How can we do that