Vera - Smarter Home Control Forum

General => Insteon => Topic started by: PurdueGuy on October 30, 2013, 06:45:47 pm

Title: Vera and an ISY994i
Post by: PurdueGuy on October 30, 2013, 06:45:47 pm
Given my switchover of some/many devices to Insteon, I decided to try out an ISY 994i.  So far, it has been really quite positive.

It doesn't have the pretty GUI buttons of Vera, but it does have a decent Java app interface.  I am more of a functional engineer type, so it suits me well.  It supports conditionals, programs scenes directly into KeypadLincs for you, and seems like magic!

I bought the networking module ($50) and have made the ISY my primary home controller now.

I didn't want to lose my Z-Wave/Insteon integration like I had with Altsteon, so I wrote a proxy program in java to bridge the two, using the ISY JSDK.

Currently, Vera knows about every device in the house (Insteon and Z-Wave) and it's current state.  A command to a Z-Wave device is handled natively by Vera.  A command to an Insteon device goes through the proxy and on to the ISY.  When an Insteon device is changed (turned on, dimmed, etc), this is caught by the program, and forwarded on to Vera.

The ISY doesn't know about the Z-Wave devices, but that's fine.  Those are managed by Vera scenes, which the ISY can call.

Since the ISY is the main controller, it will make scene calls to Vera when needed.  This includes door locks, setting Z-Wave lights, etc.

I am keeping both, since I want to maintain HomeWave as my app of choice, and still allow Z-Wave locks, etc.  (This may change once the ISY can handle Z-Wave directly).  Since Vera is essentially secondary, some things will have 2 scenes.  One that HomeWave calls.  That scene will call the corresponding scene in the ISY (via the REST API), and the ISY will make any needed calls back to Vera.  It can be a bit redundant, but allows for greater flexibility, in my opinion.

For anyone still following along, I also use a DSC alarm system.  I have another proxy server which allows by the ISY and Vera to both get states of the alarm sensors, so again, HomeWave can show me at a glance how things are looking in/around the house.

If anyone is interested, I could share more.

UPDATE 2016-08-15 (sixth update):
See post #403.  Use attached file: universal_devices_isy_plugin_20160815b.zip
- Added more RemoteLinc/MiniRemote subcats

ATTENTION: For fifth update (20160815) and newer:
This changes one of the variable names for calling ISY scenes.   See the post here:
http://forum.micasaverde.com/index.php/topic,17309.msg224364.html#msg224364
I don't know what the old code had, so I wanted everyone to be made aware now.
Any Vera scenes that call ISY scenes may/will need to be updated/verified.

UPDATE 2016-08-15 (fifth update):
See post #402.  Use attached file: universal_devices_isy_plugin_20160815.zip
- Fixed UI7 "Cannot detect device" error
- Added Insteon Thermostat support
- Added Hidden Door Sensor (HDS) support

UPDATE 2014-10-13 (fourth update):
Added Insteon leak sensor support.  See post #267.
Use attached file: universal_devices_isy_plugin_20141013.zip

UPDATE 2014-09-03 (third update):
Added DFON and DFOF support.  See post #209.

UPDATE 2014-07-24 (second update):
Added motion sensor support.

UPDATE 2014-07-24:
garrettwp created a plugin for Vera to interact with an ISY.   I attached the latest version from the repository to this post.
See this post (http://forum.micasaverde.com/index.php/topic,17309.msg138920.html#msg138920) for more information on getting the files from the repository directly.
Title: Re: Vera and an ISY994i
Post by: garrettwp on October 30, 2013, 09:37:22 pm
I wrote a plugin for Vera that allows control and real time status updating of the isy. It is still in it's early stages, but has been running well. The only thing is the isy knows nothing of the Zwave devices. So if I want the kpl buttons to light up when the Zwave devices are on or off, I use a pleg plugin to run the corresponding isy scene. I've been running isy with plugin for over 6 months. I am also willing to share my work.

- Garrett

Title: Re: Vera and an ISY994i
Post by: Aaron on November 05, 2013, 01:08:45 am
If, when I was deciding what to buy, ISY had supported Zwave I would have bought that over Vera, easily. The problem is, 2 years ago, ISY flat-out told me they had no plans to ever support Zwave... and I did not like the lack of upgrade-ability with the units at that time... if that is truly remedied still remains to be seen IMO.  It looks like they support a ZWave dongle now - Not sure how good the support is though?

ISY interface & methodology is excellent - not perfect but pretty close.

I'm also not a fan of ISY's price since you still have to buy the radios (Insteon, Zwave) -- the new devices now/soon hitting the market will have most radios built-in for the cost of the base ISY unit.

Anyway... interested to hear why you feel the ISY was needed vs just using the Vera + Altsteon?  All of my lights are Insteon and other devices are Zwave.
Title: Re: Vera and an ISY994i
Post by: garrettwp on November 05, 2013, 02:06:13 am
I was using Altsteon for some time (over a year). However development was stalled and lacked some features that I was looking for (ability to set the keypad linc buttons on or off, etc). I bought the ISY at developer cost (very cheap). I started to write a plugin that is based off futzle's upnp proxy plugin. A good portion of her proxy daemon was rewritten to work the the rest api of the ISY. I have been running it for over 6 months now and it has been performing pretty well! Right now there is limited device support due to lack of insteon variety in my house (only keypad lincs and fan lincs). Right now is supports swithces, dimmers and their kpl counter parts as well as the fan lincs. Additional support for devices should not be hard at all to add. The concept of my plugin is that you have a daemon running outside of the vera / luup environment and a plugin in vera that communicates with the daemon. The daemon will connect to the ISY via the rest api and keep the connection open and receive any updates that the ISY passes to the connection.

I use the pleg plugin to run scenes from the ISY that will turn on the keypad linc buttons if certain zwave lights are on in the house that the keypad linc control. If you are interested in more information, I am wiling to provide it as well as the code for the plugin.

- Garrett
Title: Re: Vera and an ISY994i
Post by: big517 on November 12, 2013, 05:37:36 pm
I am running Z-wave via ISY, I received the zwave board on Saturday.  So far my experience with ISY, has been outstanding, and it's only the Alpha firmware. 
I do not have any Insteon products and have no experience with Insteon or even the ISY prior to Saturday.  It has native support for my ELK system, fully integrated actually even allows me to control the Russound Audio via ELK's integration.
Very happy so far.

The plugin to link the 2 devices together would be great.
Title: Re: Vera and an ISY994i
Post by: garrettwp on November 15, 2013, 12:54:44 pm
I am running Z-wave via ISY, I received the zwave board on Saturday.  So far my experience with ISY, has been outstanding, and it's only the Alpha firmware. 
I do not have any Insteon products and have no experience with Insteon or even the ISY prior to Saturday.  It has native support for my ELK system, fully integrated actually even allows me to control the Russound Audio via ELK's integration.
Very happy so far.

The plugin to link the 2 devices together would be great.

I can provide you my plugin that is in it's early stages, however this will only work with insteon devices paired with the ISY. I do not have any z-wave devices paired with the ISY, so I do not know what the data looks like to create them in my plugin. Right now only Insteon Relay, Dimmers, Keypad Lincs, and Fan Lincs are supported. My plugin is a two part setup. There is a daemon that runs behind the scenes of the Luup engine and then their is a plugin that runs and connects to that daemon. If I get some time in the next few days, I'll try and package it up.

- Garrett
Title: Re: Vera and an ISY994i
Post by: PurdueGuy on November 15, 2013, 01:05:24 pm
I could take a look at it too.  Do you have it running directly on Vera?   I used the JSDK, but so far, that has issues running on my Raspberry Pi, so I run it on my Mac Mini.
Title: Re: Vera and an ISY994i
Post by: garrettwp on November 15, 2013, 01:45:58 pm
Yes, everything runs on the vera. I am working on getting it install friendly as we speak. Once that is all done, I'll post the files and instructions.

- Garrett
Title: Re: Vera and an ISY994i
Post by: garrettwp on November 28, 2013, 12:51:38 am
Sorry for the delay. I have attached the files for my plugin that communicates with the ISY controller. Right now it should work with Relays and Dimmers, and their Keypad linc variants. It will also work with the Fan Linc as well.

Instructions:

Upload the files contained in the zip. Create a new device with the following:

Upnp Device Filename: D_ISYController1.xml
Upnp Implementation Filename: I_ISYController1.xml

Create and restart the luup engine (click the reload button).

When the device is created, you'll need to open up the newly created device called ISY Controller. Click on the Initialize button to allow the plugin to install the daemon script. Go into the advanced tab and enter in the ISYIP (ip address of isy contorller), ISYUsername and ISYPassword. Save and restart the luup engine. Once all set, you should be able to click on the start button to have the plugin start communicating with the ISY controller.

Please be aware this is an experimental plugin and will contain bugs and may not work for others. I have tested this on two of my veras and it has been communicating with my ISY controller with out issue.

- Garrett
Title: Re: Vera and an ISY994i
Post by: Ds514 on November 28, 2013, 09:45:42 am
Well, I could not pass up a (pre) BF sale and got an ISY and KPL to try this out.

@Garrett and @PurdueGuy, thanks for this contribution.

@Garrett, I have a question about your plugin. Do the vera and the isy communicate over the PLM or over the network? If the latter, have you dissociated your Insteon devices from the PLM?
Title: Re: Vera and an ISY994i
Post by: PurdueGuy on November 28, 2013, 11:56:08 am
@Garrett, I have a question about your plugin. Do the vera and the isy communicate over the PLM or over the network? If the latter, have you dissociated your Insteon devices from the PLM?

The plugin will communicate with the ISY over the network in your home.

While I can't speak for Garrett, I can answer how the ISY works in general.  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:
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.

I tried option 3 first, since I had painstakingly created some 30-40 scenes and didn't want to re-do them.  However, I ended up with maybe 80 scenes in the ISY (since each controller is a different scene when not created in the ISY).  So I decided to blow all that away, and start from scratch.  I redid all my scenes with labels in a couple hours.  It was really easy.

One thing to note, a "scene" (lighting levels, on/off relays, etc) in ISY/Insteon is quite similar to a "scene" in Z-Wave (at least as far as scene-capable devices), which is actually quite different than a "scene" in Vera.  A "program" in the ISY acts very much like a "scene" in Vera.  Creating my programs took a little longer, but once I got the hang of it, it is pretty quick.   And conditional logic is supported right out of the gate!  8)

I have also installed the Z-Wave module, and hoping for the firmware update tomorrow to tinker with it.
Title: Re: Vera and an ISY994i
Post by: PurdueGuy on November 28, 2013, 12:51:28 pm
Garrett,
Your plugin is far nicer than my Java client, thanks!

My dimmers and both relay/dimmer KPLs worked, buy my SwitchLincs came up named as "Insteon Relay AA BB CC 1" - they work so it's not an issue.   I renamed them.

I won't have time today to check the code (probably for a couple days)...is there any way to disable the creation of the scene controllers?  I have the ISY handling all Insteon events so Vera won't have to know or care.

One other mod I am going to look into - I know clicking the "On" button of a dimmer in Vera generates a "service: urn:upnp-org:serviceId:Dimming1 action: SetLoadLevelTarget" with the target at 100.   My code took 100, and changed it to just a "DON" so the light would do to it's default state.   Do you foresee any issues if I find that part of the code and modify it locally?  I realize I essentially lose the one-touch to 100%, but I can use sliders for that.
Title: Re: Vera and an ISY994i
Post by: garrettwp on November 28, 2013, 02:12:02 pm
PurdueGuy,

I do not own any Relay / Dimmer switches so I was flying blind when adding support. The Insteon Relay name was just a generic name I used for the switch. Obviously this can be changed.

The scene controller allows you to use the button events on the kpl switches in scenes etc. So if button C is pressed activated or deactivated, you can use that to control things in Vera. Exactly the same on what altsteon does. I use the kpl buttons to control z-wave switches in my home. I use pleg to keep an eye on the status of the zwave switches and than run the appropriate scene on the ISY to have the keypad linc lights either turn on or off depending on the state.

Your more than welcome to modify the code. If you have anything valuable to add, let me know and we can add it to the code for public consumption. It needs more device support as it is limited right now. But the plugin has potential.

- Garrett
Title: Re: Vera and an ISY994i
Post by: PurdueGuy on December 01, 2013, 10:26:03 pm
Garrett,

I made a small mod to the FanLinc controllers.   It was showing up as a dimmer, but with a level from 0-255.  That causes problems with HomeWave (haven't tried AutHomationHD).

I normalized it to 0-100 for the fan control, and updated the JSON file to reflect 0/25/75/100.  This update made the fan motor and dimmer functions the same.
Title: Re: Vera and an ISY994i
Post by: garrettwp on December 02, 2013, 01:05:49 am
Thanks for the update. I made the changes on my end and will upload a new version.

I ordered some more insteon gear to take up on the 20% sale. I've been waiting months for the 20% before ordering more stuff. Trying to figure out what else to buy / try out. I ordered a remote linc to use at the bottom landing of my stairwell since the builder for some reason did not install a switch to control the lights at the top of the stairs. Also picked up more keypad lincs (better option to use for scene control than the z-wave gear). Trying to figure out if there is anything else I should pick up and try.

- Garrett
Title: Re: Vera and an ISY994i
Post by: Ds514 on December 02, 2013, 09:36:07 am
Garrett,

I presently have some plug-in dimmers, which I am hoping will be recognized given your system's existing support for dimmers, and the IOLinc garage door sensor/switch. I also hope to be able to run some of the Insteon PIR sensors and maybe a few water sensors.

If any of these are of interest to you, I would kick in a donation.
Title: Re: Vera and an ISY994i
Post by: copekyle on December 02, 2013, 11:32:46 am
Garrett-
Where is this 20% sale you speak of?
Title: Re: Vera and an ISY994i
Post by: PurdueGuy on December 02, 2013, 11:42:52 am
Garrett-
Where is this 20% sale you speak of?
SmartHome.com has 20% off everything. Ends today (Cyber Monday).
It is on their main page, with a couple exceptions.
Code is: EBF20

I am working on support for IOLincs.
Title: Re: Vera and an ISY994i
Post by: Ds514 on December 02, 2013, 11:51:19 am
I am working on support for IOLincs.

Fantastic, thank you.
Title: Re: Vera and an ISY994i
Post by: PurdueGuy on December 03, 2013, 01:19:35 am
Just a heads up to Garrett (and all),

I have updated to the latest 4.1.1 (although, I guess it isn't officially released yet!)

I have the Z-Wave module for my ISY.  I have started updating the code for Z-Wave items.  Currently, everything looks like a binary switch or lock (no dimming of lights).  I have binary lights working, and dimmers (as binary on/off).  No locks yet.

It is a little odd, since so far, all device are Category 4, with different subcats (relays=16, dimmers=17, locks=64).  This sort of goes against the Insteon categories, but for now, I am going with it.

I will wait to post any updates until more is worked out tonight/tomorrow (regarding the beta/untested status).
Title: Re: Vera and an ISY994i
Post by: garrettwp on December 03, 2013, 01:24:52 am
I plan on updating my ISY in the next day or two. I was going to update it yesterday, but ended up getting distracted with other projects around the house.

I would like to add more support for devices, but my insteon gear is not very diverse. Hopefully supporting more devices with my current code is not too difficult. I tried my best to make things simple.

- Garrett
Title: Re: Vera and an ISY994i
Post by: PurdueGuy on December 03, 2013, 01:32:23 am
Garrett,

The limitations are not due to your code.  In fact, it was easy to get the Z-Wave items detected.

It seems to be a limitation of the current ISY firmware/UI?at least for my Leviton dimmers.  I do not have any GE dimmers installed any more, so I can't test if those are working any better.

Also, the REST API for locks hasn't been published, so I haven't worked on those at all.

-Jacob
Title: Re: Vera and an ISY994i
Post by: garrettwp on December 03, 2013, 01:47:27 am
Maybe we should get a project page going in code.mios.com to use for committing changes via git?

- Garrett
Title: Re: Vera and an ISY994i
Post by: PurdueGuy on December 03, 2013, 01:54:52 am
I haven't used code.mios.com, but I can try.  I'll try not to goof up like I did with Altsteon in the beginning.

I just got locks working, sort of.  The status is reflected in Vera, but commands still don't work (until they publish the REST API call for locks).
Title: Re: Vera and an ISY994i
Post by: garrettwp on December 03, 2013, 03:07:09 am
I would post over on the UD forum to ask what the api calls are for the z-wave locks. Better yet, email UD support. They are very fast at responding and very helpful.

- Garrett
Title: Re: Vera and an ISY994i
Post by: garrettwp on December 03, 2013, 06:58:35 am
PurdueGuy,

Here is the project for the ISY plugin over at code.mios.com: Universal Devices ISY Plugin (http://code.mios.com/trac/mios_universal_devices_isy_plugin)

In order to write to the git repository you'll need to create an account over on code.mios.com. You'll need to contect mcv.andrei to have him create an account for you there. Once an account is created, let me know via pm your username and I'll add you to the project. The git repo path is located here:

Public   
http://code.mios.com/git_public/mios/universal_devices_isy_plugin.git
Public 2   
git://code.mios.com/mios/universal_devices_isy_plugin.git
HTTP   
http://code.mios.com/git/mios/universal_devices_isy_plugin.git
SSH   
ssh://git@code.mios.com/mios/universal_devices_isy_plugin.git

- Garrett
Title: Re: Vera and an ISY994i
Post by: PurdueGuy on December 03, 2013, 05:54:53 pm
Ok, sent messages off.

Current status for new items:

-Jacob (PurdueGuy)
Title: Re: Vera and an ISY994i
Post by: Ds514 on December 03, 2013, 08:43:20 pm
I have the ISY controller plugin working. One Lamplinc setup for testing seems to be responding correctly. Hopefully, I can try some more devices tomorrow.

Jacob, I will be glad to test the IOLinc functionality whenever ready. Do I need to collect the files from the code.mios.com repository?
Title: Re: Vera and an ISY994i
Post by: PurdueGuy on December 03, 2013, 08:56:08 pm
I don't have access to the repository yet, and I won't be home until later this evening.
If I have access then, I can upload, otherwise I can post them here.

I have an IOLinc, I just don't have a sensor hooked up to it. I can test that prior to release.
Title: Re: Vera and an ISY994i
Post by: Ds514 on December 03, 2013, 09:23:47 pm
No rush. Either method is fine.
Title: Re: Vera and an ISY994i
Post by: Ds514 on December 03, 2013, 10:11:20 pm
I use the pleg plugin to run scenes from the ISY that will turn on the keypad linc buttons if certain zwave lights are on in the house that the keypad linc control. If you are interested in more information, I am wiling to provide it as well as the code for the plugin.

Garrett, could you provide an example of a PLEG that runs a scene from the ISY that interacts with the KPL?
Title: Re: Vera and an ISY994i
Post by: garrettwp on December 04, 2013, 12:59:34 am
Ok, sent messages off.

Current status for new items:
  • Z-Wave Binary switches
    • done
  • Z-Wave Dimmer switches
    • appear as binary switches (for now)
    • only on/off supported
    • ISY itself only supports On/Off for Leviton - others dimmers may work?
  • Z-Wave Locks
    • only status is reported
    • awaiting release of developer documentation to added remote lock/unlock (or trial & error)
  • Z-Wave Thermostat
    • Not started
  • Insteon IOLinc
    • relay works
    • sensor needs to be tested

-Jacob (PurdueGuy)

Great job! Looking forward to looking over the code changes. Hopefully MCV will get back to you soon. MCV.Andrei has been pretty responsive in requests.

I am hoping that this plugin is proving it's value to others.

- Garrett
Title: Re: Vera and an ISY994i
Post by: garrettwp on December 04, 2013, 01:08:21 am
I use the pleg plugin to run scenes from the ISY that will turn on the keypad linc buttons if certain zwave lights are on in the house that the keypad linc control. If you are interested in more information, I am wiling to provide it as well as the code for the plugin.

Garrett, could you provide an example of a PLEG that runs a scene from the ISY that interacts with the KPL?

When I get some time, I'll post a little write up. What you would do is create inputs for the devices you want to act on and their respective conditions in pleg. For their actions you would go to the advanced tab of the action creator, select the ISY Controller device -> select runScene and the id field would than be the scene id number found in the ISY controller. The newTargetValue would be either 1 for on or 0 for off.

- Garrett
Title: Re: Vera and an ISY994i
Post by: PurdueGuy on December 04, 2013, 01:39:39 am
Ok, here are my updates.  No access the the git repo yet.

Current status for new items:

Have a look.  I think you just need to upload the files, restart the daemon, and any new devices will be created.

After the new devices are detected, you can click "Update Names" for the main ISY device, and item will be renamed to match ISY.

I am going to have to wipe my ISY Z-Wave dongle and start over, so I might be re-installing the ISY plugin.
-Jacob (PurdueGuy)
Title: Re: Vera and an ISY994i
Post by: PurdueGuy on December 04, 2013, 02:59:49 am
Ok, so my initial set of devices wasn't a good set to start with it appears.
I wasn't sure how the "type" field worked for Z-Wave nodes, since it was set to 4, which in Insteon is a whole different category.  Turns out, there is a new tag for Z-Wave nodes, called "family" which is set to 4.

Currently, the "family" tag is not handled by the code, and will need to be added.

I have found that all z-wave devices are "family"=4, but the "type" varies:
Kwikset Locks: type = 4.64.3.0
Leviton relay switch & receptacle: type = 4.16.3.0
Leviton dimmer: type=4.17.4.0
GE relay switch & receptacle: type=4.16.1.0
Intermatic receptacle: type=3.16.1.0
Cooper receptacle: type=4.16.1.0
Evolve relay module: type=4.16.3.0

It looks like the code will work UNLESS you have Intermatic devices.
I will have to ask UD about that.

For now, you can experiment.  Perhaps someone more versed in the XML parsing, etc. can update/add the "family" parsing.  That code will have to check the family tag (if it exists) before creating a Z-Wave device.

EDIT: Oops, I believe it is Intermatic HomeSettings receptacles that are different.
Title: Re: Vera and an ISY994i
Post by: garrettwp on December 04, 2013, 03:42:10 am
In which api call does the family tag show up in? e.g /rest/nodes/devices If you provide me the xml output, I can see what I can do to add the family tag. It should not be too hard to add.

Update:

Looking further into the family tag, we would need to modify the code to check the family id first and than proceed with the appropriate functions. This would require changing the category maps to their respective families.  Does the family tag exist for the insteon devices or only show for the zwave devices? I do not have a family tag listed for any of my insteon devices. If no family tag is set for the device, I would than assume it would be an insteon device.

- Garrett
Title: Re: Vera and an ISY994i
Post by: PurdueGuy on December 04, 2013, 11:52:38 am
It only shows up for Z-Wave that I have seen.

Here is 2 examples with different types:
Kwikset deadbolt:
Code: [Select]
<node flag="144">
  <address>ZW002_1</address>
  <name>Front Door Deadbolt</name>
  <family>4</family>
  <parent type="3">39649</parent>
  <type>4.64.3.0</type>
  <enabled>true</enabled>
  <deviceClass>0</deviceClass>
  <wattage>0</wattage>
  <dcPeriod>0</dcPeriod>
  <pnode>ZW002_1</pnode>
  <devtype>
    <gen>4.64.3</gen>
    <mfg>144.1.1</mfg>
  </devtype>
  <ELK_ID>K08</ELK_ID>
  <property id="ST" value="101" formatted="Locked" uom="boolean"/>
</node>

Intermatic receptacle:
Code: [Select]
<node flag="128">
  <address>ZW011_1</address>
  <name>Nightstand</name>
  <family>4</family>
  <parent type="3">63462</parent>
  <type>3.16.1.0</type>
  <enabled>true</enabled>
  <deviceClass>0</deviceClass>
  <wattage>0</wattage>
  <dcPeriod>0</dcPeriod>
  <pnode>ZW011_1</pnode>
  <devtype>
    <gen>3.16.1</gen>
    <mfg>5.1.3</mfg>
  </devtype>
  <ELK_ID>L07</ELK_ID>
  <property id="ST" value="0" formatted="Off" uom="%"/>
  </node>
Title: Re: Vera and an ISY994i
Post by: garrettwp on December 04, 2013, 12:35:52 pm
Let me see what I can break with adding support for the family id. I took your changes and added them to the code and will upload it to the git repo.

Even though the leviton dimmers do not support dimming yet, I changed the device type to a dimmer for future use. It would be confusing and a pain to convert the zwave dimmer devices from a binary switch to a dimmable switch.

- Garrett
Title: Re: Vera and an ISY994i
Post by: Ds514 on December 04, 2013, 04:50:40 pm
When I get some time, I'll post a little write up. What you would do is create inputs for the devices you want to act on and their respective conditions in pleg. For their actions you would go to the advanced tab of the action creator, select the ISY Controller device -> select runScene and the id field would than be the scene id number found in the ISY controller. The newTargetValue would be either 1 for on or 0 for off.

Sorry, running into a bit of a wall here. Are the scenes that you refer to ISY-only (i.e., only incorporating Insteon devices), or are you able to create scenes that incorporate any eligible device configured with your Vera? While I understand how to make scenes or programs within the ISY, I am not seeing a way to do so incorporating Vera devices. Specifically, the scene controller device created by the plugin does not have any of the typical drop-downs used for this purpose.

I understand that you are still working to get the meat of the plugin functional; if you prefer to leave these types of details until after that, it is fine.
Title: Re: Vera and an ISY994i
Post by: PurdueGuy on December 04, 2013, 05:02:44 pm
With in a Vera scene, on the Advanced tab, you can choose the main ISY device, and hit "Add"
Then you can choose "runScene" to run an Insteon scene on the ISY.
What that IYS scene does is up to the user/ISY capabilities.

So say you had a group of devices, some Insteon, some Z-Wave and you want to turn them all off.
Create a scene in ISY called "All Off" - add all the Insteon members, setting them to off.
Create a scene in Vera called "All Off" - set the Z-Wave items you want off in the devices tab.
Go to the Advanced tab, chose the main ISY device, hit "Add", select "runScene" fill in the details, (scene id as defined in ISY, 0 for newTargetValue).
Title: Re: Vera and an ISY994i
Post by: Ds514 on December 04, 2013, 05:23:50 pm
Ok, this helps, thanks.

Am I correct in assuming that the method of calling that scene from the KPL button in the Vera is to use the "Add trigger" tab in Automation (UI5), selecting the device created by the ISY plugin, and then using a "scene number" corresponding with the desired button?
Title: Re: Vera and an ISY994i
Post by: PurdueGuy on December 04, 2013, 05:56:26 pm
I haven't tried any of this, so I am just guessing.   But yes, choose the "<DEVICE> SC" then either "A scene is activated" or "A scene is de-activated", name it, and enter 1-8 corresponding to a KPL button number.  (Remember an 8 button is 1-8, and a 6 button is 1,3, 4, 5, 6)

However, I would question why you would want to call an Insteon scene from Vera when initiated by a KPL.  But here goes some ways to do it?..

It depends on your setup.

Case A)  If you have the KPL button setup as a Controller for an Insteon scene or kicking off an ISY program, Vera need not be involved for Insteon devices.  If you want to use that KPL button to alter Z-Wave devices within Vera, you would use the KPL activation as a trigger, and set the Z-Wave devices as you want.  Ignore any Insteon.

Case B)  If you do not have the KPL button setup as a Controller for an Insteon scene or ISY program initiator, Vera could handle it all.  You can have the scene set the Z-Wave devices as you want.   Then you can also have Vera set the Insteon devices as you want, or you could have Vera call an Insteon scene that you already defined in the ISY.

Clear as mud right?  It's flexible to the point of being too flexible!  The reason I would use Case A over B is less network traffic and ease of use.  Insteon/ISY will nicely handle the Insteon side of things.  And let Vera handle the Z-Wave side.  This cuts down on Insteon traffic, IP traffic, etc.
Title: Re: Vera and an ISY994i
Post by: Ds514 on December 04, 2013, 07:54:50 pm
Funny, tested it before reading this and used 2 as the random button on my 6 button KPL dimmer. Will try again with 3.

As far as the basis for calling the scene from the Insteon that involves the both the Vera and ISY, there's two scenarios in mind:

1. Living Room: Activate Sonos along with lighting as part of a scene triggered by KPL. As far as I know, Insteon does not have (simple or robust) Sonos integration as yet.

2. Living Room: Activate a Philips Hue device (Living Colors) along with Insteon devices.

3. There will be more.

Edit: That worked; I have the Vera responding to KPL button presses. Thanks again. Another shipment of Insteon devices on the way.
Title: Re: Vera and an ISY994i
Post by: garrettwp on December 05, 2013, 08:32:27 am
Funny, tested it before reading this and used 2 as the random button on my 6 button KPL dimmer. Will try again with 3.

As far as the basis for calling the scene from the Insteon that involves the both the Vera and ISY, there's two scenarios in mind:

1. Living Room: Activate Sonos along with lighting as part of a scene triggered by KPL. As far as I know, Insteon does not have (simple or robust) Sonos integration as yet.

2. Living Room: Activate a Philips Hue device (Living Colors) along with Insteon devices.

3. There will be more.

Edit: That worked; I have the Vera responding to KPL button presses. Thanks again. Another shipment of Insteon devices on the way.

This would only be wise if you wanted to manage the action of the kpl button on one controller. But it would be better to have the kpl button issue the isy scene on the isy side and the actions for vera on the vera side. This would require setting up the action for the kpl button on both controllers, but you are already configuring the scene on both anyway.

- Garrett
Title: Re: Vera and an ISY994i
Post by: garrettwp on December 05, 2013, 08:35:52 am
PurdueGuy,

I granted you access to the git repository. You can now commit. I merged your changes to the code and made some additional changes as well.

Merged the zwave code.
Merged the iolinc code.
Changed the zwave dimmer child creation to use the dimmer device and not the binary device.
Added code for the family tag for use in distinguishing between z-wave and insteon devices.
Other minor bug fixes and code cleanup.

- Garrett
Title: Re: Vera and an ISY994i
Post by: Ds514 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.
Title: Re: Vera and an ISY994i
Post by: garrettwp 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
Title: Re: Vera and an ISY994i
Post by: PurdueGuy 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.
Title: Re: Vera and an ISY994i
Post by: Ds514 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?
Title: Re: Vera and an ISY994i
Post by: Aaron 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

Title: Re: Vera and an ISY994i
Post by: Ds514 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).
Title: Re: Vera and an ISY994i
Post by: PurdueGuy 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.
Title: Re: Vera and an ISY994i
Post by: garrettwp 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
Title: Re: Vera and an ISY994i
Post by: garrettwp 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
Title: Re: Vera and an ISY994i
Post by: PurdueGuy 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.
Title: Re: Vera and an ISY994i
Post by: garrettwp 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
Title: Re: Vera and an ISY994i
Post by: PurdueGuy 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:

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.
Title: Re: Vera and an ISY994i
Post by: Aaron 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!
Title: Re: Vera and an ISY994i
Post by: PurdueGuy 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!  :-)
Title: Re: Vera and an ISY994i
Post by: Ds514 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?
Title: Re: Vera and an ISY994i
Post by: PurdueGuy on December 10, 2013, 05:13:35 pm
What devices?

I added a new Z-Wave switch to ISY, and a Vera LUUP restart brought it into Vera.
Title: Re: Vera and an ISY994i
Post by: Ds514 on December 10, 2013, 07:21:21 pm
A dimmer, plugin module, and a couple KPLs. The dimmer has since surfaced in Vera, but the other devices remain MIA.

The most recent effort was to install the latest files from the repository (thanks), and then restart the luup engine.
Title: Re: Vera and an ISY994i
Post by: PurdueGuy on December 10, 2013, 07:27:57 pm
I haven't added any new Insteon devices, just Z-Wave.   I have more Insteon to add, I'll see if I can test one out.

Did you by chance reload the Vera webpage?  My browser loves to sometimes show new devices with no buttons, or just am empty box, etc.   Refreshing it brings it up.
Title: Re: Vera and an ISY994i
Post by: Ds514 on December 10, 2013, 07:39:18 pm
I did reload the browser and also clicked the Reload button in the UI.

I will continue to fiddle. There is no huge rush with this but any insight would be appreciated.
Title: Re: Vera and an ISY994i
Post by: Ds514 on December 10, 2013, 09:08:29 pm
It seems like there may be a few issues with the current build or possibly as a result of adding new devices via the ISY:

1. Not sure if the earlier reported issue with new devices not appearing is part of this.
2. KPL presses that were earlier triggering Vera scenes are no longer responsive.
3. Device On buttons in the Vera UI never go fully to On, instead ending with either the Off or both the On and Off buttons highlighted. Pressing Off responds as normal. The devices respond as normal.

I have power cycled the Vera and the ISY without effect.

I am going to uninstall and reinstall the first build and start over.

Update: A Stop/Start may have resolved the On/Off button issue.
Title: Re: Vera and an ISY994i
Post by: garrettwp on December 11, 2013, 01:43:35 am
The changes that PurdueGuy made should not effect the performance of the plugin, they are pretty minor changes. I would check to make sure that the daemon is running and connected to the ISY. This is most likely your performance issues.

- Garrett
Title: Re: Vera and an ISY994i
Post by: ttmetro on December 11, 2013, 02:36:30 am
Sorry for the delay. I have attached the files for my plugin that communicates with the ISY controller. Right now it should work with Relays and Dimmers, and their Keypad linc variants. It will also work with the Fan Linc as well.

Instructions:  ...

Very interesting. Not knowing your work, I'd also written a (much simpler) rest interface from the Vera to the ISY. Probably I should upgrade to your code, but out of curiosity: how do you handle status updates? I keep polling the ISY's rest interface, which of course is clumsy and adds delay.

