Linux CLI interface?

Hello Hubitat community:

Is there a way I can send (and ideally receive too) a command to the Hubitat hub via Linux CLI?

Hi, I am new to Hubitat, and have installed a hub and my first Z-wave dimmer switch, and I think I am going to like this.

I already have a bunch of home automation using the X10 protocol, controlled by Heyu running on Linux, with about 40 output and input devices, not to mention a whole lot of scripts I have created. The X10 is somewhat unreliable, and I want to move forward with Z-wave or Zigbee or both.

My particular Linux flavor is Ubuntu server. it is CLI only, no graphics desktop.

It would be ideal to use netcat TCP protocol to send commands to Hubitat but I am open to suggestions.

Thanks. Mark.

Not sure about more obscure methods (to me at least) for connecting, but certainly HTTP calls are possible. If HTTP is an option you are interested in, I would suggest installing the Built-In App Maker API from the Apps screen of your HE hub. This allows for retrieving variable details about devices as well as calling commands that the devices make available, displayed at the top of the Devices page for a device. After you install and then open the Maker API App page on the HE hub you will see various URL's that can be adjusted and then used to do what I describe above, retrieve device information (attributes mainly) and call commands.

I hope this helps.

2 Likes

It’s possible to use built-in apps to send or receive HTTP calls, and some apps establish telnet connections between the hub and a LAN-connected device. Community devs write their own Groovy apps that can do the same.

But there’s no terminal access to the hub’s underlying OS, SSH connections for a command line interface, etc.

1 Like

OK, thanks, sburke781, and marktheknife:

I think I can live with the HTTP method of communication with Hubitat.

I did the Maker API install, and fuddled with it for a bit, and I did create a URL and got a proper response (one so far.)

This is going to take some time to really get my head around it.

It took a few tries before I found the device ID is 1, (or course it is 1, as I only have 1 device. )

I will play with this for a while, and maybe build an interface to simplify talking with it.

I'll probably make a new thread for other questions.

How do I mark this as solved/ Can that be done?

Mark.

2 Likes

It can. Do you see three dots at the bottom of your posts? When clicked/tapped, that expands into a sub-menu that includes a checkmark to mark as solved.

If you don’t see it, it could be a forum permissions thing. Joining the hub owners group should give you the ability to do that and other things like post images and links.

3 Likes

Perfect, thanks, marktheknife:

I did not see the 3 dots, I joined the hub owners group, now I do see.

Now to start spending hundreds of dollars on new devices.

M

3 Likes

Welcome.
Cure your headache before it starts! Build your mesh from the hub center first, then outward by adding repeating devices first around the hub and expand outward. Once you have your repeaters in place, then start adding end devices-most end devices are battery powered devices.
Read the hubitat docs - how to build a solid mesh

2 Likes

If you are like the rest of us, you will surely be adding at least another zero to that amount. :smile:

3 Likes

I do that on a nightly basis... :slight_smile:

The Linux CLI would be the curl command and the Maker API.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.