MrBartusek / MeteoalarmCard

Meteoalarm, Météo-France and DWD severe weather warnings card for Home Assistant Lovelace UI ⛈️
MIT License
124 stars 44 forks source link

`hold_action` doesn't work #158

Open Mariusthvdb opened 1 year ago

Mariusthvdb commented 1 year ago

Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

I can not configure tap/hold like the HA defaults

Describe the solution you'd like A clear and concise description of what you want to happen.

would love to be able to do:

  - type: custom:meteoalarm-card
    entities: binary_sensor.meteoalarm_brabant
    integration: meteoalarm
    hold_action:
      action: url
      url_path: 'https://www.meteoalarm.org/nl/region/NL'

and hold to see the meteoalarm resource directly

Additional context Add any other context or screenshots about the feature request here.

thanks for considering!

MrBartusek commented 1 year ago

I just checked it on my phone and hold actions work as expected with the provided configuration

Mariusthvdb commented 1 year ago

really sorry to have to get back here, as

  - type: custom:meteoalarm-card
    integration: meteoalarm
    entities: binary_sensor.meteoalarm_brabant
    scaling_mode: headline
    override_headline: false
    hide_when_no_warning: true
    hold_action:
      action: url
      url_path: 'https://www.meteoalarm.org/nl/region/NL'

does Not open a browser on hold to navigate to that url. It simply opens the more info. as fas as I can see I made no mistake, according to the Action documentation I did check 3 main browsers, so that is not it.

Also, because you mentioned your phone, I also checked the iPhone ios app, and that does not even do anything on hold, and does not show the hold circle to indicate a hold action was initiated. can only click on iPhone.

MrBartusek commented 1 year ago

I've checked it again and it indeed seems like something is not working.

I will investigate that for sure, thanks for reporting