The other thing I am surprised by is the (unconditional?) enthusiasm on this track of the ISY programming "language". Aside from its reliability and the excellent support on the forum from Michel Kohanim - I find the ISY language very difficult to use for anything but simple stuff. For example, my sprinkler controller is very contorted (ok, written before variables were supported, perhaps now it's easier). By comparison Lua is very expressive (although I never really learned that language).

As an early adopter of ISY and recently getting a Vera (and now resigning to using both but with the Vera in command), it's interesting to see others go the other way. I guess both devices have shortcomings. E.g. on the Vera I am using Yale locks, Caddx security system, Sonos, and even an interface to my router - not sure any of this would be possible by the ISY. Of course in terms of documentation and polish the Vera is a pretty sad story.
Title: Re: Vera and an ISY994i
Post by: PurdueGuy on December 11, 2013, 02:55:24 am
The plugin uses the SOAP API to subscribe to event changes to they are done in realtime.

As far as the programming, check out the variables.  They must make it easier.

One of the things I like best about the ISY is the easy program and conditional logic.  However, I am a computer engineer, so conditional logic is second nature for me.  I also like the fact that a change in status/variable/etc immediately halts execution of a program (at a wait/repeat/etc).  In Vera, once a "scene" starts, you can't stop it.  Also, there are no loops in Vera, aside from setting your own variables, tracking them, etc.  This eliminates the need for plugins like Vacation Ghost and Smart Switch.

I have the ISY network module, so I run two concurrent connections to an relay server, so both Vera (via the DSC plugin) and my ISY (via the DSCLink) can both immediately get notifications of DSC panel changes.  I also have the ISY commanding my SQBlaster directly.  The ISY also commands my Foscam cameras as needed (alerts, privacy modes, etc).

Also, ISY now has beta Z-Wave support, so I have moved my Kwikset locks to it.  I did lose the ability for codes and scheduling, but that is on the agenda to be added.

But I will reiterate, the Vera mobile apps win very easily.  That's why I keep Vera in the loop.
Title: Re: Vera and an ISY994i
Post by: Ds514 on December 11, 2013, 08:32:25 am
The changes that PurdueGuy made should not effect the performance of the plugin, they are pretty minor changes. I would check to make sure that the daemon is running and connected to the ISY. This is most likely your performance issues.

- Garrett

I do have the Running and Connected indications in the plugin's dialogue. Also, the plugin continues to operate the devices that had been previously configured (other than that KPL issue). Also, one of the four devices installed yesterday did configure. I haven't gotten around to a full uninstall/reinstall, but will hopefully get that done today.
Title: Re: Vera and an ISY994i
Post by: Ds514 on December 11, 2013, 02:11:38 pm
Ok, so I deleted the plugin, installed the most recent build, and everything is operating as expected.

It is possible this was not, as suggested, related to the code at all. The plugin module, although fully functional under the ISY, is reported as an unsupported module in that system's interface and one of the KPLs (6-button) that was not showing up today fried itself under its (light) load. I today added another dimmer and a motion sensor and those are appearing in the Vera interface.

So, the only issues remaining are the KPL response and an absent 8-button KPL, which is not propagating to the Vera. Is it possible that this KPL device is not supported (i.e., is anyone else using an 8-button)?
Title: Re: Vera and an ISY994i
Post by: Aaron on December 11, 2013, 02:38:17 pm
ISY now has beta Z-Wave support, so I have moved my Kwikset locks to it.  I did lose the ability for codes and scheduling, but that is on the agenda to be added.

But I will reiterate, the Vera mobile apps win very easily.  That's why I keep Vera in the loop.

How are you using Zwave in the ISY? Is the Vera being used as the Zwave interface?

I agree, Authomation is the lifeblood of my HA mobility.  Maybe Garrett will add direct support for the ISY :-P



Title: Re: Vera and an ISY994i
Post by: garrettwp on December 11, 2013, 02:39:41 pm
Ok, so I deleted the plugin, installed the most recent build, and everything is operating as expected.

It is possible this was not, as suggested, related to the code at all. The plugin module, although fully functional under the ISY, is reported as an unsupported module in that system's interface and one of the KPLs (6-button) that was not showing up today fried itself under its (light) load. I today added another dimmer and a motion sensor and those are appearing in the Vera interface.

So, the only issues remaining are the KPL response and an absent 8-button KPL, which is not propagating to the Vera. Is it possible that this KPL device is not supported (i.e., is anyone else using an 8-button)?

I have a mixture of 6 button and 8 button KPL's and are working without issue.

- Garrett
Title: Re: Vera and an ISY994i
Post by: garrettwp on December 11, 2013, 02:40:33 pm
ISY now has beta Z-Wave support, so I have moved my Kwikset locks to it.  I did lose the ability for codes and scheduling, but that is on the agenda to be added.

But I will reiterate, the Vera mobile apps win very easily.  That's why I keep Vera in the loop.

How are you using Zwave in the ISY? Is the Vera being used as the Zwave interface?

I agree, Authomation is the lifeblood of my HA mobility.  Maybe Garrett will add direct support for the ISY :-P

Not any time soon! I already have too much on my plate as it is. : P

- Garrett
Title: Re: Vera and an ISY994i
Post by: PurdueGuy on December 11, 2013, 04:28:59 pm
ISY now has beta Z-Wave support, so I have moved my Kwikset locks to it.  I did lose the ability for codes and scheduling, but that is on the agenda to be added.

But I will reiterate, the Vera mobile apps win very easily.  That's why I keep Vera in the loop.

How are you using Zwave in the ISY? Is the Vera being used as the Zwave interface?

I agree, Authomation is the lifeblood of my HA mobility.  Maybe Garrett will add direct support for the ISY :-P
No, the ISY now has a Z-Wave dongle in beta, for $100.  It is a daughter-board that goes inside the ISY.  I excluded some devices from Vera, and included them on the ISY.
Title: Re: Vera and an ISY994i
Post by: Ds514 on December 11, 2013, 04:55:08 pm
Re KPL presses as Vera Triggers: Rolled back to Dec03 build, certain that presses would start working again. Does not trigger scenes any longer in any build. Hard to explain. Will see if I can get the PLEG method to work.

Re 8 button KPL: Buttons work fine in ISY but there is a peculiarity with the load on this device. I am not sure if that could be a factor. 

Update: Somehow, the native Insteon was still running, despite having clicked to remove support. This zombie service was possibly interfering as KPL presses seem functional now after killing it.
Title: Re: Vera and an ISY994i
Post by: garrettwp on December 11, 2013, 10:53:50 pm
Glad to hear it is working!

- Garrett

Title: Re: Vera and an ISY994i
Post by: Ds514 on December 12, 2013, 08:56:29 am
Me too. A word to the wise:

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. 

In addition, it may be best to be sure that Insteon is completely disabled in the Vera before proceeding with this. Yes, this may mean that a lot of work gets lost, but if this plugin is used, those original Insteon devices, scenes, and unobserved artefacts may be a hinderance.
Title: Re: Vera and an ISY994i
Post by: Aaron on December 12, 2013, 10:21:34 pm
Just installed ISY_20131203_v01.zip  ... suggestion: update post #1 with the latest so people don't have to search every page :)
It pulled in my 16 Insteon dimmers and I'm creating both 'Programs' (ISY) and 'Automation' (Vera) to test out how they both work.
-  Programming the ISY, at least for simple If/Then/Else is such a breath of fresh air. I almost forgot how this stuff should be :)

One issue and One FYI...

Issue... ISY Scenes do not work when controlling a light from Vera. In ISY you can create a "Scene" (linking two or more devices together - so they are synchronized).  With this, when you control one device, either locally/manually or using the ISY - it will trigger the other devices in that Scene. When controlling any of those devices with Vera, it does not do this. I think what this tells me is that Vera. Clearly, not ideal :)

FYI...  Immediately after initial install, when I controlled an ISY Insteon device from inside Vera, the control worked, status reported properly in ISY but status in Vera UI never changed - Vera showed the device Off or whatever % it was when it was pulled in from the ISY.  After Restart the ISY device in Vera - everything worked properly.

thanks for working on this guys!!!


Title: Re: Vera and an ISY994i
Post by: PurdueGuy on December 13, 2013, 02:02:40 am
Just installed ISY_20131203_v01.zip  ... suggestion: update post #1 with the latest so people don't have to search every page :)
It is actually in the MIOS apps repository, which is the main place to get it?it might be an installable plugin someday.

It pulled in my 16 Insteon dimmers and I'm creating both 'Programs' (ISY) and 'Automation' (Vera) to test out how they both work.
-  Programming the ISY, at least for simple If/Then/Else is such a breath of fresh air. I almost forgot how this stuff should be :)

One issue and One FYI...

Issue... ISY Scenes do not work when controlling a light from Vera. In ISY you can create a "Scene" (linking two or more devices together - so they are synchronized).  With this, when you control one device, either locally/manually or using the ISY - it will trigger the other devices in that Scene. When controlling any of those devices with Vera, it does not do this. I think what this tells me is that Vera. Clearly, not ideal :)
This is how it is supposed to work.  That's how the ISY works too.   When you control a light from a physical device, that can be configured as a controller, so it will set the other light too.   If you control *just* the light from ISY, only the one light with responsd.  If you control the *scene* from ISY, the scene will respond.  If you want to recreate that in Vera, you would need to do one of the following:
1- create a vera scene that calls "runScene" on the main ISY device
2- create a program in the ISY that runs whenever the "status" of the device changes to what should be the scene

FYI...  Immediately after initial install, when I controlled an ISY Insteon device from inside Vera, the control worked, status reported properly in ISY but status in Vera UI never changed - Vera showed the device Off or whatever % it was when it was pulled in from the ISY.  After Restart the ISY device in Vera - everything worked properly.

thanks for working on this guys!!!
Sounds like the daemon on Vera wasn't running.  If the daemon isn't running, you can still do a bunch of control, but no status updates.
Title: Re: Vera and an ISY994i
Post by: Aaron on December 13, 2013, 12:09:59 pm
Gotcha.

Idea...
Can you add a feature where ISY Scenes are created in Vera as a Device?
- This would create some simplicity when interfacing ISY-Vera-RemoteUIs (like AHHD) and reduce the need to create Automation in Vera to trigger a scene.
- My intent is to pull as much functionality from Vera into the ISY (keep Vera to a bare min). I use AuthomationHD and Zwave devices, so I still need Vera.

I need to find ways to move more Vera functionality into ISY...
Title: Re: Vera and an ISY994i
Post by: garrettwp on December 13, 2013, 12:49:30 pm
The latest code can be found here:

http://code.mios.com/trac/mios_universal_devices_isy_plugin/browser

I was thinking of adding the ability to populate the ISY scenes into vera but I have not for the following reasons:

1. Scenes on both devices should be only on their respective platform.
2. I did not want to fill my vera with a lot of scenes from the ISY.

- Garrett
Title: Re: Vera and an ISY994i
Post by: Aaron on December 13, 2013, 01:15:02 pm
The latest code can be found here:

http://code.mios.com/trac/mios_universal_devices_isy_plugin/browser

I was thinking of adding the ability to populate the ISY scenes into vera but I have not for the following reasons:

1. Scenes on both devices should be only on their respective platform.
2. I did not want to fill my vera with a lot of scenes from the ISY.

- Garrett

I understand... though, some would be helpful. What if we had added suffix to the ISY Scenes we wanted to show in Vera. Something like...

Kitchen Lights-vera

... when brought into Vera it would just show ' Kitchen Lights'
Title: Re: Vera and an ISY994i
Post by: Ds514 on December 13, 2013, 05:25:54 pm
I started to write a plugin that is based off futzle's upnp proxy plugin.

Am I correct in assuming that this either requires futzle's upnp proxy to be running or that it is compatible with it running? As a re-read this, I begin to feel that this may mean that the two running concurrently is potentially redundant or even problematic.
Title: Re: Vera and an ISY994i
Post by: garrettwp on December 13, 2013, 05:28:39 pm
Some of her code from the upnp proxy daemon was used. The ISY event daemon is based off of it, but heavily modified to work with the ISY. The two are complete different in what they do.

- Garrett
Title: Re: Vera and an ISY994i
Post by: Ds514 on December 15, 2013, 10:42:24 am
Ok, understood.

Is the altid variable in the advanced settings meaningful to the ISY? i.e., is the Insteon address indicated in this setting the actual address that the plugin uses to technically communicate with individual devices?

I ask because I am still trying to solve the remaining issue that I have of a missing 8 button KPL. I am looking at the possibility of manually creating a scene controller device in the image of a functioning 6-button that I have. What I am not sure about is if entering the Insteon address of the 8-button in this field will actually facilitate communication with the device.

Beyond this, on the same topic, I wonder if there is some method by which a device can be "pushed" from the ISY to the plugin in a case like this in which it is not being recognized.

The one confounding variable with this KPL is that the main load that it operates is apparently non-existent. The previous homeowner seems to have covered up whatever junction box this would have operated and so, although the device currently receives power (and operates within the ISY), it does not appear to have an actual load and it is possible that its circuit is not completed.
Title: Re: Vera and an ISY994i
Post by: garrettwp on December 15, 2013, 12:00:56 pm
Most of my KPL's do not have a load connected to it. They are only powered to use for scene controllers.

Yes, the alltid is manually the physical address of the insteon device. It should match that of the ISY. Manually creating the scene controller and putting in the insteon id into the altid will not cause the plugin to recognize it. Under the hood, the plugin keeps track of the devices it finds upon starting. Can you do the following:

In a browser window put the following url in: http://isy_ip/rest/nodes/devices

Where the isy_ip is the ip address of your isy device. Can you provide me the output of the xml from the above link. I would like to see what the ISY reports for the KPL device in regards of the type field, etc.

- Garrett
Title: Re: Vera and an ISY994i
Post by: Ds514 on December 15, 2013, 12:33:00 pm
Garrett, I have attached the XML output. The device in question is 22 F3 74. Any insight is appreciated.

BTW: there is also a good chance that my PLM is dying or defective. I have a new one arriving tomorrow. Again, not sure if this could be a variable.

EDIT: Traced PLM issue to interference from powerline networking equipment. I believe this can be eliminated as a variable.
Title: Re: Vera and an ISY994i
Post by: garrettwp on December 16, 2013, 01:07:32 am
Looked over your xml file and noticed that the Dimmer KPL has a Device Category of 65. I do not see anything in the documentation for a category of 65 for a dimmer kpl. Is this a new dimmer kpl?

- Garrett
Title: Re: Vera and an ISY994i
Post by: PurdueGuy on December 16, 2013, 01:13:04 am
Looked over your xml file and noticed that the Dimmer KPL has a Device Category of 65. I do not see anything in the documentation for a category of 65 for a dimmer kpl. Is this a new dimmer kpl?

- Garrett
Garrett,
Category 1 with subcategory 65 and 66 are the new Dual-band Dimmer KPLs.  I have some too.
Since I am not using any of the KPLs for scene controls in Vera, so I didn't notice they were missing.
Title: Re: Vera and an ISY994i
Post by: garrettwp on December 16, 2013, 04:01:51 am
I'll add them to the list.

- Garrett

Update:
Pushed out new commit with support for the Dual Band Dimmer KPL's. Ds514, download the L_ISYController.lua file and upload it to Vera. It should see your new kpl device.

- Garrett
Title: Re: Vera and an ISY994i
Post by: Ds514 on December 16, 2013, 09:54:30 am
That did it, thank you. The device showed up immediately, and I have confirmed that I can use it as a trigger in the Vera.

I am not sure how difficult it is to add a device type. I have one on/off plugin module that appears new as well (only recently recognized in the ISY firmware betas):

<node flag="128">
<address>27 CA F7 1</address>
<name>Accessory plugin (bannister)</name>
<type>2.55.70.0</type>
<enabled>true</enabled>
<deviceClass>0</deviceClass>
<wattage>0</wattage>
<dcPeriod>0</dcPeriod>
<pnode>27 CA F7 1</pnode>
<ELK_ID>B09</ELK_ID>
<property id="ST" value="255" formatted="On" uom="on/off"/>
</node>

This one is not an issue for me, but if there is any information that you would like to allow for its inclusion, I'll be happy to supply it.
Title: Re: Vera and an ISY994i
Post by: Aaron on December 16, 2013, 10:39:52 am
Guys,
Any plans to submit to Vera app store so we can get auto updates :) ?
Title: Re: Vera and an ISY994i
Post by: garrettwp on December 16, 2013, 01:13:46 pm
That did it, thank you. The device showed up immediately, and I have confirmed that I can use it as a trigger in the Vera.

I am not sure how difficult it is to add a device type. I have one on/off plugin module that appears new as well (only recently recognized in the ISY firmware betas):

<node flag="128">
<address>27 CA F7 1</address>
<name>Accessory plugin (bannister)</name>
<type>2.55.70.0</type>
<enabled>true</enabled>
<deviceClass>0</deviceClass>
<wattage>0</wattage>
<dcPeriod>0</dcPeriod>
<pnode>27 CA F7 1</pnode>
<ELK_ID>B09</ELK_ID>
<property id="ST" value="255" formatted="On" uom="on/off"/>
</node>

This one is not an issue for me, but if there is any information that you would like to allow for its inclusion, I'll be happy to supply it.

Looks like another new devcat made for the new on/off module. I updated the L_ISYController.lua file to contain the new device. I push out a commit.

Purdue,

Is it my understanding that you have access to the Insteon documentation? Can you confirm that this is a new device? Any other devices I should know about?

- Garrett
Title: Re: Vera and an ISY994i
Post by: garrettwp on December 16, 2013, 01:14:43 pm
Guys,
Any plans to submit to Vera app store so we can get auto updates :) ?

Once I know things are stable and nothing major creeps up, I'll consider adding it to app store.

- Garrett
Title: Re: Vera and an ISY994i
Post by: PurdueGuy on December 16, 2013, 01:30:48 pm
Purdue,

Is it my understanding that you have access to the Insteon documentation? Can you confirm that this is a new device? Any other devices I should know about?

- Garrett
I do.  I'll check and see if there is an updated documentation list, but the last time I look, it was very out of date.
When doing Alsteon development, I only discovered the new subcat for dimmer KPLs because I bought one.
Title: Re: Vera and an ISY994i
Post by: PurdueGuy on December 16, 2013, 01:45:42 pm
I do.  I'll check and see if there is an updated documentation list, but the last time I look, it was very out of date.
When doing Alsteon development, I only discovered the new subcat for dimmer KPLs because I bought one.
The documentation was updated on Dec 1, 2013, but links are broken.   :'(
I already posted in another forum asking about it.
Title: Re: Vera and an ISY994i
Post by: PurdueGuy on December 19, 2013, 12:53:54 pm
I just got an updated device category/subcategory list.  I checked it into git, but I am not in a position to test anything for a week or two.

The list appears to be fairly current, since the new dimmer KPLs and LED bulbs are listed.
Title: Re: Vera and an ISY994i
Post by: Aaron on December 19, 2013, 02:39:08 pm
Everything is working fine for me.

Question about futures...

I'd really like to move all my Vera Automation to ISY Programs for some, hopefully obvious, reasons.

I'm hoping to have the Vera mainly as a Zwave 'controller' and gateway for AuthomationHD.
To do this means a few things (please correct me if I'm missing something)...

to enable direct triggering via Vera based mobile UI...
1) ISY Insteon devices replicated to Vera (already working)
2) ISY Scenes replicated to Vera as a device (virtual device?)
3) ISY Programs 'represented' in Vera

to enable ISY Programming control of all devices...
4) Vera ZWave devices replicated to ISY


... is this a thought, on the roadmap, never going to happen, etc?

thx guys.
Title: Re: Vera and an ISY994i
Post by: garrettwp on December 20, 2013, 11:51:04 am
2) I have no intention to replicate the scenes or programs from the ISY as devices on Vera. You can always create the scenes that you want Vera to expose the ISY scene and use the advanced tab to issue the ISY scene number you want.
3) See answer to question to above. The same can be done with programs with PurdueGuys code addition.
4) I have no intention to develop a plugin on the ISY side to expose the devices from Vera. Not sure how much of this is possible.

- Garrett
Title: Re: Vera and an ISY994i
Post by: Aaron on December 20, 2013, 12:04:37 pm
2) I have no intention to replicate the scenes or programs from the ISY as devices on Vera. You can always create the scenes that you want Vera to expose the ISY scene and use the advanced tab to issue the ISY scene number you want.
3) See answer to question to above. The same can be done with programs with PurdueGuys code addition.
4) I have no intention to develop a plugin on the ISY side to expose the devices from Vera. Not sure how much of this is possible.

- Garrett

PurdueGuy... can you comment on this. I did not know there was a way to replicate ISY Programs or Scenes into Vera?
Title: Re: Vera and an ISY994i
Post by: Ds514 on December 20, 2013, 12:13:57 pm
Re replication of ISY scenes in the Vera: You would create the scene or program that you want in ISY; then create a corresponding scene in the Vera; in the Vera Automation/Advanced tab, you would Pick a Device / ISY Controller; in the dropdown, you then select runScene or runProgram, identifying the Scene/Program ID from the ISY. Running this Vera scene will then call the identified ISY scene or program. I believe the Vera elements of the above can also be replicated withing a PLEG, but I have not done this myself as yet.

Title: Re: Vera and an ISY994i
Post by: garrettwp on December 20, 2013, 12:35:39 pm
Yes, you can also have pleg call the scene or program.

- Garrett
Title: Re: Vera and an ISY994i
Post by: PurdueGuy on December 20, 2013, 01:03:27 pm
2) I have no intention to replicate the scenes or programs from the ISY as devices on Vera. You can always create the scenes that you want Vera to expose the ISY scene and use the advanced tab to issue the ISY scene number you want.
3) See answer to question to above. The same can be done with programs with PurdueGuys code addition.
4) I have no intention to develop a plugin on the ISY side to expose the devices from Vera. Not sure how much of this is possible.

- Garrett

PurdueGuy... can you comment on this. I did not know there was a way to replicate ISY Programs or Scenes into Vera?
I agree with Garrett.  I haven't even explored the option to create scenes from LUUP, if that is even possible.

I do not need all my Insteon scenes/programs in Vera, so this wouldn't be needed for me.  I do as Ds514 says...create a scene in Vera, and add the ISY scene/program via the Advanced tab.   I only expose about 10 ISY programs and 8 ISY scenes in my Vera...but my ISY has about 40 scenes and 55 programs.   That would be way too much clutter in my Vera, and most are simply automatic, and never triggered via a person.
Title: Re: Vera and an ISY994i
Post by: Aaron on December 20, 2013, 04:10:38 pm
The goal I have is not to 'duplicate' any of the scenes, either direction.  It is only to have a 'representation' so no matter which device you are running an "action" (manually trigger from AHHD, web UI, Program/Automation) it would be available from either system.

The thought is that most things will likely run via automation, best from ISY Programs. In some cases, the Vera has better functionality (a few of the Apps, etc). So if the devices and Programs/Scenes are call-able from either system we get the best of both worlds.

I think the largest gap is exposing the Vera ZWave devices to the ISY Programs.
Title: Re: Vera and an ISY994i
Post by: garrettwp on December 20, 2013, 05:33:34 pm
By exposing the scenes and programs in Vera would clutter up the dashboard and phone interface. I don't want this. I did expose so you can call the isy scene from pleg, a Vera scene, or luup call. PurdueGuy added code to expose the programs.

- Garrett

Title: Re: Vera and an ISY994i
Post by: Aaron on December 20, 2013, 06:22:58 pm
By exposing the scenes and programs in Vera would clutter up the dashboard and phone interface. I don't want this. I did expose so you can call the isy scene from pleg, a Vera scene, or luup call. PurdueGuy added code to expose the programs.

- Garrett

Since, in Vera, the ISY devices come over into 'no room' I don't think they would really clutter anything. The user must move them into rooms manually so they can choose to leave them in 'no room' or into an 'ISY' room and simply ignore them in AHHD -- does anyone even use the native Web UI for usage anyway -- with AHHD being so good, I don't see any reason to use Vera's web UI except for, rare, admin purposes.

I'll look at how to call an ISY scene & program from Vera... but ideally it would simply be a 'virtual device' in Vera.
Title: Re: Vera and an ISY994i
Post by: PurdueGuy on December 20, 2013, 08:01:44 pm
I think the largest gap is exposing the Vera ZWave devices to the ISY Programs.
The ISY doesn't have a concept of virtual devices.  To change anything in Vera (scenes, devices, etc), I create a network resource in ISY, and call that when needed.
Title: Re: Vera and an ISY994i
Post by: Aaron on December 20, 2013, 09:25:08 pm
I think the largest gap is exposing the Vera ZWave devices to the ISY Programs.
The ISY doesn't have a concept of virtual devices.  To change anything in Vera (scenes, devices, etc), I create a network resource in ISY, and call that when needed.

The more I dig into ISY the more very basic (Home Automation 101) gaps I'm finding... no string variables, no virtual devices, charging for basic network connectivity, etc. I like the Programs section and ease of admin (UI layout, etc) but the more I dig the less impressed I am. 
Title: Re: Vera and an ISY994i
Post by: Ds514 on December 20, 2013, 09:35:30 pm
ISY and Insteon offer some phenomenal load control functions. At the same time, working with it has highlighted the strengths of the Vera.

The more I dig, the more I find the combination unbeatable.
Title: Re: Vera and an ISY994i
Post by: PurdueGuy on December 20, 2013, 10:43:03 pm
I think the largest gap is exposing the Vera ZWave devices to the ISY Programs.
The ISY doesn't have a concept of virtual devices.  To change anything in Vera (scenes, devices, etc), I create a network resource in ISY, and call that when needed.

The more I dig into ISY the more very basic (Home Automation 101) gaps I'm finding... no string variables, no virtual devices, charging for basic network connectivity, etc. I like the Programs section and ease of admin (UI layout, etc) but the more I dig the less impressed I am.
To each his own....I find I can do more with ISY without plugins.  As for string variables, not sure why you need those.  Being a programmer, numbers are fine for me.  You can create a notification with strings, and send different notifications based on variables, and insert variables in the notification.

I have the networking module ($50), which opens up everything.  The only thing not running on the ISY is DSCLink, which links my DSC alarm to the ISY.   Everything else is done directly with network calls (Foscam IP cameras, SQBlaster, Denon ethernet control, TiVo ethernet control).

What the ISY (and Insteon, really) excels are are native scenes.  Every Insteon controller can control almost any other Insteon device.  Z-Wave lacks that functionality, as a basic feature set.
Title: Re: Vera and an ISY994i
Post by: Aaron on December 21, 2013, 12:28:36 am
I understand your points, and agree with them. Coming from the world of Homeseer (prior to my past 1.5 years with Vera) I guess I'm used to ultimate flexibility - maybe I was spoiled.

String variables are very useful for 'Status' display on UIs and passing values around in Programs/Scripts/etc. They are also MUCH easier to use, and human readable, vs trying to remember/translate numeric values into what you actually want to use them for - strings.

Virtual Devices are useful for triggering Scenes/Programs/Scripts via a UI - for example, if you are going on / returning from Vacation, etc. They can also be a quick and easy way to hold binary values without needing to add the complexity of binary variables.

A few things bother me about ISY / UDI...

Title: Re: Vera and an ISY994i
Post by: PurdueGuy on December 21, 2013, 12:50:23 am
If I understand correctly, the ISY is not running Linux, or a full OS like that.  It is more of a micro controller running code.  I don't know what the memory in the ISY is, but it seems to handle a large number of devices better than my Vera2 ever did.

I already realize I am not the best example of a user, being a computer engineer and very familiar with binary/state-machine-driven entities.

While the ISY community isn't as active, I don't see that as a bad thing necessarily.  It might just be that people are able to use the system, and don't need extra help?  People answer questions, and Universal-Devices support is top-notch.
Title: Re: Vera and an ISY994i
Post by: Aaron on December 21, 2013, 02:07:05 am
ok, back onto the Vera <-> ISY code...

I changed the user/pw in the ISY today. Once I do this, the Vera device will not Initialize (as expected) but it does not throw an error as to why. Might want to put in an authentication failed notice.

Is there a way to get the code to automatically Start and Initialize upon the Vera booting?

thx
Title: Re: Vera and an ISY994i
Post by: garrettwp on December 31, 2013, 01:03:45 pm
Committed a new version of the code. The new version now passes the command value from the ISY event on top of the action value to the plugin. We now evaluate the command in the plugin to decide which devices get updated. For example a command from the ISY of DON or DOF will be evaluated for the scene controllers / keypad lincs. The command value of ST will be evaluated for all other devices.

Reason for this is that the RemoteLinc (MiniRemote) will only pass the DOF or DON command to the ISY if the button was already activated. For example if the RemoteLinc group 1 off button was already activated, the DOF command will only be passed and not the ST (status) command. The KeypadLinc Dimmer and Switch now check for DON and DOF events for the scene buttons.

This still needs to be added to the zwave devices. PurdueGuy, any chance you can add this as I do not know what the event output looks like for the zwave devices.

- Garrett
Title: Re: Vera and an ISY994i
Post by: PurdueGuy on December 31, 2013, 01:45:35 pm
This still needs to be added to the zwave devices. PurdueGuy, any chance you can add this as I do not know what the event output looks like for the zwave devices.

- Garrett
I haven't successfully added any Z-Wave controllers to ISY yet, Vera still runs those.  I only tried a couple non-Leviton ones.  I'll try to add a newer Leviton device in the next few days and see what I can get going.
Title: Re: Vera and an ISY994i
Post by: garrettwp on December 31, 2013, 02:19:10 pm
I did add the code to only act on the ST command event for the zwave devices. So that would need to be added.

- Garrett
Title: Re: Vera and an ISY994i
Post by: PurdueGuy on January 03, 2014, 01:45:31 am
No luck with a newer Leviton VRCZ4.   It will add to the ISY, but doesn't play nice.
Push a controller button generates messages in the ISY log, but they are only RX and TX messages and errors.  Nothing meaningful that can be acted upon, and nothing gets to Vera.

I have offered loaner devices to UDI, and they are working on additional device support.
Title: Re: Vera and an ISY994i
Post by: PurdueGuy on January 05, 2014, 04:42:57 pm
I just committed changes to support Z-Wave thermostats via ISY.
Currently, the ISY doesn't support Energy vs Normal mode, so those are not implemented yet.
Title: Re: Vera and an ISY994i
Post by: Ds514 on January 06, 2014, 08:21:55 pm
Garrett or Jacob,

Could either of you confirm my syntax using the plugin's runProgram command?

In the attached, I am trying to run Program 0011 on the ISY, which has only a Then path (i.e., it has no Condition of its own). The program is intended to set a Variable in the ISY based on a given Vera device's State. I have confirmed that running the Then path of the Program on the ISY causes the Variable to change to the desired "1" (I note that I could also use an arbitrary string if I wished). However, running this command within a scene on the Vera is not doing the same.

Any thoughts?
Title: Re: Vera and an ISY994i
Post by: PurdueGuy on January 06, 2014, 08:25:59 pm
You'll need to use the REST API syntax.
Choices are:
Title: Re: Vera and an ISY994i
Post by: Ds514 on January 06, 2014, 08:32:25 pm
Fantastic, thank you.
Title: Do I have this correct
Post by: spudjr on January 06, 2014, 09:01:46 pm
Been following the thread with interest. Have a vera lite and am purchasing a ISY994I and 2413S serial PLM. From what I am reading, to gain access to the ISY994I from my Vera I need to upload (apps, develop apps, luup files, upload files) the 10 files from Garrett's plugin. I see there are 3 folders with files in them, when uploading to vera they just go in the default location in Vera?
Create the device and then go play. Seems to simple, am I missing something?
Thanks
Title: Re: Vera and an ISY994i
Post by: Ds514 on January 06, 2014, 09:34:34 pm
You are correct, they all go into the same "Upload files" location. Create the device, enter your ISY's login and IP address, and the two should begin speaking.
Title: Re: Vera and an ISY994i
Post by: big517 on January 09, 2014, 11:27:34 am
I have VERA as my Master and ISY as a SLAVE in my zwave network.  Will this plugin benefit me?  I have no insteon devices so I hesitate to install this.

Does the plugin allow for control of the ELK or other devices that ISY has?
Title: Re: Vera and an ISY994i
Post by: garrettwp on January 09, 2014, 12:00:51 pm
Right now it is only a certain subset of insteon and zwave devices.

- Garrett

Title: Re: Vera and an ISY994i
Post by: Ds514 on January 09, 2014, 12:09:15 pm
I can foresee a way that you could use the ISY, the Vera, and the ELK together, however, even though the ELK is not a supported device in the plugin.

As far as I understand, the ISY can control the ELK directly. If you are able to integrate ELK status or control changes into programs, then you could use those programs to call scenes on the Vera via http post (you need the networking module on the ISY). The ISY plugin is not needed for that.

The ISY plugin could be used to run programs on the ISY which convey variables. As an example, one that I am toying with is to have the Vera Nest plugin's home/away status run a program that sets a variable on the ISY. The ISY could then potentially use these variables in its programs, which could in turn potentially act on the ELK (again, assuming the ELK can be integrated into programs).

Title: Re: Vera and an ISY994i
Post by: Aaron on January 17, 2014, 09:25:24 am
Hi Guys,
I've been using this plugin for a few weeks now and 'mostly' it works well (thank you). I do have 2 items that are problematic for me...

1) When the Vera reboots, your app is not automatically starting, and updating the device status'

2) Often, while it shows Running & Connected, the Insteon device status' will be wrong -showing they are on, when they are not. When this occurs, it is not all devices, it seems it is only a few. If I Restart the app, device status' correct... and usually stay that way until the next hiccup a day or two later.

thoughts?
Title: Re: Vera and an ISY994i
Post by: PurdueGuy on January 17, 2014, 06:33:14 pm
I wasn't sure what the official startup way is, so I created a scene that runs every 5 minutes.
It checks the status of the plugin, and if not correct, it restarts it.
Code: [Select]
local runningStatus =   luup.variable_get("urn:garrettwp-com:serviceId:ISYController1", "DaemonRunning", 207)
local connectedStatus = luup.variable_get("urn:garrettwp-com:serviceId:ISYController1", "DaemonConnected", 207)

luup.log("ISYCheck: runningStatus   = " .. runningStatus)
luup.log("ISYCheck: connectedStatus = " .. connectedStatus)

if (runningStatus ~= "Running") then
  luup.log("ISYCheck: Daemon is NOT running - restarting")
  return true
end

if (connectedStatus ~= "Connected") then
  luup.log("ISYCheck: Daemon is NOT connected - restarting")
  return true
end

luup.log("ISYCheck: Daemon is connected & running - not restarting")
return false
Within the Advanced tab, I have the device "ISY" with the action "restartDaemon" as the only thing.  Replace "207" with your ISY device number.

I am messing with Vera quite a bit lately, so I rarely make it more than 48 hours between LUUP restarts.  Maybe you could add a daily daemon restart in the middle of the night?  It's not a solution, but just a bandaid until more investigation can be done.  Does the ISY see the correct state of the device, just Vera that doesn't?

One thing I have noticed...if the ISY drops off the network (power outage, etc), the daemon doesn't detect that, and still shows running/connected, so my restart scene doesn't work.  There might need to be a poll added, or something to detect if communication with ISY is happening.
Title: Re: Vera and an ISY994i
Post by: Ds514 on January 17, 2014, 06:59:12 pm
I think your latter scenario is the issue. I have my fair share of LUUP restarts and the plugin remains perfectly stable for weeks at a time. However, it is when the Vera loses power that I encounter the failed communication issue described here. During that time the plugin reports that it is connected. I haven't tried polling it to see if that corrects the status reporting.
Title: Re: Vera and an ISY994i
Post by: Aaron on January 17, 2014, 07:37:12 pm
It is not power loss... I know when/if they lose power and they have not, not once. And they are on a server class UPS just in case. But in Phoenix AZ we almost never lose power... like once every 2 years.

