Hi guys, I’ve been trying to find a solution for one of my switches that can have multiple state changes. I would like to have just one automation handling all states but I can’t figure out (perhaps not possible?) how I can setup different services using service_templates and different attributes using data_templates.
In all examples, that I can find in the documentation and on this forum, you see services that require the same data_template attribute entity_id (but different entities) but this is not the case for me.
As an example:
I would like to set a hue scene with a single-click (which requires a group_name and scene name as data attributes), and turn on my tv with a double-click (which requires just an entity_id).
How can I put these things together? I can create separate automations for each click type but wouldn’t that be a waste of code and an unnecessary addition of triggers for HA to monitor?