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

Toggle, delay, toggle

$
0
0

Hi All,

I’m trying to make a switch toggle, then pause for a second, then toglgle again. I am not an expert in YAML, so I hope this can be fixed by simply correcting my (newby/nooby :slight_smile: ) code below.

This is what I tried in several combinations, but so far, no luck.

show_name: true
show_icon: false
type: button
tap_action:
  action: toggle
  delay: '00:00:02'
  action: toggle
entity: switch.keuken_plafondlamp
name: TEST
hold_action:
  action: none

I added the
delay: ‘00:00:02’
action: toggle
part to the standard YAML code after creating the button.

Thanks in advance!!

3 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 106566

Trending Articles



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