Status has been correct, then incorrect 3 times today - that I've noticed. Each time I manually start/stop/update to fix the problem.
Title: Re: Vera and an ISY994i
Post by: Ds514 on January 17, 2014, 09:19:52 pm
That frequency of disconnection is surprising. Mine has been running consistently for a few weeks. I encountered the disconnect issue yesterday only because I powered everything down in order to install a Filterlinc on that circuit. If I am not fiddling, I do not see disconnections that force restarts.
Title: Re: Vera and an ISY994i
Post by: PurdueGuy on January 17, 2014, 09:22:09 pm
Mine doesn't disconnect that often, I just have it checking often so that if/when it does, it will be corrected quickly. I didn't want to waste the traffic and just run "restartDaemon" all the time, so I added the code to check.
Title: Re: Vera and an ISY994i
Post by: garrettwp on January 17, 2014, 09:54:29 pm
Mine has been staying connected for weeks on end. There can be a few factors in the disconnects. Some times luup restarts will cause the disconnects and network interruptions. I have added code that will connect on plugin initialization as long as the daemon is running. This only solves the issue for luup restarts, but not while things are humming along. A periodic check could be added in the code to check and make sure it is maintaining a connection.

- Garrett
Title: Re: Vera and an ISY994i
Post by: Aaron on January 17, 2014, 10:19:42 pm
It seems to be happening more frequently recently but I cannot find any pattern. For instance... it happened 3 times today, that last was around the time of my prior post... but it has not happened since. Normally it is every few days.  I do see LUUP restarts quite a bit, not sure why but they don't seem to cause the problem for me.

very puzzling.
Title: Re: Vera and an ISY994i
Post by: Ds514 on January 17, 2014, 10:28:13 pm
For all its advantages, it seems like Insteon can be more finicky than zwave. Insteon communication disruptions could cause the same symptoms you are experiencing, although a restart of this plugin would not be expected to resolve that. It may be necessary to assess the ISY/Insteon side of things if nothing else about the Vera configuration is identified.
Title: Re: Vera and an ISY994i
Post by: Ds514 on January 17, 2014, 11:41:15 pm
... When this occurs, it is not all devices, it seems it is only a few. If I Restart the app, device status' correct... and usually stay that way until the next hiccup a day or two later.

I think this is highly indicative of Insteon communication issues. If the plugin loses its connection with the ISY, all devices are affected, not some. This partial effect seems characteristic of the classic phase coupling issue faced by many Insteon users. It is fixed with access points that couple the phases of power in the home. If you can get to the ISY admin console in time, you would likely see that it is incapable of communicating with these devices at those moments. If so, then the plugin is simply reporting what the ISY sees, which is what it is designed to do.

... And they are on a server class UPS just in case. But in Phoenix AZ we almost never lose power... like once every 2 years.

UPS devices are described in the Filterlinc documents as one of the common culprits in Insteon communications problems caused by line noise and/or signal absorption.

The remaining question would be why does restarting the plugin solve the problem. If the issue is Insteon communication, and I think it is, then this is not solving the problem. It just seems to be. I had transient Insteon communication issues when I started this. I would engage in all manner of efforts at resolution, which would seem to work because the issues would come and go. In the end, those things would prove ineffective. I still get the occasional issue, hence the Filterlinc, but have learned to just watch it for a bit and it inevitably goes away on its own.
Title: Re: Vera and an ISY994i
Post by: Aaron on January 17, 2014, 11:59:15 pm
Ds,
you misunderstand my points...

ISY work & reports fine... I never touch it. The issue is incorrect display in the Vera. The start/stop of the app is in the Vera, this corrects the mis-diplay of the devices in the Vera. Again, I never directly use or touch the ISY. Thus, Insteon PLM, protocol, devices themselves are not the problem.

The UPS is connected to the Vera & ISY, not the PLM.  You are correct that IF the PLM was running through the UPS there could be issues with signal loss. I have test that myself and there was. I mentioned the devices being connected to UPS when the suggestion that 'power loss' might be the issue... I have not had a power loss, or even brown out, in my home in well over a year. It is just not common in my city.

Title: Re: Vera and an ISY994i
Post by: Ds514 on January 18, 2014, 12:02:29 am
If you are not observing the ISY, then you cannot know what is actually going on. Again, the symptoms you report are characteristic of Insteon communication problems and not problems with the plugin.

The PLM does not need to be plugged into the UPS to experience Insteon communications problems. Having lived through similar problems, I would encourage you to research these issues. Doing so certainly could not hurt.

Edit: Also, I am not suggesting that power loss is causing your problems. In an earlier post, I reported that I encountered errors with the plugin after power loss. Your problem has since been clarified to make it clear that this is not relevant to your situation.
Title: Re: Vera and an ISY994i
Post by: Ds514 on January 19, 2014, 08:32:10 am
Could someone confirm the location of the ISY plugin files on the Vera? I am getting a persistent ISY Controller Startup : Startup LUA Failed error. I want to remove the files entirely from the device (WinSCP) and re-install from scratch.
Title: Re: Vera and an ISY994i
Post by: garrettwp on January 19, 2014, 08:46:16 am
They should be in /etc/cmh-ludl

- Garrett

Title: Re: Vera and an ISY994i
Post by: Ds514 on January 19, 2014, 11:07:53 am
Thanks. The problem looks like it was on the ISY side (note to self, follow your own advice). A clean reinstall of the plugin did not change anything but a factory reset of the ISY allowed communication to resume.

One confounding variable is that I deleted a disabled Insteon device prior to reinstating communication via the ISY Plugin. This is the only difference between the prior configuration (not working) and current configuration (working) The device was a plugin module that I had removed from the wall and disabled in the ISY (i.e., thereby still appearing in its device list but ignored by the ISY - possible the Plugin did not ignore?). In retrospect, I had been noticing some issues in the plugin's function since removing and disabling the device. At some point, I will recreate the device and disable it once more to see if the problem occurs again.
Title: Re: Vera and an ISY994i
Post by: PurdueGuy on January 20, 2014, 12:08:44 pm
One confounding variable is that I deleted a disabled Insteon device prior to reinstating communication via the ISY Plugin. This is the only difference between the prior configuration (not working) and current configuration (working) The device was a plugin module that I had removed from the wall and disabled in the ISY (i.e., thereby still appearing in its device list but ignored by the ISY - possible the Plugin did not ignore?). In retrospect, I had been noticing some issues in the plugin's function since removing and disabling the device. At some point, I will recreate the device and disable it once more to see if the problem occurs again.
I thought I corrected that.   I had disabled devices and ran into the same thing.  There problem was the "ST" property had a space (" ") in it, not a value.  The plugin couldn't parse that.   I can check the details later.
Title: Re: Vera and an ISY994i
Post by: Ds514 on January 20, 2014, 12:38:35 pm
Ok, so I will not bother trying to replicate the process that caused this then. It sounds like this must be it.
Title: Re: Vera and an ISY994i
Post by: PurdueGuy on January 20, 2014, 09:15:39 pm
I just pushed a small change.  I had in fact added the check for Z-Wave locks, where I experienced the issue, but not everywhere.

I have disabled:
- Z-wave deadbolt
- Z-Wave relay
- Insteon dimmer
and the plugin handles it ok.
Title: Re: Vera and an ISY994i
Post by: Ds514 on January 21, 2014, 08:41:40 am
I tested this by recreating that device, disabling it, and removing it from the wall. No problems with the LUA Failed error. The plugin creates the disabled device in the Vera interface; trying to operate it yields no result or error (which I think is the plan).
Title: Re: Vera and an ISY994i
Post by: PurdueGuy on January 21, 2014, 10:51:54 am
trying to operate it yields no result or error (which I think is the plan).
That's correct. If it was deleted, I believe it would be removed from scenes, etc. Since it still exists in the ISY, it's best to will exist in Vera. There's no easy way to show that it is disabled though.
Title: Re: Vera and an ISY994i
Post by: Aaron on January 22, 2014, 12:47:03 am
I wasn't sure what the official startup way is, so I created a scene that runs every 5 minutes.
It checks the status of the plugin, and if not correct, it restarts it.
Code: [Select]
local runningStatus =   luup.variable_get("urn:garrettwp-com:serviceId:ISYController1", "DaemonRunning", 207)
local connectedStatus = luup.variable_get("urn:garrettwp-com:serviceId:ISYController1", "DaemonConnected", 207)

luup.log("ISYCheck: runningStatus   = " .. runningStatus)
luup.log("ISYCheck: connectedStatus = " .. connectedStatus)

if (runningStatus ~= "Running") then
  luup.log("ISYCheck: Daemon is NOT running - restarting")
  return true
end

if (connectedStatus ~= "Connected") then
  luup.log("ISYCheck: Daemon is NOT connected - restarting")
  return true
end

luup.log("ISYCheck: Daemon is connected & running - not restarting")
return false
Within the Advanced tab, I have the device "ISY" with the action "restartDaemon" as the only thing.  Replace "207" with your ISY device number.

I am messing with Vera quite a bit lately, so I rarely make it more than 48 hours between LUUP restarts.  Maybe you could add a daily daemon restart in the middle of the night?  It's not a solution, but just a bandaid until more investigation can be done.  Does the ISY see the correct state of the device, just Vera that doesn't?

One thing I have noticed...if the ISY drops off the network (power outage, etc), the daemon doesn't detect that, and still shows running/connected, so my restart scene doesn't work.  There might need to be a poll added, or something to detect if communication with ISY is happening.

The LUA script is running, but not restarting the daemon for me. I did change the device # in the script.

