Did a bit of research and yes, you can control the Hubitat with QB64. In case if anyone else comes across this need, here are the basics.
On your Hubitat you will need to load/enable the built-in app, Maker API.
Generate a new token (shown in examples at bottom of page).
Add the devices that you want to be controlled.
Now simply talk to the device via http. Below is an example of the code to turn on a Zen74 Zwave module:
For me this is huge. This gives me the ability to do so much more since I can have QB64 running other tasks or even tasks that the Hubitat was not designed for. Hoping to have a touchscreen running all sorts of things soon !!!
On your Hubitat you will need to load/enable the built-in app, Maker API.
Generate a new token (shown in examples at bottom of page).
Add the devices that you want to be controlled.
Now simply talk to the device via http. Below is an example of the code to turn on a Zen74 Zwave module:
Code: (Select All)
Common Shared success As _Integer64
'turn device on (case sensitive)
url$ = "HTTP:http://192.168.1.176/apps/api/66/devices/8/on?access_token=65f3afe6-2281-4346-9cdb-437a55136103"
'turn device off (case sensitive)
'url$ = "HTTP:http://192.168.1.176/apps/api/66/devices/8/off?access_token=65f3afe6-2281-4346-9cdb-437a55136103"
success = _OpenClient(url$)
' success or not?
If success = 0 Then
Print "Failed to connect to the website."
Else
Print "Connected: "; _ConnectionAddress$(success)
End If
Close #success
For me this is huge. This gives me the ability to do so much more since I can have QB64 running other tasks or even tasks that the Hubitat was not designed for. Hoping to have a touchscreen running all sorts of things soon !!!

