Hi all, great community!
I’m not properly a noob but somehow there’s a particular simple (I think) customization I’m not able to get right.
I have 2 simple scripts to turn on and off respectively a Sonoff wireless outlet via IFTTT (firmware not flashable unfortunately). Both show fine in my group, however I wanted to have them show like the rest of the switches, meaning a single line with two “lightning bolts” for on and off.
I’ve tried template, cover but no success. The most I could get was a toogle button that actually did nothing.
Current layout:
Hi, thanks for the swift reply.
Already did and I can’t figure out what to do with the “value_template” required option. These are not scripts or switches that depende on a certain condition, all I want is to click them to have an action performed.
Moreover, that particular configuration creates a toggle switch, not the ones I’m looking for.
Guys! Thanks
Actually both @ludeeus and @Mariusthvdb solutions work being the last one the shortest and “cleanest”.
The trick was to replace service: switch.turn_on by service: homeassistant.turn_on as @ludeeus mentioned or go directly to the service like @Mariusthvdb added in the last post.