Hi,
I have a single roller blinds that I am controlling via a shelly 2x relais.
I have defined 2 scripts:
- Open_roller_blinds : sets output 1 high => Waits 15s => sets output 1 low.
- Close_roller_blinds : sets output 2 high => waits 15s => sets output 2 low.
Then I have created 2 automations :
- Open_blinds_at_sunrise : trigger script 1 at sunrise
- Close_blinds_at_sunset : trigger script 2 at sunset.
Now I would like to create a text-variable that I would like to show on the lovelace GUI:
It would be something like this :
“Roller blind status : Opened at 7h35” or “Roller blind status : Closed at 18h52”.
So can I create this text variable and change the text value in the script?
E.g Can I add an extra step in the script, that says :
Statustext = "Roller blind status : Opened at " & [now]
Thx.
2 posts - 2 participants