Is it possible to have a button with long press and short press for two entities?

Hi All,

I’m wondering if it is possible to create a switch in lovelace where the icon and short press are related to a switch, but the long press ‘more-info’ is in relation to a light?

my reason is that I have an Ikea tradfri bulb in a ceiling light and a sonoff switch on the wall, what I want to be able to do is use the button to turn the switch on and off and when on if I long press, I will be able to set the brightness and colour temp of the bulb.

I’ve tried using a data tag under the action but it just ignores that, and I have no idea where to turn next for some ideas…

any help?

thanks in advance

Robin

1 Like

The custom button card can map separate actions to tap, and to hold. It’s also easily installable via HACS if you’ve already got that set up. Not sure of any preinstalled lovelace cards that can map separate tap and hold actions, but I am a bit new to the scene.

1 Like