toleg
(toleg)
1
Hello,
I have a command line switch to open/close my shutters:
’ volets:
-
command_on: curl "http://192.168.1.27/core/api/jeeApi.php?apikey=XXXX"*
-
command_off: curl "http://192.168.1.27/core/api/jeeApi.php?apikey=XXXX"*
-
command_state: 'wget -O- "http://192.168.1.27/core/api/jeeApi.php?apikey=XXXX"'*
-
value_template: '{{ value == "1" }}'*
-
friendly_name: Volets*'
I want to have an ico of open shutter when it’s on, and closed shutter when off.
Any idea how to do it (i’m new to HA)
thanks !
tom_l
2
Use your commands in a template cover:
Set the device class to “shutter”
1 Like
tom_l
4
I did not realise that existed. Much better idea.
toleg
(toleg)
5
thanks both of you 
But i didn’t understand how to set a specific icon for each state of the shutter with the command line cover
toleg
(toleg)
7
the device class seems not to be an option for command line cover
tom_l
8
You should be able to add it with customize then.
1 Like