wassy92x / lovelace-digital-clock

A custom digital clock card for Home Assistant
MIT License
96 stars 17 forks source link

can't add tap actions #32

Open akuehner opened 1 year ago

akuehner commented 1 year ago

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
wassy92x commented 1 year ago

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

ThatTallGuy21 commented 1 year ago

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.

MikeGuest commented 1 year ago

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.

plasterer41 commented 11 months ago

+1 for this enhancement

Cassock commented 8 months ago

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

PrestonMcAfee commented 7 months ago

+1 to tap action. Great card!

ThatTallGuy21 commented 7 months ago

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 commented 7 months ago

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