mp3llll
(Mp3llll)
October 26, 2017, 4:23pm
1
I have a switch button that shows on and off.
I want to know how do I make one button as activate.
here my button is now.
how can I make a activate one button? I read here to use script
I did it like this, but this still not working.
script:
toggle_s1:
sequence:
service: switch.toggle
data:
entity_id: switch.boiler
i’m very stupid with ha, any help will be nice!
garvarma
(Manuel)
October 26, 2017, 4:49pm
2
Hi @mp3llll ,
I had the same problem time ago and if i remember, I resolved, doing customize option and inlcuding “assumed_state:”
switch.tv:
assumed_state: false
icon: mdi:television
1 Like
mp3llll
(Mp3llll)
October 26, 2017, 5:51pm
3
Nice!!
Do you know how do i get like this? activate button?
silvrr
October 26, 2017, 8:06pm
4
Scripts are not automatically added to the front end like switches and other platforms. You need to manually add it to a group/view for it to show like in the example above.
See an example below. I add the script to a group…
https://github.com/SilvrrGIT/HomeAssistant/blob/master/groups.yaml#L227
And then that group is added to a view…
https://github.com/SilvrrGIT/HomeAssistant/blob/master/groups.yaml#L10
Which you can see in the “rooms” screen show if you scroll down here…
Not that my script has a delay in it so it has a toggle and not “Activate”. However, your image posted above is mine, so I am sure this method works.