[SOLVED] Insteon - I am OpenHab Stupid

I have been reading and trying to setup up OpenHab2 for about a week now. I only have Insteon devices right now. I have been reading and reading and reading and I am just stuck.

I added the PLM (2413U - port_0=/dev/ttyUSB0 - On a Raspberry Pi 3) to my /etc/openhab2/services/insteonplm.cfg file.
I created a /etc/openhab2/services/insteon.items and added a test switch
----Dimmer stairLight “Stair Light” {insteonplm=“41.B1.99:F00.00.01#dimmer,dimmermax=100”}
41.B1.99 is my switch address. The F00.00.01 I got from the Insteon PLM Binding page on GitHub.com

I have installed insteon-terminal application and my PLM has a table full of devices including the above address.

I created a switch button on HABPanel. I linked it to my “thing” when I press the button the icon switches between active and inactive. But my light never changes.

Can anyone tell me if I am updating the right files? I have tried OpenHabian and Rasbian then installed OpenHAB. I am clearly missing something.

I can’t see anything outright wrong here, but we have very little feedback here to go by.

Is there a way to create a debug log in OpenHab2? If you were using OH1, that’s the first thing I’d ask you to post.

I am using openhab2. I am not sure how to generate logs. I will take a look at the documentation again. Any advice on what file to change (and more helpful would be the location of that file) would be greatly appreciated.

I don’t use OH2, but maybe @ranielsen can give you pointers?

Check out https://github.com/openhab/openhab1-addons/wiki/Insteon-PLM-Binding#trouble-shooting, it was recently updated by @johnofcamas with instructions for OH2.

ok. I had my coffee lol. I realized I was trying to find a OH1 file lol

I added the below to /var/lib/openhab2/etc/org.ops4j.pax.logging.cfg. Then rebooted. Now I also have a “/etc/openhab2/items/org.ops4j.pax.logging.cfg” file. I did a reboot. Hit the HABPANEL and tried to turn the light on an off. Nothing happened with the light… So my next dumb question… According to the settings there should now be a insteonplm.log file??? I searched my file structure and I can’t find that file.

insteonPLM logger configuration

log4j.logger.org.openhab.binding.insteonplm = DEBUG, insteonplm
log4j.additivity.org.openhab.binding.insteonplm = false

File appender - insteonplm.log

log4j.appender.insteonplm=org.apache.log4j.RollingFileAppender
log4j.appender.insteonplm.layout=org.apache.log4j.PatternLayout
log4j.appender.insteonplm.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %l - %m%n
log4j.appender.insteonplm.file=${openhab.logdir}/insteonplm.log
log4j.appender.insteonplm.append=true
log4j.appender.insteonplm.maxFileSize=10MB
log4j.appender.insteonplm.maxBackupIndex=10

Do I have to add something to my “things” folder?

You don’t need anything in your ‘things’ folder, your log files should be in
userdata/logs
Also, you might want to keep an eye on your events.log and openhab.log files for any other clues about what might be happening.

Can you also post your sitemap? Maybe there’s something wrong with the switch configuration. You mention that you linked your switch to your ‘thing’, but Insteon binds to ‘items’, not things

I don’t see anything in my sitemaps folder. Is that created when I add the button in HABPanel? When I said thing I meant the pull down in the HABPanel button edit screen. It says openhab item.

events.log looks like it is doing what it is supposed to. The openhab.log looks like it is trying to tell me something lol.

more /var/log/openhab2/openhab.log
2017-02-14 14:24:51.212 [INFO ] [.dashboard.internal.DashboardService] - Started dashboard at /start
2017-02-14 14:28:44.428 [INFO ] [.dashboard.internal.DashboardService] - Stopped dashboard
2017-02-14 14:30:00.696 [INFO ] [.dashboard.internal.DashboardService] - Started dashboard at /start
2017-02-14 14:34:08.334 [INFO ] [.dashboard.internal.DashboardService] - Stopped dashboard
2017-02-14 14:35:23.240 [INFO ] [.dashboard.internal.DashboardService] - Started dashboard at /start
2017-02-14 14:38:16.198 [INFO ] [ui.habmin.internal.servlet.HABminApp] - Started HABmin servlet at /habmin
2017-02-14 14:38:16.266 [INFO ] [arthome.ui.paper.internal.PaperUIApp] - Started Paper UI at /paperui
2017-02-14 14:38:16.603 [INFO ] [basic.internal.servlet.WebAppServlet] - Started Basic UI at /basicui/app
2017-02-14 14:38:16.689 [INFO ] [panel.internal.HABPanelDashboardTile] - Started HABPanel at /habpanel
2017-02-14 14:38:16.961 [INFO ] [assic.internal.servlet.WebAppServlet] - Started Classic UI at /classicui/app
2017-02-14 14:38:53.181 [INFO ] [nding.insteonplm.InsteonPLMActivator] - Insteon PLM binding has been started.
2017-02-14 14:40:03.232 [INFO ] [g.insteonplm.InsteonPLMActiveBinding] - dead device timeout set to 3000s
2017-02-14 14:40:03.242 [INFO ] [b.core.service.AbstractActiveService] - InsteonPLM has been started
2017-02-14 14:40:03.242 [INFO ] [g.insteonplm.InsteonPLMActiveBinding] - config: port_0 -> /dev/ttyUSB0
2017-02-14 14:40:03.255 [INFO ] [g.insteonplm.InsteonPLMActiveBinding] - devices: 0 configured, 0 polling, msgs received: 0
2017-02-14 14:40:03.297 [INFO ] [g.insteonplm.InsteonPLMActiveBinding] - config: service.pid -> org.openhab.insteonplm
2017-02-14 14:40:03.389 [INFO ] [onplm.internal.driver.SerialIOStream] - successfully opened port /dev/ttyUSB0
2017-02-14 14:40:05.729 [INFO ] [g.insteonplm.InsteonPLMActiveBinding] - modem database has 43 entries!
2017-02-14 14:40:05.732 [INFO ] [g.insteonplm.InsteonPLMActiveBinding] - device 40.AC.FF found in the modem database, but is not configured as an item and the modem controls groups [0x00
,0x07] and responds to groups [0x01].
2017-02-14 14:40:05.733 [INFO ] [g.insteonplm.InsteonPLMActiveBinding] - device 40.AF.67 found in the modem database, but is not configured as an item and the modem controls groups [0x00
,0x07] and responds to groups [0x01].
2017-02-14 14:40:05.734 [INFO ] [g.insteonplm.InsteonPLMActiveBinding] - device 3E.42.D6 found in the modem database, but is not configured as an item and the modem controls groups [0x00
] and responds to groups [0x01].
2017-02-14 14:40:05.735 [INFO ] [g.insteonplm.InsteonPLMActiveBinding] - device 3F.1C.93 found in the modem database, but is not configured as an item and the modem controls groups [0x00
].
2017-02-14 14:40:05.736 [INFO ] [g.insteonplm.InsteonPLMActiveBinding] - device 03.19.0B found in the modem database, but is not configured as an item and the modem controls groups [0x00
] and responds to groups [0x01].
2017-02-14 14:40:05.737 [INFO ] [g.insteonplm.InsteonPLMActiveBinding] - device 39.3E.63 found in the modem database, but is not configured as an item and the modem controls groups [0x00
] and responds to groups [0xEF,0x01,0x02,0x03,0x04].
2017-02-14 14:40:05.738 [INFO ] [g.insteonplm.InsteonPLMActiveBinding] - device 3E.39.A4 found in the modem database, but is not configured as an item and the modem controls groups [0x00
,0x07] and responds to groups [0x01].
2017-02-14 14:40:05.739 [INFO ] [g.insteonplm.InsteonPLMActiveBinding] - device 3E.41.03 found in the modem database, but is not configured as an item and the modem controls groups [0x00
,0x07] and responds to groups [0x01].
2017-02-14 14:40:05.740 [INFO ] [g.insteonplm.InsteonPLMActiveBinding] - device 3E.3F.C0 found in the modem database, but is not configured as an item and the modem controls groups [0x00
,0x07] and responds to groups [0x01].
2017-02-14 14:40:05.741 [INFO ] [g.insteonplm.InsteonPLMActiveBinding] - device 40.A3.66 found in the modem database, but is not configured as an item and the modem controls groups [0x00
] and responds to groups [0x01].
2017-02-14 14:40:05.742 [INFO ] [g.insteonplm.InsteonPLMActiveBinding] - device 3D.E2.67 found in the modem database, but is not configured as an item and the modem controls groups [0x00
] and responds to groups [0x01].
2017-02-14 14:40:05.743 [INFO ] [g.insteonplm.InsteonPLMActiveBinding] - device 3F.1C.22 found in the modem database, but is not configured as an item and the modem controls groups [0x00
].

Let’s back up just a bit. The HABPanel is one way to configure UI to interact with your items. Another way is to create a ‘sitemap’ file (see http://docs.openhab.org/configuration/sitemaps.html)

You should definitely follow the instructions there, create a sitemap, and access it through the “Basic UI”

Based on your ‘items’ definition

Dimmer stairLight "Stair Light" {insteonplm="41.B1.99:F00.00.01#dimmer,dimmermax=100"}

Your sitemap can look something like this:

sitemap default label="Main" {
    Switch item=stairLight
}

or, as a slider since it’s a dimmer

sitemap default label="Main" {
    Slider item=stairLight
}

If you have an android/ios device you can also access your sitemap UI through the openHAB app as well

1 Like

I created a test.sitemap file and added the slider one you recommend. I see this in my logs.

tail -75 /var/log/openhab2/openhab.log
2017-02-14 16:23:32.300 [ERROR] [ding.insteonplm.internal.driver.Port] - reader thread exiting!
2017-02-14 16:23:32.433 [WARN ] [nding.insteonplm.InsteonPLMActivator] - Insteon PLM binding has been stopped.
2017-02-14 16:23:32.464 [INFO ] [panel.internal.HABPanelDashboardTile] - Stopped HABPanel
2017-02-14 16:23:32.518 [INFO ] [ui.habmin.internal.servlet.HABminApp] - Stopped HABmin servlet
2017-02-14 16:23:32.572 [INFO ] [arthome.ui.paper.internal.PaperUIApp] - Stopped Paper UI
2017-02-14 16:23:32.602 [INFO ] [assic.internal.servlet.WebAppServlet] - Stopped Classic UI
2017-02-14 16:23:32.733 [INFO ] [basic.internal.servlet.WebAppServlet] - Stopped Basic UI
2017-02-14 16:23:32.901 [INFO ] [.dashboard.internal.DashboardService] - Stopped dashboard
2017-02-14 16:24:41.225 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'insteon.items’
2017-02-14 16:24:47.685 [INFO ] [.dashboard.internal.DashboardService] - Started dashboard at /start
2017-02-14 16:24:48.812 [INFO ] [basic.internal.servlet.WebAppServlet] - Started Basic UI at /basicui/app
2017-02-14 16:24:49.148 [INFO ] [assic.internal.servlet.WebAppServlet] - Started Classic UI at /classicui/app
2017-02-14 16:24:49.474 [INFO ] [arthome.ui.paper.internal.PaperUIApp] - Started Paper UI at /paperui
2017-02-14 16:24:49.734 [INFO ] [ui.habmin.internal.servlet.HABminApp] - Started HABmin servlet at /habmin
2017-02-14 16:24:50.488 [INFO ] [panel.internal.HABPanelDashboardTile] - Started HABPanel at /habpanel
2017-02-14 16:24:50.517 [INFO ] [nding.insteonplm.InsteonPLMActivator] - Insteon PLM binding has been started.
2017-02-14 16:24:50.658 [INFO ] [g.insteonplm.InsteonPLMActiveBinding] - dead device timeout set to 3000s
2017-02-14 16:24:50.684 [INFO ] [b.core.service.AbstractActiveService] - InsteonPLM has been started
2017-02-14 16:24:50.684 [INFO ] [g.insteonplm.InsteonPLMActiveBinding] - config: port_0 -> /dev/ttyUSB0
2017-02-14 16:24:50.715 [INFO ] [g.insteonplm.InsteonPLMActiveBinding] - devices: 0 configured, 0 polling, msgs received: 0
2017-02-14 16:24:50.773 [INFO ] [g.insteonplm.InsteonPLMActiveBinding] - config: service.pid -> org.openhab.insteonplm
2017-02-14 16:24:51.010 [INFO ] [onplm.internal.driver.SerialIOStream] - successfully opened port /dev/ttyUSB0
2017-02-14 16:24:53.370 [INFO ] [g.insteonplm.InsteonPLMActiveBinding] - modem database has 43 entries!
2017-02-14 16:24:53.372 [WARN ] [g.insteonplm.InsteonPLMActiveBinding] - device 41.B1.99 not found in the modem database. Did you forget to link?
2017-02-14 16:24:53.381 [INFO ] [g.insteonplm.InsteonPLMActiveBinding] - device 40.AC.FF found in the modem database, but is not configured as an item and the modem controls groups [0x00,0x07] and responds to groups [0x01].
2017-02-14 16:24:53.382 [INFO ] [g.insteonplm.InsteonPLMActiveBinding] - device 40.AF.67 found in the modem database, but is not configured as an item and the modem controls groups [0x00,0x07] and responds to groups [0x01].
2017-02-14 16:24:53.383 [INFO ] [g.insteonplm.InsteonPLMActiveBinding] - device 3E.42.D6 found in the modem database, but is not configured as an item and the modem controls groups [0x00] and responds to groups [0x01].
2017-02-14 16:24:53.384 [INFO ] [g.insteonplm.InsteonPLMActiveBinding] - device 3F.1C.93 found in the modem database, but is not configured as an item and the modem controls groups [0x00].
2017-02-14 16:24:53.385 [INFO ] [g.insteonplm.InsteonPLMActiveBinding] - device 03.19.0B found in the modem database, but is not configured as an item and the modem controls groups [0x00] and responds to groups [0x01].
2017-02-14 16:24:53.386 [INFO ] [g.insteonplm.InsteonPLMActiveBinding] - device 39.3E.63 found in the modem database, but is not configured as an item and the modem controls groups [0x00] and responds to groups [0xEF,0x01,0x02,0x03,0x04].
2017-02-14 16:24:53.387 [INFO ] [g.insteonplm.InsteonPLMActiveBinding] - device 3E.39.A4 found in the modem database, but is not configured as an item and the modem controls groups [0x00,0x07] and responds to groups [0x01].
2017-02-14 16:24:53.388 [INFO ] [g.insteonplm.InsteonPLMActiveBinding] - device 3E.41.03 found in the modem database, but is not configured as an item and the modem controls groups [0x00,0x07] and responds to groups [0x01].
2017-02-14 16:24:53.389 [INFO ] [g.insteonplm.InsteonPLMActiveBinding] - device 3E.3F.C0 found in the modem database, but is not configured as an item and the modem controls groups [0x00,0x07] and responds to groups [0x01].
2017-02-14 16:24:53.390 [INFO ] [g.insteonplm.InsteonPLMActiveBinding] - device 40.A3.66 found in the modem database, but is not configured as an item and the modem controls groups [0x00] and responds to groups [0x01].
2017-02-14 16:24:53.391 [INFO ] [g.insteonplm.InsteonPLMActiveBinding] - device 3D.E2.67 found in the modem database, but is not configured as an item and the modem controls groups [0x00] and responds to groups [0x01].
2017-02-14 16:24:53.392 [INFO ] [g.insteonplm.InsteonPLMActiveBinding] - device 3F.1C.22 found in the modem database, but is not configured as an item and the modem controls groups [0x00].
2017-02-14 16:24:53.393 [INFO ] [g.insteonplm.InsteonPLMActiveBinding] - device 40.BF.7E found in the modem database, but is not configured as an item and the modem controls groups [0x00,0x07] and responds to groups [0x01].
2017-02-14 16:24:53.393 [INFO ] [g.insteonplm.InsteonPLMActiveBinding] - device 3E.39.F1 found in the modem database, but is not configured as an item and the modem controls groups [0x00,0x07] and responds to groups [0x01].
2017-02-14 16:24:53.394 [INFO ] [g.insteonplm.InsteonPLMActiveBinding] - device 40.C2.1C found in the modem database, but is not configured as an item and the modem controls groups [0x00,0x07] and responds to groups [0x01].
2017-02-14 16:24:53.395 [INFO ] [g.insteonplm.InsteonPLMActiveBinding] - device 3E.43.7B found in the modem database, but is not configured as an item and the modem controls groups [0x00] and responds to groups [0x01].
2017-02-14 16:24:53.396 [INFO ] [g.insteonplm.InsteonPLMActiveBinding] - device 40.B1.B2 found in the modem database, but is not configured as an item and the modem controls groups [0x00,0x07] and responds to groups [0x01].
2017-02-14 16:24:53.397 [INFO ] [g.insteonplm.InsteonPLMActiveBinding] - device 40.9F.1E found in the modem database, but is not configured as an item and the modem controls groups [0x00,0x07] and responds to groups [0x01].
2017-02-14 16:24:53.398 [INFO ] [g.insteonplm.InsteonPLMActiveBinding] - device 40.BC.58 found in the modem database, but is not configured as an item and the modem controls groups [0x00] and responds to groups [0x01].
2017-02-14 16:24:53.399 [INFO ] [g.insteonplm.InsteonPLMActiveBinding] - device 3E.43.40 found in the modem database, but is not configured as an item and the modem controls groups [0x00] and responds to groups [0x01].
2017-02-14 16:24:53.400 [INFO ] [g.insteonplm.InsteonPLMActiveBinding] - device 3E.42.5E found in the modem database, but is not configured as an item and the modem controls groups [0x00,0x07] and responds to groups [0x01].
2017-02-14 16:24:53.401 [INFO ] [g.insteonplm.InsteonPLMActiveBinding] - device 40.C3.40 found in the modem database, but is not configured as an item and the modem controls groups [0x00,0x07] and responds to groups [0x01].
2017-02-14 16:24:53.403 [INFO ] [g.insteonplm.InsteonPLMActiveBinding] - device 40.BD.93 found in the modem database, but is not configured as an item and the modem controls groups [0x00,0x07] and responds to groups [0x01].
2017-02-14 16:24:53.404 [INFO ] [g.insteonplm.InsteonPLMActiveBinding] - device 40.A4.58 found in the modem database, but is not configured as an item and the modem controls groups [0x00,0x07] and responds to groups [0x01].
2017-02-14 16:24:53.405 [INFO ] [g.insteonplm.InsteonPLMActiveBinding] - device 40.BF.54 found in the modem database, but is not configured as an item and the modem controls groups [0x00] and responds to groups [0x01].
2017-02-14 16:24:53.406 [INFO ] [g.insteonplm.InsteonPLMActiveBinding] - device 06.2D.36 found in the modem database, but is not configured as an item and the modem controls groups [0x00] and responds to groups [0x01].
2017-02-14 16:24:53.407 [INFO ] [g.insteonplm.InsteonPLMActiveBinding] - device 40.A2.0E found in the modem database, but is not configured as an item and the modem controls groups [0x00] and responds to groups [0x01].
2017-02-14 16:24:53.408 [INFO ] [g.insteonplm.InsteonPLMActiveBinding] - device 40.C1.8B found in the modem database, but is not configured as an item and the modem controls groups [0x00] and responds to groups [0x01].
2017-02-14 16:24:53.409 [INFO ] [g.insteonplm.InsteonPLMActiveBinding] - device 40.C1.CB found in the modem database, but is not configured as an item and the modem controls groups [0x00,0x07] and responds to groups [0x01].
2017-02-14 16:24:53.409 [INFO ] [g.insteonplm.InsteonPLMActiveBinding] - device 40.A3.6E found in the modem database, but is not configured as an item and the modem controls groups [0x00] and responds to groups [0x01].
2017-02-14 16:24:53.410 [INFO ] [g.insteonplm.InsteonPLMActiveBinding] - device 3E.43.0F found in the modem database, but is not configured as an item and the modem controls groups [0x00,0x07] and responds to groups [0x01].
2017-02-14 16:24:53.411 [INFO ] [g.insteonplm.InsteonPLMActiveBinding] - device 40.BC.AD found in the modem database, but is not configured as an item and the modem controls groups [0x00] and responds to groups [0x01].
2017-02-14 16:24:53.411 [INFO ] [g.insteonplm.InsteonPLMActiveBinding] - device 3E.40.80 found in the modem database, but is not configured as an item and the modem controls groups [0x00,0x07] and responds to groups [0x01].
2017-02-14 16:24:53.412 [INFO ] [g.insteonplm.InsteonPLMActiveBinding] - device 44.08.D3 found in the modem database, but is not configured as an item and the modem controls groups [0x00,0x07] and responds to groups [0x01].
2017-02-14 16:24:53.413 [INFO ] [g.insteonplm.InsteonPLMActiveBinding] - device 01.0A.93 found in the modem database, but is not configured as an item and the modem controls groups [0xF2,0xF3,0xF4,0xF5,0xF6,0xF7,0xF8,0x00] and responds to groups [0x01,0x03,0x04,0x05,0x06].
2017-02-14 16:24:53.413 [INFO ] [g.insteonplm.InsteonPLMActiveBinding] - device 00.CB.CE found in the modem database, but is not configured as an item and the modem controls groups [0x00] and responds to groups [0x01].
2017-02-14 16:24:53.414 [INFO ] [g.insteonplm.InsteonPLMActiveBinding] - device 3E.41.66 found in the modem database, but is not configured as an item and the modem controls groups [0x00,0x07] and responds to groups [0x01].
2017-02-14 16:24:53.415 [INFO ] [g.insteonplm.InsteonPLMActiveBinding] - device 40.B1.99 found in the modem database, but is not configured as an item and the modem controls groups [0x00,0x07] and responds to groups [0x01].
2017-02-14 16:24:53.415 [INFO ] [g.insteonplm.InsteonPLMActiveBinding] - device 40.BE.86 found in the modem database, but is not configured as an item and the modem controls groups [0x00,0x07] and responds to groups [0x01].
2017-02-14 16:24:53.416 [INFO ] [g.insteonplm.InsteonPLMActiveBinding] - device 03.1B.00 found in the modem database, but is not configured as an item and the modem controls groups [0x00,0x07] and responds to groups [0x01].
2017-02-14 16:24:53.417 [INFO ] [g.insteonplm.InsteonPLMActiveBinding] - device 3E.39.54 found in the modem database, but is not configured as an item and the modem controls groups [0x00] and responds to groups [0x01].
2017-02-14 16:24:53.417 [INFO ] [g.insteonplm.InsteonPLMActiveBinding] - device 40.B8.75 found in the modem database, but is not configured as an item and the modem controls groups [0x00] and responds to groups [0x01].
2017-02-14 16:24:56.535 [INFO ] [g.insteonplm.InsteonPLMActiveBinding] - Item: stairLight got command ON
2017-02-14 16:24:56.542 [INFO ] [onplm.internal.device.CommandHandler] - LightOnOffCommandHandler: sent msg to switch 41.B1.99 to on
2017-02-14 16:24:56.543 [INFO ] [onplm.internal.device.CommandHandler] - Sending message to 41.B1.99
2017-02-14 16:25:05.125 [INFO ] [g.insteonplm.InsteonPLMActiveBinding] - Item: stairLight got command OFF
2017-02-14 16:25:05.132 [INFO ] [onplm.internal.device.CommandHandler] - LightOnOffCommandHandler: sent msg to switch 41.B1.99 off
2017-02-14 16:25:05.134 [INFO ] [onplm.internal.device.CommandHandler] - Sending message to 41.B1.99
2017-02-14 16:25:05.779 [INFO ] [g.insteonplm.InsteonPLMActiveBinding] - Item: stairLight got command ON
2017-02-14 16:25:05.780 [INFO ] [onplm.internal.device.CommandHandler] - LightOnOffCommandHandler: sent msg to switch 41.B1.99 to on
2017-02-14 16:25:05.782 [INFO ] [onplm.internal.device.CommandHandler] - Sending message to 41.B1.99

I see device 41.B1.99 not found in the modem database. Did you forget to link?

I swear it was linked. I will try a different dimmer

2017-02-14 16:24:56.535 [INFO ] [g.insteonplm.InsteonPLMActiveBinding] - Item: stairLight got command ON
2017-02-14 16:24:56.542 [INFO ] [onplm.internal.device.CommandHandler] - LightOnOffCommandHandler: sent msg to switch 41.B1.99 to on
2017-02-14 16:24:56.543 [INFO ] [onplm.internal.device.CommandHandler] - Sending message to 41.B1.99
2017-02-14 16:25:05.125 [INFO ] [g.insteonplm.InsteonPLMActiveBinding] - Item: stairLight got command OFF
2017-02-14 16:25:05.132 [INFO ] [onplm.internal.device.CommandHandler] - LightOnOffCommandHandler: sent msg to switch 41.B1.99 off
2017-02-14 16:25:05.134 [INFO ] [onplm.internal.device.CommandHandler] - Sending message to 41.B1.99
2017-02-14 16:25:05.779 [INFO ] [g.insteonplm.InsteonPLMActiveBinding] - Item: stairLight got command ON
2017-02-14 16:25:05.780 [INFO ] [onplm.internal.device.CommandHandler] - LightOnOffCommandHandler: sent msg to switch 41.B1.99 to on

seems to me that your item is configured, not sure why the first message… perhaps Insteon PLM folks can help with that.

Did you find your insteon log file?

Whoo hoo.

I got a light working. I guess I need to figure out what those sitemap files are for and also I am apparently missing a link.

Thank you everyone. I will keep at it.

1 Like

Fantastic!

Ok so the sitemap files are for the OpenHab App. Does anyone know how to expose my new light to apple’s home kit? I added the homekit binding and configured it. My phone sees my openhab server in the Home app. I can link it just fine. However I don’t see any devices.

Joshua,

This stuff is complicated, and OH is difficult to understand, even for people who have been using it for years. OH2 is weirdly even more complicated to understand than OH1 (due, I believe to well intentioned attempts to make it simpler). So, so far you are doing well, most of us feel OpenHab Stupid quite frequently.

You can get homekit to work with insteon. You have to add the homekit “tags” to the items lines ([“Switchable”] or [“Lighting”]). I have had little success adding these tags to my existing insteon items file, but then I have 68 items, and the placement of the tags seems to matter (ie before the binding, after everything else).

I finally gave up and created a new homekit.items file, where I duplicated the items I wanted homekit to control (but with no binding attached, and with _HK as the suffix to the unique name.

So if your items file looks like this:

Dimmer stairLight "Stair Light" {insteonplm="41.B1.99:F00.00.01#dimmer,dimmermax=100"}

The homekit version should look like this:

Dimmer stairLight "Stair Light" ["Lighting"]  {insteonplm="41.B1.99:F00.00.01#dimmer,dimmermax=100"}

You don’t need the dimmermax=100 by the way.

I could not get this to work, so I made an items file like this (in addition to the regular insteon.items file)

Dimmer stairLight_HK "Stair Light" (homekit) ["Lighting"]

Then I have a complicated rule that just copies the status for the _HK item to the real item, and vice versa. I don’t know why I had to do this, but adding the homekit tags to the insteon items, caused the insteon binding to fail every time. (homekit) is just a group that I use for my rule to operate on.

This does have the added advantage that you can call the homekit items whatever you want, they do not have to be whatever you called them in the .items file (ie “Stair Light” could be “Landing Light” in homekit).

I actually use this with Amazon Echo, as it’s much easier to use than Apples homekit, but it should work for both (I have had it working with both). It’s the same set up, you have to add “hue emulation” to get Alexa to work, I do have Google home working also, but Alexa is by far the best I’ve found so far.

Good luck! the path is hard at first, but when you get it working it’s worth all the pain.

1 Like

It was challenging to get everything working. When I did it was like a huge win. Like I just conquered Troy lol. My kids were like why are you so happy :slight_smile:

So at this moment I have it working on a touch panel (raspberry pi touch panel using habpanel) and I just need to mount them in the wall. But the home kit I think would be good too. I really want to use the home kit presence feature to open the garage door when I come around the corner. It can’t hurt the resale value either. Since very few people have the patience to do this.

So what does [] mean in the item? Does that mean look at home kit? Does that only work after adding the homekit binding or does that have a more universal meaning?