When I check the template value, it’s returning ‘False’ but the switch state is on.
Should this automatically update based on the state?
- platform: command_line
switches:
foo_app:
command_on: !secret foo_on
command_off: !secret foo_off
value_template: "{{ is_state_attr('sensor.foo', 'foregroundApp', 'de.ozerov.fully') }}"
friendly_name: Foo Current App