Author Topic: Vera and an ISY994i  (Read 120705 times)

Offline Ds514

  • Full Member
  • ***
  • Posts: 189
  • Karma: +2/-0
  • Because automatic.
Re: Vera and an ISY994i
« Reply #45 on: December 05, 2013, 08:51:01 am »
Ok, I will begin experimenting with calls to scenes on the ISY via the PLEG approach.

As it is, this is working quite seamlessly. I am able to activate existing Vera scenes incorporating devices on multiple networks via the KPL. The KPL button lights up when the scene is called. I can then program an "off" scene that is activated along with the KPL button turning off. This really is a best of both worlds scenario, though, as - on the same KPL - I can create native Insteon scenes (whereby the devices interact without any controller involvement), mixed with ISY scenes (and I imagine programs), mixed with Vera scenes.

I have a few motion sensors on the way, and will report on how the plugin treats these. An on/off plug in module is also on the way, but given that the dimmer equivalents function correctly, I do not foresee any issue there.

Offline garrettwp

  • Beta Testers
  • Master Member
  • *****
  • Posts: 6372
  • Karma: +227/-128
  • Vera 3, Lite, ISY994
Re: Vera and an ISY994i
« Reply #46 on: December 05, 2013, 09:08:57 am »
Motion sensors are not supported yet. I do not own any and so I do not know what the device data looks like. PurdueGuy only added support for the IOLinc. I have no problem adding support for motion sensors, I just need access to the device data.

- Garrett

Offline PurdueGuy

  • Hero Member
  • *****
  • Posts: 1169
  • Karma: +21/-0
Re: Vera and an ISY994i
« Reply #47 on: December 05, 2013, 12:42:04 pm »
I picked up a motion sensor as part of the Black Friday sale.  If I can get time tonight to link it, I can check out the node info.

I only picked up one because of the stories I read about battery life.  My Z-Wave motion sensors have lasted a surprisingly long time, but they are by no means perfect.  Depending on how the Insteon sensors work, I might have to figure out just how bad I want to crawl around in the attic to run motion detector wires?  18" of insulation with a low roofline makes it tough.
« Last Edit: December 05, 2013, 03:43:41 pm by PurdueGuy »
Vera3, Leviton, Intermatic, SQ Blaster, HomeWave, DSC 1832, Insteon/Altsteon

Offline Ds514

  • Full Member
  • ***
  • Posts: 189
  • Karma: +2/-0
  • Because automatic.
Re: Vera and an ISY994i
« Reply #48 on: December 05, 2013, 04:18:09 pm »
The ISY works much better if it is left in charge of all links in the system.  When you add a new device to the ISY, it asks if you want to:
  • Remove Existing Links
  • Add devices found in links and remove existing links
  • Add Devices Found in Links and keep existing links
It is recommended that you choose option 1, which will clear any links you created in the device.  If you choose 2 or 3, your previous links will still work, but you will end up with all kinds of random scenes in the ISY, which aren't named and are tough to figure out/use.

Wish I had followed your advice. Trying to be cautious, I also started with option 3. Once I had everything running the way I liked, I figured it was time to pull the plug on Vera's native Insteon. As soon as I did that, perhaps because many of the links in the ISY originated in links found in the Vera's PLM, the entire Insteon network crashed. Deleting all the earlier links and starting over did not work, as the ISY's PLM was no longer responding and/or accepting new links. After much ado, and a series of factory resets, things are going again. Yikes.

BTW: Anyone know a way to make Vera stop giving the No Insteon error?

Offline Aaron

  • Hero Member
  • *****
  • Posts: 1985
  • Karma: +61/-193
Re: Vera and an ISY994i
« Reply #49 on: December 06, 2013, 03:08:37 pm »
Are you guys going to move completely to ISY? I'm getting tired of trying to get Vera to work for my complex scenes...  Even with PLEG stuff does not work properly and troubleshooting it is nearly impossible.

I ask because I rely on Authomation alone,  and with Tasker. These are invaluable for my setup.

Sent from my SAMSUNG-SGH-I747 using Tapatalk 2


Offline Ds514

  • Full Member
  • ***
  • Posts: 189
  • Karma: +2/-0
  • Because automatic.
Re: Vera and an ISY994i
« Reply #50 on: December 06, 2013, 03:20:44 pm »
It looks like Jacob has moved to an ISY-centric configuration. I am not sure what Garrett is doing, but I suspect he is remaining Vera-centric. I, myself, am remaining Vera-centric. The reasons - for me - are that (1) the Insteon mobile applications do not serve my needs, (2) my environment has too many technologies (e.g.,  in no particular order, Z-wave, Insteon, Zigbee, Sonos, Squeezebox, Nest) that the Vera integrates well (much better now thanks to this plugin), and (3) the strength of the Vera community.

