Bash Scripts?

How would somebody run scripts from the Hub? Is that even possible?

There is no command line available on the hub.

1 Like

You could load up an rpi and then use the bash script to call stuff via endpoints on the hub as well as Maker API calls.

1 Like

Is there something in particular you would like to do via a bash script?

1 Like

Perhaps another thing worth mentioning, and this depends on what you want to do, but you can write custom Groovy apps and drivers, plus you can use code in webcore to write automations. So if it is more the general ability to write code instead of using a GUI driven setup, then that is possible, it's just not there for doing lower level stuff requiring operating system access, apart from some parts made available by the Hubitat dev's.

A friend of mine is kinda interested in Hubitat but won't give it a go because he insists on writing all of his home automations in Python. (Whatever he is using now allows that, but the price is going up so he is looking for alternatives.)

There are some automations I use with bash scripts in my current system, which calls up Linux specific tools to turn on and off firewall rules and reboot my unified access points.

What’s running your UniFi controller software? The Linux machine running the scripts?

Post your script and someone can probably tell you if it’s possible to accomplish something similar with Hubitat.

1 Like