log...
08   01/21/14 22:43:21.566   JobHandler_LuaUPnP::HandleActionRequest argument SceneNum=111 <0x3238c680>
08   01/21/14 22:43:21.567   Scene::RunScene running 111 ISY Auto Reset <0x3238c680>
50   01/21/14 22:43:21.567   luup_log:0: ISYCheck: runningStatus   = Stopped <0x3238c680>
50   01/21/14 22:43:21.567   luup_log:0: ISYCheck: connectedStatus = Disconnected <0x3238c680>
50   01/21/14 22:43:21.568   luup_log:0: ISYCheck: Daemon is NOT running - restarting <0x3238c680>
02   01/21/14 22:43:24.101   ctrl_chr[33;1mLOG_CHECK_MEMORY_LEAK pMem start 0x1baf000 now 0x1ce8000 last 0x1baf000 leaked 1282048ctrl_chr[0m <0x2b34b680>

Manually Starting (using the button in the UI) works fine.
Title: Re: Vera and an ISY994i
Post by: PurdueGuy on January 22, 2014, 01:49:28 am
Did you add the action on the advanced tab of the scene to restart?
Choose the ISY device from the drop down, then choose "restartDaemon" from the new drop down that appears, save, and reload.
Title: Re: Vera and an ISY994i
Post by: Aaron on January 22, 2014, 10:06:08 am
Did you add the action on the advanced tab of the scene to restart?
Choose the ISY device from the drop down, then choose "restartDaemon" from the new drop down that appears, save, and reload.

I had not... thanks!
Title: Promlems with 2420 Motion sensors
Post by: jgs57 on January 26, 2014, 01:51:40 pm
Frist I would like to say thanks for posting the scripts. I installed it and every thing went as expected, imported 71 devices including 17 Insteon motion sensors. It copied all the names but about 10 all of which where the first generation Icon switch's. Now for the problem I am having all the switches work with no problems. Several of the motion sensors don?t report the right state in Vera but are ok in the ISY also I can have the Vera 3 web interface open along with the ISY interface watching the sensors state and the Vera will change to motion detected while there is no change in the ISY. This happens almost every time on one sensor after 5-10 minutes of no motion.
I am new to the Vera (about 1 week) been with the ISY for for 5 years so I am learning the Vera so any help would be appreciated.




The specs for what I am running are:
Vera 3     1.5.622
ISY           4.1.2 with a Zwave dongle install
Title: Re: Vera and an ISY994i
Post by: jgs57 on January 26, 2014, 06:31:29 pm
Update.
    After doing some testing I found that when the dusk/dawn section detects darkness (switch's on) it also turns on the motion sensor in the Vera 3   but not in the ISY.

Further testing shows that the dusk/dawn detects light (switch's off) also changes the motion sensor in the Vera 3
Title: Re: Vera and an ISY994i
Post by: PurdueGuy on January 28, 2014, 11:08:58 pm
I just updated the repository with support for the ESM/Normal on Z-Wave Thermostats.
Only commands are supported, but not status (meaning you can set Normal or Energy Savings, but you can't see what the current status is).

I do not have any Insteon thermostats to test with, I only have a Trane Z-Wave thermostat, nor do I even know if that have this kind of mode.  Currently, the ISY doesn't have the capability to report the Energy mode, so Vera can't display it.
Title: Re: Promlems with 2420 Motion sensors
Post by: PurdueGuy on January 28, 2014, 11:42:06 pm
Frist I would like to say thanks for posting the scripts. I installed it and every thing went as expected, imported 71 devices including 17 Insteon motion sensors. It copied all the names but about 10 all of which where the first generation Icon switch's. Now for the problem I am having all the switches work with no problems. Several of the motion sensors don?t report the right state in Vera but are ok in the ISY also I can have the Vera 3 web interface open along with the ISY interface watching the sensors state and the Vera will change to motion detected while there is no change in the ISY. This happens almost every time on one sensor after 5-10 minutes of no motion.
I am new to the Vera (about 1 week) been with the ISY for for 5 years so I am learning the Vera so any help would be appreciated.

The specs for what I am running are:
Vera 3     1.5.622
ISY           4.1.2 with a Zwave dongle install

Update.
    After doing some testing I found that when the dusk/dawn section detects darkness (switch's on) it also turns on the motion sensor in the Vera 3   but not in the ISY.

Further testing shows that the dusk/dawn detects light (switch's off) also changes the motion sensor in the Vera 3
I only have 1 Insteon motion detector, and I haven't seen this.  I did some quick testing, and saw the same thing caused by the dusk/dawn node.

I just added a quick fix for this.   It now ignores the dusk/dawn and low battery nodes.

My limited testing shows it working correctly.  This is just a bandaid, and might need to be reworked in the future if others desire the reporting in Vera (I don't have a need for it myself).
Title: Re: Vera and an ISY994i
Post by: PurdueGuy on February 01, 2014, 01:40:04 am
I checked in new code to set ISY variables.  There are two new services provided by the main ISY device, named:Each of these takes the two following items:
Title: Re: Vera and an ISY994i
Post by: Ds514 on February 01, 2014, 04:33:48 pm
That's great. This is just one step away from full sentience... or, two way communication.
Title: Re: Vera and an ISY994i
Post by: Aaron on February 15, 2014, 07:07:46 pm
very quiet around here...
Title: Re: Vera and an ISY994i
Post by: PurdueGuy on February 15, 2014, 07:57:03 pm
I don't know of any additional features that could be added easily.
So far, there is:
- individual device control (most Insteon and Z-Wave)
- scene control
- program control
- variable control
- polling

I know some have expressed desire for ISY programs to automatically appear as Vera scenes, but I don't know how that would be done (so that's why there is the capability to call programs from Vera).

I suppose all ISY variables could be replicated in Vera, but I would have to give that some thought.
Title: Re: Vera and an ISY994i
Post by: Aaron on February 15, 2014, 08:15:43 pm
I know some have expressed desire for ISY programs to automatically appear as Vera scenes, but I don't know how that would be done (so that's why there is the capability to call programs from Vera).

This would be nice. I have a few locations/rooms that use 2 or more dimmers. They are linked to Program in ISY... how can I create a single switch in Vera for this?

thanks!
Title: Re: Vera and an ISY994i
Post by: PurdueGuy on February 15, 2014, 08:21:23 pm
You have them linked as a program in ISY, or as a scene?

I expose ISY scenes as Vera scene, using the "runScene" command in the Advanced tab.

I suppose ISY scenes could show up as Binary light switches in Vera, so you could turn them on or off.  However, I would end up with dozens of binary switches (on the order of 60 or so).
Title: Re: Vera and an ISY994i
Post by: Aaron on February 15, 2014, 09:53:25 pm
I meant ISY Scene.

Why do you have 60 ISY Scenes? My understanding is ISY Scenes are simply to link Insteon devices together - thus can can replace very basic Programs but nothing with logic, correct?

My Scenes are used to link 3-way circuits. For instance, my Kitchen has 2 dimmers to control the same lights. I use a single ISY Scene for the lighting. I'd like to expose that Scene in Vera as a single Dimmer so I can control it properly from AutHomation and other Vera Automation.
Title: Re: Vera and an ISY994i
Post by: Ds514 on February 15, 2014, 10:00:26 pm
Insteon Scenes can also include motion sensor links, Keypadlinc button connections, and more.

In the case of Insteon scenes for three way switches, one switch effectively acts as a master and the other a slave. In the Vera, the slave has no function. Hiding this device in Authomation seems to solve the problem being described. For other Vera automation tasks, naming protocols can eliminate troubles.
Title: Re: Vera and an ISY994i
Post by: PurdueGuy on February 15, 2014, 10:02:34 pm
I meant ISY Scene.

Why do you have 60 ISY Scenes? My understanding is ISY Scenes are simply to link Insteon devices together - thus can can replace very basic Programs but nothing with logic, correct?

My Scenes are used to link 3-way circuits. For instance, my Kitchen has 2 dimmers to control the same lights. I use a single ISY Scene for the lighting. I'd like to expose that Scene in Vera as a single Dimmer so I can control it properly from AutHomation and other Vera Automation.
That's right. ISU scenes are a set configuration of decides. I have 40+ devices, and all kinds of scenes for every possible thing that could happen.   My biggest are "away" and "night" which have nearly every included.
I have scenes for ceiling fans and kpls. Each fan is 3-4 scenes.
Cooking scene. Eating. All lights. Alarm breaches. Nightstands. All sorts of things.

I also use one scene when possible to everything happens in an instants, instead of group by group.
Title: Re: Vera and an ISY994i
Post by: Aaron on February 16, 2014, 11:19:06 am
That's right. ISU scenes are a set configuration of decides. I have 40+ devices, and all kinds of scenes for every possible thing that could happen.   My biggest are "away" and "night" which have nearly every included.
I have scenes for ceiling fans and kpls. Each fan is 3-4 scenes.
Cooking scene. Eating. All lights. Alarm breaches. Nightstands. All sorts of things.

I also use one scene when possible to everything happens in an instants, instead of group by group.

Sounds like to much to keep track of ;-) 

I'm using PLEG + Vera Automation so all my lighting control has stayed in the Vera - makes it easier if everything is in one place and the Autohomation app is the best.

I'm mostly using ISY as a controller for Insteon lighting. It is not worth the $ just for that vs Vera +Altsteon. I've also found Vera with PLEG, Virtual Device, Multiswitch, Ping Sensor, Variable Container - provides much more capability with less work than ISY. I wish this was not the case but while the ISY may be a more solid/reliable system, it is very lacking in some core/basic automation archetypes that exist in most HA solutions (virtual devices, etc) - not to mention it being years behind with ZWave.

sad really, I had such high-hopes  :'(
Title: Re: Vera and an ISY994i
Post by: Btoback on February 21, 2014, 04:04:18 pm
First off thanks for what you have put together so far.  I'm 90% there. I'm able to see all the devices from my isy and use then(5 fanlinc  sand keypadlincs). I'm new to home automation and know just enough to get me in trouble.  I need a little help/advice so it want to set up virtual switches on my vera that are connected to my fanlinc and 6 button keypadlinc. 

What I want is to have the vitural switch be off if the fan is not on high, be on if the fan where on high plus this the virtual switch is turned on run a isy scene to set the fan to high and turn on the scene on the button on the keylinc.

I thought I could use a pleg with the condition to look at the loadlevelstatus to see if the fan was already on high but it is always 0.  I then thought about using variable on the isy but how would I add that as a condition to the pleg.

Any ideas?

Thanks.
Title: Re: Vera and an ISY994i
Post by: Ds514 on February 25, 2014, 10:59:33 am
I'm having some difficulty following the logic you describe. Maybe you can help.

What is the purpose of the Virtual Switch? Is it intended only to enable the activation of the scene that manages the KeypadLinc (KPL) buttons' light status?

Disregarding the virtual switch, my understanding is that what you want is the following:

1. A KPL button that, when pressed, turns the fan on high.
2. The KPL button to be lit when it has been pressed and the fan is on high.
3. The KPL button to turn off when pressed again, and the fan to return to ... (?)

The last bit is not clear. Do you want the fan off or on a lower speed when the KPL is deactivated?

My impression is that this would all be much better managed within the ISY. Either a scene or a program would easily handle the tasks that you are looking for and would eliminate the need to have to rely on (1) the Vera being ready, (2) the ISY plugin being ready, and (3) network communication between the two to allow all of this to happen. If you do then want a Vera virtual switch toggled (for some reason not described here), then use an ISY network resource to activate a Vera Scene to do so. Here is what such a network resource may look like if the scene ID you want is 15:

Code: [Select]
POST /data_request?id=lu_action&serviceId=urn:micasaverde-com:serviceId:HomeAutomationGateway1&action=RunScene&SceneNum=15 HTTP/1.1
Host: 192.168.0.230:3480
User-Agent: Mozilla/4.0
Connection: Close
Content-Type: application/x-www-form-urlencoded
Content-Length: 0

As Garrett mentioned in an earlier post, you are better off running ISY tasks on the ISY and Vera tasks on the Vera.
Title: Re: Vera and an ISY994i
Post by: Aaron on February 28, 2014, 01:28:57 pm
Guys, need some help...

Starting yesterday my communications are failing. Getting this error in the Vera status area (top of GUI)...

ISY Controller[190] : Startup Lua Failed

... I can connect to the ISY and control lights, not problem. I even rebooted (unplug/plug) the ISY

Also... Can someone update the first post with the latest code?

thx!
Title: Re: Vera and an ISY994i
Post by: garrettwp on February 28, 2014, 01:48:20 pm
Aaron,

Can you post any details from the logs?

- Garrett
Title: Re: Vera and an ISY994i
Post by: Aaron on February 28, 2014, 09:27:29 pm
Strange... it started working again. Maybe it was a fluke.
Title: Re: Vera and an ISY994i
Post by: Btoback on March 01, 2014, 11:08:54 am
Thanks DS514.

I used scenes on ISY and Pleg and Virtual switches on Vera.
Title: Re: Vera and an ISY994i
Post by: SirMeili on March 30, 2014, 10:57:39 pm
Hi all,

Some of you may have read my thread on what to do with my 3 bedrooms and the fans/lights. I was pretty sure I was just gonna do z-wave, but I think I could for the same money, just get an ISY, keypadlincs and fanlincs and be at around the same amount (I have a total of 7 fans in the house I would eventually do). My question is what exactly do I need to buy? I see a couple of different options on Amazon (my preferred retailer, but I could go somewhere else) for a pro version and a non pro version of the ISY994i. I don't know the real difference.

Besides the ISY994i, what else do I need? A network module? Will I still need a PLM?

Thanks for any help that anyone can provide :)
Title: Re: Vera and an ISY994i
Post by: PurdueGuy on March 30, 2014, 11:43:15 pm
If you want to get started, get the ISY 994i and serial PLM (2413S).  You can buy from Amazon or SmartHome, UDI, MobiLinc store, Orchestrated Home, etc.

You don't need the Pro version yet.   I have over 40 devices and don't need it yet.  If you get so many Insteon devices/scenes that you need Pro, it is a software upgrade later on.

You will need a SERIAL PLM to use with ISY, so a 2413S.

I don't think you need to the network module to run with the ISY plugin.  The plugin makes use of the SOAP and REST APIs, which I think are included out of the box (someone please correct me!)  If you do need it, that is a software upgrade you can do once you have your ISY in-house.

It looks like the ISY 994i (non-Pro) isn't carried by amazon right now.  It was a week or 2 ago.    At the time, I think it was $140.

The serial PLM (2413S) is pretty much $79.99 wherever you buy it.
Title: Re: Vera and an ISY994i
Post by: garrettwp on March 31, 2014, 12:05:52 am
The REST / API is part of the controller and the network plugin is not needed. All you need is the ISY controller and the serial plm and you should be set. Of course the insteon devices you would like to control.

- Garrett
Title: Re: Vera and an ISY994i
Post by: SirMeili on March 31, 2014, 12:16:15 am
Thanks Garett and Jacob,

I will do a cost analysis tomorrow. I now one thing I like about the insteon dimmers is you can set the on level, so this may be the start of a big migration to insteon for me. Like others though, I will likely keep the vers in charge.

Sent from my Nexus 7 using Tapatalk

Title: Re: Vera and an ISY994i
Post by: SirMeili on March 31, 2014, 09:33:25 pm
Just a heads up. I bit the bullet and got a ISY994i, a fanlinc and a keypadlinc to try out. My analysis showed that Insteon was going to be cheaper to automate my 7 fans, do it with less switches (fewer gangs used) and give me more functionality. All for about $600 less, and that includes the ISY and the plm.

I'm a bit worried about the reliability of the keypadlincs though. I've read some bad reviews on them.

Sent from my XT1053 using Tapatalk

Title: Re: Vera and an ISY994i
Post by: PurdueGuy on April 01, 2014, 01:25:17 am
I haven't had them installed all that long, but my KPLs have been working ok.
The only issue I have is the non-toggle-off doing the correct command, but the button light doesn't turn off.
Title: Re: Vera and an ISY994i
Post by: garrettwp on April 01, 2014, 06:30:38 am
I've had a few KPL's for about a year and half now and had no issues except for two of them locking up once. Just required pulling the tab to power them off and on. I added additional KPL's around the house for scene controllers in the last 6 months. Have about a dozen or so of them installed and have worked flawlessly. Much cheaper to use them as scene controllers than the z-wave options and has better functionality.

- Garrett
Title: Re: Vera and an ISY994i
Post by: Ds514 on April 01, 2014, 08:24:17 am
I haven't had them installed all that long, but my KPLs have been working ok.
The only issue I have is the non-toggle-off doing the correct command, but the button light doesn't turn off.

Jacob, have you tried the following sequence?

1. Turn the light on the KPL off from the ISY interface;
2. If the above is not sufficient, air-gap the KPL and then restore power;
3. If the above are not sufficient, right-click on the device in the ISY interface and click "Restore Device";
4. If the above are not sufficient, doing a factory reset on the device and then restoring the device from the ISY interface.

I think a warranty exchange would be offered to you if none of the above worked.
Title: Re: Vera and an ISY994i
Post by: PurdueGuy on April 01, 2014, 10:24:31 am
I haven't had them installed all that long, but my KPLs have been working ok.
The only issue I have is the non-toggle-off doing the correct command, but the button light doesn't turn off.

Jacob, have you tried the following sequence?

1. Turn the light on the KPL off from the ISY interface;
2. If the above is not sufficient, air-gap the KPL and then restore power;
3. If the above are not sufficient, right-click on the device in the ISY interface and click "Restore Device";
4. If the above are not sufficient, doing a factory reset on the device and then restoring the device from the ISY interface.

I think a warranty exchange would be offered to you if none of the above worked.
i have tried everything. It appears the new dual band kpls have an issue. Even the manuals were updated to try to remove "non-toggle-off" but it wasn't done completely. For now, I have ISY scene/programs to correct the problem. I need a day to call, but it isn't high enough on my list when I have free time.
Title: Re: Vera and an ISY994i
Post by: SirMeili on April 02, 2014, 05:00:20 pm
Thank you all again! I have the FanLinc and KeypadLinc and all is working well. The only issue is the lights in my office ceiling fan don't dim correctly (A/C based LEDs). This is likely not the room the FanLinc will stay in, it was just the one I used to test since it would only affect me. The ISY plugin is doing it's thing and I couldn't be happier.

Do I need to also run a scene to make sure that the daemon keeps running or was that issue solved?
Title: Re: Vera and an ISY994i
Post by: SirMeili on April 02, 2014, 08:40:20 pm
I have a question for those using the KeypadLincs. I'm not using the keypadLinc's dimmer (yet). However button 1 is  tied to that dimmer. Is there a way to disassociate it from it?

I have it sort of working as it is, but my only issue is though I have it set to not toggle (it's only an on button) and I have it added to a button grouping (with button B), if I press it, it toggles the back light.

I tried to do the grouping by selecting the B button in the scene and setting the on button's level to 0, but that seems to be the dimmer and not the button's led.

I know it's confusing, but I'm hoping somewhere here can help me figure this out.
Title: Re: Vera and an ISY994i
Post by: Ds514 on April 02, 2014, 08:51:32 pm
By button 1, I understand that you are talking about the double sized "On" button on a 6-button KPL or the "On/Off" button at the top left of the 8-button KPL. If so, I believe that these buttons are directly representative of the function of the load to which the device is connected; if the load is on (or more precisely in Insteon lingo, if the load is not off) button 1's light must be on as far as I can tell. Update: There are backlight settings for the buttons in the ISY; perhaps the button could be configured to 0 backlight when the load is not off, but my experience with this setting on the KPL was that it was confusing (it works very well on other switches and dimmers).

Having said that, there are potential solutions. There are colour kits available by which you could differentiate the colour of the buttons representing scenes vs those representing the load. You could also use the same protocol for colour kit application to apply electrical tape to the affected button. I feel that the latter would detract from the function of the device in my setup, but it may be suitable for others.

Title: Re: Vera and an ISY994i
Post by: SirMeili on April 02, 2014, 08:56:02 pm
Yes, I was referring to the "All On/Off" button. I realize it is tied to the load, I just didn't want the backlight to toggle on/off. I guess I will change my layout and set the "all on/off" as a true all on/off for the room. I'm not using the local load in the keypad, so I was just hoping there was a way to dissassociate it from that (like you can the 2 button Leviton Scene controller).
Title: Re: Vera and an ISY994i
Post by: Ds514 on April 02, 2014, 08:58:53 pm
Try playing with the backlight configuration options via the ISY (mentioned when I updated the response). However, in the case of the KPLs, I do not get the impression that the effect is as would be expected.
Title: Re: Vera and an ISY994i
Post by: PurdueGuy on April 03, 2014, 12:56:07 am
I am still unclear.....are you set up in 6 or 8 button mode?

Also, be careful when you use the term "backlight" as this can mean different things to different people.

The buttons actually have two global backlight level, that is the same for all buttons...one level for one, and 1 level for off.
They are independent of one another, but the same on level applies to all buttons on the KPL, and the same off level applies to all buttons on the KPL.

At night, I set my "off" backlight level to 0 in bedrooms...the all buttons that are "off" are completely dark.  I set the "on" backlight level to the lowest setting above off, so they are as soft as they can get.  When all my bedroom lights are off, there is just one button lit up, signaling my home alarm is on....and I put a red diffuser behind it, so it's even softer.
Title: Re: Vera and an ISY994i
Post by: SirMeili on April 03, 2014, 08:15:27 am
Sorry, I should have been more clear. I have the 8 key KPL with the internal Dimmer. Also when I mention the backlight, I am referring to the light behind the Keys on the KPL. The way I wanted to set it up was (labeled as they are on the KPL)

"All on/off" - Turn on Ceiling fan lights (double tap - fast on; press and hold dim up)
"B" - Turn off ceiling fan lights (double tap - fast off; press and hold dim down)
"C" - Fan off
"D" - Fan Low
"E" - Fan Med
"F" - Fan High
"G" - For a future scene, but not used yet
"H" - For a future scene, but not used yet

My issue with above was that even though I had buttons "All on/off" and "B" in a mutually exclusive group, if I pressed "All on/off" it would still cycle the back light (on/off/on/off), unlike when I group any 2 or more of the other buttons. I think this is because when you group any of the 7 other buttons, when you click on one, you can turn off the backlight of the other buttons in the gorup. When you do that with "All on/off", you don't get that option and it shows you the option to dim the internal dimmer instead (I hope that makes sense).

I've since changed it to:
"All on/off" - All on/off (fan and lights); This is also used in vera to turn on/off other lights in the room
"B" - Not currently used
"C" - Fan off
"D" - Fan Low
"E" - Fan Med
"F" - Fan High
"G" - For a future scene, but not used yet
"H" - For a future scene, but not used yet

I'm still working out scenes as well. For instance, when I push the "All on/off" button, it turns off all the other backlights. I want the "C" to be lit (because the fan is off). I'm sure I just have everything set up in a way that it won't work and a combination of scenes and programs can accomplish that part for me (I currently only use 1 scene for the fans, but I think if I move to 4, I can call the scene to turn off the fan when I click the "All on/off" button).

I am curious how others set up the bottons when they aren't using the intenal Dimmer/Switch in their KPL (how they have the buttons assigned and potentially how they accomplished it)
Title: Re: Vera and an ISY994i
Post by: PurdueGuy on April 03, 2014, 10:27:28 am
I have several KPLs with no load connected.

Can you set A as non-toggle-on, and B as non-toggle-off?  I think that will do what you want.

You might run into the issue where the non-toggle-off button stays on, but you can create an ISY scene with that button as a Responder, then create and ISY program that triggers when the button is pressed, waits a few seconds, then sets the scene to Off.
Title: Re: Vera and an ISY994i
Post by: SirMeili on April 03, 2014, 11:19:14 am
I have several KPLs with no load connected.

Can you set A as non-toggle-on, and B as non-toggle-off?  I think that will do what you want.

You might run into the issue where the non-toggle-off button stays on, but you can create an ISY scene with that button as a Responder, then create and ISY program that triggers when the button is pressed, waits a few seconds, then sets the scene to Off.

I actually did that but no matter what I do, the A button (All on/off) still toggles the button's back light (though the scene is not toggled). I'll test some more and see if I can figure it out.

Another quick question. i see that there is a way to set the back lights when a scene is turned "on". is there a way to set the behavior when the scene is turned "off"? For instance, when I click "all on/off" to turn everything off, i want to turn off the ceiling fan, but turn on the back light for C (The fan off button). Currently I am using a program to call the "fan off" scene to accomplish it.
Title: Re: Vera and an ISY994i
Post by: PurdueGuy on April 03, 2014, 11:44:17 am
My older 8-button dimmer KPL can definitely have the main button set as non-toggle-on.  It always sends ON, and the button doesn't turn off.   This might be an issue with the new ones.   I won't be able to check until tonight or tomorrow.

If you have a scene defined in ISY with a button as a controller, in ISY, go to that scene.   Expand it, and click on the button you has as a controller, which should be red (red is for controllers/responders, blue is for responders).

From there, you can set the levels to anything you want for that controller.    This allows you to define 1 scene with many devices, with multiple controllers.   Each controller can have independent levels for any given device, separate from the levels that ISY can set.

However, keep a few things in mind:
1) if you have a button set to non-toggle-off, no matter what you set the levels to, it will always turn things off.
2) if you have a scene defined where certain devices/buttons are off, and you send a "Fast On" (double-click) you will have those devices turn onto full brightness no matter what.
Title: Re: Vera and an ISY994i
Post by: SirMeili on April 06, 2014, 12:44:52 am
Thanks for the information :) I haven't had much time to mess with the buttons, but my current method of using the A (all On/Off) button as just a toggle is working for now. I may revisit this later. I really wish there was a way to decouple that button from the load, but I just don't think it's possible.

@garretwp. You said you don't use the internal dimmer/switch, correct? Do you mind if I ask how you have your keypads set up (What buttons do what)? I'm just looking for some ideas.

Also, I noticed that the plugin said the Daemon was running, but it was not connected today. I added the scene that @PerdueGuy suggested earlier in the thread and we will see how that goes (I'm sure it will work just fine). My only suggestion is would it be possible to have the status change to "connecting" after you click the connect button? I guess the connecting isn't a super fast process so I click it and it can take up to a minute to connect at which point I often wonder if it's actually trying to connect. I don't know how much limitation the UI has on this, and now that I have the scene set up to reconnect/restart the daemon, it may not be a huge issue.
Title: Re: Vera and an ISY994i
Post by: garrettwp on April 06, 2014, 12:52:43 am
Thanks for the information :) I haven't had much time to mess with the buttons, but my current method of using the A (all On/Off) button as just a toggle is working for now. I may revisit this later. I really wish there was a way to decouple that button from the load, but I just don't think it's possible.

@garretwp. You said you don't use the internal dimmer/switch, correct? Do you mind if I ask how you have your keypads set up (What buttons do what)? I'm just looking for some ideas.

Also, I noticed that the plugin said the Daemon was running, but it was not connected today. I added the scene that @PerdueGuy suggested earlier in the thread and we will see how that goes (I'm sure it will work just fine). My only suggestion is would it be possible to have the status change to "connecting" after you click the connect button? I guess the connecting isn't a super fast process so I click it and it can take up to a minute to connect at which point I often wonder if it's actually trying to connect. I don't know how much limitation the UI has on this, and now that I have the scene set up to reconnect/restart the daemon, it may not be a huge issue.

When clicking the connect button, it should be pretty instant. The delay you see is only because of the 1 minute poll for the Vera UI to know if Vera is connected to the ISY or not. I chose a minute as I did not want to flood Vera with requests. There is code implemented in the plugin to allow for automatic re-connection, but it has not been tested nor has it been enabled. I believe there still is some minor work to be done. E.g. to have an option to enable or disable it.

As for the KPL buttons. The ones that I use for scene controllers, I do not use the load button for now. The other buttons fire off actions to turn on lights that are controlled by vera via z-wave, etc. I also have other buttons that fire off actions to power up and setup my Movie Theatre gear and to power it off when pressed again. Other buttons control the alarm or locks, etc. The possibilities are endless. I too wish that you could disable the load if you are not using it.

- Garrett
Title: Re: Vera and an ISY994i
Post by: SirMeili on April 13, 2014, 05:18:53 pm
I just wanted to give an update after a week or so of using the ISY. Though it seemed the first few days that it wasn't staying connected, it is now doing so. I do have a scene to check if the plugin is running and connected, and restarting or connecting when necessary. I'm not sure if this helped it or not, but it has been stable for this week. I think only a few times did pushing a button on the keypadLinc not cause vera to run the scene associated with it or it was delayed a few seconds.

I am still not 100% happy with the top left button on the keypadLinc being tied to the dimmer. I am currently using the KPLs dimmer instead of the fanLinc's dimmer, but I'd like to do things like use it as a global "on/off" for each room, but can't because it's tied to the dimmer (which I am now using). I haven't had much time to play with the ISY, so maybe this will all still be possible, but it's not all that straight forward. I may make that button just control the fan lights and move the global all on/off to another button just to see how it works (would be nice to have this functionality in the bedrooms).

Anyways, I am 100% satisfied with this approach and though I am a bit upset that after buying this that GE might release a fan controller, I'm not gonna let it ruin my day. It would only ever be as good as the Insteon Fanlinc if its the same form factor, or has a dimmer/fan control in the same switch (unlike the Leviton on).

and as always... Thank you @garretwp for another awesome plugin that makes the vera that much more usable!
Title: Re: Vera and an ISY994i
Post by: SirMeili on April 23, 2014, 04:03:08 pm
@garrettwp,

I am trying to get the fan control added to ImperiHome (I use its dashboard for my tablet). I checked the UI and see that you are sending dim levels 0 for Off, 25 for Low, 75 for Med and 100 for High. They wanted to know if those are the only acceptable values or if others can be entered and how they will affect the fan's level.

Thanks!
Title: Re: Vera and an ISY994i
Post by: PurdueGuy on April 23, 2014, 04:34:00 pm
@garrettwp,

I am trying to get the fan control added to ImperiHome (I use its dashboard for my tablet). I checked the UI and see that you are sending dim levels 0 for Off, 25 for Low, 75 for Med and 100 for High. They wanted to know if those are the only acceptable values or if others can be entered and how they will affect the fan's level.

Thanks!
The ranges, from 0-100, are:
Off = 0
Low = 1-49
Med = 50-99
High = 100

You can set them to any number you like, but when it goes to ISY and comes back to Vera, it is normalized, and will always be:
Off = 0
Low = 25
Med = 75
High = 100

Also, if you are looking at log files, you should know that Vera operates on the scale 0-100, while ISY operated on the scale 0-255.  The plugin handles the conversion for you.

Example: You set it to 33 (on a 0-100 scale), which is converted to 84 (on a 0-255 scale).  That value (84) is shipped off to ISY, which set the fan to Low.  ISY then notifies Vera of the change in status that the fan is now at 63 (on a 0-255 scale), which the plugin translates to 25 (on a 0-100 scale), and shows up as "Low".
Title: Re: Vera and an ISY994i
Post by: SirMeili on April 25, 2014, 02:31:38 pm
Just a note, I finally got my KPL to behave as I wanted to (A is all on, B is all off). I had some issues, so I just deleted all my scenes (I only have the 1 KPL and Fanlinc), programs and deleted the device. I then reset the KPL and relinked it and started really simple. Control just the light. After that worked, I added in the fan. It's still no "optimal" to me, because I think it would be nice to control the Dimmer separately from the A button's LED, but it is what it is. I will slowly adapt.

I still have some other issues I'm working though (deciding on 4 buttons for fans, or just 2 so I can free up some buttons for scenes), but I'll figure it out as time goes on.
Title: Re: Vera and an ISY994i
Post by: swazi on June 20, 2014, 03:46:58 pm
I need some help with this plugin:
I installed the 10 files and created the device. Next I reloaded and I can now see the "Isy Controller" device. But in the notification it is giving me "Startup Lua Failed.
When I click on initialize (or any other button) I get a message "Device not ready"
Any advice?
Title: Re: Vera and an ISY994i
Post by: SirMeili on June 20, 2014, 04:16:39 pm
Did you set the 4 variables in the Advanced tab for the ISY controller device? Screenshot attached.
Title: Re: Vera and an ISY994i
Post by: swazi on June 20, 2014, 07:24:29 pm
I didn't even get that far. But it's working now....sometimes it helps to just walk away and come back later. Maybe I didn't give Vera enough time
Title: Re: Vera and an ISY994i
Post by: swazi on June 25, 2014, 10:54:31 am
I use the pleg plugin to run scenes from the ISY that will turn on the keypad linc buttons if certain zwave lights are on in the house that the keypad linc control. If you are interested in more information, I am wiling to provide it as well as the code for the plugin.

Garrett, could you provide an example of a PLEG that runs a scene from the ISY that interacts with the KPL?

When I get some time, I'll post a little write up. What you would do is create inputs for the devices you want to act on and their respective conditions in pleg. For their actions you would go to the advanced tab of the action creator, select the ISY Controller device -> select runScene and the id field would than be the scene id number found in the ISY controller. The newTargetValue would be either 1 for on or 0 for off.

- Garrett

So if I understand correctly ;
If I want to control a fanlinc with a kpl, I need to setup the scenes in isy. Then I would need to create 6 scenes in vera (low on, low off, med on, med off, high on, high off).
I created the scenes in isy and it works fine along with the kpl buttons lighting up. Then I created one scene in vera for low on and it too works for turning the kpl button on.
Bottom line it all works, I just want to confirm my understanding is correct that I need 6 scenes in vera.

Sent from my Nexus 4 using Tapatalk

Title: Re: Vera and an ISY994i
Post by: PurdueGuy on June 25, 2014, 11:00:52 am
So if I understand correctly ;
If I want to control a fanlinc with a kpl, I need to setup the scenes in isy. Then I would need to create 6 scenes in vera (low on, low off, med on, med off, high on, high off).
I created the scenes in isy and it works fine along with the kpl buttons lighting up. Then I created one scene in vera for low on and it too works for turning the kpl button on.
Bottom line it all works, I just want to confirm my understanding is correct that I need 6 scenes in vera.

Sent from my Nexus 4 using Tapatalk
Depends on how you want to do it.

You can create 4 scenes (off, low, medium, high) and call those, setting them to "1" (on) when you want.   If you want the "Fan Off" button to be lit, you would still set the scene "on" even though you are turning the fan off.

You also have the option of using ISY programs to control the KPL buttons.  Then you just adjust the fan directly in Vera, and ISY updates the KPL buttons.  I have ISY programs for each speed that is essentially "if Fan is Medium and KPL-Medium is not on, then set FanMedium Scene on."  This means ISY checks to make sure things are in sync, and updates the KPL if not.
Title: Re: Vera and an ISY994i
Post by: swazi on June 25, 2014, 12:03:01 pm
So if I understand correctly ;
If I want to control a fanlinc with a kpl, I need to setup the scenes in isy. Then I would need to create 6 scenes in vera (low on, low off, med on, med off, high on, high off).
I created the scenes in isy and it works fine along with the kpl buttons lighting up. Then I created one scene in vera for low on and it too works for turning the kpl button on.
Bottom line it all works, I just want to confirm my understanding is correct that I need 6 scenes in vera.

Sent from my Nexus 4 using Tapatalk
Depends on how you want to do it.

You can create 4 scenes (off, low, medium, high) and call those, setting them to "1" (on) when you want.   If you want the "Fan Off" button to be lit, you would still set the scene "on" even though you are turning the fan off.

You also have the option of using ISY programs to control the KPL buttons.  Then you just adjust the fan directly in Vera, and ISY updates the KPL buttons.  I have ISY programs for each speed that is essentially "if Fan is Medium and KPL-Medium is not on, then set FanMedium Scene on."  This means ISY checks to make sure things are in sync, and updates the KPL if not.

I like the second option much better than trying to get the kpl in sync with the fan in vera. I'll play around with it to see if I can figure it out (I have no prior isy experience)

Sent from my Nexus 4 using Tapatalk

Title: Re: Vera and an ISY994i
Post by: garrettwp on June 25, 2014, 12:18:38 pm
I do all insteon tasks on the isy. I only use vera for control of the devices and status. Unless it involves devices on vera.

- Garrett

Title: Re: Vera and an ISY994i
Post by: swazi on June 25, 2014, 12:32:33 pm
I do all insteon tasks on the isy. I only use vera for control of the devices and status. Unless it involves devices on vera.

- Garrett

I agree with this approach, thus my question.
So to point back to the post I quoted earlier -  what would be a typical case where that method of creating a scene in vera would be applicable?

Sent from my Nexus 4 using Tapatalk

Title: Re: Vera and an ISY994i
Post by: Aaron on July 24, 2014, 12:34:11 am
Can someone post the latest code for those of us who do not have GIT access?

Maybe update the first post with the code and the instructions :)

I just moved homes and had the ISY off for over a month. Today I started getting things together and now getting a LUA Startup Failed

Log...

Code: [Select]
50   07/23/14 22:59:20.548   luup_log:190: ISYController: Initializing plugin... __LEAK__ this:692224 start:2129920 to 0x17a5000 <0x2b855680>
50   07/23/14 22:59:20.549   luup_log:190: ISYController: debug: Getting device configuration. <0x2b855680>
50   07/23/14 22:59:20.615   luup_log:190: ISYController: debug: Creating Dimmer for: node 17 3A 2C 1 __LEAK__ this:655360 start:2785280 to 0x1845000 <0x2b855680>
50   07/23/14 22:59:20.616   luup_log:190: ISYController: debug: Creating Dimmer for: node 17 3A 4 1 <0x2b855680>
50   07/23/14 22:59:20.616   luup_log:190: ISYController: debug: Creating Dimmer for: node 17 35 35 1 <0x2b855680>
01   07/23/14 22:59:20.617   ctrl_chr[31;1mLuaInterface::CallFunction_Startup-1 device 190 function initialize failed [string "--[[..."]:1076: attempt to compare number with nilctrl_chr[0m __LEAK__ this:98304 start:2883584 to 0x185d000 <0x2b855680>
01   07/23/14 22:59:20.627   ctrl_chr[31;1mLuImplementation::StartLua running startup code for 190 I_ISYController1.xml failedctrl_chr[0m <0x2b855680>

thanks for the help!
Title: Re: Vera and an ISY994i
Post by: PurdueGuy on July 24, 2014, 01:48:36 pm
Can someone post the latest code for those of us who do not have GIT access?

Maybe update the first post with the code and the instructions :)

I just moved homes and had the ISY off for over a month. Today I started getting things together and now getting a LUA Startup Failed

Log...

Code: [Select]
50   07/23/14 22:59:20.548   luup_log:190: ISYController: Initializing plugin... __LEAK__ this:692224 start:2129920 to 0x17a5000 <0x2b855680>
50   07/23/14 22:59:20.549   luup_log:190: ISYController: debug: Getting device configuration. <0x2b855680>
50   07/23/14 22:59:20.615   luup_log:190: ISYController: debug: Creating Dimmer for: node 17 3A 2C 1 __LEAK__ this:655360 start:2785280 to 0x1845000 <0x2b855680>
50   07/23/14 22:59:20.616   luup_log:190: ISYController: debug: Creating Dimmer for: node 17 3A 4 1 <0x2b855680>
50   07/23/14 22:59:20.616   luup_log:190: ISYController: debug: Creating Dimmer for: node 17 35 35 1 <0x2b855680>
01   07/23/14 22:59:20.617   ctrl_chr[31;1mLuaInterface::CallFunction_Startup-1 device 190 function initialize failed [string "--[[..."]:1076: attempt to compare number with nilctrl_chr[0m __LEAK__ this:98304 start:2883584 to 0x185d000 <0x2b855680>
01   07/23/14 22:59:20.627   ctrl_chr[31;1mLuImplementation::StartLua running startup code for 190 I_ISYController1.xml failedctrl_chr[0m <0x2b855680>

thanks for the help!
I just posted the current code to the first post.  Unfortunately, I won't have a chance to look at much for a couple days.
Any chance you have a device disabled in ISY?  I remember the plugin not handling disabled devices correctly.  I had added some code to fix that, but there may be other cases I didn't cover.
Title: Re: Vera and an ISY994i
Post by: Aaron on July 24, 2014, 05:41:58 pm
I just posted the current code to the first post.  Unfortunately, I won't have a chance to look at much for a couple days.
Any chance you have a device disabled in ISY?  I remember the plugin not handling disabled devices correctly.  I had added some code to fix that, but there may be other cases I didn't cover.

the new code fixed the issue... thank you! btw, I suspect I was hitting some bug since I had already reinstalled the last build - twice :)
Title: Re: Vera and an ISY994i
Post by: SirMeili on July 28, 2014, 12:02:46 pm
So, I was using the plugin for handling triggering of scenes (using PLEG). I had issues periodically where the plugin would not have a connection to the ISY and would not get the "scene was activated" from the ISY. This completely broke the WAF of the system. I finally broke down and purchased the Network module and I am not using the a combination of PLEG, a MultiSwitch, and the network module to update the Vera when a button is pressed and I want to handle an action based off of it. I am not currently doing it for all changes, nor do I plan to. The plugin does an ok job of updating devices when it reconnects, you just miss any scene button presses.

I only wish, and I'm not sure why the vera doesn't do this for all scene controllers anyways, is if the scene controller itself showed buttons that represented the state of the respective button on the device itself. I would then be able to eliminate the multiswitch from the equation.
Title: Re: Vera and an ISY994i
Post by: SirMeili on August 29, 2014, 08:45:27 pm
So, I was using the plugin for handling triggering of scenes (using PLEG). I had issues periodically where the plugin would not have a connection to the ISY and would not get the "scene was activated" from the ISY. This completely broke the WAF of the system. I finally broke down and purchased the Network module and I am not using the a combination of PLEG, a MultiSwitch, and the network module to update the Vera when a button is pressed and I want to handle an action based off of it. I am not currently doing it for all changes, nor do I plan to. The plugin does an ok job of updating devices when it reconnects, you just miss any scene button presses.

I only wish, and I'm not sure why the vera doesn't do this for all scene controllers anyways, is if the scene controller itself showed buttons that represented the state of the respective button on the device itself. I would then be able to eliminate the multiswitch from the equation.

I think the above issues were coming from my scene to restart the daemon if it was not running. I had it basically restarting the daemon every 5 minutes.  I fixed it and I'm hopeful this will resolve it. Using the network add-on for the ISY caused too many issues as things started to loop (for doing advanced stuff with PLEG and trying to keep everything in sync)

@garrettwp, I have a feature request. I noticed that when I use "fast on" on the scene controllers, the vera does not get the notification that the scene was turned on. I was wondering if we could use this to our advantage. Is there a way for you to capture a "fast on" and "fast off" event? If so, could it be different than "a scene was activated/deactivated"

If not, is there a way that a fast on and fast off even could at the very minimum trigger "a scene was activated/deactivated?"

Thanks!
Title: Re: Vera and an ISY994i
Post by: SirMeili on September 03, 2014, 06:50:15 pm
@garrettwp, I have a feature request. I noticed that when I use "fast on" on the scene controllers, the vera does not get the notification that the scene was turned on. I was wondering if we could use this to our advantage. Is there a way for you to capture a "fast on" and "fast off" event? If so, could it be different than "a scene was activated/deactivated"

If not, is there a way that a fast on and fast off even could at the very minimum trigger "a scene was activated/deactivated?"

Thanks!

I've done a little research by watching the Vera logs and it seems that the easiest way to implement the change would be to also look for the DON and DOF commands (DON = fast on; DOF = fast off). I may try and delve into the code to see if I can do anything with this or not. it would make it a non-standard scene controller, but these aren't really used in any apps (that I know of) since there are no buttons in the UI.

Another thing to consider is if someone presses the KPL too long it may register as  dim up or down (I don't knwo the commands for these, but I think there are actually 4: DIM, BRT, fade up and fade down (don't know the commands for those last 2) ). Not really expecting these to actually dim devices, but from an off state if you press too long, the button will actually be on, but the Vera will still consider it off.

Title: Re: Vera and an ISY994i
Post by: PurdueGuy on September 03, 2014, 07:29:40 pm
The plugin already watches for DON/DOF.  Those are regular On/Off commands.

Without thinking everything through too much, it might be easiest to extend the KPL in Vera to have 16 possible scenes.
1-8 respond to DON/DOF as they do now (regular on/off)
9-16 respond to DFON/DFOF (fast-on/fast-off - enhancement).

I don't think that code change would be too difficult.

As for the DIM/BRIGHTEN, I think you are right.  Vera would know the devices are now on, since ISY estimates what the device level would be, and notifies Vera, but those are explicitly not a DON/DOF/DFON/DFOF, so logic based on that would not trigger.
Title: Re: Vera and an ISY994i
Post by: PurdueGuy on September 04, 2014, 02:35:26 am
Talking to myself here.   I added support for DFOF and DFON.

As I mentioned before, add 8 to the scene number.
So:
 DFON/DFOF for button 1 becomes scene 9 is activated/deactivated
 DFON/DFOF for button 2 becomes scene 10 is activated/deactivated.
 ...
 DFON/DFOF for button 8 becomes scene 16 is activated/deactivated.

Even 4-scene RemoteLincs still add 8, so you would use scene 9, 10, 11, or 12.

I updated the first post.  The only files that changed are:
./Daemon/L_ISYEventDaemon.lua
./Main/L_ISYController1.lua

Since this updates the daemon, I had to restart the daemon and reconnect.   Then everything worked.
Title: Re: Vera and an ISY994i
Post by: SirMeili on September 05, 2014, 11:41:52 am
Talking to myself here.   I added support for DFOF and DFON.

As I mentioned before, add 8 to the scene number.
So:
 DFON/DFOF for button 1 becomes scene 9 is activated/deactivated
 DFON/DFOF for button 2 becomes scene 10 is activated/deactivated.
 ...
 DFON/DFOF for button 8 becomes scene 16 is activated/deactivated.

Even 4-scene RemoteLincs still add 8, so you would use scene 9, 10, 11, or 12.

I updated the first post.  The only files that changed are:
./Daemon/L_ISYEventDaemon.lua
./Main/L_ISYController1.lua

Since this updates the daemon, I had to restart the daemon and reconnect.   Then everything worked.

That is awesome! Thanks @PurdueGuy!

Sorry I had the commands wrong, it's kinda hard to read the Vera logs while you're doing multiple commands and seeing what pops up....LOL (especially from across the room!!)
Title: Re: Vera and an ISY994i
Post by: SirMeili on September 05, 2014, 11:51:37 am
I'd also like to report that @PurdueGuy's changes are working here. I'm not sure how I'll use the extra 8 scenes, but I'm sure I'll find a use for them :)
Title: Re: Vera and an ISY994i
Post by: PurdueGuy on September 05, 2014, 01:03:43 pm
Am I a Boilermaker or a chicken?   ;D
(Purdue vs Perdue)
Title: Re: Vera and an ISY994i
Post by: SirMeili on September 05, 2014, 04:31:09 pm
Am I a Boilermaker or a chicken?   ;D
(Purdue vs Perdue)

Oops...my bad :) I'll fix it :)
Title: Re: Vera and an ISY994i
Post by: kandlg on September 08, 2014, 08:08:13 pm
Great work on the plug-in PurdueGuy.  I've loaded it and have it running on my Veralite UI5.  Control works well as does status updates.  It seems that some of the devices aren't loading - specifically the additional buttons on the KPLs.  Right now I just see two devices: one for the main load which is either a slider or a light bulb and the other is a picture of a virtual switch with only the title filled in.  I would expect 5 or 8 per KPL depending on the button configuration (6 or 8 mode).  Only one button for each miniremote has been pulled in as well.  It looks like the virtual switch with nothing other than a title.  Any suggestions?  All of my KPLs are 2487D or S and purchased within the last 18 months.  My micro on/off module switches aren't showing up, but I don't see in this post that they are supported.  ISY version is 4.2.5.  Any help would be appreciated.  Thanks
Title: Re: Vera and an ISY994i
Post by: SirMeili on September 08, 2014, 08:23:50 pm
Great work on the plug-in PurdueGuy.  I've loaded it and have it running on my Veralite UI5.  Control works well as does status updates.  It seems that some of the devices aren't loading - specifically the additional buttons on the KPLs.  Right now I just see two devices: one for the main load which is either a slider or a light bulb and the other is a picture of a virtual switch with only the title filled in.  I would expect 5 or 8 per KPL depending on the button configuration (6 or 8 mode).  Only one button for each miniremote has been pulled in as well.  It looks like the virtual switch with nothing other than a title.  Any suggestions?  All of my KPLs are 2487D or S and purchased within the last 18 months.  My micro on/off module switches aren't showing up, but I don't see in this post that they are supported.  ISY version is 4.2.5.  Any help would be appreciated.  Thanks

In vera, Scene controllers do not have buttons for the controllers in the UI. Basically you are not meant to be able to "press" one of the scene buttons from the UI because you could just run the scene instead. of course when it comes to the Insteon stuff you have the lights that go on and off. I use some of the advanced functions in the plugin to call back to the ISY to turn on/off scenes there that control the lights on the KPLs.

I've often thought that having buttons for the different Scene controller buttons would be nice (especially for those that have on/off indicators like the Leviton ones), but I understand why they don't.

BTW, the reason you have the extra 1 switch (or dimmer depending on your KPL model) is because the ISY tries to treat is at a separate device that you can control even though it is tied to one of the buttons on the KPL.
Title: Re: Vera and an ISY994i
Post by: kandlg on September 08, 2014, 08:33:10 pm
Thanks SirMeili.  I was hoping to be able to pull the status of the buttons to help keep track of scene status on the ISY.  Most of the scenes I have are tied to a KPL button and that would give me a quick indicator of scene status.
Title: Re: Vera and an ISY994i
Post by: SirMeili on September 08, 2014, 09:14:22 pm
Thanks SirMeili.  I was hoping to be able to pull the status of the buttons to help keep track of scene status on the ISY.  Most of the scenes I have are tied to a KPL button and that would give me a quick indicator of scene status.

I've often considered using pleg and a multi switch to do this. You just have to watch for "a scene has been activated/deactivated" and have pleg adjust the ms. You could also, I suppose, just do it with 16 scenes (Vera scenes).

Sent from my Nexus 7 using Tapatalk

Title: Re: Vera and an ISY994i
Post by: PurdueGuy on September 08, 2014, 10:26:59 pm
My micro on/off module switches aren't showing up, but I don't see in this post that they are supported.  ISY version is 4.2.5.  Any help would be appreciated.  Thanks
I don't have any micro modules, so I can't test/verify.   It is possible that those types of devices haven't been added.

To add them, I would need more info.   Go to http://<ISYIP>/rest/nodes
Replace <ISYIP> with the appropriate IP address.

Copy/paste the data for the nodes that don't show up.   For example, a dimmer switch looks like:
Code: [Select]
<node flag="128">
  <address>AA BB CC 1</address>
  <name>Entry</name>
  <parent type="3">25645</parent>
  <type>1.32.65.0</type>
  <enabled>true</enabled>
  <deviceClass>0</deviceClass>
  <wattage>0</wattage>
  <dcPeriod>0</dcPeriod>
  <pnode>AA BB CC 1</pnode>
  <ELK_ID>A01</ELK_ID>
  <property id="ST" value="0" formatted="Off" uom="%/on/off"/>
</node>

If you have micro dimmers and micro relays, grab both.
Title: Re: Vera and an ISY994i
Post by: garrettwp on September 08, 2014, 10:41:17 pm
Great work on the plug-in PurdueGuy.

You might want to also thank the main plug-in developer for the plug-in.  ;-)

PurdueGuy has been a big help adding additional features and providing help to others. A big thanks for collaboration and support.


- Garrett

Title: Re: Vera and an ISY994i
Post by: kandlg on September 09, 2014, 05:36:12 am
Great work on the plug-in PurdueGuy.

You might want to also thank the main plug-in developer for the plug-in.  ;-)

PurdueGuy has been a big help adding additional features and providing help to others. A big thanks for collaboration and support.


- Garrett

Sorry about that garrettwp.  Thank you for your work and all others who have been contributing.  I've been looking for a way to bridge z-wave and insteon and keep the vera in the loop for some of its unique features and this is a great way to do it.  In my "spare time" I hope to figure out how to make some of my own.
Title: Re: Vera and an ISY994i
Post by: kandlg on September 09, 2014, 05:44:51 am
My micro on/off module switches aren't showing up, but I don't see in this post that they are supported.  ISY version is 4.2.5.  Any help would be appreciated.  Thanks
I don't have any micro modules, so I can't test/verify.   It is possible that those types of devices haven't been added.

To add them, I would need more info.   Go to http://<ISYIP>/rest/nodes
Replace <ISYIP> with the appropriate IP address.

If you have micro dimmers and micro relays, grab both.

I only have micro relays.  Here are the three that did not show up.  I'm still checking my lists to see if anything else is missing.  I also have leak sensors that did not come through, but they do not appear in the list - could that be because I moved them to a folder?  My IRLincs(2 transmitters and 1 receiver) did not come through to vera, but I don't really want them there anyway.

Code: [Select]
<node flag="128">
<address>AA BB CC 1</address>
<name>Carport Front Lights</name>
<type>2.47.67.0</type>
<enabled>true</enabled>
<deviceClass>0</deviceClass>
<wattage>0</wattage>
<dcPeriod>0</dcPeriod>
<pnode>AA BB CC 1</pnode>
<ELK_ID>E06</ELK_ID>
<property id="ST" value="0" formatted="Off" uom="on/off"/>
</node>
<node flag="128">
<address>AA BB CC 1</address>
<name>Kitchen Lights Micro</name>
<type>2.47.67.0</type>
<enabled>true</enabled>
<deviceClass>0</deviceClass>
<wattage>0</wattage>
<dcPeriod>0</dcPeriod>
<pnode>AA BB CC 1</pnode>
<ELK_ID>H16</ELK_ID>
<property id="ST" value="0" formatted="Off" uom="on/off"/>
</node>
<node flag="128">
<address>AA BB CC 1</address>
<name>Carport Light Inline</name>
<type>2.47.67.0</type>
<enabled>true</enabled>
<deviceClass>0</deviceClass>
<wattage>0</wattage>
<dcPeriod>0</dcPeriod>
<pnode>AA BB CC 1</pnode>
<ELK_ID>I01</ELK_ID>
<property id="ST" value="0" formatted="Off" uom="on/off"/>
</node>
 
Title: Re: Vera and an ISY994i
Post by: gduprey on September 09, 2014, 11:40:48 am
Howdy,

Just downloaded the .zip from this thread (most recent one) and about to install.   I'm assuming I need to update all the .xml/.json files from all three directories, correct?  Is there any particular reason for them being split up into different folders (i.e. optional components)?

Also, do I need to update the CatSubcat.txt file in the Main folder?

Thanks!

Gerry
Title: Re: Vera and an ISY994i
Post by: kandlg on September 09, 2014, 01:34:38 pm
I've often considered using pleg and a multi switch to do this. You just have to watch for "a scene has been activated/deactivated" and have pleg adjust the ms. You could also, I suppose, just do it with 16 scenes (Vera scenes).

Thanks again - I appreciate the help.  I found how to call a scene in the ISY device in vera, but I'm not sure how to watch for a ISY scene in vera.  The ISY device in vera isn't an option for triggers.  Do the ISY scenes show up in the Vera "scene controller" automation triggers?  What is the scene number that appears?  Or am I looking in the wrong place?
Title: Re: Vera and an ISY994i
Post by: kandlg on September 09, 2014, 01:39:50 pm
Just downloaded the .zip from this thread (most recent one) and about to install.   I'm assuming I need to update all the .xml/.json files from all three directories, correct?  Is there any particular reason for them being split up into different folders (i.e. optional components)?

Also, do I need to update the CatSubcat.txt file in the Main folder?
Can't answer the whys, but I uploaded all the files including the CatSubcat.txt and it worked.  You also have to create a device.  See reply 8 on page 1.
Title: Re: Vera and an ISY994i
Post by: PurdueGuy on September 09, 2014, 03:09:28 pm
Do the ISY scenes show up in the Vera "scene controller" automation triggers?  What is the scene number that appears?  Or am I looking in the wrong place?
Insteon scenes themselves won't show up in Vera.   You will see in Vera a "scene is activated" or a "scene is deactivated" when you press KPL buttons.   For that, you would chose the KPL device in the dropdown, then fill in the blanks for which button you are interested in.
Title: Re: Vera and an ISY994i
Post by: PurdueGuy on September 09, 2014, 03:11:10 pm
I only have micro relays.  Here are the three that did not show up.  I'm still checking my lists to see if anything else is missing.  I also have leak sensors that did not come through, but they do not appear in the list - could that be because I moved them to a folder?  My IRLincs(2 transmitters and 1 receiver) did not come through to vera, but I don't really want them there anyway.

I'll see if I have time tonight to add them.  I'll probably post the updated files here for testing before committing them to the repository.
Title: Re: Vera and an ISY994i
Post by: gduprey on September 09, 2014, 07:11:08 pm
Just installed this today after reading over this thread a few times and all is working well!  Thanks so much!

Weighing in on scenes, I generally understand why ISY scenes are not exported/shown like devices, but I have run into a case where it could be useful.

Specifically, 3 and 4 way Insteon lights.  When managed by ISY, you are supposed to turn them on and off in programs only by manipulating the scene that links all the switches together.  Specifically, you cannot (or aren't supposed to) directly send commands to a 3-way switch because it will not keep the other switches in sync (dim level lights, status, load control, etc).

With that, when considering something like authomation, you really want the users to see a "scene" to turn on/off/dim/bright and not the underlying 3-way switches.

I'm still very new to ISY and the ISY/Vera Plugin, so there may actually be a way of handling 3/4/n-way switches I haven't seen quite yet.

Gerry
Title: Re: Vera and an ISY994i
Post by: PurdueGuy on September 09, 2014, 07:28:13 pm
Your handling is correct.   Detailed steps are here: http://forum.micasaverde.com/index.php/topic,17309.msg139195.html#msg139195
Title: Re: Vera and an ISY994i
Post by: PurdueGuy on September 09, 2014, 10:54:01 pm
Attached is the updated file for micro relays and dimmers.  Only this file changed.
Someone with a micro module can check it out.
Title: Re: Vera and an ISY994i
Post by: kandlg on September 10, 2014, 07:00:21 am
Attached is the updated file for micro relays and dimmers.  Only this file changed.
Someone with a micro module can check it out.
Thank you!  I will load it up and try it tonight.
Title: Re: Vera and an ISY994i
Post by: kandlg on September 10, 2014, 08:07:03 am
Worked beautifully PurdueGuy!  Thanks.  Sorry I did not notice before, but my Outdoor Modules did not import (device info below).  I figured out through your changes that the 2nd digits from the type is the device type so I added "['56']" = true" in the relay section of the same file and that made those devices import.

Code: [Select]
<node flag="128">
<address>AA BB CC 1</address>
<name>Landscape</name>
<type>2.56.66.0</type>
<enabled>true</enabled>
<deviceClass>0</deviceClass>
<wattage>0</wattage>
<dcPeriod>0</dcPeriod>
<pnode> AA BB CC 1</pnode>
<ELK_ID>E07</ELK_ID>
<property id="ST" value="0" formatted="Off" uom="on/off"/>
</node>
Title: Re: Vera and an ISY994i
Post by: gduprey on September 11, 2014, 12:09:48 am
Howdy,

So I have my first Vera scene successfully running a ISY program and loving it!

One minor thing: When I press the 'Run' button on the scene (on Vera), it briefly says "Delivery Failure" (or "Failed to Deliver" - it goes by quick) in red and then is immediately replaced with a green success light.

The scene works and the ISY program runs, so I doubt there is really a problem, but wanted to check if that brief red error is something to be worried about or not.

So far, this plugin is working amazingly well!!  Kudos!!!!!

Gerry
Title: Re: Vera and an ISY994i
Post by: PurdueGuy on September 11, 2014, 12:12:03 am
I don't get that.   Mine is green with "Starting scene execution"  Then either blue or green saying "ISY" - but always ends up green.

Check your log file.   There might be clues there.
Title: Re: Vera and an ISY994i
Post by: gduprey on September 11, 2014, 12:35:04 am
Howdy,

I did and don't see any errors and it always works.  It's just a brief flash of red.  In a few cases, the red lasted a full second and it said "Delivery failed."

In some cases, I see that for about 1 second before the success message shows.  In others, it flashes by so quick that I just see the flash of red before it's gone.  In all cases, the command does succeed.

Not sure it's important -- again, everything works quite quickly -- but wanted to report it in case 1) it might indicate some other problem or 2) if anyone else sees it too.

Gerry
Title: Re: Vera and an ISY994i
Post by: gduprey on September 11, 2014, 01:01:29 pm
Howdy,

I can see that the ISY plugin has the ability to set a variable from Vera to the ISY.  But it appears that the value to set has to be a constant.

Can someone post an example/snippet of using Lua to read a variable (say the home/away/vacation state, bu anything would do) and use it in some way to set the value of an ISY variable?

I'm just starting to dig into accessing variables and such and trying to solve/learn a ton at once.  If someone has something even remotely close they could post, it would likely help my understanding a lot.

Thanks!!

Gerry
Title: Re: Vera and an ISY994i
Post by: PurdueGuy on September 11, 2014, 01:12:22 pm
This should work:
Code: [Select]
local thermostatDeviceID = 388
local ISYDeviceID = 333
local variableID = 71

heatPoint = luup.variable_get("urn:upnp-org:serviceId:TemperatureSetpoint1_Heat", "CurrentSetpoint", thermostatDeviceID)
luup.call_action("urn:garrettwp-com:serviceId:ISYController1","setStateVariable",{variableNumber=variableID,value=heatPoint},ISYDeviceID)

return true
To set an integer variable, change "setStateVariable" to "setIntegerVariable" instead.
Title: Re: Vera and an ISY994i
Post by: garrettwp on September 11, 2014, 02:37:12 pm
I see you are running on UI6, this plug in has not been tested with UI6 and not sure why you get the weird error. I do not experience this on UI5.

- Garrett

Title: Re: Vera and an ISY994i
Post by: gduprey on September 11, 2014, 02:57:33 pm
Thanks for that example -- sounds perfect!!

Yes, I'm on UI6, but all is working really, really well.  Whatever that error is, it's quick and apparently non-fatal ;-)

Thanks guys -- I sincerely appreciate all the work and help!  It's making me very happy I decided to get an ISY with Vera in the drivers seat!

Gerry
Title: Re: Vera and an ISY994i
Post by: woodknut on September 13, 2014, 05:48:08 pm
Hi all,

I've been running a Vera Lite with Alsteon for about a year.  It mostly works, but the KPL random turn on to 6% that others are experiencing with this setup is driving me nuts.  See this thread: http://forum.micasaverde.com/index.php/topic,15706.0.html (http://forum.micasaverde.com/index.php/topic,15706.0.html).  For those that have switched from Vera/Alsteon to ISY as their primary Insteon controller, has the 6% random turn on issue gone away?  If so, I'm definitely switching to ISY.

Thanks!
Title: Re: Vera and an ISY994i
Post by: PurdueGuy on September 14, 2014, 03:40:20 am
I no longer get the 6% random events on ISY.
Title: Re: Vera and an ISY994i
Post by: woodknut on September 14, 2014, 06:42:48 pm
I no longer get the 6% random events on ISY.

From one Boilermaker to another, thanks PurdueGuy, :)

I'll order an ISY during the next SmartHome sales event.  I'll keep the Vera for my Z-wave Schlage lock and there is no way I'm giving up AutHomationHD.

I wish I could make time to tinker in the low level details making this stuff work, like Garrett, PurdueGuy, & others.  Sure would be a lot more fun than my day job.  But nonetheless, thank you guys for all you efforts.  I'll just have to be a amateur participant for now.

Title: Re: Vera and an ISY994i
Post by: jcd on September 15, 2014, 01:34:03 pm
Howdy all.. Interesting thread.   I have purchased an ISY994i and my only question is has anyone tried the plugin with Vera UI7 yet?   Or is everyone still on UI5? ;D

Title: Re: Vera and an ISY994i
Post by: cgoffredo on September 15, 2014, 02:27:20 pm
Howdy all.. Interesting thread.   I have purchased an ISY994i and my only question is has anyone tried the plugin with Vera UI7 yet?   Or is everyone still on UI5? ;D

Yes - working fine on UI7 here!
Title: Re: Vera and an ISY994i
Post by: PurdueGuy on September 16, 2014, 01:44:45 pm
I no longer get the 6% random events on ISY.

From one Boilermaker to another, thanks PurdueGuy, :)

I'll order an ISY during the next SmartHome sales event.  I'll keep the Vera for my Z-wave Schlage lock and there is no way I'm giving up AutHomationHD.

I wish I could make time to tinker in the low level details making this stuff work, like Garrett, PurdueGuy, & others.  Sure would be a lot more fun than my day job.  But nonetheless, thank you guys for all you efforts.  I'll just have to be a amateur participant for now.
You're most welcome.   My day job is coding and the like, so I'm pretty used to it!

As for sales on ISY, keep an eye on Amazon too.   SmartHome will probably have a Black Friday/Cyber Monday sale.  However, last time (Labor Day), a day or two in, they raised the price of the ISY, so that with 22% off, it was nearly the same price as normal.   Check this thread, a couple posts I made: 
http://forum.universal-devices.com/topic/13947-smarthome-sale-on-labor-day/?p=115868
and
http://forum.universal-devices.com/topic/13947-smarthome-sale-on-labor-day/?p=115904
and
http://forum.universal-devices.com/topic/13947-smarthome-sale-on-labor-day/?p=116083
Title: Cannot add water leak sensor #2852-222
Post by: 93732 on September 17, 2014, 04:08:40 pm
Hi all,

I have the plugin installed and the state says "Running" and "Connected".  On the ISY, I have one water leak detector installed and have verified that the leak detector functions within ISY.  However, the sensor does not show up in vera UI5.  This is the only insteon device I have at the moment.  I have tried starting, stoping, restarting the plugin.  I have also tried connecting and disconnecting the plugin.  I have also tried initializing the plugin.  I have tried reloading the LUUP and cold booting the vera.  None of this has added the leak sensor to Vera.  I noticed in the log below that my leak sensor is seen by the plugin.  Can anyone help me add the water leak detector (#2852-222)?



08   09/17/14 13:01:07.331   JobHandler_LuaUPnP::HandleActionRequest device: 87 service: urn:garrettwp-com:serviceId:ISYController1 action: connect <0x2f05e680>
08   09/17/14 13:01:07.331   JobHandler_LuaUPnP::HandleActionRequest argument DeviceNum=87 <0x2f05e680>
08   09/17/14 13:01:07.332   JobHandler_LuaUPnP::HandleActionRequest argument serviceId=urn:garrettwp-com:serviceId:ISYController1 <0x2f05e680>
08   09/17/14 13:01:07.332   JobHandler_LuaUPnP::HandleActionRequest argument action=connect <0x2f05e680>
08   09/17/14 13:01:07.332   JobHandler_LuaUPnP::HandleActionRequest argument rand=0.6546875815838575 <0x2f05e680>
50   09/17/14 13:01:07.333   luup_log:87: ISYController: debug: Initializing and subscribing to ISY. <0x2f05e680>
50   09/17/14 13:01:07.343   luup_log:87: ISYController: debug: Successfully sent configuration data to ISY Event Daemon. <0x2f05e680>
50   09/17/14 13:01:07.523   luup_log:87: ISYController: debug: Successfully issued subscribe to ISY Event Daemon. <0x2f05e680>
08   09/17/14 13:01:07.546   JobHandler_LuaUPnP::HandleActionRequest device: 87 service: urn:garrettwp-com:serviceId:ISYController1 action: newEvent <0x2ebc9680>
08   09/17/14 13:01:07.547   JobHandler_LuaUPnP::HandleActionRequest argument DeviceNum=87 <0x2ebc9680>
08   09/17/14 13:01:07.547   JobHandler_LuaUPnP::HandleActionRequest argument serviceId=urn:garrettwp-com:serviceId:ISYController1 <0x2ebc9680>
08   09/17/14 13:01:07.547   JobHandler_LuaUPnP::HandleActionRequest argument action=newEvent <0x2ebc9680>
08   09/17/14 13:01:07.547   JobHandler_LuaUPnP::HandleActionRequest argument node=25 B9 46 1 <0x2ebc9680>
08   09/17/14 13:01:07.547   JobHandler_LuaUPnP::HandleActionRequest argument command=ST <0x2ebc9680>
08   09/17/14 13:01:07.548   JobHandler_LuaUPnP::HandleActionRequest argument newAction=255 <0x2ebc9680>
50   09/17/14 13:01:07.551   luup_log:87: ISYController: debug: processEvent: 25 B9 46 1 command: ST action: 255 <0x2b496000>
50   09/17/14 13:01:07.551   luup_log:87: ISYController: debug: Event family: 1 node: 25 B9 46 1 dev cat: 16 sub cat: 8 <0x2b496000>
50   09/17/14 13:01:07.552   luup_log:87: ISYController: debug: insteonEventCategory16: insteonId 25 B9 46 subDev: 1 <0x2b496000>
04   09/17/14 13:01:07.563    <0x2b496000>
08   09/17/14 13:01:07.810   JobHandler_LuaUPnP::HandleActionRequest device: 87 service: urn:garrettwp-com:serviceId:ISYController1 action: newEvent <0x2ebc9680>
08   09/17/14 13:01:07.810   JobHandler_LuaUPnP::HandleActionRequest argument DeviceNum=87 <0x2ebc9680>
08   09/17/14 13:01:07.810   JobHandler_LuaUPnP::HandleActionRequest argument serviceId=urn:garrettwp-com:serviceId:ISYController1 <0x2ebc9680>
08   09/17/14 13:01:07.810   JobHandler_LuaUPnP::HandleActionRequest argument action=newEvent <0x2ebc9680>
08   09/17/14 13:01:07.811   JobHandler_LuaUPnP::HandleActionRequest argument node=25 B9 46 2 <0x2ebc9680>
08   09/17/14 13:01:07.811   JobHandler_LuaUPnP::HandleActionRequest argument command=ST <0x2ebc9680>
08   09/17/14 13:01:07.811   JobHandler_LuaUPnP::HandleActionRequest argument newAction=0 <0x2ebc9680>
50   09/17/14 13:01:07.813   luup_log:87: ISYController: debug: processEvent: 25 B9 46 2 command: ST action: 0 <0x2b496000>
50   09/17/14 13:01:07.813   luup_log:87: ISYController: debug: Event family: 1 node: 25 B9 46 2 dev cat: 16 sub cat: 8 <0x2b496000>
50   09/17/14 13:01:07.814   luup_log:87: ISYController: debug: insteonEventCategory16: insteonId 25 B9 46 subDev: 2 <0x2b496000>
04   09/17/14 13:01:07.815    <0x2b496000>
08   09/17/14 13:01:08.075   JobHandler_LuaUPnP::HandleActionRequest device: 87 service: urn:garrettwp-com:serviceId:ISYController1 action: newEvent <0x2dbc9680>
08   09/17/14 13:01:08.076   JobHandler_LuaUPnP::HandleActionRequest argument DeviceNum=87 <0x2dbc9680>
08   09/17/14 13:01:08.076   JobHandler_LuaUPnP::HandleActionRequest argument serviceId=urn:garrettwp-com:serviceId:ISYController1 <0x2dbc9680>
08   09/17/14 13:01:08.076   JobHandler_LuaUPnP::HandleActionRequest argument action=newEvent <0x2dbc9680>
08   09/17/14 13:01:08.076   JobHandler_LuaUPnP::HandleActionRequest argument node=25 B9 46 4 <0x2dbc9680>
08   09/17/14 13:01:08.077   JobHandler_LuaUPnP::HandleActionRequest argument command=ST <0x2dbc9680>
08   09/17/14 13:01:08.077   JobHandler_LuaUPnP::HandleActionRequest argument newAction=255 <0x2dbc9680>
50   09/17/14 13:01:08.080   luup_log:87: ISYController: debug: processEvent: 25 B9 46 4 command: ST action: 255 <0x2b496000>
50   09/17/14 13:01:08.080   luup_log:87: ISYController: debug: Event family: 1 node: 25 B9 46 4 dev cat: 16 sub cat: 8 <0x2b496000>
50   09/17/14 13:01:08.081   luup_log:87: ISYController: debug: insteonEventCategory16: insteonId 25 B9 46 subDev: 4 <0x2b496000>
Title: Re: Vera and an ISY994i
Post by: Ds514 on September 17, 2014, 04:19:08 pm
Leak sensors are not supported as far as I know. A complete list of devices supported has never been expressly stated, but here are the ones that I know work for me:

(2334-2) KeypadLinc Dimmer 8 Buttons v.43
(2342-232) RemoteLinc 2 Keypad, 4 Scene v.37
(2450) IOLinc v.41
(2474DWH) SwitchLinc Dimmer 2-Wire v.42
(2477D) Dual Band SwitchLinc Dimmer v.41
(B2457D2) LampLinc BiPhy v.41
(2477S) Dual Band SwitchLinc On/Off Switch v.43
(2486D) KeypadLinc Dimmer 6 Buttons v.41
(2487S) Dual Band KeypadLinc Relay v.41
(2634-222) On/Off Outdoor Module v.42
(2635-222) On/Off Module v.46
(2842-222) INSTEON Motion Sensor v.41

Not presently working for me:

INSTEON Smoke Sensor v.43
(2852-222) Leak Sensor v.41
EZRain/EZFlora Irrigation Controller v.28
(2456S3) ApplianceLinc v.32
Title: Re: Vera and an ISY994i
Post by: PurdueGuy on September 17, 2014, 04:36:21 pm
I should be able to add the leak sensor, as I have an update to fix some IOLinc troubles, and I have leak sensors to test it out.

Smoke Sensor might be doable, EZFlora will be tougher, unless I make it 8 binary switches, which I'd rather not do.

The (2456S3) ApplianceLinc v.32 should be easy to add.    Do what's listed in this post, and copy the information:
http://forum.micasaverde.com/index.php/topic,17309.msg192304.html#msg192304
Title: Re: Vera and an ISY994i
Post by: Ds514 on September 17, 2014, 04:43:53 pm
Wasn't really demanding that any action be taken on the ones that are not supported. However, I think a list of functioning devices may be useful to others.

For the EZFlora, efficient operation relies on programs within the ISY (e.g., this zone for X minutes), so that is easily managed with the plugins ability to execute scenes and programs.
Title: Re: Vera and an ISY994i
Post by: PurdueGuy on September 17, 2014, 04:47:31 pm
Wasn't really demanding that any action be taken on the ones that are not supported. However, I think a list of functioning devices may be useful to others.

For the EZFlora, efficient operation relies on programs within the ISY (e.g., this zone for X minutes), so that is easily managed with the plugins ability to execute scenes and programs.
No worries, I have to fix the IOLinc stuff for myself anyway (selfish, huh?!).   Always best to add devices as soon as we find them, since a new user months/years down the road might have all new devices and nothing works.

Unfortunately, a list of supported devices is ever-changing.   SmartHome will randomly change the category/subcategory (well, really just subcategory) for a device, and the plugin won't understand how to use it.   I can go through the file "CatSubcat.txt" and try to see what might not be listed, and either add them or add a note that they are not supported.
Title: Leak Sensors #2852-222
Post by: 93732 on September 17, 2014, 05:07:08 pm
Wasn't really demanding that any action be taken on the ones that are not supported. However, I think a list of functioning devices may be useful to others.

For the EZFlora, efficient operation relies on programs within the ISY (e.g., this zone for X minutes), so that is easily managed with the plugins ability to execute scenes and programs.


Can I "demand" that Water Leak Sensors be added?  ;D ;D  Just kidding!  The only reason I purchased the ISY994i + PLM was for the leak sensor support.  The insteon water leak sensors are the best IMO.  If all works well, I may get some other insteon devices.  PurdueGuy, if you recall, I asked you about a month ago if the leak sensors would work.
Title: Re: Vera and an ISY994i
Post by: PurdueGuy on September 17, 2014, 05:17:47 pm
I think I was getting confused in my old age between Altsteon and ISY.   Altsteon has support for them, but I don't think I ever used/had/checked them back then.  My bad!

I'll see what I can do today/tonight.
Title: Re: Vera and an ISY994i
Post by: gduprey on September 20, 2014, 12:09:57 pm
Howdy,

I've had great lucking in talking (i.e. scenes with devices, variables, programs, etc) from the Vera to my ISY device and getting status and control on my devices.  Things are looking great!

I'm working now on keeping the Vera in sync with the ISY.  Things like Home/Away/Vacation mode which are controlled with a KPL managed by the ISY.

To that end, is there anyway to add a Vera Scene trigger on an ISY scene # that is not otherwise attached to any devices?  ISY lets you create scenes with no devices and I'm trying to use them to "signal" things from the ISY back to the Vera.  But the trigger stuff I've seen requires picking an insteon device and then a scene.

Similarly, is there any way to hang an event that catches changes to ISY variables or otherwise read the ISY variables?

Thanks!
Title: Re: Vera and an ISY994i
Post by: kandlg on September 20, 2014, 04:32:36 pm
Howdy,

I've had great lucking in talking (i.e. scenes with devices, variables, programs, etc) from the Vera to my ISY device and getting status and control on my devices.  Things are looking great!

I'm working now on keeping the Vera in sync with the ISY.  Things like Home/Away/Vacation mode which are controlled with a KPL managed by the ISY.

To that end, is there anyway to add a Vera Scene trigger on an ISY scene # that is not otherwise attached to any devices?  ISY lets you create scenes with no devices and I'm trying to use them to "signal" things from the ISY back to the Vera.  But the trigger stuff I've seen requires picking an insteon device and then a scene.

Similarly, is there any way to hang an event that catches changes to ISY variables or otherwise read the ISY variables?

Thanks!

I'm not sure what you're trying to do, but you can use the networking module to transfer things other than device state to the vera.  The network module lets you use an ISY program to send an http command to the vera.  I have been using this to trigger scenes in vera.  I think you can send send any lua command, but at this point I have just been triggering scenes.  I don't think you can send the variable contents to vera, but you could signal a change from say 0 to 1 to trigger a scene or change a virtual switch in vera.

I've been using the networking module to keep scenes in sync between the vera and ISY using virtual multiswitches.  I prefer to work with scenes instead of individual device settings and I want to be able to tell if a scene is on or off in the vera as I use the homewave app to control the whole system.  I may be doing things the hard way though.
Title: Re: Vera and an ISY994i
Post by: gduprey on September 21, 2014, 11:18:36 pm
I'm trying to keep some state flags in sync between the units.  The flags can be changed by actions on the ISY or the Vera and I want to keep them in sync between the devices regardless of where they were changed.  Pushing the changes from vera to ISY was easy, but was reversing it and the only way I could see to catch things on the Vera from the ISY was watching ISY scenes be activated/deactivated.  Problem with that was it required a scene and a device to work and I didn't want to be using scenes on the ISY with real devices as it would change the actual device status.

I was avoiding the network module as I was hoping to use the ISY as is.  I did try the network module and it's easy to run a vera scene from the ISY, so I can accomplish this now.  Thanks for the idea.

It still would be nice for vera to monitor any use of a ISY scene (on or off) even if that scene did not have any devices associated with it.
Title: Re: Vera and an ISY994i
Post by: kandlg on September 22, 2014, 05:29:02 am
It still would be nice for vera to monitor any use of a ISY scene (on or off) even if that scene did not have any devices associated with it.

I think you could use a program with a state variable here.  The state variable is the status of the scene.  The networking module notifies the vera.
Title: Re: Vera and an ISY994i
Post by: gduprey on September 22, 2014, 10:35:08 am
Networking module works fine, but people have to purchase that and do some research.  Not too bad, but extra $.

The plugin already has the ability to handle scene events back from ISY to the Vera and for device oriented scenes (i.e. most), that works fine.  You can attach a trigger on a vera scene for take care of updating everything.

But some things dont really tied to a specific device (i.e. changes from home/away/vacation).  When those things change in the ISY, I want to signal the vera to update it's idea of home/away/vaca too.  The ISY scene triggers would work great, except they need to tie to a ISY device to be accessible in the Vera trigger interface.

So while I'm working with the network module now, if there is some way to allow scene triggers on the vera to be attached to something like the ISY module and not a specific ISY device, then you could easily complete the round-trip notification for everything, even non-device things, without having to get additional modules or figure out using complex URLs.

So, in short, I'm fine, but hope something like that would not be hard to do (no idea if it is) as it would allow integeration between the units easier and without additional components.

Gerry
Title: Re: Vera and an ISY994i
Post by: SirMeili on September 22, 2014, 10:49:02 am
Networking module works fine, but people have to purchase that and do some research.  Not too bad, but extra $.

The plugin already has the ability to handle scene events back from ISY to the Vera and for device oriented scenes (i.e. most), that works fine.  You can attach a trigger on a vera scene for take care of updating everything.

But some things dont really tied to a specific device (i.e. changes from home/away/vacation).  When those things change in the ISY, I want to signal the vera to update it's idea of home/away/vaca too.  The ISY scene triggers would work great, except they need to tie to a ISY device to be accessible in the Vera trigger interface.

So while I'm working with the network module now, if there is some way to allow scene triggers on the vera to be attached to something like the ISY module and not a specific ISY device, then you could easily complete the round-trip notification for everything, even non-device things, without having to get additional modules or figure out using complex URLs.

So, in short, I'm fine, but hope something like that would not be hard to do (no idea if it is) as it would allow integeration between the units easier and without additional components.

Gerry

That's an interesting thought. Just add an event notification to the actual ISY device for "a scene is activated/deactivate" (in this case an actual ISY Scene). Then you would only need to know the # of the scene and you could use that to change multiswitches or virtual switches if you wanted to (or trigger whatever you wanted)

I'm not sure if those events are available, but it's an interesting though nonetheless.
Title: Re: Vera and an ISY994i
Post by: kandlg on September 22, 2014, 12:47:50 pm
That's an interesting thought. Just add an event notification to the actual ISY device for "a scene is activated/deactivate" (in this case an actual ISY Scene). Then you would only need to know the # of the scene and you could use that to change multiswitches or virtual switches if you wanted to (or trigger whatever you wanted)

I'm not sure if those events are available, but it's an interesting though nonetheless.
I'm brand new to the ISY and I may be wrong, but I don't think the ISY logs the processing or triggering of a scene.  An Insteon scene is really just links between the various devices that are part of that scene.  If you have 3 light switches that are part of scene, for example, when you activate that scene by turning on or off switch, that is accomplished by the links between the devices and not through the ISY.  The ISY just sees that A came on and then B and C came on afterwards.  So I don't think the ISY records the status of a scene.  The only way I know of to tell if a scene is on is by checking the state of the included devices versus the scene settings.

I'm not aware of a home or away function in the ISY.  If this is a variable that is being used, perhaps it is possible for the daemon to pass on variable changes which the vera could pick up on.  Or maybe it already does.
Title: Re: Vera and an ISY994i
Post by: Ds514 on September 22, 2014, 12:56:01 pm
The ISY has very robust logging. See Administrative Console > Tools > Log. However, I do not think this is what you are referring to. I think you mean that the ISY is not aware of the state of scenes. This is incorrect. So long as you have used the ISY to create such scenes, the device is instantly aware of any change, and can act on such. Yes, the scenes do get written to the devices, which means that they can work in the absence of the ISY, but the ISY is nonetheless aware.
Title: Re: Vera and an ISY994i
Post by: kandlg on September 22, 2014, 01:04:00 pm
The ISY has very robust logging. See Administrative Console > Tools > Log. However, I do not think this is what you are referring to. I think you mean that the ISY is not aware of the state of scenes. This is incorrect. So long as you have used the ISY to create such scenes, the device is instantly aware of any change, and can act on such. Yes, the scenes do get written to the devices, which means that they can work in the absence of the ISY, but the ISY is nonetheless aware.
Thank you, that's good to know.  Is the state of the scene available to use in a program or some other way in the ISY?  I was looking for that over the weekend and couldn't find it.  I was looking under control or status conditions and the scenes were not available as a selection.
Title: Re: Vera and an ISY994i
Post by: Ds514 on September 22, 2014, 02:27:15 pm
Although the ISY does record scene actions in its log and although it is aware of changes in devices as a result of scenes, its programs cannot incorporate scenes per se. Having said that, there are workarounds discussed in their boards. For example, if you set a scene to turn a dimmer on to 99%, which has no perceptible difference to the eye from 100%, that can then be used as an indicator for a program. As manual operation of the device may default to 100% (plus possibly another lower on level state), you could then use the status of that device at 99% to be indicative of the state of its scene, and have the program act on it.

Edit: If you follow the UDI boards, you will find the management and designers to be highly logical. I suspect the absence of scenes from programming is by design and not an accidental omission. You can imagine manual modifications of devices into and out of scene configurations that would call into question whether or not a program should trigger. Better safe than sorry.
Title: Re: Vera and an ISY994i
Post by: jcd on October 02, 2014, 03:13:36 pm
First off I want to start off with saying MAJOR kudos to all who have worked on this plug-in.. ;D

Question though:  I am running it on UI7  1.7.374 and I am seeing "Can't Detect Device" on the controller object, though it is running fine.   (This is also happening with the NEST object on that plugin.)     Looks like an issue with the way the object is defined.    see attached.

Some of my other loaded plugins it does not show up. (like "Day or Night" and "UPnP Event Proxy")

This is not a functional issue and just an annoyance. ::)   If there is a setting on my end that I need to change, please let me know.






Title: Re: Vera and an ISY994i
Post by: 416to305 on October 06, 2014, 09:56:39 am
What is the benefit of using the Vera and then ISY994 as your controller vs Vera and the PLM alone?  I am waiting for my Vera to arrive actually.  Month ago I bought a ton of Insteon gear, practically every product they make from garage door linc to keypads to hidden door sensors.  Bought the ISY when I realized the Hub is insufficient and hated the ISY the first week I had it.  Far too complicated to do simple tasks like even just a motion sensor turning on the light you have to program everything out yourself there's no wizards or samples.  That's fine if you're into that, but I'd get frustrated as I'd make lots of programs, they would finally seem to work, then a couple days later something just wouldn't, like turning the light switch off would turn all the lights off as expected, except the shower light because the motion was interferring.  So I ended up returning it because I found the only things I was doing anyway was motion lights and basic tasks.  Few days later I bought it again as I realized I did need a bit more in depth control, so was able to make it work better this time.

My issue though is I still look around the house and pretty much everything I do is basic things, like open closet door turn the light inside on, close the door, turn the light off.  Nothing I had is overly complicated, plus I don't like how there's really no plugins for the ISY, like Hue doesn't work easily with it and so on.  I also wanted door locks but Insteon locks don't show status, they can only send a lock or unlock command, then it's $100 to add the Z-Wave module to the ISY just to use Z-Wave locks.  Not all Z-Wave devices are supported, and I'm in Canada so no idea how to get it as the module is only sold by UDI directly right now and their website only shows USA for shipping.

Anyway returned the ISY again then started reading about the Vera and so on and didn't realize it supported Insteon somewhat so figured that's a bonus since not a huge loss on the devices I have.  The good thing is that most things I have set up right now don't need to be on the Vera anyway if it has issues.  Like it's more like hidden door sensor shows door is open, turn this light on, so can just do that in the Hub directly.  I like how Vera has so many plug ins and is more graphical and easy to understand in the interface.  Even HomeSeer I liked a lot more than the ISY. 

I can definitely see value in the ISY in that you can program anything, so you can have insanely complex scenes.  I also went Insteon originally due to the dual band radios and it's worked really well.  My uses are more simple with only a few more complex scenes.  Even the more "complex" ones to me I still don't have interest in spending 5 hours programming it just to try and make it work, so returned it.  The Veralite I got was a good deal as it was on sale big time and included the Veralite, security camera, lamp dimmer, and 2 motion sensors for $129 was regular like $300 something.  Was going to buy another security camera anyway and the one that came in the bundle had similar specs to my others and showed $90 to buy it alone, so figured $40 basically for the Vera plus the other sensors it comes with as bonus is pretty good.

Will report more here once I start using it and my experience with the Insteon devices I have.
Title: Re: Vera and an ISY994i
Post by: lithiumus on October 09, 2014, 10:50:44 am
I'm interested to know how it goes 416to305.  I'm currently considering moving to a Vera3 but also considered the ISY.  I'm currently on mControl but it has it's nuances but I'm at a stage where I'm looking to add zwave so deciding if I should continue to invest in mControl or look to Vera3, ISY or both.

As I have learned, it's likely that I will be leave the problems I had with mControl and coming to discover new problems with new vendors but I'm hoping that the problems are lessor than previous.  In the end, like you mentioned, simple tasks should just work.  If we open up a Smartphone app and see that a light is on when it's not...  to me, it's not working properly.  When a light it on and the Smartphone app says it's off and we need to turn it on, then off on the smartphone app, then I have to say that things are not working right...
Title: Re: Vera and an ISY994i
Post by: kandlg on October 09, 2014, 02:02:21 pm
What is the benefit of using the Vera and then ISY994 as your controller vs Vera and the PLM alone?  I am waiting for my Vera to arrive actually. 
My system is really a product of evolution (probably should have fully developed my plan first, although I like how it turned out).  I started with insteon for light control.  I used a hub initially for lights and motion.  I added Houselinc on top of that for events and logic that the hub doesn't support.  I then got to the issue of controlling locks.  The Insteon solution for that looked poor so I found z-wave locks and added vera to control those.  I then became impressed with the functionality of vera verus the hub/ houselinc and started moving a lot of control to vera.  I found a way to make the vera send commands to the hub and turn on insteon devices and scenes (without Alsteon or native support) which allowed greater programming options.  At this point I got tired of periodic houselinc crashes and upgraded to an ISY.  It is a very solid control platform.  I like the interface of the Homewave app (vera) so I started using it for control of lights in insteon through vera, but I could not see status.  Still didn't want to try Alsteon after reading through that thread.  This plug-in fixes that and I have status and scene control and it is all controlled through one interface.

I find the ISY is a faster and much more reliable controller than vera so I will keep that for lights.  Vera seems to miss triggers occasionally or delay a slight bit and I want my insteon system to be solid.  Lights should come on when you press a button, period.  My wife tolerates my automation hobby, but would not be pleased if simple things like lights don't work when they are supposed to.  ISY programming is not easy, but I am always able to find sample code in the forums to serve my purposes with a bit of modification.  I have not tried Alsteon for control of insteon devices, but the developer of that plug-in has moved on so it most likely will not go any further.  Native support for insteon in vera is limited to a few devices.

I find this add-in is very stable as long as the vera is stable.  If I crash vera then the link comes down and I often have to stop the service, restart it and then connect it.  I am currently looking through the plug-in to see how to make it do that automatically instead of just trying to reconnect - which doesn't always restore the link.  The good news is that my vera generally only crashes when I am messing with it so I control my own fate there. 

Seeing device status is very reliable as the link between ISY and vera is very stable and updates status very quickly - within a second or so.  The homewave app refresh rate is another link in the chain, but it is variable and you can customize that.  I manage a lot of my Insteon lights via scenes and tracking scene status is a bit of a challenge.  I should clarify that I use scenes in the ISY, not vera for light control.  I've used some multi-switches and vera automation to keep track of scene status in vera and keep it in sync between the systems. 

There is a z-wave module for ISY and there is about to be an ISY with built-in z-wave support, but frankly I am really enjoying the capabilities of vera and think I will stay with my current approach.  The plug-ins and programming make it very flexible.  I will say that neither device is easy to program and if you found the ISY frustrating I do not think you will like the vera either.
Title: Re: Vera and an ISY994i
Post by: gduprey on October 12, 2014, 11:26:23 am
In my case, I sampled ZWave and Insteon devices for lighting control and decided on Insteon because:

1) Insteon devices all support "instant reporting" (sending updates when someone manually uses the switch) where as most ZWave lights do not.  Coming from a UPB (last house) background, I'm used to both having instant/immediate status of the house and tying supplementary events to things like double-tapping the switch (i.e. double-tap turns all lights in that room on vs just the tapped light). 

