How do I make a slider button respond to tap_action? #2280
Unanswered
jlogo99
asked this question in
Questions about config, custom styles and templates
Replies: 1 comment
-
|
Hi! You just need to remove |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Goal
In my home setup, I have a light that behaves like a light when I address it as a light, but then it's also part of switch and I want to it to behave as a simple on/off switch when I address it that way.
So, in my code below, I have the button, slider defined to use the light entity. However, my tap_action then triggers the switch entity. My objective is to be able to use the slider to brighten/dim the light and simply tap the button (either the icon OR the slider itself) to trigger switch entity to turn the light completely on/off.
What's happening is that the slider function works find. Tapping the icon works fine. But tapping the slider (when the light is off for example) turns the light on to whatever brightness level you tapped at, but it does not trigger the switch entity. I thought "tap_action" would apply to tapping the slider bar....but it only appears to work for tapping the icon.
Is there no separate definable treatment for tapping the slider??
Source Yaml
Which step did you already try?
No response
Problem
No response
Read the documentation
Beta Was this translation helpful? Give feedback.
All reactions