Hey,
I have a LED stripe in my home using the flux led integration. I also have an Ikea E1743 switch. What I want to do is use the Switch on/off clicks to switch the LED stripe. The switch and the stripe are already connected correctly through HA.
The Way I got this to work is using 2 Automations (Switch click on = turn light on, switch click off = turn light off).
Is this the preferred method or is there a better way to solve this maybe using just 1 automation or some other method?
Hey, sorry for the late reply. Your solution gives me the following error if I try to save the automation in the YAML-Editor:
Message malformed: value must be one of ['brightness_decrease', 'brightness_increase', 'flash', 'toggle', 'turn_off', 'turn_on'] for dictionary value @ data['type']
I tried myself with the trigger IDs and found a solution myself. This works for me and has both Automations merged into one but maybe there is a more elegant solution?