IHC: I shut light - 20sec - light goes back on

Hi,

I’ve just started with OH and I’m running OH2 on Ubuntu 14.04 with IHC Binding. I’ve collected some output id:s form VIS file and I’m able to control few lights. This is interesting! However, seems that I’m doing something wrong.

  • I added Network Binding and connected IHC Item under Things to network:device:192_168_1_3:online
  • I’ve set up Paper, Basic and HABPanel userinterfaces.
  • Turning lights on/off works but 20 seconds after I shut light it turns back on.

On my ihc.sites I have 4 lines like this:
Switch ihc_olohuone_1 { ihc=">0xe55b" }

Can you point me to right direction?

Could you change IHC binding log level to debug (or even trace) from karaf console and post logs here?

log:set DEBUG org.openhab.binding.ihc

Normally, you should bind items as a in/out binding.

Switch ihc_olohuone_1 { ihc="0xe55b" }

Then ihc binding also listening resource updates from ihc controller and update ihc_olohuone_1 item state accordingly when resource state if changed on the controller.

Thanks Pali! Here we go:

openhab> log:clear
openhab> log:display
18:34:00.619 [DEBUG] [nhab.binding.ihc.internal.IhcBinding] - Received update/command (item=‘ihc_ruokatila’, state=‘ON’, class=‘class org.openhab.core.library.types.OnOffType’)
18:34:00.906 [DEBUG] [nhab.binding.ihc.internal.IhcBinding] - Item updated ‘ihc_ruokatila’ succesfully sent
18:34:10.950 [INFO ] [smarthome.event.ItemCommandEvent ] - Item ‘ihc_ruokatila’ received command OFF
18:34:10.958 [DEBUG] [nhab.binding.ihc.internal.IhcBinding] - Received update/command (item=‘ihc_ruokatila’, state=‘OFF’, class=‘class org.openhab.core.library.types.OnOffType’)
18:34:10.961 [INFO ] [marthome.event.ItemStateChangedEvent] - ihc_ruokatila changed from ON to OFF
18:34:10.968 [DEBUG] [nhab.binding.ihc.internal.IhcBinding] - Received update/command (item=‘ihc_ruokatila’, state=‘OFF’, class=‘class org.openhab.core.library.types.OnOffType’)
18:34:11.616 [DEBUG] [nhab.binding.ihc.internal.IhcBinding] - Item updated ‘ihc_ruokatila’ succesfully sent
18:34:12.941 [DEBUG] [nhab.binding.ihc.internal.IhcBinding] - Item updated ‘ihc_ruokatila’ succesfully sent

openhab> log:display
18:34:00.619 [DEBUG] [nhab.binding.ihc.internal.IhcBinding] - Received update/command (item=‘ihc_ruokatila’, state=‘ON’, class=‘class org.openhab.core.library.types.OnOffType’)
18:34:00.906 [DEBUG] [nhab.binding.ihc.internal.IhcBinding] - Item updated ‘ihc_ruokatila’ succesfully sent
18:34:10.950 [INFO ] [smarthome.event.ItemCommandEvent ] - Item ‘ihc_ruokatila’ received command OFF
18:34:10.958 [DEBUG] [nhab.binding.ihc.internal.IhcBinding] - Received update/command (item=‘ihc_ruokatila’, state=‘OFF’, class=‘class org.openhab.core.library.types.OnOffType’)
18:34:10.961 [INFO ] [marthome.event.ItemStateChangedEvent] - ihc_ruokatila changed from ON to OFF
18:34:10.968 [DEBUG] [nhab.binding.ihc.internal.IhcBinding] - Received update/command (item=‘ihc_ruokatila’, state=‘OFF’, class=‘class org.openhab.core.library.types.OnOffType’)
18:34:11.616 [DEBUG] [nhab.binding.ihc.internal.IhcBinding] - Item updated ‘ihc_ruokatila’ succesfully sent
18:34:12.941 [DEBUG] [nhab.binding.ihc.internal.IhcBinding] - Item updated ‘ihc_ruokatila’ succesfully sent
18:35:00.700 [DEBUG] [nhab.binding.ihc.internal.IhcBinding] - Received update/command (item=‘ihc_ruokatila’, state=‘ON’, class=‘class org.openhab.core.library.types.OnOffType’)
18:35:00.701 [INFO ] [marthome.event.ItemStateChangedEvent] - ihc_ruokatila changed from OFF to ON
18:35:01.015 [DEBUG] [nhab.binding.ihc.internal.IhcBinding] - Item updated ‘ihc_ruokatila’ succesfully sent

