lovelace-digital-clock icon indicating copy to clipboard operation
lovelace-digital-clock copied to clipboard

can't add tap actions

Open akuehner opened this issue 3 years ago • 9 comments

This clock was perfect for my needs, wanted a very small clock for a small panel I have running. However I was trying to add a tap action, to navigate to another dashboard with more calendar info, but the tap options don't seem to actually work. Any thoughts?

type: custom:digital-clock
tap_action:
  action: navigate
  navigation_path: /living-room/calendar

akuehner avatar Apr 21 '23 15:04 akuehner

This card doesn't support tap-actions at the moment.

wassy92x avatar Apr 27 '23 09:04 wassy92x

This clock was perfect for my needs, wanted a very small clock for a small panel I have running. However I was trying to add a tap action, to navigate to another dashboard with more calendar info, but the tap options don't seem to actually work. Any thoughts?

type: custom:digital-clock
tap_action:
  action: navigate
  navigation_path: /living-room/calendar

I was also trying to do the same thing this morning and came here to see if there was a solution. Hopefully this gets added as a feature. Would be a nice way to access my dashboard with my calendar, shopping list, notes/tasks.

ThatTallGuy21 avatar May 07 '23 11:05 ThatTallGuy21

I was also looking for a way to do this today - just to add another voice to the FR

However, I do recognise that this is not a trivial ask.

If you want a source, custom:button-card has this functionality, and it may be possible to re-use that code.

MikeGuest avatar Jul 10 '23 12:07 MikeGuest

+1 for this enhancement

plasterer41 avatar Oct 17 '23 21:10 plasterer41

Another victim of no tap_action here. Would love for this to go to /calendar

themeatsweats avatar Jan 28 '24 01:01 themeatsweats

+1 to tap action. Great card!

PrestonMcAfee avatar Feb 20 '24 18:02 PrestonMcAfee

I was also looking for a way to do this today - just to add another voice to the FR

However, I do recognise that this is not a trivial ask.

If you want a source, custom:button-card has this functionality, and it may be possible to re-use that code.

Any chance someone could share the yaml of the button card option as a workaround? I have it installed from HACS but can't get it to display cleanly, as I can't figure out how to overlay a clickable area over/under the time/date. My method has both next to each other.

ThatTallGuy21 avatar Feb 20 '24 19:02 ThatTallGuy21

As a work around, I ended up just using a custom stack in card in vertical mode. Added in this custom clock and then below added chips with a center alignment. The calendar chip navigates to a different dashboard with my family calendar and some other things. Below is what it looks like in the mobile app.

Screenshot_20240221-072315~2

ThatTallGuy21 avatar Feb 21 '24 12:02 ThatTallGuy21