I am currently working on controlling devices through the serial port. I have been able to get messages into the Vera Lite but now am not sure how to proceed. So far I have only a D and I files, I assume I need more?
Also, The log says my device start up always fails but the code in seems to work OK. Any ideas?
If anyone could point me in the correct direction that would be great.
For something acting like a gateway, taking commands “from” the serial port, and turning them into commands in Vera, you don’t particularly need a S_* file, or a JSON file (at least not in the initial part of development).
The MiOS lads have a component that does this, and pretends to be a Leviton VRC0P device. Presuming it’s in the store, you could probably install it, and mimic what it’s doing.
I figured I don’t need any S files; but I am stuck on how to relate the “ON” command to turn on a certain zwave light. Is their some unique identifier?
The [tt][/tt] element is expecting [just] the name of the startup function.
In your case, if would be [tt]lug_startup[/tt] and nothing else.
You’ll want to read through some of the examples on code.mios.com for the more complex stuff, like device lookup ([tt]luup.devices[/tt] table), and action invocation ([tt]luup.call_action[/tt]).
I suspect also that you’ll benefit from installing the [Beta?] Leviton VRC0P emulator Plugin from apps.mios.com, since it’ll likely do everything you’ll need and more.
Thank you guessed for your assistance. Unfortunately the plugin does not seem to want to install. BETA Is it normal to “do work” inside of the incoming tags? I am not sure how I can guarantee I don’t overwrite un-actioned commands if I am not using the incoming tag as an interrupt.
I recommend you familiarize yourself with the [various] plugin examples on http://code.mios.com, as they’ll answer a lot of your questions which, in turn, will get you up-to-speed quicker for this stuff (generally faster than the Wiki, at least).
If you follow the patterns outlined in those [working] Plugins then you’ll [generally] get there faster, since many of the smaller questions are answered in their codebases (one way or another)
You’ll need to ping the MiOS support folks for their Emulator, if it’s normally downloading from apps.mios.com.
Best Home Automation shopping experience. Shop at Ezlo!