Is this what you meant?

Seems that somehow IHC is receiving lots of on commands:

18:59:00.900 [DEBUG] [nhab.binding.ihc.internal.IhcBinding] - Item updated ‘ihc_ruokatila’ succesfully sent
19:00:00.661 [DEBUG] [nhab.binding.ihc.internal.IhcBinding] - Received update/command (item=‘ihc_ruokatila’, state=‘ON’, class=‘class org.openhab.core.library.types.OnOffType’)
19:00:00.953 [DEBUG] [nhab.binding.ihc.internal.IhcBinding] - Item updated ‘ihc_ruokatila’ succesfully sent
19:01:00.621 [DEBUG] [nhab.binding.ihc.internal.IhcBinding] - Received update/command (item=‘ihc_ruokatila’, state=‘ON’, class=‘class org.openhab.core.library.types.OnOffType’)
19:01:00.939 [DEBUG] [nhab.binding.ihc.internal.IhcBinding] - Item updated ‘ihc_ruokatila’ succesfully sent
19:02:00.620 [DEBUG] [nhab.binding.ihc.internal.IhcBinding] - Received update/command (item=‘ihc_ruokatila’, state=‘ON’, class=‘class org.openhab.core.library.types.OnOffType’)
19:02:00.978 [DEBUG] [nhab.binding.ihc.internal.IhcBinding] - Item updated ‘ihc_ruokatila’ succesfully sent
19:03:00.620 [DEBUG] [nhab.binding.ihc.internal.IhcBinding] - Received update/command (item=‘ihc_ruokatila’, state=‘ON’, class=‘class org.openhab.core.library.types.OnOffType’)
19:03:00.900 [DEBUG] [nhab.binding.ihc.internal.IhcBinding] - Item updated ‘ihc_ruokatila’ succesfully sent
19:03:53.756 [WARN ] [thome.io.rest.core.item.ItemResource] - Cannot update existing item ‘ihc_ruokatila’, because is not managed.
19:04:00.621 [DEBUG] [nhab.binding.ihc.internal.IhcBinding] - Received update/command (item=‘ihc_ruokatila’, state=‘ON’, class=‘class org.openhab.core.library.types.OnOffType’)
19:04:01.116 [DEBUG] [nhab.binding.ihc.internal.IhcBinding] - Item updated ‘ihc_ruokatila’ succesfully sent
19:05:00.626 [DEBUG] [nhab.binding.ihc.internal.IhcBinding] - Received update/command (item=‘ihc_ruokatila’, state=‘ON’, class=‘class org.openhab.core.library.types.OnOffType’)
19:05:00.936 [DEBUG] [nhab.binding.ihc.internal.IhcBinding] - Item updated ‘ihc_ruokatila’ succesfully sent
19:06:00.621 [DEBUG] [nhab.binding.ihc.internal.IhcBinding] - Received update/command (item=‘ihc_ruokatila’, state=‘ON’, class=‘class org.openhab.core.library.types.OnOffType’)
19:06:00.892 [DEBUG] [nhab.binding.ihc.internal.IhcBinding] - Item updated ‘ihc_ruokatila’ succesfully sent
19:07:00.618 [DEBUG] [nhab.binding.ihc.internal.IhcBinding] - Received update/command (item=‘ihc_ruokatila’, state=‘ON’, class=‘class org.openhab.core.library.types.OnOffType’)
19:07:01.052 [DEBUG] [nhab.binding.ihc.internal.IhcBinding] - Item updated ‘ihc_ruokatila’ succesfully sent

Actually my Paper UI Switch does not work for some reason. Basic UI and HABPanel switches work. However, also Paper UI switch changes status if I change status in Basic/HABPanel.

Do you have some kind openhab rule which control the ihc_ruokatila? Item ihc_ruokatila receive command ones per every minute?

Thanks Pali,

I now removed the “>” and now the switch works normally. I started configuring this today and somehow I thought I should have the “>” included. I’ll now add some more items and then try to configure Apple HOME. I’ve already configured the Samsung TV binding which works nicely, only the ON functionality seems to be missing from my TV.

I’ll play with openhab until I’m more familiar to settings and then install it into a Raspberry and try use siri or similar voice commands. This is interesting!

Best thanks!

Risto

only the ON functionality seems to be missing from my TV

When Samsung TV is turned OFF, Ethernet chip (or wifi) is also shutdown. That’s why TV can’t be turned ON remotely.

Samsung TV binding which works nicely

Well, both IHC and Samsung TV binding is my handiwork, so they definitely should work :wink: