I’m running a few shell scripts based on some speedtest sensor values. The shell scripts run work consistently when I test from the UI. The state for all of them are on. But they only seem to trigger once, I have to reboot HA before they work again once.
The Start Speed Test and Start Speed Test Light both work. But the Internet Super Slow command doesn’t not trigger on the next speed test run even though the condition is still met.
I have an LED I’m using as a status indicator for my internet speed.
Every 15 minutes run shell_command to turn light white (pending speed test)
15 seconds later run speedtestdotnet.speedtest service
The trigger will fire if the state change caused the template to render ‘true’. This is achieved by having the template result in a true boolean expression … Being a boolean expression the template must evaluate to false before it will fire again.
evaluates to true it will trigger the automation. That means sensor.speedtest_download must drop below 40. However, to trigger the automation again, the template must evaluate to false and then to true. That means it must first rise above 40 before falling below 40 to trigger the automation.
@123 thanks for the clarification. Because I change the status of the LED to indicate the speed test is running, I need to return it to it’s original value again, even if it’s the same as the last run. This must be why it’s not being ran again. Is there a way to override this? Or create a new template that always renders?