bokub / rgb-light-card

💡 A Home Assistant card for RGB lights
MIT License
427 stars 24 forks source link

Call a service from the tap acton (type) #12

Closed dklemm closed 4 years ago

dklemm commented 4 years ago

It would be really useful to be able to call a service instead scene or script. Scripts and scene can be triggered from call-service.

This is how entity-button works.

tap_action: action: call-service service: hue.hue_activate_scene service_data: group_name: Family Room scene_name: Ibiza

I've created a fork here with call-service https://github.com/dklemm/rgb-light-card. Ideally scene and script would be removed but I've left them there for backward compatibility

bokub commented 4 years ago

Hi, That is a great idea ! :+1:

Could you please submit a pull request ?