Expected Skript language #132
-
What language does go-hass-agent expect the skripts to be written in? Is it only bash or is python or something else allowed as well? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Any scripting language that supports being called via a shebang line can be used. So Bash, Fish, Zsh, Python, Perl, Ruby possibly many more 🙂 The script feature won't work for anything that would require being compiled, so you cannot write scripts in Go for example. However, as the script feature is essentially just executing the named file. You could write your own Go program, compile it, then specify the resulting binary as a script. As long as the output meets the requirements in the documentation, it'll result in sensors being created in Home Assistant. |
Beta Was this translation helpful? Give feedback.
Any scripting language that supports being called via a shebang line can be used. So Bash, Fish, Zsh, Python, Perl, Ruby possibly many more 🙂
The script feature won't work for anything that would require being compiled, so you cannot write scripts in Go for example. However, as the script feature is essentially just executing the named file. You could write your own Go program, compile it, then specify the resulting binary as a script.
As long as the output meets the requirements in the documentation, it'll result in sensors being created in Home Assistant.