2) Full native 'scene' support in all switches.  I'm used to invoking a scene (like night mode) and all lights immediately switch.  With ZWave, my impression is that native scenes are not supported by most devices (and then only expensive ones), so activating a switch has the annoying 'popcorn' effect of each switch turning on in sequence (takes time, looks odd).

3) Price.  I just installed 58 wall switches and saved about 35% over the equivalent Zwave devices.

I started with Altsteon on the Vera3.  Worked very well.  Only problems were that adding a new device was a bit tedious (and with nearly 60 lights and a number of sensors, that would have been a LOT of work) and that some of the Insteon devices I wanted to use didn't have Altsteon support.  Scene support was possible, but a bit difficult to use.  Still, if you have just a few Insteon devices that are supported by Altsteon, it's the way to go.

I decided on the ISY994i because it has easier support to add new devices, has support for all Insteon devices I can find, has pretty-easy-to-user scene definition and the controller seems rock-steady reliable.  The ISY programming language is pretty easy to work with and fast.  I've tasked the ISY with all my lighting needs and have programs that respond to keypads, double taps, timed switches, etc.

I'm using the ISY plugin on the Vera and it works very well.  The vera has strengths and excellent support for Zwave devices (locks in particular) and between ISY with excellent Insteon support and Vera with excellent Zwave support and lots of good mobile apps, the combo is hard to beat.  I wish there was a "one controller to rule them all", but the ISY and Vera combo is pretty much top-of-the-heap right now (especially if you want something that customizable and integratable with other services)
Title: Re: Vera and an ISY994i
Post by: PurdueGuy on October 13, 2014, 04:08:45 pm
After a long delay involving travel to 3 continents, I finally added the leak sensor support.   I also fixed some IOLinc issues.  Now the IOLinc creates a switch and sensor, and (hopefully) handles them appropriately.

I will update the first post.

I am still going to try the smoke bridge and EZFlora, but wanted to get this pushed out.
Title: Re: Vera and an ISY994i
Post by: Ds514 on October 13, 2014, 04:49:39 pm
I am looking forward to trying out the IOLinc support. This is greatly appreciated.
Title: Re: Vera and an ISY994i
Post by: PurdueGuy on October 13, 2014, 04:50:37 pm
I am looking forward to trying out the IOLinc support. This is greatly appreciated.
Great...let me know.   I don't have a sensor hooked up to mine, so I couldn't really test that part.
Title: Re: Vera and an ISY994i
Post by: Ds514 on October 14, 2014, 10:39:26 am
Everything looks good with the leak sensors. Thanks again.

The IOLinc shows up and has a separate sensor and relay. I would note that previous versions of the plugin also displayed these two. Whereas previous versions showed the closed-door icon when the door was closed, the current version seems to reverse that; the sensor is promptly updated otherwise. The fault may be on my end. My IOLinc is wired as Normally-Open, which is not correct. However, for whatever reason, this is the only way that this had worked with my door opener. Could you point me to somewhere in the code that this can be reversed manually?
Title: Re: Vera and an ISY994i
Post by: PurdueGuy on October 14, 2014, 11:49:25 am
The device should already have a "ReverseSensor" variable. Set that to 1, and save/reload. You can be the beta tester for that!
Title: Re: Vera and an ISY994i
Post by: PurdueGuy on October 14, 2014, 01:46:04 pm
The device should already have a "ReverseSensor" variable. Set that to 1, and save/reload. You can be the beta tester for that!
I just tried it on mine that doesn't have a sensor attached, with no luck.   It should change state at least.   I'll look into it.

