I tried importing the Insteon Drivers from Github into Hubitat and I'm getting the following error:
unexpected token: < @ line 1, column 1
I tried importing the Insteon Drivers from Github into Hubitat and I'm getting the following error:
unexpected token: < @ line 1, column 1
Sounds like you were either using the wrong URL (if using "Import," make sure it's plain text and not the regular formatted HTML page; on GitHub, you want the URL or code you'd get from the "Raw" button) or a bad copy/paste, which should be apparent from the first character on the first line. Looks a lot like the former, though, since that's probably HTML.
If you need more help, can you share the location you are getting the code from and the specific steps you are taking?
Thanks for your response. I got it from here and just copied the HTTPS link and imported it into Hubitat:
cseelye / hubitat-insteon / tree / main / hubitat-drivers
If that is what you copied and pasted, that is neither a URL nor code and would explain the problem. If you are still having trouble, you'll need to share the actual URL and exactly what you are copying and pasting.
But I still suspect it's that you're on GitHub and not doing this, which you'd need to do to get the "raw" code and not the formatted HTML:
I was just showing you were I got the files from as this website won't allow you to post links. I tried copying the driver file using raw and I was getting another error:
"library not found on line 22: #include cs.helpers"
In the Hubitat-Drivers folder for the Insteon installation, there are 7 files.
Of the six .groovy files, I beleive I only need one file which is the on/off light switch driver. Four of the others I don't need as I don't have any of those devices.
However, the remaining file is called cs.helpers.groovy which is associated with the error message above?
"When I try to install the cs.helpers.groovy file using raw, I get the following error:
Cannot get property 'parent' on null object"
No sure what I am doing wrong now. It is not clear if I need to install the on/off switch driver alone or if other files are needed as well.
Thanks in advance
OK, the good news is that it looks liek you did the right thing for this file now!
The bad news is that this sounds like a complicated driver (or perhaps app and driver, and definitely at least one of these including a library file). In these cases, the author almost always provides installation instructions. Where did you find this driver? There would almost certainly be instructions there. But in general, you'll need to install library code first, then the app or driver code. The JSON file is probably for Hubitat Package Manager (likely another method you could use to install this code, but not necessary -- and something you would, itself, have to install).
But I'd look for instructions from the author.
Welcome to the community!
You'll need to become an Owner level member to post links, have a look at this thread for instructions on doing that, and lots more helpful information:
Here's some posts by @SmartHomePrimer that might help out with Insteon products.
Don't know this user. There are various ways to get Insteon products working with Hubitat. One of the two ways require only community supplied code and an Insteon 2245 hub. The other requires community supplied code, two node.js applications running on another computer and an Insteon 2245 hub.
I use the latter, as this keeps the dimmer status on Hubitat in sync when the switch is physically operated. It also allows the use of insteon input devices (i.e. Contact sensor, leak sensor, etc.). All my physical dimmers are Insteon (14 in total). Have been using this for years and it is extremely reliable.
Hi and thanks for responding. I have the following hardware:
10 insteon on/off light switches
Insteon hub 2245
Hubitat C8 Pro
QNAP running Node.js v25.1.0
I can see my hub on my network.
I my goal is to simply have the ability to program the 10 light switches.
If I go about doing it the way you have, I would need some specific instructions to move forward from here.
I'm not clear what a 2 node.js applications is and which community code I would exactly need.
Any suggestions to help me push this forward would be appreciated.
The links to the node.js server and client applications are in the post here.
However, if you are looking to program the switch hardware (e.g. Change its hardware settings), that is not possible with this software. This is for integration to Hubitat, but it cannot do the Insteon hardware configuration.
A couple of options for setting Insteon hardware configurations are:
1. The Home Assistant integration can change settings for Insteon hardware.
2. A subscription to the Insteon Connected Home Access will allow you to change the device settings, and then you can cancel the subscription once the hardware is configured the way you want.
3. Configure the devices right at the switch by following the instructions provided by Insteon.