I mean you could set it equal to the actual state, but it wouldn’t be triggers.
{% set name = state_attr('xxx.xxx','attr') %}
{% set to_state = states('xxx.xxx') %}
{% set from_state = states('xxx.xxx') %}
I mean you could set it equal to the actual state, but it wouldn’t be triggers.
{% set name = state_attr('xxx.xxx','attr') %}
{% set to_state = states('xxx.xxx') %}
{% set from_state = states('xxx.xxx') %}