Author Topic: Tools: openHAB Item file generator  (Read 26780 times)

Offline Buxton

  • Full Member
  • ***
  • Posts: 203
  • Karma: +10/-0
Re: Tools: openHAB Item file generator
« Reply #90 on: December 06, 2018, 07:32:15 pm »
Thanks guys.  Great info here.  The alarm items are just what I need.  I'll need to work out the push/pull for the data, but if I can get openHab to recognize my sensors, I'm 90% of the way there.

Offline guessed

  • Moderator
  • Master Member
  • *****
  • Posts: 5301
  • Karma: +92/-22
  • Release compat is not a bolted-on afterthought
Re: Tools: openHAB Item file generator
« Reply #91 on: December 09, 2018, 11:09:01 pm »
I generated my Items file, and stripped it back to just two Areas (Alarm Partitions) and two Zones.

I've left out the Alarm Panel object, since it's very vendor/implementation specific (mine is a Paradox Security panel), which doesn't tend to house much to be scripted against.

You should be able to use the attached file as a template for creating a representation of the Partitions and Zones in your system.


As a side-note, if you put the MiOS OpenHAB Binding into TRACE logging mode, once it's configured to connect to your Vera (et-al) it'll emit a bunch of startup messages for each item it didn't have a binding for.   These messages also include the details on what the corresponding Item/Binding entry would look like to Bind it ;)

eg.

Code: [Select]
2018-12-09 20:06:03.301 [TRACE] [ab.binding.mios.internal.MiosBinding] - internalPropertyUpdate: NOT BOUND {mios="unit:house,device:462/service/urn:micasaverde-com:serviceId:ZWaveDevice1/Capabilities"}, value=...


ref: https://www.openhab.org/docs/administration/logging.html

Code: [Select]
# openhab-cli console
Logging in as openhab
Password: 

                          __  _____    ____     
  ____  ____  ___  ____  / / / /   |  / __ )     
 / __ \/ __ \/ _ \/ __ \/ /_/ / /| | / __  |
/ /_/ / /_/ /  __/ / / / __  / ___ |/ /_/ /     
\____/ .___/\___/_/ /_/_/ /_/_/  |_/_____/     
    /_/                        2.3.0
                               Release Build   

Hit '<tab>' for a list of available commands
and '[cmd] --help' for help on a specific command.
Hit '<ctrl-d>' or type 'system:shutdown' or 'logout' to shutdown openHAB.

openhab> log:set TRACE org.openhab.binding.mios
openhab> bundle:restart org.openhab.binding.mios

Offline Buxton

  • Full Member
  • ***
  • Posts: 203
  • Karma: +10/-0
Re: Tools: openHAB Item file generator
« Reply #92 on: December 10, 2018, 05:51:34 pm »
Thank you so much.  I'll take a close look this weekend. :)