Vera sending UDP to OpenRemote

Hello folks

I am looking for a way making Vera sending it’s statuses to OpenRemote.
OpenRemote offers a UDP Listener function (requiring an IP adress and a regular path).

Do you think that it would be possible to have the status of sensors automaticaly updated on the OpenRemote UI ?

If found the PowerControllerMCE plugin that is sending UDP messages to a windows media center. But i don’t know how to use it with OR, or if we could use it at all.

If not what would be your solution ?

Thank you very much for your help.

Vera’s third party interfacing is by polling! Vera does not push changes. Not unless you create a plug in to push the changes. Which would require some work.

  • Garrett

Well, i DON’T want to use polling :wink:
It is not responsive enough to me.
Would it be possible to write this plugin ? I don’t know how does UDP works.

Break the problem down into smaller pieces.

Write a plugin that watches sensors on Vera and does nothing with them except write a log message.

Learn how to use LuaSocket to send UDP packets.

Put the above code into your plugin.

No one is going to write this plugin for you, so you need to decide if the above is something you can do yourself, or if polling isn’t so bad after all.

Of course i’m not asking for someone to write it!

The problem i have with polling is that it’s easy to flood the Vera with it. But it’s easy to use…

This might be of interest.

A while back I (miraculously, with a lot of help from this forum) wrote my first plugin and it involved sending IR code messages over UDP to an IR reciever.

The KIRA IR plugin device is the target IR reciever, you could look at changing that to be your Open Remote device. I then created another device to be the remote and that has the codes that can be sent over UDP.

This is the code used in isolation is something like this, but needs a line or two to tell it to target the IR receiver device.

[code]socket = require(“socket”)

local s = socket.udp()
s:sendto(“K 2416 0A6A 0378 01BC 01BC 01BC 01BC 01BC 0378 01BC 0378 0378 01BC 01BC 01BC 01BC 01BC 01BC 01BC 01BC 01BC 0378 0378 0378 01BC 01BC 01BC 01BC 0378 01BC 01BC 01BC 01BC 0378 0378 0378 01BC 01BC 01BC 01BC 0378 01BC 01BC 01BC 2000”, “192.168.1.19”, 65432)
s:close()[/code]

I’ll defer to experts if this a good approach, but if you’re looking at using UDP it’s at least related.

http://forum.micasaverde.com/index.php?topic=10886.0