We have moved at community.getvera.com

Author Topic: Stability. And my current configuration  (Read 2696 times)

Offline torpex77

  • Sr. Newbie
  • *
  • Posts: 46
  • Karma: +4/-1
Stability. And my current configuration
« on: March 11, 2016, 11:46:15 am »
I moved all my automation to OpenHab back in December.

OpenHab has been rock solid.  No flakiness.  No missed events.  No need to restart periodically.  It just keeps on working.

At this point, my Vera handles all the z-wave communication.  I have a restart scheduled every night.

OpenHab handles the automation. 

My UI is mainly through the HomeWave iPhone app.  And a couple of MiniMotes.  Occasionally I'll use the Vera app, but only generally for add/remove/configure type of operations.  I do not use the OpenHab UI, except when I'm testing stuff.

I can certainly see why OpenHab wouldn't be for everyone.  But I'm a very competent programmer and doing the rules was pretty much a breeze.  Even when dealing with code locks, modeling some rules as state machines, etc.

I use multiple instances of the multi-switch plugin to manually trigger rules (like setting my HVAC to "away mode") and to communicate state back from OpenHab in order to display information on the client apps.  I also use the multistring plugin for the same purpose. 

I trigger alerts calling the HomeWave iPhone plugin from OpenHab rules.  And/or send Pushover notifications directly from OpenHab.

I just thought I'd share my configuration and my experience with the Vera and OpenHab combination.  Hope it was helpful or at least informative.

Doug

Offline guessed

  • Moderator
  • Master Member
  • *****
  • Posts: 5301
  • Karma: +92/-22
  • Release compat is not a bolted-on afterthought
Re: Stability. And my current configuration
« Reply #1 on: March 13, 2016, 03:47:19 pm »
Thanks Doug!

The openHAB-Vera Hybrid seems to be a common case, esp using Vera for Z-Wave (where it's fairly decent).  If there are any common Rule snippets you found yourself using, feel free to augment the MiOS Examples page:

    https://github.com/openhab/openhab/wiki/MiOS-Binding-Example

I'm sure there are other users that'll benefit from your samples.

Offline torpex77

  • Sr. Newbie
  • *
  • Posts: 46
  • Karma: +4/-1
Re: Stability. And my current configuration
« Reply #2 on: March 15, 2016, 12:50:04 pm »
  If there are any common Rule snippets you found yourself using, feel free to augment the MiOS Examples page:

    https://github.com/openhab/openhab/wiki/MiOS-Binding-Example

I'm sure there are other users that'll benefit from your samples.

Good idea.  I've got a few interesting things - like the way I use multistring and multiswitch to communicate back and forth.  I'll try to find some time to put some things up.

Doug

Offline torpex77

  • Sr. Newbie
  • *
  • Posts: 46
  • Karma: +4/-1
Re: Stability. And my current configuration
« Reply #3 on: April 04, 2016, 12:28:57 pm »
I haven't forgotten about getting the example up.

I just decided to clean things up a bit...

Which led to me completely refactoring the code I wanted to use as an example...

Which led to me adding a more features...

Anyway, I think I'm almost done.  So I might have something up this week.

Doug

Offline guessed

  • Moderator
  • Master Member
  • *****
  • Posts: 5301
  • Karma: +92/-22
  • Release compat is not a bolted-on afterthought
Re: Stability. And my current configuration
« Reply #4 on: April 25, 2016, 09:50:23 pm »
I haven't forgotten about getting the example up.

I just decided to clean things up a bit...

Which led to me completely refactoring the code I wanted to use as an example...

Which led to me adding a more features...

Anyway, I think I'm almost done.  So I might have something up this week.

How'dya end up with the refactoring?

Offline torpex77

  • Sr. Newbie
  • *
  • Posts: 46
  • Karma: +4/-1
Re: Stability. And my current configuration
« Reply #5 on: April 26, 2016, 12:28:28 pm »
Done.  Been running now for a week or so without issue.  I was out of town last couple of weekends, so no time to write it up. 

But I should have some time now.

Basically, the example I'm going to post uses some OpenHab String items to centralize log message handling across all my rules.  The messages have levels - DEBUG, INFO, WARN, ALERT.   The logging level is also in an OpenHab String item.  I use a multi-switch device on my Vera to allow me to change the logging level from UI7, my phone, etc.  And I also use a two multi-string devices to display the messages on my Vera. 

It's a fairly complex example.  But I do think it's pretty neat and shows two-way communication between OpenHab and MiOS.

Doug

Offline Learic

  • Sr. Newbie
  • *
  • Posts: 25
  • Karma: +0/-1
Re: Stability. And my current configuration
« Reply #6 on: November 14, 2016, 12:27:55 am »
Done.  Been running now for a week or so without issue.  I was out of town last couple of weekends, so no time to write it up. 

But I should have some time now.

Basically, the example I'm going to post uses some OpenHab String items to centralize log message handling across all my rules.  The messages have levels - DEBUG, INFO, WARN, ALERT.   The logging level is also in an OpenHab String item.  I use a multi-switch device on my Vera to allow me to change the logging level from UI7, my phone, etc.  And I also use a two multi-string devices to display the messages on my Vera. 

It's a fairly complex example.  But I do think it's pretty neat and shows two-way communication between OpenHab and MiOS.

Doug

Were you able to document your success so others may follow?

Offline torpex77

  • Sr. Newbie
  • *
  • Posts: 46
  • Karma: +4/-1
Re: Stability. And my current configuration
« Reply #7 on: November 14, 2016, 12:47:37 pm »
Done.  Been running now for a week or so without issue.  I was out of town last couple of weekends, so no time to write it up. 

But I should have some time now.

Basically, the example I'm going to post uses some OpenHab String items to centralize log message handling across all my rules.  The messages have levels - DEBUG, INFO, WARN, ALERT.   The logging level is also in an OpenHab String item.  I use a multi-switch device on my Vera to allow me to change the logging level from UI7, my phone, etc.  And I also use a two multi-string devices to display the messages on my Vera. 

It's a fairly complex example.  But I do think it's pretty neat and shows two-way communication between OpenHab and MiOS.

Doug

Were you able to document your success so others may follow?

My items, rules, etc for my messaging/logging are here: http://forum.micasaverde.com/index.php/topic,37555.0.html

Other than that, I basically followed the standard configuration and setup for OpenHab and the MIOS binding.  I did do some customization of the generated items, but mainly deleting settings I didn't, renaming things, etc. 

Lately I'm been playing around with writing rules in Groovy.  I like that a lot better than xtend.  But right now the future for groovy/javascript/python rules in OpenHab 2.0 is a little murky.  I'm not sure how much time I want to put into that.

Doug