Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 95919

Switch always appearing "off" - is this possible?

$
0
0

@NicolasG wrote:

Hey there,
I have a specific switch which is just a power toggle button for a device, so I don’t want the switch to be appear “on” when I press it, it should always think that I haven’t pressed it before. Is there a way to always have the value_template as false/off?

  - platform: template
    switches:
     klrst3g:
       value_template: "{{ is_state('script.klrst3g_onoff', 'on')}}"
       turn_on:
         service: script.turn_on
         entity_id: script.klrst3g_onoff
       turn_off:
         service: script.turn_on
         entity_id: script.klrst3g_onoff

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 95919

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>