I created an automation that automatically streams my camera to my Nest Hub. Here I also mentioned at sunset this should be streamed. In addition, I also have a trigger that sends the stream to e.g. should stop automatically after 5 minutes. For the day it’s no problem if I start the stream at 12:00 and stop it at 12:05, it works fine.
At sunset I don’t have any time that I can fix. I am now looking for a command to automatically stop the stream 5 minutes after sunset. Anyone have an idea how this works?
And with this trigger, the stream starts at sunset with another automatisation and will end 5 minutes after sunset with this automatisation? I tried to test it, but everytime i run it the cast stops instantly.
There are always a # of different ways to do things in HA. The ‘simplest’ is to have two automations - one to turn ON / start the cast and another to turn OFF / stop the cast.
I believe you only need a hyphen before the time if you want to subtract (before), adding time doesn’t require a plus (I guess it’s understood). Here are two of my automations: