I need to send a command multiple times (turn on a chime) until a condition is met (alarm stopped), but the below code gives error: not possible to call a script within a script? I tried also to make two scripts, but receive error as well
nvalid config for [script]: not a valid value for dictionary value @ data[âscriptâ][âtrigger_siren_threeâ][âsequenceâ][2][âentity_idâ]. Got âtrigger_siren_threeâ. (See /config/configuration.yaml, line 30). Please check the docs at https://home-assistant.io/components/script/
Your entity is âscript.trigger_siren_threeâ not just the second part. But doesnât matter - HA doesnât allow you to call a script from itself. You can create recursion by using two scripts that call each other.
Invalid config for [script]: not a valid value for dictionary value @ data[âscriptâ][âtrigger_siren_threeâ][âsequenceâ][2][âentity_idâ]. Got âtrigger_siren_three_loopâ. (See /config/configuration.yaml, line 30). Please check the docs at https://home-assistant.io/components/script/
Ehhh, I am getting old âŚ
Calling within a script the same script (itself) is allowed? The below code does not give any error when checked in configuration validation
that wonât work. Scripts can only be run 1 at a time. And because you script is running when you call it, nothing will happen because itâs already running. Making a loop w/ scripts is a pain in the ass.
I am sending an rf signal from Sonoff RF bridge to an rf siren. Need the loop because the command is for one chime only (i was surprised the rf siren works this way)