Turns out the creation on LUUP startup will always give the state the the ISY reports.  Since the device hasn't been created yet, there is no variable to query, so that can't be used to reverse it.

If you only have one IOLinc, you can modify L_ISYController.lua, around lines 1654-1661.
Title: Re: Vera and an ISY994i
Post by: Ds514 on October 14, 2014, 03:53:04 pm
I believe it worked for me. However, I found that it was set at 1 already. I set it to 0 without luck, then back to 1, saved, reloaded (no change yet), then queried it in the ISY, which corrected the state. It has been correct since.
Title: Re: Vera and an ISY994i
Post by: PurdueGuy on October 14, 2014, 03:55:10 pm
I believe it worked for me. However, I found that it was set at 1 already. I set it to 0 without luck, then back to 1, saved, reloaded (no change yet), then queried it in the ISY, which corrected the state. It has been correct since.
Ok good...the startup sequence will probably still be wrong however.   So be sure to test any scenes that trigger off that.
Title: Re: Vera and an ISY994i
Post by: gduprey on October 18, 2014, 10:05:42 am
Howdy,

I have two IOLincs that are used to control my garage door, along with the garage control plugin to knit the sensor and relay into a single controllable device.  Everything works great.

However, once a day at 3AM, the ISY does a query of all devices and when that happens, I get an alert/notification from Vera saying that the garage door is open and then immediately closed.  Of course, the door really is not opened and closed.

I can see the ISY99 is sending a status 100% update at 3AM over to the ISY plugin.  There isn't actually change state wise, but it seems the plugin is interpreting the status update report as a change and triggering some sort of Vera update/notification.  That trickles through to the garage plugin that reports and open and then realizes it's no change and then report it's closed.

So what seems to be happening is the reception of a status report that is redundant (i.e. saying it's at 100% when it was already at 100%) is triggering all this.

Is it possible for the ISY plugin to ignore status updates when the 'new' status is effectively no change?

Thanks,

Gerry
Title: Re: Vera and an ISY994i
Post by: Ds514 on October 18, 2014, 10:25:09 am
How is your notification configured? I'm assuming it is through the Vera.

If so, you will be better off configuring the notification through the ISY (networking module or email). You can then introduce a fixed delay (I use 5 seconds) through a program before the notification is generated. This avoids multiple notifications due to sensor "flutter" during activity and should eliminate your problem.

If it is important to maintain the notification through the Vera, then you could likely achieve the same thing using PLET.
Title: Re: Vera and an ISY994i
Post by: gduprey on October 18, 2014, 10:32:30 am
I'm using VeraAlerts and a few notification plugins, can't do notifications with ISY.

It's not a settling/fluttering/bouncing problem.  This happens when the ISY does it's nightly query of all device status (3am).  What happens is that it queries the IOLinc and then sends a status report of it's current status, even though there is no actual change (it was at 100% before and at 100% after).  But the 100% status report gets to the ISY Plugin and then plugin triggers a change/notification on the related IOLinc device on the Vera.  But it's a fake notification -- it doesn't seem to be checking if the ISY99 status report is just reporting the same status as the device already had.  That then causes the notification and related problems.
Title: Re: Vera and an ISY994i
Post by: Ds514 on October 18, 2014, 10:37:15 am
A query by the ISY will always cause this bounce (in the ISY)  and it would seem natural for the plugin to capture it. However, the delay I propose will solve the problem.

If this notification is important to you, I'd suggest that configuration through the ISY is a more stable approach.
Title: Re: Vera and an ISY994i
Post by: gduprey on October 18, 2014, 10:46:31 am
Sorry, but I don't agree.  Unsolicited (effectively) event notification should generally not have side effects if there are no actual changes.  If device A is at 100% and a status report is received saying that device A is now at 100%, its not a change, but noise and would be squelched.

In addition, the ISY99 event reporting is just not up to the same level as what you can do with VeraAlerts and other plugins (for HomeWave and Pushover).  I've got a well tuned setup working now and moving it over to the ISY for just a single device doesn't make sense to work around 'ghost' notifications.

The only thing I believe needs to happen is the ISY Plugin needs to compare any received status report for a device with the current Vera/ISY device status and just drop/ignore the report if there is no effective change.  That would prevent false alerts throughout the related ISY/Vera devices and plugins using those plugins.

For me and this particular case, it's not a huge issue, just a nuisance.  But depending on what device/use there is, such false notifications/alerts on Vera could cause larger problems.
Title: Re: Vera and an ISY994i
Post by: Ds514 on October 18, 2014, 10:50:22 am
A response to your request can only come from the developers. However, I cannot foresee any valid reason for which the plugin should ignore a genuine message from the ISY.
Title: Re: Vera and an ISY994i
Post by: PurdueGuy on October 18, 2014, 12:45:37 pm
Sadly, that is an issue with the IOLinc.   Do you have the "trigger reverse" option set?   That makes the IOLinc send out the reverse on status changes....unfortunately, on a query, it returns the actual status.
Title: Re: Vera and an ISY994i
Post by: garrettwp on October 18, 2014, 02:40:03 pm
The ISY plugin will not update the values on Vera unless the current value in vera is different from the new value received from the the ISY. I had to disable the nightly query because it caused issues with my fanlincs.

- Garrett

Title: Re: Vera and an ISY994i
Post by: gduprey on October 19, 2014, 09:34:42 am
Howdy,

Yep -- I'm assuming that is it.  The Reverse option is set on the ISY99 for the sensor and everything I've subsequently read said you'll get a real and then reversed read after a query.  So the problem is all in the ISY99 and the ISY plugin is just reflecting that.  Now I have to replace my reed switches though.... ;-)

Thanks!!

Gerry
Title: Re: Vera and an ISY994i
Post by: kandlg on October 19, 2014, 05:56:31 pm
I ran into the same problem but I just built the logic in the ISY to reflect the fact that On in door closed and Off is door open.  Instead of a direct link, a program watches for open on the I/O Linc and turns off the KPL to show a closed door.  The only other place I look is homewave and you can customize what open and closed is there as well.  A little programming to avoid a physical change.
Title: Re: Vera and an ISY994i
Post by: PurdueGuy on October 21, 2014, 06:21:23 pm
Howdy,

Yep -- I'm assuming that is it.  The Reverse option is set on the ISY99 for the sensor and everything I've subsequently read said you'll get a real and then reversed read after a query.  So the problem is all in the ISY99 and the ISY plugin is just reflecting that.  Now I have to replace my reed switches though.... ;-)

Thanks!!

Gerry
Actually, it's not in the ISY, but instead in the IOLinc itself.   It sends out bad info in response to queries.  Unfortunately, I have no idea if Insteon/SmartLabs/SnartHome would ever fix it, since it might break so many setups.

They should create a new device category/subcategory and fix it once and for all.  Then developers would know how it reacts based on category/subcategory.
Title: Re: Vera and an ISY994i
Post by: tallspawn on October 25, 2014, 09:29:03 pm
I want to thank Garrett and Jacob for all the work on this plugin, I got a ISY994i/IR Pro Friday and started hooking everything up.  I must say I'm loving it so far.  I have been using Altsteon for quite some time but saw this thread and thought it might be the solution for the constant need to restart the Vera.  I am having a few issues with status updates coming through on the Vera, I just created the scene provided by Jacob so I will see if it clears up.  I wanted to make sure that I am correct in assuming that if I want to trigger scenes or even just activate a device from the ISY to the Vera I will need the network module to send via http?  Thanks again for all the good info in this thread!
Title: Re: Vera and an ISY994i
Post by: PurdueGuy on October 26, 2014, 01:52:47 am
You should only need the ISY->Vera http call when ISY restarts.   I added it since I was getting spontaneous reboots with beta firmware for the ISY.    They found some issues, corrected them, and I haven't had a spontaneous restart in a while.

If you do want to add that call, you would need the ISY Network Module.  I'm sure you could make some other (free) trigger using emails, IFTTT, etc...but the network module is pretty flexible in what it can do, if you know a little about the calls.
Title: Re: Vera and an ISY994i
Post by: tallspawn on October 26, 2014, 06:31:28 am
So how would I go about turning on a zwave device on the Vera from the ISY without the network module?  Thanks again!
Title: Re: Vera and an ISY994i
Post by: PurdueGuy on October 26, 2014, 11:03:59 am
So how would I go about turning on a zwave device on the Vera from the ISY without the network module?  Thanks again!
Oh sorry, I was thinking you were leaving Vera in charge.
To do that, you would need the network module.
Title: Re: Vera and an ISY994i
Post by: tallspawn on October 26, 2014, 11:09:46 am
No Worries, I am leaving it in charge for the most part but started playing with the IR piece and would really like to control some zwave devices with my remote.  :)
Title: Re: Vera and an ISY994i
Post by: 416to305 on October 26, 2014, 10:21:58 pm
Hey everyone, sorry if this is obvious, read through most of this but had a question.  With this plug in, are you able to basically use either the Vera or the ISY as the controller, and control devices from either?  As in I could use the ISY with the network module as my main controller, connected to the Vera and use the Vera basically just as the Z-Wave module, controlling devices from the ISY?  Or on the reverse, use Vera if I prefer it, but it would connect to the ISY and show the Insteon devices there?

The reason I ask is because I just bought the Veralite after using Insteon for awhile, but I'm disappointed with the Insteon support and Altsteon.  My leak sensor, most motion sensors, my Remotelinc's etc all don't work properly and it just feels unreliable all around.

Ideally I'd like to keep the Vera as the main controller, but am wondering if this plugin would make devices like my Remotelinc's and leak sensor work, when they don't with the Vera.  If the plug in does let the ISY control Z-Wave devices through the Vera then it would be tempting to go back to the ISY fully as the controller as I find it feels way more stable, even if harder to program for.
Title: Re: Vera and an ISY994i
Post by: garrettwp on October 27, 2014, 07:34:16 am
The plugin is designed to expose the insteon devices from the ISY to Vera and the events of those devices to Vera. Making Vera the main controller. Not all insteon devices are supported by this plugin.

- Garrett

Title: Re: Vera and an ISY994i
Post by: 416to305 on October 27, 2014, 08:07:25 am
Is there a listing of devices that do work? I have basically switchlincs, lamplinc dimmers, hidden door sensor, motion sensor, leak sensor, garage door linc, led bulbs, and remotelinc2s. Maybe a better question is what doesn't work? Since there aren't that many Insteon products out there. Thanks!
Title: Re: Vera and an ISY994i
Post by: kandlg on October 27, 2014, 01:02:26 pm
I have used the following:

switchlincs (dimmer and on off), KPLs (dimmer and on off), lamplinc dimmers, motion sensor, garage door linc, appliance linc (old version) and outdoor plug-in module.

I saw leak sensors were added but have not tested that myself.  I use the networking module in the ISY and have the ISY control the vera also.  With the networking module you can have the remotelincs execute an action in the vera.
Title: Re: Vera and an ISY994i
Post by: 416to305 on October 27, 2014, 01:57:51 pm
That sounds pretty awesome. What I was thinking was use the ISY for everything INSTEON related sense it handled its own stuff better, but have the Vera for plugins and the Android applications and so on.
 
If the ISY controls a device on the vera, can you let me know what that looks like? Like from what I understand by not seeing any images of this plugin, it sounds like devices I add on the ISY will just about here as devices in the Vera. But how does it work the other way around? Do they appear as devices or is it more like writing a program but instead of saying turn on this device or off, I say run this command and then have to type it out manually? I guess I'm just wondering how realistic it is to use the ISY as a controller or if its more just able to talk to the Vera in certain cases?
Title: Re: Vera and an ISY994i
Post by: PurdueGuy on October 27, 2014, 02:01:04 pm
The plugin doesn't make devices on Vera appear on the ISY.  It only makes ISY devices appear on Vera.

To make ISY control Vera devices, you have to create a network call in ISY for each and every thing you want to do.

You would use the standard Vera HTTP calls, such as:
Code: [Select]
http://192.168.1.22:3480/data_request?id=lu_action&serviceId=urn:upnp-org:serviceId:SwitchPower1&action=SetTarget&newTargetValue=1&DeviceNum=23
Title: Re: Vera and an ISY994i
Post by: tallspawn on October 27, 2014, 10:27:12 pm
Hey Purdue, have you been able to get status on zwave dimmers or relays using http?  I've been trying but can't figure out the right combination, keep getting errors..
Title: Re: Vera and an ISY994i
Post by: PurdueGuy on October 27, 2014, 10:28:42 pm
Hey Purdue, have you been able to get status on zwave dimmers or relays using http?  I've been trying but can't figure out the right combination, keep getting errors..
Get status from which controller?   Vera or ISY?
Title: Re: Vera and an ISY994i
Post by: tallspawn on October 27, 2014, 10:45:31 pm


From the Vera to the ISY, I'm wanting to use a keypadlinc to see that status of a zwave controlled light (dimmer).
Title: Re: Vera and an ISY994i
Post by: garrettwp on October 27, 2014, 11:35:05 pm
Why not have Vera do that? Create a scene on the ISY to turn the keypadlinc button on or off and have Vera activate the scene when the status changes.

- Garrett

Title: Re: Vera and an ISY994i
Post by: PurdueGuy on October 27, 2014, 11:47:21 pm
You won't need any HTTP commands.

Create an ISY scene that turns the KPL button on and off.  Make note of the scene id, it will be something like "XYZ - Manage Scene" in the editor.

Create a scene in vera, trigger is "device is turned on" for the dimmer in question.
Go to the Advanced tab, you can choose the main ISY device, and hit "Add"
Then you can choose "runScene" and enter the ISY scene number for "id", and "1" for the newTargetValue (1=On).

Create another scene in Vera, except choose "device is turned off" and set the newTargetValue = "0" (0=Off)

Oops.... Garrett beat me to it, on a new page, so I didn't see it.
Title: Re: Vera and an ISY994i
Post by: tallspawn on October 28, 2014, 12:42:05 am
Sweet, you guys are both awesome!  Thank you!  8)
Title: Re: Vera and an ISY994i
Post by: garrettwp on October 28, 2014, 09:01:07 am
You won't need any HTTP commands.

Create an ISY scene that turns the KPL button on and off.  Make note of the scene id, it will be something like "XYZ - Manage Scene" in the editor.

Create a scene in vera, trigger is "device is turned on" for the dimmer in question.
Go to the Advanced tab, you can choose the main ISY device, and hit "Add"
Then you can choose "runScene" and enter the ISY scene number for "id", and "1" for the newTargetValue (1=On).

Create another scene in Vera, except choose "device is turned off" and set the newTargetValue = "0" (0=Off)

Oops.... Garrett beat me to it, on a new page, so I didn't see it.

Except your reply is more detailed! 😉

- Garrett

Title: Re: Vera and an ISY994i
Post by: Aaron on October 30, 2014, 12:20:36 am
PurdueGuy,
Today, after many months of running perfectly, I started having an issue where the Vera UI does not update with ISY/Insteon devices, even though it controls them properly.

It shows Running & Disconnected.

Rebooting both Vera & ISY several times did not fix it.
Forcing your LUUP code to run (which automatically run every 10 minutes) did not fix it.

Tried Update Names, Restart, etc... only after trying all of this and then using the Stop->Start->Initialize buttons it finally Connected

ISY & Vera are both on the same wired gig LAN - definitely not a communication issue.

Have you seen anything like this? Seems odd that even multiple reboots did not fix the issue?

thx


Your LUUP code in an Automation device:
Quote
local runningStatus =   luup.variable_get("urn:garrettwp-com:serviceId:ISYController1", "DaemonRunning", 190)
local connectedStatus = luup.variable_get("urn:garrettwp-com:serviceId:ISYController1", "DaemonConnected", 190)

luup.log("ISYCheck: runningStatus   = " .. runningStatus)
luup.log("ISYCheck: connectedStatus = " .. connectedStatus)

if (runningStatus ~= "Running") then
  luup.log("ISYCheck: Daemon is NOT running - restarting")
  return true
end

if (connectedStatus ~= "Connected") then
  luup.log("ISYCheck: Daemon is NOT connected - restarting")
  return true
end

luup.log("ISYCheck: Daemon is connected & running - not restarting")
return false

Title: Re: Vera and an ISY994i
Post by: PurdueGuy on October 30, 2014, 12:23:51 am
Hmm, I haven't.  Unfortunately, I am not clear on the startup code.
Perhaps Garrett will chime in.  Some of the Vera LUUP code is still magic to me.    8)
Title: Re: Vera and an ISY994i
Post by: kandlg on October 30, 2014, 05:33:43 am
I've seen this.  I added a scene that uses luup to look for the status as being either stopped or disconnected.  If true, it stops, starts and connects the service with a 15 second delay between each.  Another scene does the same thing at 2 am regardless of state.
Title: Re: Vera and an ISY994i
Post by: garrettwp on October 30, 2014, 04:22:40 pm
Could be that the ISY daemon script was removed for some reason. The initialization button copied over the script and started it back up.

- Garrett

Title: Re: Vera and an ISY994i
Post by: Aaron on November 02, 2014, 09:49:12 am
Could be that the ISY daemon script was removed for some reason. The initialization button copied over the script and started it back up.

Should there be some ISY Initialization code under Apps / Develope Apps / LUA Startup ? 
... the only thing I have in there is from PLC/PLEG


It happened again yesterday... no matter what I did, buttons I pressed, even rebooting the Vera, it would never 'connect' to the ISY. This morning clicked "Stop" then "Start" then "Connect", on the plugin menu, and it connected.

I have about 16 devices in the ISY and 1 program... that is all. And, the ISY responds fine to commands directly.

Something is causing it to not properly connect, or maybe it is not really starting properly sometimes even though it says it is?

It will usually work fine for several days.

thanks for the help!

Title: Re: Vera and an ISY994i
Post by: garrettwp on November 02, 2014, 09:53:45 am
It sounds like some kind of network disruption. Is your vera experiencing luup restarts or system reboots? What version of the ISY firmware are you running? My connections are rock solid between the ISY and Vera. Even more so that I have plex not flooding my network causing my Vera to freak out and restart the luup engine.

- Garrett

Title: Re: Vera and an ISY994i
Post by: Aaron on November 02, 2014, 10:02:40 am
It sounds like some kind of network disruption. Is your vera experiencing luup restarts or system reboots? What version of the ISY firmware are you running? My connections are rock solid between the ISY and Vera. Even more so that I have plex not flooding my network causing my Vera to freak out and restart the luup engine.

I don't run Plex (btw, why does it cause Vera reboots?)

The ISY (fw 4.0.5) & Vera are on the same gig switch (3' of wire from each other), same subnet.
Title: Re: Vera and an ISY994i
Post by: garrettwp on November 02, 2014, 10:58:11 am
I'm running 4.2.x and I believe there are network connectivity fixes. I would log into Vera and run a netstat to see what connections are open on Vera. Just because both devices are close together via connection doesn't mean something on the network could be flooding the Vera unit.

- Garrett

Title: Re: Vera and an ISY994i
Post by: scyto on November 03, 2014, 09:51:34 pm
I am trying to install this on a UI7 versioned vera 3.

I have the daemon running but it says no device detected.
I think this is because I have not set the password or username.
However there is no obvious way to do this.

Help (and be gentle this is all new to me, I just moved from Revol which was simple)
Title: Re: Vera and an ISY994i
Post by: garrettwp on November 03, 2014, 11:00:26 pm
I haven't tested this on UI7, so I can not be of help. UI7 still has some polish to be done and is lacking features that were in UI5. There are a few who are running it on ui7. So hopefully they can chime in to help.

- Garrett

Title: Re: Vera and an ISY994i
Post by: scyto on November 05, 2014, 12:17:00 am
I downgraded to UI5

I noticed all the plugin files were still there, so I recreated the device, but it said device not ready and the variables wouldn't save.

So I deleted the device re-uploaded the files and restarted the engine, then clicked reload, I changed the variables (as they now showed up, though they places to put them disappeared even in UI5 at one point).

Still funky so I rebooted the box and when it came back up it was running, it has synced stuff in (dimmers and scenes) - it still says disconnected in the tile - is that normal?
Title: Re: Vera and an ISY994i
Post by: scyto on November 05, 2014, 12:33:44 am
Ah so next set of issues.

1) I have one load being controlled directly by a dimmer.  I have added another dimmer as responder / controller pair.  Only the load dimmer turns off the load, if I turn off the other dimmer in vera nothing happens

2) While the on/off state seems to get read - it isn't updating when I when I use vera to change state of the dimmer (i.e. on / off buttons don't flip status.  I also find that 1 in 3 or 4 requests gets dropped or delayed.

Any ideas? could this be related to the disconnected status I see?
Title: Re: Vera and an ISY994i
Post by: kandlg on November 17, 2014, 08:17:15 pm
Thanks to all for the development on this.  I have a question about the way an I/O Linc relay is configured.  Control of the relay works fine through vera and I can turn it on/ off.  I am using the relay side to control my fireplace and would like for the status of the device in vera to reflect whether it is on or off.  At present it does not, although I can see the information coming through the log.  Is this how it's intended to work or is it a bug?  I can work around regardless. 
Title: Re: Vera and an ISY994i
Post by: PurdueGuy on November 21, 2014, 01:03:57 pm
Ah so next set of issues.

1) I have one load being controlled directly by a dimmer.  I have added another dimmer as responder / controller pair.  Only the load dimmer turns off the load, if I turn off the other dimmer in vera nothing happens
This is normal operation, and discussed in this thread.  That's how Insteon is designed.  If you want both to be updated, use a scene.
2) While the on/off state seems to get read - it isn't updating when I when I use vera to change state of the dimmer (i.e. on / off buttons don't flip status.  I also find that 1 in 3 or 4 requests gets dropped or delayed.

Any ideas? could this be related to the disconnected status I see?
I would focus on getting the "disconnected" state fixed first.  Be sure to refresh your browser as well.
Title: Re: Vera and an ISY994i
Post by: PurdueGuy on November 21, 2014, 01:05:51 pm
Thanks to all for the development on this.  I have a question about the way an I/O Linc relay is configured.  Control of the relay works fine through vera and I can turn it on/ off.  I am using the relay side to control my fireplace and would like for the status of the device in vera to reflect whether it is on or off.  At present it does not, although I can see the information coming through the log.  Is this how it's intended to work or is it a bug?  I can work around regardless.
Are you using the latest build, from the first post in this thread?  I fixed that a little while ago.
Title: Re: Vera and an ISY994i
Post by: kandlg on November 21, 2014, 01:36:16 pm
Are you using the latest build, from the first post in this thread?  I fixed that a little while ago.
I bet I am on the third version.  I installed a while back and I don't think I updated to the last one because I wasn't interested in the leak sensors.  Thank you for the response.  I'll try the update tonight.
Title: Re: Vera and an ISY994i
Post by: kandlg on November 21, 2014, 07:53:51 pm
Tried the update and it did fix the I/O Linc issue I was seeing.  Thanks!

I did notice that device type 56 is set up as a dimmer in the latest build.  All my type 56 devices are relays - the outdoor on/off modules and appliance lincs.  When I updated those devices disappeared.  Moving 56 to the relay section made them come back.  I'm not sure if anyone else is seeing them as something else, but I reported them as relays on page 16 of this thread.  Here's my file.
Title: Re: Vera and an ISY994i
Post by: tenroc2o0o on November 24, 2014, 05:19:44 pm
I'll be joining the fun soon. Frustrated with how slow Altsteon is when turning multiple lights on, so I just blew a bunch of money and bought a ISY994iZw. Glad I didn't invest in a Revolv now that they've been discontinued.

Jacob: Did you say in another thread you have a DSC plugin for the ISY? The one for the Vera works well but will randomly quit sending arm/disarm commands every couple of weeks, forcing me to reboot Envisalink/Vera.
Title: Re: Vera and an ISY994i
Post by: PurdueGuy on November 24, 2014, 05:21:43 pm
Jacob: Did you say in another thread you have a DSC plugin for the ISY? The one for the Vera works well but will randomly quit sending arm/disarm commands every couple of weeks, forcing me to reboot Envisalink/Vera.
I run DSCLink on a RaspberryPi or Mac Mini (depending on what I have running at any given time).   That then tells ISY the status of whatever I want to keep track of.   I then have programs setup that make network calls to Vera to update certain things.
Title: Re: Vera and an ISY994i
Post by: DonM on November 27, 2014, 04:56:27 pm
New guy here...

Has anyone got this to work with UI7?  I keep trying to connect to the ISY and get the 'Can't Detect Device' message.  I continually show that the status is 'Stopped' and 'Disconnected'.

Anyone have any advice for trouble shooting?

Dom
Title: Re: Vera and an ISY994i
Post by: Aaron on November 28, 2014, 05:33:40 pm
PurdueGuy
I'm still getting, almost daily, disconnects on the Vera app - but the ISY (firmware 4.1.8) is perfectly fine and the lights are being controlled from the Vera - they just don't update in the Vera UI / Authomation

No problem with anything else on the networked (wired).

The only way I've found to fix this is to run 'restartDaemon', then ~ 5 seconds later 'connect'

Title: Re: Vera and an ISY994i
Post by: DonM on November 29, 2014, 09:47:36 am
New guy here...

Has anyone got this to work with UI7?  I keep trying to connect to the ISY and get the 'Can't Detect Device' message.  I continually show that the status is 'Stopped' and 'Disconnected'.

Anyone have any advice for trouble shooting?

Don

Dumb new guy here...

I found the problem - I uploaded the files in the Main folder, but not from the Daemon folder.  After doing so, the interface started working nicely, but I still get the 'Can't Detect Device' message.  However, by Vera and ISY are now connected.

Don
Title: Re: Vera and an ISY994i
Post by: tenroc2o0o on November 30, 2014, 07:56:30 pm
I feel like I've been living in the dark ages trying to get Altsteon to work. Thank you for this awesomeness. It's amazing being able to fire a runScene command when my alarm disarms.

I do have one issue: I have an Insteon On/Off Outdoor module that isn't showing up. I believe everything else is loading correctly.

Here's the output from /rest/nodes/devices/

Code: [Select]
<node flag="128">
<address>27 B9 58 1</address>
<name>Outside Back Flood</name>
<parent type="3">40522</parent>
<type>2.56.66.0</type>
<enabled>true</enabled>
<deviceClass>0</deviceClass>
<wattage>0</wattage>
<dcPeriod>0</dcPeriod>
<pnode>27 B9 58 1</pnode>
<ELK_ID>C07</ELK_ID>
<property id="ST" value="0" formatted="Off" uom="on/off"/>
</node>

I verified the cat, 0x02 0x38, is listed in the txt file.

I also edited L_ISYController1.lua, adding ['38'] under the 2 relay section, but no luck.  What am I missing?

Thanks,
James C.


-------------------------------------------
EDIT:

I saw a previous post by kandlg where he added ['56'] (from the type in the xml) under the cat 2 relay section in L_ISYController1.lua and that fixed it.  I was going off the type shown in HouseLinc. I can turn my christmas lights on and off now!
Title: Re: Vera and an ISY994i
Post by: ccclapp on December 03, 2014, 05:38:53 pm
HI

Another dumb-guy here,

I used Vera 5+ years ago, then moved to ISY.  I have several frustrations with ISY (very limited energy tracking/reporting; incoming IR codes limited to 40 and few work; very limited/poor mobile GUI; 1-way communication with most IP devices; overly complex for some tasks).  I have a VeraLite on the way and look forward to relying heavily on your plug-in for certain things.  While I will use Vera for specific needs I am happy with ISY in many ways. 

I have the Zwave module in the ISY and am wondering about the following:

1) Other than very specific things I want to do via Vera, given that my ISY now has robust Zwave builtin what are the primary reasons to use Vera over ISY for Zwave or otherwise?

2) If I remain ISY-centric but with Vera, do I get in trouble using Zwave on my ISY, i.e. can I have two Zwave controllers if desired? 

Thanks!!
Title: Re: Vera and an ISY994i
Post by: ccclapp on December 05, 2014, 11:29:00 pm
If one has a Zwave ISY and a Vera, would it be problematic to allow both to be Zwave controllers?

Thanks
Title: Re: Vera and an ISY994i
Post by: tenroc2o0o on December 06, 2014, 11:30:45 am
If one has a Zwave ISY and a Vera, would it be problematic to allow both to be Zwave controllers?

Thanks

Unlike Insteon, Zwave can only have one controller. A second controller can be setup as a slave where it copies all of the devices and controls them through the first controller, but I have no idea if the Vera and the ISY can do this.

This plugin, however, exposes Zwave devices that are paired with the ISY to the Vera just as it does Insteon devices and allows the Vera to control the ISY's Zwave devices, such as door locks.

On another note, I'm also getting the Vera alert that the ISY and my DSC device are disconnected, but both are actually 'connected' and working great.
Title: Re: Vera and an ISY994i
Post by: ccclapp on December 07, 2014, 08:05:03 pm
Thanks for the info!
Title: Re: Vera and an ISY994i
Post by: tenroc2o0o on December 07, 2014, 10:56:12 pm
I've been getting a big red error on my dashboard saying that the Vera couldn't communicate with the ISY Controller device. On the device itself, it had a red banner under it saying "Can't detect device".

To resolve this, I added "luup.set_failure(false)" and "luup.set_failure(true)" around lines 1919 through 1925 in the init(lul_device) function in the L_ISYController1.lua as follows:

Code: [Select]
function init(lul_device)

    [ .. removed here in post for brevity .. ]

    if (isyIP ~= nil and isyUser ~= nil and isyPass ~= nil) then
        local status = getDeviceData()
       
        if (status) then
            initializeChildren(lul_device)
           
        end
        luup.set_failure(false)
        return true
       
    else
        luup.set_failure(true)
        return false
       
    end
end

Hope this helps...
Title: Re: Vera and an ISY994i
Post by: Aaron on December 08, 2014, 10:19:41 am
I've been getting a big red error on my dashboard saying that the Vera couldn't communicate with the ISY Controller device. On the device itself, it had a red banner under it saying "Can't detect device".

To resolve this, I added "luup.set_failure(false)" and "luup.set_failure(true)" around lines 1919 through 1925 in the init(lul_device) function in the L_ISYController1.lua as follows:

Code: [Select]
function init(lul_device)

    [ .. removed here in post for brevity .. ]

    if (isyIP ~= nil and isyUser ~= nil and isyPass ~= nil) then
        local status = getDeviceData()
       
        if (status) then
            initializeChildren(lul_device)
           
        end
        luup.set_failure(false)
        return true
       
    else
        luup.set_failure(true)
        return false
       
    end
end

Hope this helps...

what does this do?
Title: Re: Vera and an ISY994i
Post by: tenroc2o0o on December 08, 2014, 10:22:13 am
I read on several other threads that UI7 requires plugins to call this set_failure function when starting up, or else it assumes the plugin is misbehaving.

Title: Re: Vera and an ISY994i
Post by: SirMeili on December 15, 2014, 12:46:09 pm
I am having difficulty getting a Vera scene to execute by a key on the Keypadlinc as a trigger.  I am sure that there is something simple that I am missing.  When I add the Keypadlinc, I can set it to trigger when a Keypadlinc scene is triggered.  The problem is that I seem not to know what scene number to add.  I would have thought that I would add scene #1 if I wanted the #1 button to be the trigger, but this has no effect.  I would be very grateful if someone could explain what to do.

Don


It depends. If you have the button set to only turn "off", it will never send that notification for "a scene is activate". Same goes for if you have it set for non-toggle On (it will never trigger "A scene has been deactivated"). Also, you said "button #1", but they are identified by letter (a-h for 8 button; All On, All Off, and c,d,e,f for 6 button).

The scene numbers are assigned as so:
[table border=1]
Scene Number8 Button KPL6 Button KPL
1AAll On (activate only)/All Off (deactivate only)
2BN/A
3CC
4DD
5EE
6FF
7GN/A
8HN/A
9AAll On (activate only)/All Off (deactivate only) - Fast on/off
10B (fast on/off)N/A
11C (fast on/off)C (fast on/off)
12D (fast on/off)D (fast on/off)
13E (fast on/off)E (Fast on/off)
14F (fast on/off)F (fast on/off)
15G (fast on/off)N/A
16H (fast on/off)N/A

Now, if you are still sure that you are doing it right, I normally set up a notification in that Scene controller's device and use Vera Alerts to send it to my phone. When I do it, I set it up fro all the different scenes (1-16) for both activated and deactivated (32 notifications). This way I can get a clear picture of what is happening. I do all 16 whether or not it is an 8 button KPL or a 6 button (since the 6 button one can be confusing in how they are assigned, that is how I determined the mapping above).

That said, if it still doesn't work. Make sure the plugin says "Connected", and if not, click the wrench, and on teh first tab click "connect" and wait a few second. The status on the device will take up  to a minute to update to say "connected" and I find it is sometimes out of sync. So to verify it is connected, I turn on an insteon device (like a light) and see if the UI is updated (it will only update if it gets the update from the ISY).

My final note is to understand that a "Fast on" does not trigger "a scene is activated" for scene 1. Instead it does it for scene 9 (as in my example above). This was done so that you could get more advanced functionality from the plugin. For instance in my master bedroom, I have an 8 button KPL. A is that ceiling fan lights on (Non-toggle: ON) and B is that ceiling fan lights Off (Non-Toggle: OFF). However, when I double click B (Fast off), it triggers the vera to turn off all the lights/fans in the master suite.
Title: Re: Vera and an ISY994i
Post by: DonM on December 15, 2014, 04:27:13 pm
I am having difficulty getting a Vera scene to execute by a key on the Keypadlinc as a trigger.  I am sure that there is something simple that I am missing.  When I add the Keypadlinc, I can set it to trigger when a Keypadlinc scene is triggered.  The problem is that I seem not to know what scene number to add.  I would have thought that I would add scene #1 if I wanted the #1 button to be the trigger, but this has no effect.  I would be very grateful if someone could explain what to do.

Don


It depends. If you have the button set to only turn "off", it will never send that notification for "a scene is activate". Same goes for if you have it set for non-toggle On (it will never trigger "A scene has been deactivated"). Also, you said "button #1", but they are identified by letter (a-h for 8 button; All On, All Off, and c,d,e,f for 6 button).

The scene numbers are assigned as so:
[table border=1]
Scene Number8 Button KPL6 Button KPL
1AAll On (activate only)/All Off (deactivate only)
2BN/A
3CC
4DD
5EE
6FF
7GN/A
8HN/A
9AAll On (activate only)/All Off (deactivate only) - Fast on/off
10B (fast on/off)N/A
11C (fast on/off)C (fast on/off)
12D (fast on/off)D (fast on/off)
13E (fast on/off)E (Fast on/off)
14F (fast on/off)F (fast on/off)
15G (fast on/off)N/A
16H (fast on/off)N/A

Now, if you are still sure that you are doing it right, I normally set up a notification in that Scene controller's device and use Vera Alerts to send it to my phone. When I do it, I set it up fro all the different scenes (1-16) for both activated and deactivated (32 notifications). This way I can get a clear picture of what is happening. I do all 16 whether or not it is an 8 button KPL or a 6 button (since the 6 button one can be confusing in how they are assigned, that is how I determined the mapping above).

