Hello,
I’m a new user here. I have openhabian installed on an rpi 3 running the latest apt-get upgrade as of 12/30/2016.
I’m having two separate problems with Openhap and the insteonplm binding.
I’m (unfortunately) using the 2245-222 (hub2) hub. My home has 58 insteon devices, mostly switchlinc dimmers but a few other things as well.
My first problem is that the insteonplm binding is not successrul downloading the modem database. It will fail for a very long time (hours), then eventually download a portion of the database, somewhere from 3 to 30 items or so.
Here’s a portion of a log:
02:02:23.886 [INFO ] [g.insteonplm.InsteonPLMActiveBinding] - config: port_0 -> /hub2/xxxxxxx:xxxxxxx@192.168.1.27:25105,poll_time=1000
02:02:23.907 [INFO ] [b.core.service.AbstractActiveService] - InsteonPLM has been started
02:04:18.243 [WARN ] [steonplm.internal.message.MsgFactory] - incoming message does not start with 0x02
02:04:18.246 [WARN ] [ding.insteonplm.internal.driver.Port] - bad data received: incoming message does not start with 0x02
02:04:18.248 [WARN ] [ding.insteonplm.internal.driver.Port] - got bad data back, must assume message was acked.
02:04:24.173 [WARN ] [onplm.internal.device.ModemDBBuilder] - modem database download unsuccessful, restarting!
02:06:24.175 [WARN ] [onplm.internal.device.ModemDBBuilder] - modem database download unsuccessful, restarting!
02:08:24.177 [WARN ] [onplm.internal.device.ModemDBBuilder] - modem database download unsuccessful, restarting!
02:10:24.179 [WARN ] [onplm.internal.device.ModemDBBuilder] - modem database download unsuccessful, restarting!
02:12:23.994 [INFO ] [g.insteonplm.InsteonPLMActiveBinding] - devices: 0 configured, 0 polling, msgs received: 594
It will continue like that for a long time. Always showing a large number of messages received. Once it gets a partial DB download, the message count goes way down and will only be a few every polling cycle unless I go around flipping switches.
I know the hub works fine as I can send curl messages to it to directly turn switches on and off etc. It also works fine with either the insteon app on an ipad or via an Amazon echo.
According to the resolution of bug #4630 ( https://github.com/openhab/openhab/issues/4630 ) I would think this should be functional.
My second question is much more simple. I’m having trouble creating properly formatted things for it.
a near copy of the switch example from the insteonplm wiki results in a “check not null” failure loading the thing.
Switch denLight "den light" { insteonplm="42.32.78:F00.00.02#switch" }
What’s wrong with this format?
Thanks,
Scott
Edit: The download problem was resolved by increasing the ModemDB download timeout. by adding an entry in the insteonplm.cfg file.
modem_db_retry_timeout=240000
The Switches and dimmers needed to be defined as “items”, not “things”.