Jump to content

FrayAdjacent

Members
  • Posts

    92
  • Joined

  • Last visited

Profile Information

  • Location
    Georgetown, TX
  • Occupation
    IT Systems Engineer - Linux

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

FrayAdjacent's Achievements

Member

Member (3/6)

1

Reputation

  1. Ahh yeah, I wasn't quite clear, but when you're accessing the Portal, you have to use the Portal's credentials. It already has your eISY credentials stored, it's just translating the request and sending it the way it normally communicates with your eISY.
  2. The screenshot is from the Desktop version of Shortcuts, but it's pretty much identical to what you're gonna see on an iOS device. When you create a new Shortcut, go to Web under Actions, then Get Contents of URL. Paste in your personal URL at my.isy.io. You don't need to use a port if your eISY uses a custom port, as long as the ISY Portal is configured to reach it on that port, or if you have external port 443 forwarded to your internal IP and port. Basically as long as you can talk to your eISY from the Portal, your URL should work, and you shouldn't need to add any port number. Set the Method to Get. It works for REST API calls to set variables, so I haven't bothered to test others, however if you use POST, it will pop up another field. POST is for sending data to a web host, and technically the REST API requests aren't sending anything, you're just requesting a URL, and the request itself is interpreted as an action. With the variables, at least, you can use 'set' and 'get', and the response will be different. When you're setting a variable, the response can be ignored. Add a header by clicking +, then click the field under Key and enter "authentication". Click under Value and enter the string for your base64 encoded username and password, so the field looks like "basic fnasdf329fmasd2390iasdfnsadg" (this is not a real username and password, don't go trying to decode it!" (to get the base64 encoded string, find an encoder online, or google around. I could have done it from Terminal on my Mac with the right commands. You input "username:password" and encode it, and you'll get a string of characters. Copy and save it somewhere secure, you'll need it for every request. If you have Shortcuts syncing with iCloud, new Shortcuts should show up on your iPhone and iPad. You could then add automations (now the location and "connect to WiFi" stuff can work without interaction)
  3. Blaine, if you're trying to put the URL into a browser tab and get it to do something, you'd need to try the authorization in the URL, like: http://username:password@192.168.0.100/rest/vars/set/1/2/1 That should work locally, though adding :8443 tells the request to go to a specific port. Usually 8443 is a local port that will try to use HTTPS. Publicly outside your local network, anything with 'http' will default to 80 and 'https' will default to 443. Since some ISPs block ports 80 and 443 (to prevent you from running public websites), you may have to set up port forwarding if you want to use a URL like the above. But then you get into things like Dynamic DNS and all that. However, when you're using the ISY Portal, you're talking to the Portal's website, not directly to your ISY. The Portal handles the connection on the back end, so if you're able to, for instance, access your ISY via the UD Mobile app, then it should be configured correctly, and you won't need to tell the my.isy.io URL which port to use. The tricky part there is that the Portal might not accept authorization in the "https://user:pass@my.isy.io/...." format. That's why, when setting up the Shortcut in iOS Shortcuts, you can enter the URL as https://my.isy.io/isy/yourlongidstringgoeshere/rest/vars/set/2/1/0 The "yourlongidstringgoeshere" will be a long string of characters generated specifically for your account. Then in the Shortcut, you click "show more" and you can create the header as I mentioned. To encode the username and password, you can google "base64 encoder" and put in the text, encode it and copy it. Once you have that, copy it to your notepad, or somewhere secure. You'll need it for every Shortcut you create. I hope this is helpful
  4. I used GET, it works fine that way. I could see what happens with POST, but it works with GET so I'll leave it like that.
  5. GOT IT. I'll post this for posterity, if anyone wants to use the iOS Shortcuts to make simple API calls. For the URL, get the URL from the UD Portal and use it as the URL for the API call: https://my.isy.io/isy/yourlongidstringgoeshere/rest/vars/set/2/1/0 Under Headers, create one with the KEY "authorization" and the VALUE as "basic yourbase64encodeduserpass" Where your encoded password is "username:password" encoded to base64.
  6. Ha, I'm not sure about what formats it will accept... but I can pretty easily encode the username:password and test it out. I'm just using the API calls to set variables. I have plenty at this point that won't do anything if I change them. I'm just trying to figure out how to get the basics working, then I'll copy the format for various things I want to do. (I have a variable for when I'm home and when I'm not home... I use the UD Mobile app Geofence to set that, and it works pretty well... the wifey probably doesn't want to mess around with that, so I figured on setting up a Shortcut, then set an Automation for when she leaves the house and when she arrives to set 'her' home variable)
  7. I have experience using the REST API in the older ISYs, but that was over http, using "http://user:pass@mydomain/rest/vars/set/2/1/1". Of course, that's not encrypted, so I tried to avoid that from outside my local network. Well, I've moved to a new house, got married and have a new HA setup with some new devices. I have the Portal URL for my account, so I know how to write up the URL, but how do I end up passing authentication for the http call? In the iOS Shortcuts app you can input the URL, the method (GET will be fine), and there are headers that can be set with KEY/VALUE pairs. I understand the concept, but I don't know what KEY should be used, nor the VALUE. Does my username and password need to be base64 encoded and used as the VALUE? How is it formatted? Just "usernamepassword" or "username/password"? I've only found a few breadcrumbs on how to set it up, haven't found anything that concisely describes out to configure authorization using a key:value pair in headers, or if that's not the way to do it, how can it be done in iOS Shortcuts?
  8. Ok, so I pulled the dongle entirely out and rebooted, then saw the error that the radio was not responding. Expected. Then I plugged it into a different port on the side of the EISY and rebooted again. Now it comes up and I'm able to add the switch I installed. Let's see if it finishes. If it does and it works, I might just delete most of my programs and variables instead of doing a complete nuke & pave.
  9. Yeah, I tried that once... will try again. I went out and did errands, and it's still got the "system busy" thing. I'm also considering just doing a full reset on the EISY. I've got a lot of stuff from my old house that will have to be altered manually... I'm thinking rebuilding might be cleaner.
  10. When I migrated from my ISY994 to the EISY, I only had Insteon devices. It was super easy. Later, I bought the ZMatter dongle before I moved into my new house. I left all the hard-wired Insteon stuff in the old house (a couple fan controllers and 3 switches, not a major loss). The new house is getting ZWave dimmer switches and fan controllers. I hope OP figured it all out and got it working. I've got a lot of work to do as I'm going to completely change all of the variables I had set up to be a bit more ordered and logical, which will require lots of changes. But new house, new stuff! I'm excited about it.
  11. I shut off some breakers to install a ZWave dimmer switch and consequently powered off the EISY. After I got the switch installed and turned the breaker back on, the EISY came back up, but in the console under ZWave, it said something like "ZWave Radio Not Available". It did not change after rebooting the EISY both from the command line (I'm a Linux sysadmin, so I'm pretty comfortable there) and via the console. So I disabled ZWave under Configuration > System, rebooted and re-enabled it. Now it's been repeatedly popping up the "system busy" dialog with a status that goes up to 100%, taking about 10 minutes to do so and keeps repeating. I think it's done that 4 or 5 times so far. I only have 3 ZWave devices in my network so far, the dimmer would be #4. It just completed again and started over. What is it doing and how many times will it do it? Is there anything else I should do if the EISY loses power then says the ZWave radio is unavailable?
  12. My new house had a Honeywell thermostat, so I bought the ZWave compatible version and it was a directly "pull off the old one, pop the new one on" replacement. ZWave found it once I entered the setup on the 'stat correctly. Wham, bam, easy peasy. I was quite pleased with how well it went. I'm just starting to rebuild my smart home setup in the new house, but so far I have been able to manually change the mode and set point from the UD mobile app.
  13. Oh, this is relevant to my interests! New house has a couple 3-way lights and I definitely want to use a dimmer switch. I've already got a few ZWave switches on the way to test.
  14. I don't know, but I've been homeless for a few months, didn't have time to extract all of my Insteon hard-wired stuff and now I'm in my brand-spankin' new house. I have a few ZWave dimmers on the way, and the front door lock that the builder installed is ZWave compatible. Connecting it to my EISY was really simple and it works well. Hopefully ZWave will continue to work well. I was hoping Matter would be more mature by now, too.
  15. Nice to hear. I just moved into a new house a week ago, and can't find any of my Insteon stuff. I've still got things in boxes, so it might have gotten stashed somewhere. I didn't bring any of my wired-in devices though I had at least half a dozen wall wart dimmers and switches. Also my PLM and USB/Serial adapter are in with that stuff. I DID find the EISY and wireless adapter, so I can start to use ZWave and Matter things. With the new house, I figured I'd start with some ZWave dimmer switches and fan controllers. Since I can't find my box of Insteon stuff, I ordered a couple plug in lamp dimmers. The house has a Leviton thermostat, but it's not ZWave enabled. Amazon has a similar model that is ZWave enabled, so I'm going to order one soon. I haven't installed any ZWave devices yet.... I hope it's not a PITA. I'm also missing my 8 port switch... The house has 4 ethernet ports, but I need to connect a few more things in my office.
×
×
  • Create New...