That said, if it still doesn't work. Make sure the plugin says "Connected", and if not, click the wrench, and on teh first tab click "connect" and wait a few second. The status on the device will take up  to a minute to update to say "connected" and I find it is sometimes out of sync. So to verify it is connected, I turn on an insteon device (like a light) and see if the UI is updated (it will only update if it gets the update from the ISY).

My final note is to understand that a "Fast on" does not trigger "a scene is activated" for scene 1. Instead it does it for scene 9 (as in my example above). This was done so that you could get more advanced functionality from the plugin. For instance in my master bedroom, I have an 8 button KPL. A is that ceiling fan lights on (Non-toggle: ON) and B is that ceiling fan lights Off (Non-Toggle: OFF). However, when I double click B (Fast off), it triggers the vera to turn off all the lights/fans in the master suite.

The problem, as I discovered, was that I was triggering the Keypadlinc button from the ISY interface on the computer.  When I went and turned the button on or off at the Keypadlinc, it was received by Vera.  So, it is acutally working okay
Title: Re: Vera and an ISY994i
Post by: SirMeili on December 15, 2014, 04:29:36 pm

The problem, as I discovered, was that I was triggering the Keypadlinc button from the ISY interface on the computer.  When I went and turned the button on or off at the Keypadlinc, it was received by Vera.  So, it is acutally working okay

yeah, I think I did that at one point as well...LOL Too bad the isy doesn't recognize it, but at the same time, it makes sense. I use the ISY to keep KPL lights in sync with the z-wave lights I have them tied to via this plugin. If it notified the Vera every time the ISY changed a KPL button, I would get some serious infinite loops going on..LOL

Glad you figured it out and I hope the table above becomes of use to someone :)
Title: Re: Vera and an ISY994i
Post by: DonM on December 15, 2014, 06:06:56 pm
Howdy,

I've had great lucking in talking (i.e. scenes with devices, variables, programs, etc) from the Vera to my ISY device and getting status and control on my devices.  Things are looking great!

I'm working now on keeping the Vera in sync with the ISY.  Things like Home/Away/Vacation mode which are controlled with a KPL managed by the ISY.

To that end, is there anyway to add a Vera Scene trigger on an ISY scene # that is not otherwise attached to any devices?  ISY lets you create scenes with no devices and I'm trying to use them to "signal" things from the ISY back to the Vera.  But the trigger stuff I've seen requires picking an insteon device and then a scene.

Could you post a screen shot of what the Resource Editor in ISY looks like?  I would like to see the parameters to be used. This would be helpful for a non-networking knowledgeable person. 

Thanks,

Don
Similarly, is there any way to hang an event that catches changes to ISY variables or otherwise read the ISY variables?

Thanks!

I'm not sure what you're trying to do, but you can use the networking module to transfer things other than device state to the vera.  The network module lets you use an ISY program to send an http command to the vera.  I have been using this to trigger scenes in vera.  I think you can send send any lua command, but at this point I have just been triggering scenes.  I don't think you can send the variable contents to vera, but you could signal a change from say 0 to 1 to trigger a scene or change a virtual switch in vera.

I've been using the networking module to keep scenes in sync between the vera and ISY using virtual multiswitches.  I prefer to work with scenes instead of individual device settings and I want to be able to tell if a scene is on or off in the vera as I use the homewave app to control the whole system.  I may be doing things the hard way though.

Can you post a screen shot of the resource editor window in ISY?  This would be most helpful to this non-networking expert such as myself.

Thanks,,

Don
Title: Re: Vera and an ISY994i
Post by: DonM on December 20, 2014, 11:05:05 am
I've seen this.  I added a scene that uses luup to look for the status as being either stopped or disconnected.  If true, it stops, starts and connects the service with a 15 second delay between each.  Another scene does the same thing at 2 am regardless of state.

Please post your luup code for this.  I am still on the steep portion of the learning curve.

Thanks,

don
Title: Re: Vera and an ISY994i
Post by: kandlg on December 20, 2014, 04:18:42 pm
@DonM - Here is the code that checks the status.  I have it run every 15 minutes.  Replace "74" with the ISY device number in your system
Code: [Select]
local Drunstate=luup.variable_get("urn:garrettwp-com:serviceId:ISYController1","DaemonRunning",74)
local Dconstate=luup.variable_get("urn:garrettwp-com:serviceId:ISYController1","DaemonConnected",74)
luup.log("ISYDaemon Status is "..Drunstate)
luup.log("ISYDaemon Status is "..Dconstate)
if Drunstate=="Stopped" or Dconstate=="Disconnected" then
     luup.log("Resetting Daemon")
     luup.call_action("urn:micasaverde-com:serviceId:HomeAutomationGateway1", "RunScene", {SceneNum = "129"}, 0)
     return true
else
     luup.log("ISY Daemon OK")
     return false
end


Set another scene that actually restarts the Daemon and replace scene number 129 with that scene number.  In the advanced section of that scene, set actions for immediate, 15 second delay, and 30 second delay.  Select the ISY device and set actions the actions as stopDaemon, restartDaemon, and connect respectively for the delays.  See the picture below.
Title: Re: Vera and an ISY994i
Post by: DonM on December 21, 2014, 09:52:24 am
@DonM - Here is the code that checks the status.  I have it run every 15 minutes.  Replace "74" with the ISY device number in your system
Code: [Select]
local Drunstate=luup.variable_get("urn:garrettwp-com:serviceId:ISYController1","DaemonRunning",74)
local Dconstate=luup.variable_get("urn:garrettwp-com:serviceId:ISYController1","DaemonConnected",74)
luup.log("ISYDaemon Status is "..Drunstate)
luup.log("ISYDaemon Status is "..Dconstate)
if Drunstate=="Stopped" or Dconstate=="Disconnected" then
     luup.log("Resetting Daemon")
     luup.call_action("urn:micasaverde-com:serviceId:HomeAutomationGateway1", "RunScene", {SceneNum = "129"}, 0)
     return true
else
     luup.log("ISY Daemon OK")
     return false
end


Set another scene that actually restarts the Daemon and replace scene number 129 with that scene number.  In the advanced section of that scene, set actions for immediate, 15 second delay, and 30 second delay.  Select the ISY device and set actions the actions as stopDaemon, restartDaemon, and connect respectively for the delays.  See the picture below.

Thanks kandlg, that works.

I guess there is no way to trigger this on the ISY device being disconnected.

Also, I am speculating that this is related to UI7 issues with plugins as addressed elsewhere in this forum.

Don
Title: Re: Vera and an ISY994i
Post by: tenroc2o0o on December 21, 2014, 10:45:24 am
I'm on UI7 and haven't touched my Vera or ISY for several weeks since I upgraded... No disconnects or anything.

The only thing I've done is the set failure code that I posted above, but I wasn't having disconnect issues before that either. Even with the 'can't communicate with device' error,t he ISY plugin was still connected and running.

-James
Title: Re: Vera and an ISY994i
Post by: Aaron on December 21, 2014, 11:13:25 am
Alternatively to DonM's method, I use a similar script but I run everything in the same Automation scene, instead of calling a separate scene like he does. It reduces the # of Vera devices (thus reduces memory usage), and keeps everything in one place.

To mod his script, and keep it all in one Device... just remove the line that starts "luup.call_action"

And place the Actions you want in the device you are running the LUUP code

My Automation Device "Schedule" is every 3 minutes and Actions: 'restartDaemon' = Immediately, 'connect' = 5 second delay.

Code: [Select]
local runningStatus =   luup.variable_get("urn:garrettwp-com:serviceId:ISYController1", "DaemonRunning", 190)
local connectedStatus = luup.variable_get("urn:garrettwp-com:serviceId:ISYController1", "DaemonConnected", 190)
luup.log("ISYCheck: runningStatus   = " .. runningStatus)
luup.log("ISYCheck: connectedStatus = " .. connectedStatus)
if (runningStatus ~= "Running") then
  luup.log("ISYCheck: Daemon is NOT running - restarting")
  return true
end
if (connectedStatus ~= "Connected") then
  luup.log("ISYCheck: Daemon is NOT connected - restarting")
  return true
end
luup.log("ISYCheck: Daemon is connected & running - not restarting")
return false
Title: Re: Vera and an ISY994i
Post by: kandlg on December 21, 2014, 11:40:19 am
The problems I have with this is that the Daemon is often disconnected, but the status reports as connected anyway.  That is why I have two separate scenes: the check runs every 15 minutes, triggering the restart scene if it fails and the restart scene runs every night at 2 regardless of what the reported state is.  On my vera the restart does not seem as reliable as a stop and start.
Title: Re: Vera and an ISY994i
Post by: DonM on December 31, 2014, 12:42:12 pm
I finally got around to getting the solution for disconnects installed.  Thank you Kingl and Aaron.

And a big thank you to the developers for this module.

Don
Title: Re: Vera and an ISY994i
Post by: ccclapp on March 04, 2015, 01:35:09 pm
Hi

I have two questions:


Thanks very much!





Title: Re: Vera and an ISY994i
Post by: PurdueGuy on March 04, 2015, 01:58:45 pm
Hi

I have two questions:

Is it possible to use the ISY plugin/script but only have specific ISY devices show in Vera, i.e can I exclude/remove/delete ISY devices from Vera (while keeping them all active in ISY)? 

Context: My HA setup is ISY-centric and I use Vera for specific things energy monitoring smart plugs via SEG, Sonos, and a few other plugins.  I have enough need for Vera to want integration with ISY, but I do not want to overpower Vera with lots of ISY devices it will never use. I find Vera works best with as few demands as possible.
Currently no.  All devices that the plugin recognizes will show up in Vera.  If you delete them from Vera, I believe they will be recreated.
You could modify the plugin to have a whitelist of devices, and only allow those devices to make it through.  Not exactly sure where that would be added, but it would be possible.   Either the daemon could filter out devices, or the part of the plugin that receives messages from the daemon.

I previously read this whole thread but forget:  Do state changes (commands) made from Vera reflect on ISY, i.e. if the light is turned on in Vera, does ISY show it as on?  If so, can this be taken further:  For a non-ISY device in Vera e.g. a Sonos plugin device, can its state trigger actions in ISY?  I suppose there would need to be some corresponding ISY device or program that Vera changes state, but that's just a guess.  Likely when ISY implements virtual devices this would be straight forward.  Can is be done now?

Thanks very much!
Any devices linked to ISY will always show the current state. IF you send an "On" to a device via Vers->ISY->Device, ISY will turn the device on, and send the update back to Vera.   ISY items should be in sync all the time.
Title: Re: Vera and an ISY994i
Post by: ccclapp on March 04, 2015, 02:13:38 pm
Thanks for the speedy reply!!

Quick follow-up:


Thanks!!
Title: Re: Vera and an ISY994i
Post by: PurdueGuy on March 04, 2015, 02:15:55 pm
Thanks for the speedy reply!!

Quick follow-up:

  • Are there workarounds to get changes to Vera-only devices into ISY?  For example can a Sonos condition update a variable, program or device in ISY?

    If one has 50-100 ISY devices, what type of strain should I expect on an Edge, low, medium, high?

Thanks!!
The plugin just makes ISY devices show up in Vera.  It doesn't work the other way around.
I have 40-60 devices (mostly Insteon, some Z-Wave) on ISY, and my Vera3 doesn't have any issues.
When I would try to run that many devices on Vera (mostly Z-Wave) it would slow down.
Title: Re: Vera and an ISY994i
Post by: gduprey on March 04, 2015, 03:10:09 pm
I have over 75 Insteon lights that show on my Vera and have not noticed much, if any, change in load level.  Unlike separate Zwave devices, all the individual Insteon devices have a 'parent' device (the ISY plugin) and I believe that is the only one really using up space (I'm sure there is an small incremental amount per device, but it's not the same as the amount if every Insteon device was a stand-alone one).  The ISY plugin makes up the biggest footprint and does the management for all the Insteon lights/device.

In short, I do not believe there is any reason to worry about only exposing a subset of Insteon devices to Vera -- 20 or 70 have similar resource uses.

Gerry
Title: Re: Vera and an ISY994i
Post by: gduprey on March 04, 2015, 03:14:12 pm
Regarding accessing Vera from the ISY, as others have mentioned, the ISY plugin reflects Insteon into Vera, but not the other way. 

What I've done is purchased the ISY networking module and that allows you to execute HTTP calls to anything and capture results.  I've used them to fetch a few variables from Vera and to do things like execute Vera scenes.  The Vera has pretty much it's entire API exposed via simple HTTP calls.

If you need access to all of Vera, this technique would be tedious and a pain.  But if you're looking to fetch a few values and/or control a few Vera things from the ISY, the networking module (plus research here on HTTP commands and the UPnP stuff) makes it possible to do a lot with Vera from the ISY.

Gerry
Title: Re: Vera and an ISY994i
Post by: ccclapp on March 04, 2015, 03:23:23 pm
Thanks PurdueGuy and Gerry!

Gerry:  I suffer from being a non-scripter and generally lower on the curve with ISY Network Resources, although I have configured several devices.  Having said that, because this thread relates to the ISY/Vera marriage (or at least dating via the great plugin), possibly it would not be off-topic if you were inclined to give a brief description of the NR config in ISY to get some data from Vera ;-)...

As you suggest, the use would be occasional, but VERY helpful when needed.  That is the issue with ISY, its "onewayness"

Thanks guys!
Title: Re: Vera and an ISY994i
Post by: gduprey on March 07, 2015, 05:40:55 pm
Howdy All,

Just added a Insteon 240V, 30AMP load controller (2477SA1).  Designed for things like waterheaters and the like.  ISY shows it up fine, but it doesn't show up on Vera via the ISY plugin

I'm assuming there is some identification bytes that are a little different.  In all other respects, it shows and works as a standard ON/OFF relay switch that ISY and the ISY plugin do support.

So was looking at a little guidance on how to modify the ISY  plugin config values to recognize the load controller?

In case there is interest, here's the smarthome link
http://www.smarthome.com/220v-240v-30-amp-insteon-load-controller-normally-open-relay-dual-band.html (http://www.smarthome.com/220v-240v-30-amp-insteon-load-controller-normally-open-relay-dual-band.html)

Thanks!!!

Gerry
Title: Re: Vera and an ISY994i
Post by: PurdueGuy on March 07, 2015, 07:56:30 pm
Howdy All,

Just added a Insteon 240V, 30AMP load controller (2477SA1).  Designed for things like waterheaters and the like.  ISY shows it up fine, but it doesn't show up on Vera via the ISY plugin

I'm assuming there is some identification bytes that are a little different.  In all other respects, it shows and works as a standard ON/OFF relay switch that ISY and the ISY plugin do support.

So was looking at a little guidance on how to modify the ISY  plugin config values to recognize the load controller?

In case there is interest, here's the smarthome link
http://www.smarthome.com/220v-240v-30-amp-insteon-load-controller-normally-open-relay-dual-band.html (http://www.smarthome.com/220v-240v-30-amp-insteon-load-controller-normally-open-relay-dual-band.html)

Thanks!!!

Gerry
It probably needs the subcategory added for that.

Go to http://ISYIP/rest/nodes and find the relay.  Look for the "node" entry for it.  It will be something like:
Code: [Select]
<node flag="128">
  <address>AA BB CC 1</address>
  <name>Island2</name>
  <parent type"3">25645</parent>
  <type>2.42.67.0</type>
  <enabled>true</enabled>
  <deviceClass>0</deviceClass>
  <wattage>0</wattage>
  <dcPeriod>0</dcPeriod>
  <pnode>23 E2 46 1</pnode>
  <ELK_ID>B05</ELK_ID>
  <property id="ST" value="0" formatted="Off" uom="on/off"/>
</node>

The "type" field shows the category/subcategory.   For my relay, that is "2.42.67.0" meaning type=2 (on/off) and subcategory 42.   Remember the subcategory (second number).

Edit the file "main/L_ISYController1.lua" and look for "insteonDeviceCategory2" around like 103.   You should see something like:
Code: [Select]
local insteonDeviceCategory2 = {
    ['2'] = true,
    relayKPL = {
        ['5'] = true,
        ['15'] = true,
        ['30'] = true,
        ['32'] = true,
        ['37'] = true,
        ['44'] = true
    },
    relay = {
        ['6'] = true,
        ['7'] = true,
        ['8'] = true,
   <PORTION SNIPPPED>
        ['50'] = true,
        ['55'] = true
    }
}

For the "relay" section, add a line like the others, replacing the number with your subcategory.
Title: Re: Vera and an ISY994i
Post by: gduprey on March 08, 2015, 08:31:38 am
Thanks -- that definitely got me in the right ballpark!

The switch identifies itself as a device category 9, subcategory 10.  Its states are the same as a relay though.  Would I be right in thinking that I can make this work by simply:

Code: [Select]
local insteonDeviceCategory2 = {
    ['2'] = true,
    ['9'] = true,
    relayKPL = {
        ['5'] = true,

Where all I did was add the "['9'] = true" line.  From reading the code, that seems like it would allow the various checks to conclude this is a category 2 device (subcategory 10 was already in the relay hash, so no change needed).

I made that one line change and uploaded/reloaded and my load controller showed up and seems to be controllable.

Are there any other consequences you can imagine from handling the device this way?

Thanks again,

Gerry

Title: Re: Vera and an ISY994i
Post by: PurdueGuy on March 08, 2015, 03:06:34 pm
It's may be ok, technically other devices with the category "9" would all be misinterpreted as regular relays.   That might mean Vera would start sending "on" or "off" commands to devices that you might not want to send them too.

Technically, you should create a new array for "insteonDeviceCategory9" and re-create it, with just cat 9, subcat 10.
Then you have to add the processing to handle it.
Title: Re: Vera and an ISY994i
Post by: gduprey on March 09, 2015, 09:22:35 am
Agreed that the best solution is a discrete category 9 hash with support logic.  But right now, I don't see any category 9 processing in the ISY plugin, so I think I'm safe with my hack.  I'd never recommend this to suggest it become part of the distro, but it works in my case where I know the plugin has no existing category 9 support and I have no other category 9 devices.

Thanks again for this great plugin!!!

Gerry
Title: Re: Vera and an ISY994i
Post by: gduprey on March 09, 2015, 11:33:01 am
Howdy,

Here's a question about running ISY programs via the Plugin.  I know that right now, using the Vera and the scene/advanced stuff, I can run a program on the ISY. 

As I start moving toward OpenHAB for my logic, I am finding a need to run an ISY program from OH.  For the moment, I'd prefer to run it through the Vera->ISY plugin (there is work afoot for an ISY binding for OH, but it's not ready yet).

Can someone share the UPnP string and/or example URN for executing an ISY program via the ISY plugin on the vera? Any perhaps the same for executing a scene?

Thanks!!

Gerry
Title: Re: Vera and an ISY994i
Post by: PurdueGuy on March 09, 2015, 12:31:59 pm
The HTTP command for a scene should be something like:
Code: [Select]
http://ISY_IP:3480/data_request?id=lu_action&serviceId=urn:garrettwp-com:serviceId:ISYController1&action=runScene&newTargetValue=1&id=XXX&DeviceNum=YYYHowever, when I do that, I don't get a return, and the connection is dropped unexpectedly.

After some playing around, it appears Vera doesn't like the "id=XXXX" portion.   So in I_ISYController1.xml I changed the "job" for "runScene" to use a different name.   The new section of the XML file is:
Code: [Select]
<action>
            <serviceId>urn:garrettwp-com:serviceId:ISYController1</serviceId>
            <name>runScene</name>
            <job>
                local id = lul_settings.sceneid
                local target = lul_settings.newTargetValue
               
                if (target == "0") then
                    plugin.sendCommand(id, "", "DOF")
               
                else
                    plugin.sendCommand(id, "", "DON")
                   
                end
               
                return 4,0
            </job>
        </action>

This makes the new HTTP call:
Code: [Select]
http://ISY_IP:3480/data_request?id=lu_action&serviceId=urn:garrettwp-com:serviceId:ISYController1&DeviceNum=YYY&action=runScene&newTargetValue=1&sceneid=XXXX
I supposed the file "S_ISYController.xml" should be updated to match.
Code: [Select]
<action>
      <name>runScene</name>
      <argumentList>
      <argument>
          <name>sceneid</name>
          <direction>in</direction>
        </argument>
        <argument>
  <name>newTargetValue</name>
  <direction>in</direction>
  <relatedStateVariable>Target</relatedStateVariable>
</argument>
      </argumentList>
    </action>
NOTE: There was a "relatedStateVariable" line with the entry "string" that I thought might be the issue, but removing that didn't help.
Title: Re: Vera and an ISY994i
Post by: gduprey on March 09, 2015, 02:02:34 pm
Thanks!! Applied those changes to my local files and re-uploaded them.  I'll use the URL example to create an OH action from them.

Thanks again!

Gerry
Title: Re: Vera and an ISY994i
Post by: gduprey on March 15, 2015, 03:16:44 pm
Howdy,

Just added a bunch of Insteon Leak detectors and they are showing up in Vera OK, but they are showing with subcategory 3 (Motion sensors) instead of subcategory 2 (Leak sensors).

Is there any easy way to correct this?  Ideally, Id' like to edit the existing devices (I have 14 leak sensors in places and re-adding them all would be a little bit of work).

Thanks!!

Gerry
Title: Re: Vera and an ISY994i
Post by: ccclapp on March 16, 2015, 01:16:29 am
Hi

I loaded the current plugin onto a new Edge UI7.  I uploaded the 11 files via Dev App and then created the device, as described on post #8, pg 1 of this thread.  After adding the device I get the warning "ISY Controller[18795] : Startup Lua Failed".  I am able to add ISY IP/UN/PW, but If I click to initialize the device  (or do anything else) i get "ERROR: Device not ready".   

 To troubleshoot I removed/reloaded several times and also restored Vera to factory defaults.  I get the same result every time.

Is anyone able to offer any guidance on helping me fix this? Would it help if i post a log file or something?  if so please tell me where i find it, i cant seem to find Vera logs.   

Thanks, I appriciate any help you can offer!!
Title: Re: Vera and an ISY994i
Post by: ccclapp on March 16, 2015, 09:23:03 am
I have an update to the above post:

After leaving Vera overnight, the plugin miraculously populated with ISY devices.  The status is as follows:

-- ISY devices respond to Vera
-- ISY device status is sometimes correctly reported in Vera but often not
-- The UI reports the status of the ISY Controller as:  "Stopped Disconnected" and "Can't Detect Device"

Is this "normal" for UI7?  Any thoughts?

Thanks!!
Title: Re: Vera and an ISY994i
Post by: ccclapp on March 16, 2015, 05:21:37 pm
SMART PLUG/METER TESTING RESULTS:

Here is what I see testing AEON Smart Energy Switch (both the larger v1 and the small v2 devices):
- ISY creates 2 devices: a)  "On-Off Power Switch" and b) "Energy Meter"
- Vera shows only a), with no energy reporting device.  Is there a way to have Vera show b)?

In Testing the Insteon iMeter Solo the device does not show up at all in Vera

Does anyone know if there is a way to set the plugin to report report energy use these or similar devices?

Thanks
Title: Re: Vera and an ISY994i
Post by: garrettwp on March 16, 2015, 10:59:48 pm
The ISY plugin does not support energy functions. Depending on the category and subcategory of the iMeter Solo, it is most likely not supported by the plugin as well.

- Garrett

Title: Re: Vera and an ISY994i
Post by: ccclapp on March 16, 2015, 11:19:41 pm
The ISY plugin does not support energy functions. Depending on the category and subcategory of the iMeter Solo, it is most likely not supported by the plugin as well.

- Garrett

thanks for the reply Garrett!

is this something you're intending to add or further down the road?

The other solution I am trying to figure out is as follows:

-- (i) configure ISY as primary controller and (ii) VERA as secondary controller:  this should populate the Vera with all ISY Z wave devices, while maintaining isy as primary control device.  in effect, this would enable vera to receive all Isy z wave information directly as a secondary controller, separate from the ISY plug-in.as such, vera would receive energy data from the Z wave energy monitoring devices. then,all other (primarily insteon) devices would populate the Isy through your plug-in. this might be a viable workaround until/if you implement energy data through the plug-in. 

thanks so much for your plug-in, it is great to have the Izzy data in the vera
Title: Re: Vera and an ISY994i
Post by: scyto on March 22, 2015, 08:18:54 pm
Bah i sent garret a PM and then found this thread.  Which answered by first question (about UI7 compat).

My second is can i ask the plugin to not sync z-wave devices.  I have my Vera edge happily configured as a secondary z-wave controller to the ISY primary.  I don't want to duplicate devices and I do want to see insteon in the Vera.

Or should i be taking another approach to the z-wave part?
Title: Re: Vera and an ISY994i
Post by: scyto on March 22, 2015, 08:29:24 pm
I have an update to the above post:

After leaving Vera overnight, the plugin miraculously populated with ISY devices. 
Is this "normal" for UI7?  Any thoughts?

Thanks!!

I abandoned my first foray into Vera months ago.  I am now back trying a Vera edge that i setup for the first time yesterday.  I have multiple modules installed (DSC, Brultech, Hue, RGBW controller) and yes i would say from my very limited experience this is normal.  Getting variables and parameters to take is highly flakey, it is worse on Ie than chrome.  I saw issues like this with the brultech and the ergy plugins - sometimes they are working, sometimes not.  Now for the most oart they are - seems it took a while to settle down.  I SSH'd into the Vera Edge and both CPU and memory are fine so i know it is not a case of 'overload'... they just still have a long way to go.

That said this experience has been way better than the Vera 3 i sent back to amazon in late October.  UI7 is coming on in leaps and bounds (well tiny little flea sized leaps and bounds :-) )
Title: Re: Vera and an ISY994i
Post by: scyto on March 22, 2015, 08:31:49 pm
SMART PLUG/METER TESTING RESULTS:

Here is what I see testing AEON Smart Energy Switch (both the larger v1 and the small v2 devices):
- ISY creates 2 devices: a)  "On-Off Power Switch" and b) "Energy Meter"
- Vera shows only a), with no energy reporting device.  Is there a way to have Vera show b)?

In Testing the Insteon iMeter Solo the device does not show up at all in Vera

Does anyone know if there is a way to set the plugin to report report energy use these or similar devices?

Thanks

I setup my Vera as secondary z-wave controller to my ISY primary z-wave and I can see all the channels of Aeon SmartStrip that i can't see in ISY and they report into the energy module. 

My next experiment - what happens if i shift primary to the Vera....
Title: Re: Vera and an ISY994i
Post by: ccclapp on March 22, 2015, 09:14:22 pm
SMART PLUG/METER TESTING RESULTS:

Here is what I see testing AEON Smart Energy Switch (both the larger v1 and the small v2 devices):
- ISY creates 2 devices: a)  "On-Off Power Switch" and b) "Energy Meter"
- Vera shows only a), with no energy reporting device.  Is there a way to have Vera show b)?

In Testing the Insteon iMeter Solo the device does not show up at all in Vera

Does anyone know if there is a way to set the plugin to report report energy use these or similar devices?

Thanks

I setup my Vera as secondary z-wave controller to my ISY primary z-wave and I can see all the channels of Aeon SmartStrip that i can't see in ISY and they report into the energy module. 

My next experiment - what happens if i shift primary to the Vera....

I recently reached the same conclusion as you...I use this plugin for all non-z-wave devices (which are best managed by ISY IMHO).  For ZW, I have ISY as the primary and Vera as the secondary controllers...also using an Edge.  In this configuration, I confirm what you state, that Vera receives all ZW energy data as the 2ndary controller.

For my purposes, given the current state of the art, this is the ideal config...having your cake and eating it too...having ISY as the primary for all things AND with Vera direct for ZW (as 2ndary) and via ISY for non-ZW via this great plugin AND adding some additional Vera-only plugins, e.g Sonso, Harmony and a couple others. 

As to energy reporting/integration:  I piggy-backed off the excellent script written by @Guessed and wrote an overly detailed step-by-step guide for his Vera script to send all energy data from Vera devices up to a fabulous energy monitoring site called SEG (Smart Energy Groups).  That post is here, on Guessed's thread...http://forum.micasaverde.com/index.php/topic,31212.msg226179.html#msg226179

If you're looking at energy reporting/management, look at that.  This is the primary reason I bought a vera, because ISY does not upload to SEG or other sites.  If you are interested in helping figure out if that is possible directly via ISY, here  is a string on the subject at the ISY forums...http://forum.universal-devices.com/topic/12682-energy-monitoring-circuits-plugs-interface/

I hope no one minds the above ISY//Vera cross-pollination slight sidetrack.

Thanks!!

