Web call for each event?

We know that Vera calls MiOS servers to update it with every event. But is it possible to get hold on this functionality? In particular I would like to make a REST call for each event that happens. Of course I can continously request all devices status from Vera but this is not a good solution.

Vera does not call the mios servers when changes happen. Vera is pull only. You have to poll vera or the mios servers for changes. All the mios servers do is tunnel the vera data.

  • Garrett

OK, I see. But I am not only interested in devices state but also in somehting that acually happens. Like sensor is tripped or door lock unlocked. For example HomeSee places everything nicely in a readable log file but I cannot find anything similar for Vera.

Do a search on luup.register_handler()

http://wiki.micasaverde.com/index.php/AlternateEventServer ?

I checked this already but I think it does something completely different, unless its documentation says something I don’t understand

When a certain URL is requested from a web browser or other HTTP get, function_name will be called and whatever string it returns will be returned.
So it does not register a device event handler but HTTP request handler. What I need is to react on device events and call a 3rd party http

I was looking at the link from Quinten and I can clearly read there:

Vera calls MiOS's event servers to report events, like sensor tripped, triggers, etc. MiOS's event servers send out text messages and emails to report these events.

but it might be that it does it only for those triggers that are configured for notifications.

a good one, although I am not sure if it sends everything. might need some experimenting, thanks!

Oops, shouldn’t post early in the morning. I meant luup.variable_watch.

Not sure how well it’ll hold up if you needed to subscribe to a lot of device state variables, but it does well on a small#

[quote=“guessed, post:9, topic:175701”]Oops, shouldn’t post early in the morning. I meant luup.variable_watch.

Not sure how well it’ll hold up if you needed to subscribe to a lot of device state variables, but it does well on a small#[/quote]

That’s a good one, indeed. If I get all devices and variables with devices and learn all categories, then I will be able to subscribe to what I want, but it is still a lot of work. I might need to start by having manually configured triggers with wget and then decide it I want to go any further…

EventServer is indeed only getting those events for which notifications have been set up. So it is an alternative for email messages. By no change it is sending everything what happens in the system, unless each possible event is configured to issue a notification, which is an enormous amount of work.