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

Need a sample for a "simple button" blueprint

$
0
0

I’m looking for a blueprint that can do the following:
Let’s say I have a smartswith that provides only

  single-click
  long-press

What the blueprint is supposed to do

single-click: 
	toggle light (turn off or turn on on at last recorded light intensity)
long-press: 
	turn on light (at last recorded light intensity) AND
	if initial brightness < 50% 
		start "brightness up" 
		stop at single-click or brightness = 100% 
	if initial brightness > 50%
		start "brightness-down"
		stop at single click or brightness = 1%
long-press (within 1 sec of previous long-press): 
	turn on light (at last recorded light intensity) AND
	if previous action "brightness-down":
		start "brightness-up"
		stop at single click or brightness = 100%
	if previous action brightness-up:
		start brightness-down
		stop at single click or brightness = 1%

Is anybody aware of such a blueprint and/or automation?

Kind regards
bartplessers

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 106412

Trending Articles



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