Title: Re: Vera and an ISY994i
Post by: scyto on March 22, 2015, 09:23:16 pm
Thanks ccclapp - i actually have the brultech GEM as my main energy monitor uploading to SEG (and a few other places using btmon.py and the plugin for the vera).  What i am really looking for is a solution that can take the whole house load (channel 1 on the GEM); all 31 circuits on the GEM and all the z-wave energy and munge it all sensibly into SEG so that things don't get double counted.  The ERGY plugin on vera a)doesn't do that and b)seems to be falling over on the amount of data i am giving it :-)  I am not sure the solution i want exists and as you say probably better discussion to be on another thread or PM :-).  (PS i miss this is the only place Teken doesn't seem to hang out!)

Back to the thread - is there a way do you know to edit the XML files of the plugin to disable the zwave / category 4 / family 4 devices from being synced over?
Title: Re: Vera and an ISY994i
Post by: garrettwp on March 23, 2015, 11:21:44 am
There is no way to choose what you want to show up via the plugin. It's all or nothing. You will have to comment out the zwave portion of the plugin to not carry over to Vera.

- Garrett

Title: Re: Vera and an ISY994i
Post by: scyto on March 23, 2015, 04:36:02 pm
There is no way to choose what you want to show up via the plugin. It's all or nothing. You will have to comment out the zwave portion of the plugin to not carry over to Vera.

- Garrett

Thanks, I am ok with that.

I looked a bit deeper and assume the file I need to modify is L_ISYController1.lua?
I commented these two sections in their entirety

Code: [Select]
local zwaveDeviceCategory4 = {..}
function zwaveEventCategory4(node, command, action, subCat)

I created the device and defined the device file, impl file and device json.
This made the variables show up.  I set the ISYIP, ISYPort, ISYUsername and ISYPassword.
I made the edits at the end of file suggested a couple of pages ago by tenroc2o0o.
I reloaded the engine and rebooted.

Now all I get is the same symptoms ccclapp had above about 'can't detect device and startup Lua failed'  any ideas?



PS  Any chance of a feature request to add a variable called something like  'zwave' that if it is set to 'no' (it defaults to yes or null) would exclude the z-wave section(s)?
Title: Re: Vera and an ISY994i
Post by: SirMeili on March 25, 2015, 04:10:25 pm
I've been getting a big red error on my dashboard saying that the Vera couldn't communicate with the ISY Controller device. On the device itself, it had a red banner under it saying "Can't detect device".

To resolve this, I added "luup.set_failure(false)" and "luup.set_failure(true)" around lines 1919 through 1925 in the init(lul_device) function in the L_ISYController1.lua as follows:

Code: [Select]
function init(lul_device)

    [ .. removed here in post for brevity .. ]

    if (isyIP ~= nil and isyUser ~= nil and isyPass ~= nil) then
        local status = getDeviceData()
       
        if (status) then
            initializeChildren(lul_device)
           
        end
        luup.set_failure(false)
        return true
       
    else
        luup.set_failure(true)
        return false
       
    end
end

Hope this helps...

I made these changes, but now I just get "ISY Controller[34] : Running Lua Startup" at the top and nothing ever happens. It was populating the devices (they are all there), but the status is reported as "stopped disconnected" and when I try and initialize the plugin/daemon I just get that the plugin is not ready.

The above is on a VeraEdge running the most recent UI7. I run this on my UI5 VeraLite just fine, but I'm about to make the jump (I want to start fresh so I am not doing the backup/restore method of moving)
Title: Re: Vera and an ISY994i
Post by: SirMeili on March 25, 2015, 04:29:12 pm
I've been getting a big red error on my dashboard saying that the Vera couldn't communicate with the ISY Controller device. On the device itself, it had a red banner under it saying "Can't detect device".

To resolve this, I added "luup.set_failure(false)" and "luup.set_failure(true)" around lines 1919 through 1925 in the init(lul_device) function in the L_ISYController1.lua as follows:

Code: [Select]
function init(lul_device)

    [ .. removed here in post for brevity .. ]

    if (isyIP ~= nil and isyUser ~= nil and isyPass ~= nil) then
        local status = getDeviceData()
       
        if (status) then
            initializeChildren(lul_device)
           
        end
        luup.set_failure(false)
        return true
       
    else
        luup.set_failure(true)
        return false
       
    end
end

Hope this helps...

I made these changes, but now I just get "ISY Controller[34] : Running Lua Startup" at the top and nothing ever happens. It was populating the devices (they are all there), but the status is reported as "stopped disconnected" and when I try and initialize the plugin/daemon I just get that the plugin is not ready.

The above is on a VeraEdge running the most recent UI7. I run this on my UI5 VeraLite just fine, but I'm about to make the jump (I want to start fresh so I am not doing the backup/restore method of moving)

I removed the changes above and that fixed it (but I still have the "can't detect device", but it at least now starts up and I can control devices. My only problem now is that it says "running disconnected". I can't stop it, I can't get it to connect. Nothing. Of course this means that the status updates aren't happening on the Vera side.

I'm off to see if I can find the logs so I can see what exactly is going on.

Edit: I added back in the changes above and I no longer get the "can't detect device" message anymore, and the plugin starts up, but I still can't get it to "connect".

Edit2: Patience is a virtue...I opened up the log screen and clicked "connect" and it did show two errors (lines in red at least), but now it is connected.
Title: Re: Vera and an ISY994i
Post by: scyto on March 25, 2015, 06:59:05 pm
to be clear you re-added the failure lines and just waited - right?

I never got mine to come up, I submitted a ticket with vera folks - their app engine in UI7 is mucho buggy.
Title: Re: Vera and an ISY994i
Post by: SirMeili on March 25, 2015, 07:22:59 pm
to be clear you re-added the failure lines and just waited - right?

I never got mine to come up, I submitted a ticket with vera folks - their app engine in UI7 is mucho buggy.
I put the original file in and set it up (initialized the Damon, put in username, password, ip, etc)... Then once all the devices were in and it was running I replaced the file with the one with the extra lines.... It took a while to work.

I agree about the ui7 app engine...I was a dining notifications and due to its auto restarts (I guess) it created a crap load of duplicates that took forever to remove because of the hidden restarts.
Title: Re: Vera and an ISY994i
Post by: scyto on March 25, 2015, 07:30:45 pm
Thanks, when I click initialize I just get 'device not ready' and in the error code variable it appears to indicate a comms issue.  If I put an invalid IP address I get a different error, so I am pretty sure it is contacting the ISY on port 80... just not sure what is happening after that :-(  - any ideas?

The daemon is now running, still get LUA startup failed when I put the IP in.
Title: Re: Vera and an ISY994i
Post by: scyto on March 27, 2015, 09:04:30 pm
I reset the LUA to the one that came in the ZIP.  Now the insteon devices and z-wave devices have appeared (this means I have z-wave duplicates).

*edit 1*
Hmm maybe I spoke too soon, it still said disconnected so I restarted the LUA engine, now it says connected but it doesn't control any insteon loads.  I will give it some time to see what it does....  UI7 is a mess for apps....

*edit 2*
oh, its working properly
gah flaky unpredictable UI7 - I don't even have luup failure code mode - its running just fine?!

So my ask is "Does anyone have idiot proof instructions on how to comment out the z-wave sections in the LUA so I can stop it syncing the z-wave devices?"  (also does it matter what encoding the file uses for carriage returns etc?)
Title: Re: Vera and an ISY994i
Post by: scyto on March 27, 2015, 09:59:44 pm
Yay I totally figured out the z-wave filtering.

If you have the plug-in working AND want to filter the z-wave out of the plugin - i.e. because you will be using vera as a secondary controller to the ISY primary then use this alternate L_ISYController1.lua file!

(if I have time I may try and work out how to create a new device variable to control this, note I have no clue about programming so don't hold your breath).
Title: Re: Vera and an ISY994i
Post by: scyto on March 28, 2015, 05:33:56 pm
Sigh, and now for no reason at all I get ISY Controller[212] : Startup Lua Failed :-( nothing changed AFAIK.

--edit--
I put the ISYIP and the username and pass back into the variables and kicked the luup and now it is working, but of course all my insteon devices re-appeared back in 'no room'.. sigh... "another fine moment brough to you by our sponsors.... Vera... and UI7..."

--edit--
hmm this may have been caused by somehow having two ISY devices - I deleted the older one.
Title: Re: Vera and an ISY994i
Post by: ccclapp on March 29, 2015, 08:06:37 am
scyto: great effort!  ive not tried it yet.  can you clarify a few things:

-- what lines did you change?
-- conceptually how do those changes stop zw from reporting?
-- is it now working (or close) or dont you yet know?

i agree that Vera as 2ndary wz controller and isy primary is ideal.


Anyone:  is there a reason someone would NOT want this  zw controller relationship?  ( i guess obvious answer is they have vera - centric config and just want vera for insteon...)

POLL:  HOW MANY USING THIS PLUGIN HAVE/WANT VERA AS LEAD HA CONTROLLER VS ISY??

Title: Re: Vera and an ISY994i
Post by: scyto on March 29, 2015, 09:25:54 pm
Yes of course.

It was lines 1740 through 1856 - the key is make sure you comment out as far as the right end and not one too many.  also given this is a function I am assuming it is possible to either add an additional esleif  or modify the existing one for a mythical new variable I come up with to turn this section on or off with a variable state.

It turns off the node creation (I think).  On my system I had the normal plugin working, I copied over the modified file, the LUA engine restarted and the duplicate z-wave devices promptly disappeared.

Yes I did not post the file until I had verified the z-wave devices don't come back and insteon still worked.  Only issue I have had is some hours later I had the issue I reported above about duplicate ISY devices, unlclear why I got two. Since then everything is ok.
Of course YMMV - but if you don't like this modified version one can just copy the original back over to the Vera :-)


Code: [Select]
            -- -- Z-Wave items
            -- elseif (family ~= nil and family == "4") then
                   
                -- if (zwaveDeviceCategory4[devCat]) then
                   
                    -- -- Relay / Switch
                    -- if (zwaveDeviceCategory4.relay[subCat]) then
                        -- local newStatus
                       
                        -- debugLog("Creating Z-Wave Relay for: node " .. node)
                       
                        -- -- On
                        -- if (status ~= nil and status ~= " " and status ~= " " and tonumber(status) > 0) then
                            -- newStatus = 1
                         
                        -- -- Off
                        -- else
                            -- newStatus = 0
                        -- end
                       
                        -- luup.chdev.append(PARENT, children,
                            -- string.format("%s", parent), string.format("%s", name),
                            -- "urn:schemas-upnp-org:device:BinaryLight:1", "D_BinaryLight1.xml",
                            -- "", "urn:upnp-org:serviceId:SwitchPower1,Status=" .. newStatus ..
                            -- "\nurn:garrettwp-com:serviceId:ISYController1,Family=4", false)

                    -- -- Dimmer
                    -- elseif (zwaveDeviceCategory4.dimmer[subCat]) then
                    -- local loadLevel
                        -- local newStatus
                       
                        -- debugLog("Creating Z-Wave dimmer for: node " .. node)
                       
                        -- -- On
                        -- if (status ~= nil and status ~= " " and status ~= " " and tonumber(status) > 0) then
                            -- newStatus = 1
                         
                        -- -- Off
                        -- else
                            -- newStatus = 0
                        -- end
                       
                        -- luup.chdev.append(device, children,
                            -- string.format("%s", parent), string.format("%s", name),
                            -- "urn:schemas-upnp-org:device:DimmableLight:1", "D_DimmableLight1.xml",
                            -- "", "urn:upnp-org:serviceId:SwitchPower1,Status=" .. newStatus ..
                            -- "\nurn:garrettwp-com:serviceId:ISYController1,Family=4", false)
                            -- --.. "\n" .. "urn:upnp-org:serviceId:Dimming1,LoadLevelStatus=" .. loadLevel, false)

                    -- -- Lock
                    -- elseif (zwaveDeviceCategory4.lock[subCat]) then
                        -- local newStatus
                       
                        -- debugLog("Creating Z-Wave lock for: node " .. node)
                       
                        -- -- On
                        -- if (status ~= nil and status ~= " " and tonumber(status) > 0) then
                            -- newStatus = 1
                         
                        -- -- Off
                        -- else
                            -- newStatus = 0
                        -- end
                       
                        -- luup.chdev.append(PARENT, children,
                            -- string.format("%s", parent), string.format("%s", name),
                            -- "urn:schemas-micasaverde-com:device:DoorLock:1", "D_DoorLock1.xml",
                            -- "", "urn:micasaverde-com:serviceId:DoorLock1,Status=" .. newStatus ..
                            -- "\nurn:garrettwp-com:serviceId:ISYController1,Family=4", false)

                    -- -- Thermostat
                    -- elseif (zwaveDeviceCategory4.thermostat[subCat]) then
                      -- local loadLevel
                        -- local newStatus
                       
                        -- debugLog("Creating Z-Wave thermostat for: node " .. node)
                       
                        -- -- temp
                        -- if (status ~= nil and status ~= " " and tonumber(status) > 0) then
                            -- newStatus = tonumber(status)
                         
                        -- -- Off
                        -- else
                            -- newStatus = 0
                        -- end

                        -- debugLog("  Z-Wave thermostat current temp = " .. newStatus)
                       
                        -- luup.chdev.append(device, children,
                            -- string.format("%s", parent), string.format("%s", name),
                            -- "urn:schemas-upnp-org:device:HVAC_ZoneThermostat:1", "D_HVAC_ZoneThermostat1.xml",
                            -- "", "urn:upnp-org:serviceId:TemperatureSensor1,CurrentTemperature="..newStatus, false)

                    -- -- Motion Sensor
                    -- elseif (zwaveDeviceCategory4.motionSensor[subCat]) then

                      -- local newStatus
                       
                        -- debugLog("Creating Z-Wave motion sensor for: node " .. node)
                       
                        -- -- tripped
                        -- if (status ~= nil and status ~= " " and tonumber(status) == 1) then
                            -- newStatus = 1
                       
                        -- -- secure (not tripped)
                        -- else
                            -- newStatus = 0
                        -- end
                       
                        -- luup.chdev.append(device, children,
                            -- string.format("%s", parent), string.format("%s", name),
                            -- "urn:schemas-micasaverde-com:device:MotionSensor:1", "D_MotionSensor1.xml",
                            -- "", "urn:micasaverde-com:serviceId:SecuritySensor1,Tripped=" .. newStatus .. 
                            -- "\n" .. "urn:micasaverde-com:serviceId:SecuritySensor1,Armed=0" ..
                            -- "\nurn:garrettwp-com:serviceId:ISYController1,Family=4", false)
                    -- end
                -- end
Title: Re: Vera and an ISY994i
Post by: scyto on April 04, 2015, 03:32:35 pm
I notice that insteon leak sensors use D_MotionSensor1 device class, giver ther are two leak sensor classes is there are reason for me to not modify the lua to use those device classes instead?
Title: Re: Vera and an ISY994i
Post by: jjwalker on April 22, 2015, 09:32:02 pm
So I got my ISY994i yesterday.. got the plugin setup and Vera sees the dual band dimmer I installed.  I'm noticing that the response time is a bit inconsistent when controlling the dimmer from Vera.  Sometimes it's instant, other times can take up to 5 seconds to respond.  I understand Vera is an intermediary and there will be a slight delay, but was wondering what is an acceptable amount with this setup.  Curious about your experiences. 

Also, I'm a bit confused as in how to implement the luup code for disconnect issues.  Do I create a scene and run it on a schedule? Or do I put it in the lua startup section?

Thanks


EDIT

Oh I downloaded the plugin from http://code.mios.com/trac/mios_universal_devices_isy_plugin/browser  - this is the latest build correct?  I compared the dates of the files to the linked downloads in this thread and they were more recent.

EDIT again

After further examining the luup codes found in this thread, I was able to make sense of what the codes are doing in a scheduled scene to restart and connect. 


Title: Re: Vera and an ISY994i
Post by: impmonkey on June 16, 2015, 08:04:58 am
Just installed. Plugin pulled the devices correctly. I only have one dimmer installed. On/Off control works well but it always shows the dimmer at 55% even when the light is off. Any ideas?

Title: Re: Vera and an ISY994i
Post by: 93732 on August 21, 2015, 10:02:44 pm
Hi PurdueGuy,

I applied your runScene argument changes and found that although the http call works, I could not use them in a Vera Scene because there was no where for me to enter the scene id.  I modified S_ISYController.xml as below and the sceneID box reappeared.  When you delete "<relatedStateVariable>string</relatedStateVariable>" it deletes the box where one enters the values for that variable in the Vera scene "Advanced" tab.  I have inserted a screenshot below.

Code: [Select]
<action>
      <name>runScene</name>
      <argumentList>
      <argument>
          <name>sceneid</name>
          <direction>in</direction>
  <relatedStateVariable>string</relatedStateVariable>
        </argument>
        <argument>
  <name>newTargetValue</name>
  <direction>in</direction>
  <relatedStateVariable>Target</relatedStateVariable>
</argument>
      </argumentList>
    </action>





The HTTP command for a scene should be something like:
Code: [Select]
http://ISY_IP:3480/data_request?id=lu_action&serviceId=urn:garrettwp-com:serviceId:ISYController1&action=runScene&newTargetValue=1&id=XXX&DeviceNum=YYYHowever, when I do that, I don't get a return, and the connection is dropped unexpectedly.

After some playing around, it appears Vera doesn't like the "id=XXXX" portion.   So in I_ISYController1.xml I changed the "job" for "runScene" to use a different name.   The new section of the XML file is:
Code: [Select]
<action>
            <serviceId>urn:garrettwp-com:serviceId:ISYController1</serviceId>
            <name>runScene</name>
            <job>
                local id = lul_settings.sceneid
                local target = lul_settings.newTargetValue
               
                if (target == "0") then
                    plugin.sendCommand(id, "", "DOF")
               
                else
                    plugin.sendCommand(id, "", "DON")
                   
                end
               
                return 4,0
            </job>
        </action>

This makes the new HTTP call:
Code: [Select]
http://ISY_IP:3480/data_request?id=lu_action&serviceId=urn:garrettwp-com:serviceId:ISYController1&DeviceNum=YYY&action=runScene&newTargetValue=1&sceneid=XXXX
I supposed the file "S_ISYController.xml" should be updated to match.
Code: [Select]
<action>
      <name>runScene</name>
      <argumentList>
      <argument>
          <name>sceneid</name>
          <direction>in</direction>
        </argument>
        <argument>
  <name>newTargetValue</name>
  <direction>in</direction>
  <relatedStateVariable>Target</relatedStateVariable>
</argument>
      </argumentList>
    </action>
NOTE: There was a "relatedStateVariable" line with the entry "string" that I thought might be the issue, but removing that didn't help.
Title: runScene with FAST ON/FASTOFF
Post by: 93732 on August 22, 2015, 07:37:25 pm
One of my ISY scenes contains a keypadlinc only (KPL) and is capable of Fast ON and Fast OFF as I have confirmed using the ISY.  Is there a way for me to pass a FAST ON (DFON) or FAST OFF (DFOF) from the vera to the isy using the plugin's runScene command?
Title: Re: Vera and an ISY994i
Post by: sprex on November 20, 2015, 12:46:46 pm
Hi -

Is there a way to have Vera detect when a scene's status has changed in order that i can send runScene's to the ISY to turn off KPL LED's?

Scenario: Someone presses button B on the KPL, this initiated a Vera scene controlling 3 z-wave dimmers in a living room. Later, they walk by and adjust just one dimmer manually. At this point i want Vera to be able to detect the change so i can trigger a scene containing a runScene command to turn the KPL led off.

My config - UI5 Vera (primary)->ISY(secondary)

Thanks
Title: Re: Vera and an ISY994i
Post by: 93732 on November 20, 2015, 06:08:15 pm
Does your zwave dimmer send changes back to the Vera? If it does, you can make a scene or PLEG condition on the Vera to turn on/off the KPL LED.
Title: Re: Vera and an ISY994i
Post by: sprex on November 21, 2015, 11:54:59 pm
It does (Evolve LRM-AS).

That's a good idea - i'll try a scene with 'If ANY device is switched off' as a trigger.

However, if a light is just dimmed slightly - i'm assuming this won't cause a trigger. Would PLEG be able to handle this? I don't use it (yet).

Thank you
Title: Re: Vera and an ISY994i
Post by: 93732 on November 22, 2015, 01:15:54 am
Regarding PLEG detecting if a light is dimmed slightly, I would ask over at the PLEG subform (http://forum.micasaverde.com/index.php/board,48.0.html).  Good luck! I have one of my KPL LED lights turn on and off based on the open/close status of my garage doors.  Handy way to make sure my garage doors are closed.
Title: Re: Vera and an ISY994i
Post by: sprex on November 23, 2015, 01:00:45 am
Thanks - i will do.

Yes i've had lots of luck so far with Vera/ISY - stable and also having KPL's respond to people turning on/off sonos via the sonos app or homewave seems to breed confidence in the whole setup.
Title: Re: Vera and an ISY994i
Post by: scyto on February 29, 2016, 03:35:46 am
I am coming back to this after some time away. Anyone manage to get the ISY controller device status to report correctly (connected, started, whatever) on UI7?
Title: Re: Vera and an ISY994i
Post by: Scoutmedic on May 11, 2016, 09:07:00 pm
Scyto, not sure about that. I just set mine up after failed attempts to use other interfaces and just got it working. Now I'm fighting the red "can't detect device" banner, but I can see my Insteon device. Only have one so far, but more to come.

Garrettwp, PurdueGuy, and others, thanks for your hard work!
Title: Re: Vera and an ISY994i
Post by: Scoutmedic on July 22, 2016, 02:09:12 pm
Has anyone running UI7 successfully been able to remove the red banner for the ISY device stating "Can't Detect Device"? I'm trying to get Vera to run programs in ISY and for some reason it's not working. All ISY devices appear and respond in Vera.
Title: Re: Vera and an ISY994i
Post by: Aaron on August 03, 2016, 09:49:33 pm
I am coming back to this after some time away. Anyone manage to get the ISY controller device status to report correctly (connected, started, whatever) on UI7?

I loaded the last full released LUA file, and your modified on... not getting proper status. Also shows 'Stopped' & 'Disconnected'

Has anyone running UI7 successfully been able to remove the red banner for the ISY device stating "Can't Detect Device"? I'm trying to get Vera to run programs in ISY and for some reason it's not working. All ISY devices appear and respond in Vera.

After loading scyto's version of the LUA it stopped showing "Can't Detect Device" on the ISY device,  for a few minutes but then it returned

BUT I'm having a huge problem... All my ISY devices are showing OFF even when on. Anyone else having a problem?
Title: Re: Vera and an ISY994i
Post by: Scoutmedic on August 07, 2016, 07:09:45 pm
I am coming back to this after some time away. Anyone manage to get the ISY controller device status to report correctly (connected, started, whatever) on UI7?

I loaded the last full released LUA file, and your modified on... not getting proper status. Also shows 'Stopped' & 'Disconnected'

Has anyone running UI7 successfully been able to remove the red banner for the ISY device stating "Can't Detect Device"? I'm trying to get Vera to run programs in ISY and for some reason it's not working. All ISY devices appear and respond in Vera.

After loading scyto's version of the LUA it stopped showing "Can't Detect Device" on the ISY device,  for a few minutes but then it returned

BUT I'm having a huge problem... All my ISY devices are showing OFF even when on. Anyone else having a problem?

Aaron, PurdueGuy provided the following help and it got it fixed for me...

I did resolved the "Can't Detect Device" by adding the following line in "Main/I_ISYController1.xml"

Original:
Code:
         function initialize(lul_device)

             -- Put the /etc/cmh-ludl and /etc/cmh-lu directories into the Lua include path.

New
Code:
         function initialize(lul_device)
             -- UI7 mod to prevent "Can't detect device"
             luup.set_failure(false)

             -- Put the /etc/cmh-ludl and /etc/cmh-lu directories into the Lua include path.

As far as status updates from ISY to Vera, there was a post somewhere about writing a scene in Vera (or something to that effect) to poll the ISY for the status of devices. I'll see if I can find it since I need to perform it myself.
Title: Re: Vera and an ISY994i
Post by: PurdueGuy on August 07, 2016, 11:21:02 pm
Just to give everyone a quick notice -

I've updated the plugin to add the following:
- get rid of "Cannot detect device" on UI7 (done)
  - NOTE: I do not use UI7 (tried it and hated it) so beyond that one mod, it's untested
- Insteon Thermostat support (mostly done)
- Insteon Hidden Door Sensor (HDS) support (not yet started)

The code isn't quite ready for checkin, but I hope in the next few days.
Title: Re: Vera and an ISY994i
Post by: Scoutmedic on August 11, 2016, 05:36:29 pm
Thanks PurdueGuy. Things are trucking along pretty well now. Still trying to figure out why the Mini Remote is not being passed through to the Vera though.
Title: Re: Vera and an ISY994i
Post by: boojew on August 15, 2016, 12:57:56 pm
Lots of info in this thread - can anyone confirm if the isy99i is also supported by this?
Title: Re: Vera and an ISY994i
Post by: gduprey on August 15, 2016, 01:00:51 pm
Lots of info in this thread - can anyone confirm if the isy99i is also supported by this?
Yep -- and it's not likely to change.  UDI (isy994i makers) are really good about not breaking external API access.
Title: Re: Vera and an ISY994i
Post by: PurdueGuy on August 16, 2016, 12:34:26 am
Well, I just commited/pushed changes for the following:

- Fixed UI7 "Cannot detect device" error
- Added Insteon Thermostat support
- Added Hidden Door Sensor (HDS) support

If you can't get the changed from git, I will be updating the first post momentarily.

WARNING: This changes one of the variable names for calling ISY scenes.   See the post here:
http://forum.micasaverde.com/index.php/topic,17309.msg224364.html#msg224364
I don't know what the old code had, so I wanted everyone to be made aware now.
Title: Re: Vera and an ISY994i
Post by: PurdueGuy on August 16, 2016, 02:21:17 am
Thanks PurdueGuy. Things are trucking along pretty well now. Still trying to figure out why the Mini Remote is not being passed through to the Vera though.
Per the file CatSubcat.txt, the following should be included (but some aren't) towards the top of L_ISYController1.lua:
Code: [Select]
local insteonDeviceCategory0 = {
    ['0'] = true,
    remoteLinc = {
        ['16'] = true,
        ['17'] = true,
        ['18'] = true,
        ['20'] = true,
        ['21'] = true,
        ['22'] = true,
        ['23'] = true,
        ['24'] = true,
        ['25'] = true,
        ['26'] = true,
        ['27'] = true,
        ['28'] = true
    }
}

I updated the code, and updated the first post.   Try the new code, if it still doesn't work, continue reading!

Which version of the Mini Remote?
In the log, look for something similar to:
Code: [Select]
ISYController: debug: Parsing node AA BB CC 1; family = 1; devCat = 0; subCat = 27 AA BB CC will be the Insteon ID of your Mini Remote.  Would need to know what the subCat is.
Title: Re: Vera and an ISY994i
Post by: Scoutmedic on August 16, 2016, 09:18:03 am
Thanks PurdueGuy. Things are trucking along pretty well now. Still trying to figure out why the Mini Remote is not being passed through to the Vera though.
Per the file CatSubcat.txt, the following should be included (but some aren't) towards the top of L_ISYController1.lua:
Code: [Select]
local insteonDeviceCategory0 = {
    ['0'] = true,
    remoteLinc = {
        ['16'] = true,
        ['17'] = true,
        ['18'] = true,
        ['20'] = true,
        ['21'] = true,
        ['22'] = true,
        ['23'] = true,
        ['24'] = true,
        ['25'] = true,
        ['26'] = true,
        ['27'] = true,
        ['28'] = true
    }
}

I updated the code, and updated the first post.   Try the new code, if it still doesn't work, continue reading!

Which version of the Mini Remote?
In the log, look for something similar to:
Code: [Select]
ISYController: debug: Parsing node AA BB CC 1; family = 1; devCat = 0; subCat = 27 AA BB CC will be the Insteon ID of your Mini Remote.  Would need to know what the subCat is.

That fixed it. I'm using the model 2342-2. I linked it with the ISY using the RemoteLinc 2 option under Link Management. Now it shows up.

I'll let you know if any scene issues come up.
Title: Re: Vera and an ISY994i
Post by: PurdueGuy on August 17, 2016, 01:46:06 am
That fixed it. I'm using the model 2342-2. I linked it with the ISY using the RemoteLinc 2 option under Link Management. Now it shows up.

I'll let you know if any scene issues come up.
Glad to hear that.   Keep me posted on any other issues!
Title: Re: Vera and an ISY994i
Post by: 93732 on August 17, 2016, 05:00:42 pm
Thank you very much PurdueGuy!  I will have to look into buying some insteon Hidden Door Sensors. 

Secondly, perhaps you can include the variable name change in the first post so that is is more visible?  I was going ask you if you implemented that "revision" in the currently version but luckily stumbled upon your post.




Well, I just commited/pushed changes for the following:

- Fixed UI7 "Cannot detect device" error
- Added Insteon Thermostat support
- Added Hidden Door Sensor (HDS) support

If you can't get the changed from git, I will be updating the first post momentarily.

WARNING: This changes one of the variable names for calling ISY scenes.   See the post here:
http://forum.micasaverde.com/index.php/topic,17309.msg224364.html#msg224364
I don't know what the old code had, so I wanted everyone to be made aware now.
Title: Re: Vera and an ISY994i
Post by: PurdueGuy on August 17, 2016, 05:24:45 pm
Thank you very much PurdueGuy!  I will have to look into buying some insteon Hidden Door Sensors. 

Secondly, perhaps you can include the variable name change in the first post so that is is more visible?  I was going ask you if you implemented that "revision" in the currently version but luckily stumbled upon your post.
Happy to help!   And updated!
Title: Re: Vera and an ISY994i
Post by: boojew on October 31, 2016, 09:55:10 pm
After following this thread for a while, I finally got this setup and its great! Incredibly responsive!

Two issues that I have run into:
1. This may be superficial as everything appears to be working, but the plugin shows "Running" and "Disconnected"
2. The local status of the devices I am controlling from the Vera is not getting updated. eg from Vera, I turn on a light through the plugub (and it works), but the Vera continues to show the light as off. Same issue if I initiate it from the ISY and/or the light switch. I have tried changing the poll timer to 5s, but that didnt help


Note, I'm on the latest public release of UI7.

Similarly, is there anyway I can trigger ISY programs from my Vera? Or even just scenes? 

EDIT: I came back to this today and #1 seems to have resolved itself. Perhaps just patience? #2 still seems to an issue and I still dont see my programs. Hoping there is a fix for these 2 items

Thanks!
Title: Re: Vera and an ISY994i
Post by: Aaron on December 04, 2016, 01:53:26 am
After following this thread for a while, I finally got this setup and its great! Incredibly responsive!

Two issues that I have run into:
1. This may be superficial as everything appears to be working, but the plugin shows "Running" and "Disconnected"
2. The local status of the devices I am controlling from the Vera is not getting updated. eg from Vera, I turn on a light through the plugub (and it works), but the Vera continues to show the light as off. Same issue if I initiate it from the ISY and/or the light switch. I have tried changing the poll timer to 5s, but that didnt help


Note, I'm on the latest public release of UI7.

Similarly, is there anyway I can trigger ISY programs from my Vera? Or even just scenes? 

EDIT: I came back to this today and #1 seems to have resolved itself. Perhaps just patience? #2 still seems to an issue and I still dont see my programs. Hoping there is a fix for these 2 items

Thanks!

Is everything working for you now?  if not, did you try the latest beta (1.7.2349)?
Title: Re: Vera and an ISY994i
Post by: boojew on January 08, 2017, 09:23:35 pm
After following this thread for a while, I finally got this setup and its great! Incredibly responsive!

Two issues that I have run into:
1. This may be superficial as everything appears to be working, but the plugin shows "Running" and "Disconnected"
2. The local status of the devices I am controlling from the Vera is not getting updated. eg from Vera, I turn on a light through the plugub (and it works), but the Vera continues to show the light as off. Same issue if I initiate it from the ISY and/or the light switch. I have tried changing the poll timer to 5s, but that didnt help


Note, I'm on the latest public release of UI7.

Similarly, is there anyway I can trigger ISY programs from my Vera? Or even just scenes? 

EDIT: I came back to this today and #1 seems to have resolved itself. Perhaps just patience? #2 still seems to an issue and I still dont see my programs. Hoping there is a fix for these 2 items

Thanks!

Is everything working for you now?  if not, did you try the latest beta (1.7.2349)?


I am on 1.7.902 now (and pretty sure I was on 1.7.2349 previously) and I'm still seeing frequent disconnects on the  ISY plugin, and hence status not updated, but it does appear to be better. I have added the scene that restarts the daemon, so I am guessing that is what helped. I actually just came back to this thread today for the first time in a while to try and understand the best way to call ISY scenes and/or programs from the Vera. Would be great if someone would add this to post #1.
Title: Re: Vera and an ISY994i
Post by: boojew on May 03, 2017, 10:42:06 pm
Anyone having issues where all of sudden names do not propagate from the ISY to the Vera? All I am getting is insteon ID for any new devices I add... and I added a lot cause I just redid my basement :(

edit: After rebooting my Vera and hitting updates its working again.. SO nevermind..
Title: Re: Vera and an ISY994i
Post by: DarthVoder on July 22, 2017, 06:05:38 pm
Well, I just commited/pushed changes for the following:

- Fixed UI7 "Cannot detect device" error
- Added Insteon Thermostat support
- Added Hidden Door Sensor (HDS) support

If you can't get the changed from git, I will be updating the first post momentarily.

WARNING: This changes one of the variable names for calling ISY scenes.   See the post here:
http://forum.micasaverde.com/index.php/topic,17309.msg224364.html#msg224364
I don't know what the old code had, so I wanted everyone to be made aware now.

Oops...
I've been a happy user of this interface for years only to find in the last few days the wheels have fallen off.

Since installing the 2014(?) version I've only been updating Vera firmware as updates have been announced.
This includes updating to 1.7.2931
Of late Universal Devices has been improving their firmware.
I had been on the 5.0.4 firmware but recently updated to 5.0.10 (which has been out since April)

Only recently I noticed that the ISY994 interface app to Vera has been iffy as to updating device status on Vera.

OK.. It's been a while since I've updated the ISY994 interface app for Vera so
I downloaded the latest (6th) revision of the app and uploaded its files.

Now, restarting Lua results in an ISY Lua startup failure every time.

I've tried removing the ISY994 device and deleting all the app files and reinstalling from scratch. Same result.

Today I turned on debug in the ISY994 app and see a likely cause for the failure. If this is resulting from changes
to the Universal Devices firmware I may have been the first to discover a looming problem to be seen
in the future by others.

Attached is a snippet from the Lua log with the error. Any insight as to what's broken and how I might fix it would be appreciated.

<code>
50      07/22/17 16:32:21.355   luup_log:431: ISYController: Initializing plugin... <0x77757520>
50      07/22/17 16:32:21.784   luup_log:431: ISYController: debug: Parsing node 1D 8 5F 1; family = 1; devCat = 2; subCat = 26 <0x77757520>
50      07/22/17 16:32:21.784   luup_log:431: ISYController: debug: Creating Relay for: node 1D 8 5F 1 <0x77757520>
50      07/22/17 16:32:21.785   luup_log:431: ISYController: debug: Parsing node B B5 29 1; family = 1; devCat = 2; subCat = 10 <0x77757520>
50      07/22/17 16:32:21.785   luup_log:431: ISYController: debug: Creating Relay for: node B B5 29 1 <0x77757520>
50      07/22/17 16:32:21.786   luup_log:431: ISYController: debug: Parsing node 3B 89 49 1; family = 1; devCat = 1; subCat = 65 <0x77757520>
50      07/22/17 16:32:21.786   luup_log:431: ISYController: debug: Creating KeypadLinc Dimmer for: node 3B 89 49 1 <0x77757520>
50      07/22/17 16:32:21.787   luup_log:431: ISYController: debug: Parsing node 2D 99 7 1; family = 1; devCat = 16; subCat = 1 <0x77757520>
50      07/22/17 16:32:21.787   luup_log:431: ISYController: debug: Creating Motion Sensor for: node 2D 99 7 1 <0x77757520>
50      07/22/17 16:32:21.788   luup_log:431: ISYController: debug: Parsing node 19 8F 40 1; family = 1; devCat = 7; subCat = 9 <0x77757520>
50      07/22/17 16:32:21.788   luup_log:431: ISYController: debug: Parsing node 1D F4 12 1; family = 1; devCat = 1; subCat = 28 <0x77757520>
50      07/22/17 16:32:21.789   luup_log:431: ISYController: debug: Creating KeypadLinc Dimmer for: node 1D F4 12 1 <0x77757520>
50      07/22/17 16:32:21.790   luup_log:431: ISYController: debug: Parsing node 11 6F 82 1; family = 1; devCat = 2; subCat = 10 <0x77757520>
50      07/22/17 16:32:21.790   luup_log:431: ISYController: debug: Creating Relay for: node 11 6F 82 1 <0x77757520>
01      07/22/17 16:32:21.791   LuaInterface::CallFunction_Startup-1 device 431 function initialize failed [string "--[[..."]:1660: attempt to compare number with nil <0
77757520>
01      07/22/17 16:32:21.791   LuImplementation::StartLua running startup code for 431 I_ISYController1.xml failed <0x77757520>
</code>
Title: Re: Vera and an ISY994i
Post by: PurdueGuy on July 22, 2017, 06:07:33 pm
Well, I just commited/pushed changes for the following:

- Fixed UI7 "Cannot detect device" error
- Added Insteon Thermostat support
- Added Hidden Door Sensor (HDS) support

If you can't get the changed from git, I will be updating the first post momentarily.

WARNING: This changes one of the variable names for calling ISY scenes.   See the post here:
http://forum.micasaverde.com/index.php/topic,17309.msg224364.html#msg224364
I don't know what the old code had, so I wanted everyone to be made aware now.

Oops...
I've been a happy user of this interface for years only to find in the last few days the wheels have fallen off.

Since installing the 2014(?) version I've only been updating Vera firmware as updates have been announced.
This includes updating to 1.7.2931
Of late Universal Devices has been improving their firmware.
I had been on the 5.0.4 firmware but recently updated to 5.0.10 (which has been out since April)

Only recently I noticed that the ISY994 interface app to Vera has been iffy as to updating device status on Vera.

OK.. It's been a while since I've updated the ISY994 interface app for Vera so
I downloaded the latest (6th) revision of the app and uploaded its files.

Now, restarting Lua results in an ISY Lua startup failure every time.

I've tried removing the ISY994 device and deleting all the app files and reinstalling from scratch. Same result.

Today I turned on debug in the ISY994 app and see a likely cause for the failure. If this is resulting from changes
to the Universal Devices firmware I may have been the first to discover a looming problem to be seen
in the future by others.

Attached is a snippet from the Lua log with the error. Any insight as to what's broken and how I might fix it would be appreciated.

I have been having the same issue, but haven't had time to track if all down.

I do know part of it has to do with the status field being nil, "", or " " - but I haven't added a long term fix yet.
Title: Re: Vera and an ISY994i
Post by: DarthVoder on July 22, 2017, 06:20:40 pm
Another "improvement" on the horizon for the Universal Devices API is "chunked" data. I have this option
turned off on the ISY so as not to complicate things.

I imagine when chunked data becomes the default this will necessitate an update to the ISY Vera app.

Thanks for all your hard work PerdueGuy. Knowing that you've seen this null compare issue I will save my head
and my brick wall and watch this forum for developments.
 
Title: Re: Vera and an ISY994i
Post by: DarthVoder on December 20, 2017, 09:06:32 am
Bump..
Looking forward to the long term (or even an interim) fix for the nil/""/" "issue.

Have been unable to use this isy994 interface plugin for months and really miss the isy994-vera integration.


[/quote]I have been having the same issue, but haven't had time to track if all down.

I do know part of it has to do with the status field being nil, "", or " " - but I haven't added a long term fix yet.
[/quote]
Title: Re: Vera and an ISY994i
Post by: xlurkr on February 22, 2018, 04:52:09 pm
This.  Is.  Awesome.  I can't believe it's been around for years and I'm just now learning about it.  Kudos to the authors(s) and everyone who has contributed to it.

I've discovered a bug that I'd like to report.  It's in L_ISYController1.lua, in the function initializeChildren().  The code is missing an elseif statement that checks for the devCat for a thermostat (5).  It jumps straight to the elseif for the subCat.  The result is that, for any devCat higher than 5, it will create a thermostat device, so long as the subCat is one of the ones that is "true" for thermostat.

I discovered it because I have Smoke Bridge that got created as a thermostat.  Its devCat is 16 (higher than thermostat) and the subCat is 10, which is "true" for thermostat.  Later, I added subCat 9 to thermostat, because that's what my Venstar adapter reports it is.  Then, my Synchrolinc (devCat 7 subCat 9) also got created as a thermostat.  That behavior got me looking into the code.

I'm not a programmer, but I hope there's one reading this.  Please make the change to the code in the repository if you are able.

Also, the only thing the Venstar does is report the current temp correctly.  It doesn't report the mode correctly, or let me change it or the setpoints.  If anyone can help me with this, I'd appreciate it.  That level of debugging is probably beyond my capability.

-Tom