kalkih / simple-weather-card

Minimalistic weather card for Home Assistant
MIT License
285 stars 33 forks source link

Support for "entity" in tap_action #22

Closed Duncank closed 4 years ago

Duncank commented 4 years ago

It would be helpful if I could specify a different entity for the more-info tap_action. I want to open the information for a different entity than the weather-provider.

Button card supports this in the same way.

In my case, I would like to open the Buienradar-Camera integration when I click on the weather card. This probably needs to be changed in src/handleClick.js on line 6, by checking if actionConfig.entity is specified before using config.entity.

kalkih commented 4 years ago

Sure!

kalkih commented 4 years ago

Should now be possible with the latest version, simply specify entity: ... in the tap_action object.

Thanks!

Duncank commented 4 years ago

Awesome, I've updated and it is working great. Thanks!