I am finding that this plugin permits a lot of versatility (perhaps Altsteon does as well, but I didn't get into it).

Offline PurdueGuy

  • Hero Member
  • *****
  • Posts: 1169
  • Karma: +21/-0
Re: Vera and an ISY994i
« Reply #51 on: December 06, 2013, 04:31:26 pm »
I am looking to move to ISY for most control (scene controllers, KPLs, etc).  The ISY (to me) has better logic controls (conditional logic-ANDs and ORs).

It also has nicer triggers.  For example, it differentiates from:
- a switch being turned on remotely
- a switch being turned on physically at the switch
- a switch being turned on "fast" physically at the switch (double tap)

For most zwave switches, Vera just knows if they were turned on (physically or remotely). That makes programing harder.

ISY can handle more things natively. I don't need plugins for Vacation Ghost or Smart Switches.  I just use programs with ANDs, random waits, etc.

Vera will also be the go between for bridging mobile apps (HomeWave and AutHomation HD). I prefer those apps for more than the ISY counterparts.

For now, Vera will handle my zwave scene and zone controllers. I haven't tried adding one to ISY, since it has just technically entered beta.
Vera3, Leviton, Intermatic, SQ Blaster, HomeWave, DSC 1832, Insteon/Altsteon

Offline garrettwp

  • Beta Testers
  • Master Member
  • *****
  • Posts: 6372
  • Karma: +227/-128
  • Vera 3, Lite, ISY994
Re: Vera and an ISY994i
« Reply #52 on: December 06, 2013, 06:43:44 pm »
Are you guys going to move completely to ISY? I'm getting tired of trying to get Vera to work for my complex scenes...  Even with PLEG stuff does not work properly and troubleshooting it is nearly impossible.

I ask because I rely on Authomation alone,  and with Tasker. These are invaluable for my setup.

Sent from my SAMSUNG-SGH-I747 using Tapatalk 2

I have no intention so completely switch over to the ISY. The plugin was developed so that I can use both. Vera for z-wave and plugins, ISY for insteon. Besides, I have too much blood and sweat into AutHomation :).

- Garrett

Offline garrettwp

  • Beta Testers
  • Master Member
  • *****
  • Posts: 6372
  • Karma: +227/-128
  • Vera 3, Lite, ISY994
Re: Vera and an ISY994i
« Reply #53 on: December 06, 2013, 06:45:19 pm »
I got my stuff in from SmartHome, unfortunately they shorted me two KeypadLincs! :( I contacted them via email and hope that they can remedy the issue. I am going to start adding support for the RemoteLincs. I picked one up to use in an area where I can not put a switch in.

- Garrett

Offline PurdueGuy

  • Hero Member
  • *****
  • Posts: 1169
  • Karma: +21/-0
Re: Vera and an ISY994i
« Reply #54 on: December 07, 2013, 01:31:12 am »
Motion sensors are working with the code Garrett checked in earlier.

I just checked in some small changes for Z-Wave dimmers.  As it turns out, Leviton dimmers are working for the REST API, just not via the 4.1.1 UI.

I discovered Z-Wave dimmers are in the range 0..100, so I added a little tracking code to determine what family of device it is (Insteon vs Z-Wave), and adjust accordingly.
Vera3, Leviton, Intermatic, SQ Blaster, HomeWave, DSC 1832, Insteon/Altsteon

Offline garrettwp

  • Beta Testers
  • Master Member
  • *****
  • Posts: 6372
  • Karma: +227/-128
  • Vera 3, Lite, ISY994
Re: Vera and an ISY994i
« Reply #55 on: December 07, 2013, 08:17:02 am »
Glad to see that the motion detectors are working. I added it blindly and was not sure if it would work out of the box or not. I pulled your changes (great work by the way) and merged them with mine. I pushed out a new commit that includes your changes and also added RemoteLinc support. Also added the Family variable to the scene controller devices.

The only little thing with the RemoteLinc device, it will use the name of the first button. For example, the ISY controller creates 4 devices for the 4 button RemoteLinc. Name - A, Name - B, Name - C, Name - D. So in Vera one device will be created (SceneController) that will use the name Name - A. This is only a cosmetic issue.

- Garrett

Offline PurdueGuy

  • Hero Member
  • *****
  • Posts: 1169
  • Karma: +21/-0
Re: Vera and an ISY994i
« Reply #56 on: December 09, 2013, 05:29:58 pm »
I just checked in code to allow programs to be run, similar to scenes.
There is a new action for the main device, called "runProgram" - this takes 2 inputs:
  • program - program id
    • obtainable from http://<ISYIP>/rest/programs?subfolders=true
    • MUST be 4 digita - leading zeros are required
    • field is ASCII-hex, so digits can be 0-9 and A-F
  • path- must be one of the following
    • run - runs and checks If - runs either "Then" or "Else" branch
    • runThen - turns "Then" path explicitly
    • runElse - runs "Else" path explicitly

My example attached runs program is 0032 "If" path.  The ISY checks the program "If" statement and determines whether to run the "Then" or "Else" path.
« Last Edit: December 09, 2013, 05:32:47 pm by PurdueGuy »
Vera3, Leviton, Intermatic, SQ Blaster, HomeWave, DSC 1832, Insteon/Altsteon

Offline Aaron

  • Hero Member
  • *****
  • Posts: 1985
  • Karma: +61/-193
Re: Vera and an ISY994i
« Reply #57 on: December 09, 2013, 08:07:09 pm »
Smarthome had a sale on the ISY994i for $212 w/ PLM, and my PLM died so this means I paid $150 to experiment with the ISY994i...
 I look forward to joining you guys in this endeavor in a week or so!

Offline PurdueGuy

  • Hero Member
  • *****
  • Posts: 1169
  • Karma: +21/-0
Re: Vera and an ISY994i
« Reply #58 on: December 09, 2013, 08:08:06 pm »
Smarthome had a sale on the ISY994i for $212 w/ PLM, and my PLM died so this means I paid $150 to experiment with the ISY994i...
 I look forward to joining you guys in this endeavor in a week or so!
Come on in, the water's fine!  :-)
Vera3, Leviton, Intermatic, SQ Blaster, HomeWave, DSC 1832, Insteon/Altsteon

Offline Ds514

  • Full Member
  • ***
  • Posts: 189
  • Karma: +2/-0
  • Because automatic.
Re: Vera and an ISY994i
« Reply #59 on: December 10, 2013, 05:02:40 pm »
I just added a number of Insteon devices. They are all currently configured on the ISY. However, I seem unable to get the new devices to add to the Vera via the plugin. I tried Initialize, Update Names, and Restart. I am reluctant to uninstall and re-install the plugin, but that is a likely solution.

Any thoughts?