# insteonPLM not registering fast ON/OFF

**URL:** <https://community.openhab.org/t/insteonplm-not-registering-fast-on-off/20703>\
**Category:** Bindings\
**Tags:** insteonplm\
**Created:** [January 19, 2017, 11:18pm UTC](https://community.openhab.org/t/insteonplm-not-registering-fast-on-off/20703 "2017-01-19T23:18:26Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![johnofcamas](https://community.openhab.org/user_avatar/community.openhab.org/johnofcamas/32/6854_2.png) [@johnofcamas](https://community.openhab.org/u/johnofcamas)\
**Post date:** [January 19, 2017, 11:18pm UTC](https://community.openhab.org/t/insteonplm-not-registering-fast-on-off/20703/1 "2017-01-19T23:18:26Z")

</div>

I have followed the instructions pretty faithfully for registering a switch as both a standard item, and a ‘fastonoff’ item, but the fastonoff item does not seem to trigger when I double tap on the switch.

Here is the .items

```auto
Switch OfficeLight "Office Light" <light> (office) ["Lighting"] {insteonplm="1B.41.E8:F00.00.02#switch"}
Switch OfficeLightFastOnOff "Office Light (fast on/off)" <light> {insteonplm="1B.41.E8:F00.00.02#fastonoff"}

```

I see the following from the logs:  
(openhab.log)

```auto
2017-01-19 15:13:55.173 [INFO] [onplm.internal.device.MessageHandler] - LightOnSwitchHandler: device 1B.41.E8 was switched on FAST.
2017-01-19 15:13:55.173 [INFO] [onplm.internal.device.MessageHandler] - LightOnSwitchHandler: device 1B.41.E8 was switched on FAST.

```

and from events.log

```auto
2017-01-19 15:13:55.174 [ItemStateChangedEvent] - OfficeLight changed from OFF to ON

```

---

<div class="post-metadata">

**Author:** ![ranielsen](https://community.openhab.org/letter_avatar_proxy/v4/letter/r/c5a1d2/32.png) [@ranielsen](https://community.openhab.org/u/ranielsen)\
**Post date:** [January 20, 2017, 1:05am UTC](https://community.openhab.org/t/insteonplm-not-registering-fast-on-off/20703/2 "2017-01-20T01:05:25Z")

</div>

I’m using OH1 and i have the folowing:

.items file:

```
Dimmer bStairsLights2 "Basement Stairs Light 2" {insteonplm="23.9F.AD:F00.00.11#dimmer,related=22.F8.74"}
Switch bStairsLights2Fast "Basement Stairs Light 2 Fast On/Off" {insteonplm="23.9F.AD:F00.00.11#fastonoff,related=22.F8.74"}

```

openhab.log:

```
2017-01-19 18:47:48.147 [INFO] [.o.b.i.i.device.MessageHandler] - LightOffSwitchHandler: device 23.9F.AD was switched off FAST.
2017-01-19 18:47:48.151 [INFO] [.o.b.i.i.device.MessageHandler] - LightOffDimmerHandler: device 23.9F.AD was turned off FAST.

```

events.log

```
2017-01-19 18:47:48 - bStairsLights2Fast state updated to OFF
2017-01-19 18:47:48 - bStairsLights2 state updated to OFF

```

It looks like you are using OH2, the little I played around with OH2, it appears it doesn’t send duplicate events. What happens if you trigger a fast off then try a fast on?

---

<div class="post-metadata">

**Author:** ![johnofcamas](https://community.openhab.org/user_avatar/community.openhab.org/johnofcamas/32/6854_2.png) [@johnofcamas](https://community.openhab.org/u/johnofcamas)\
**Post date:** [January 20, 2017, 1:12am UTC](https://community.openhab.org/t/insteonplm-not-registering-fast-on-off/20703/3 "2017-01-20T01:12:28Z")

</div>

Yes, I’m using OH2  
It’s a bit erratic, but the most common scenario when I ‘fast off’ then ‘fast on’ is:

```auto
2017-01-19 17:10:22.199 [INFO] [onplm.internal.device.MessageHandler] - LightOffSwitchHandler: device 1B.41.E8 was switched off FAST.
2017-01-19 17:10:22.199 [INFO] [onplm.internal.device.MessageHandler] - LightOffSwitchHandler: device 1B.41.E8 was switched off FAST.

```

```auto
2017-01-19 17:10:22.200 [ItemStateChangedEvent] - OfficeLightFastOnOff changed from ON to OFF

```

Oddly, when I double tap ‘on’, it was never logged

---

<div class="post-metadata">

**Author:** ![ranielsen](https://community.openhab.org/letter_avatar_proxy/v4/letter/r/c5a1d2/32.png) [@ranielsen](https://community.openhab.org/u/ranielsen)\
**Post date:** [January 20, 2017, 1:18am UTC](https://community.openhab.org/t/insteonplm-not-registering-fast-on-off/20703/4 "2017-01-20T01:18:58Z")

</div>

This looks like some sort of different behavior between OH1 and OH2. If you enabled debug logging of InsteonPLM, this would give more detailed info on what the binding is doing. I have no idea on how to enable debugging with OH2.

---

<div class="post-metadata">

**Author:** ![johnofcamas](https://community.openhab.org/user_avatar/community.openhab.org/johnofcamas/32/6854_2.png) [@johnofcamas](https://community.openhab.org/u/johnofcamas)\
**Post date:** [January 20, 2017, 1:25am UTC](https://community.openhab.org/t/insteonplm-not-registering-fast-on-off/20703/5 "2017-01-20T01:25:42Z")

</div>

How can I enable logging in insteonPLM?

---

<div class="post-metadata">

**Author:** ![ranielsen](https://community.openhab.org/letter_avatar_proxy/v4/letter/r/c5a1d2/32.png) [@ranielsen](https://community.openhab.org/u/ranielsen)\
**Post date:** [January 20, 2017, 1:30am UTC](https://community.openhab.org/t/insteonplm-not-registering-fast-on-off/20703/6 "2017-01-20T01:30:50Z")

</div>

The instructions for OH1 are at [Insteon PLM Binding · openhab/openhab1-addons Wiki · GitHub](https://github.com/openhab/openhab1-addons/wiki/Insteon-PLM-Binding#trouble-shooting)

Logging works differently with OH2.

---

<div class="post-metadata">

**Author:** ![rlkoshak](https://community.openhab.org/user_avatar/community.openhab.org/rlkoshak/32/75251_2.png) [@rlkoshak](https://community.openhab.org/u/rlkoshak)\
**Post date:** [January 20, 2017, 5:12pm UTC](https://community.openhab.org/t/insteonplm-not-registering-fast-on-off/20703/7 "2017-01-20T17:12:54Z")

</div>

See

> [@Taming openHAB 2 Logging](https://community.openhab.org/t/taming-openhab-2-logging/13976):
>
> This post is OBE. See [Log4j2 Sample Config](https://community.openhab.org/t/log4j2-sample-config/33284) \*\*NOTE: With the build from November 10 #579 the location of all the files in runtime/karaf/etc have moved to userdata/etc. The instructions below have been updated accordingly. If you are running an older verison of openHAB (anything older than build #579), the location of the file is runtime/karaf/etc. As almost everyone is aware, openHAB 2 uses a completely different logging library and approach to logging than openHAB 1.x does, replacing logback wi…

and

[http://docs.openhab.org/administration/logging.html](http://docs.openhab.org/administration/logging.html)

---

<div class="post-metadata">

**Author:** ![johnofcamas](https://community.openhab.org/user_avatar/community.openhab.org/johnofcamas/32/6854_2.png) [@johnofcamas](https://community.openhab.org/u/johnofcamas)\
**Post date:** [January 21, 2017, 12:39am UTC](https://community.openhab.org/t/insteonplm-not-registering-fast-on-off/20703/8 "2017-01-21T00:39:52Z")

</div>

OK, I’ve turned on logging… and _WOW_ is it verbose. Please advise if there is something I should be looking for (wrt FASTON)

Here is the log timestamped from when I hit a double tap on a switch:

```auto
2017-01-20 16:38:15 org.openhab.binding.insteonplm.InsteonPLMActiveBinding$PortListener.msg(InsteonPLMActiveBinding.java:591) - got msg: IN:Cmd:0x50|fromAddress:1B.41.E8|toAddress:00.00.01|messageFlags:0xC7=ALL_LINK_BROADCAST:3:1|command1:0x12|command2:0x00|
2017-01-20 16:38:15 org.openhab.binding.insteonplm.internal.device.MessageDispatcher.handleAllLinkMessage(MessageDispatcher.java:75) - all link message: IN:Cmd:0x50|fromAddress:1B.41.E8|toAddress:00.00.01|messageFlags:0xC7=ALL_LINK_BROADCAST:3:1|command1:0x12|command2:0x00|
2017-01-20 16:38:15 org.openhab.binding.insteonplm.internal.device.MessageDispatcher.handleAllLinkMessage(MessageDispatcher.java:77) - all link message is no duplicate: true/true
2017-01-20 16:38:15 org.openhab.binding.insteonplm.internal.device.MessageDispatcher.handleAllLinkMessage(MessageDispatcher.java:79) - 1B.41.E8:FastOnOff->LightOnSwitchHandler cmd1:0x12 group 1/-1:IN:Cmd:0x50|fromAddress:1B.41.E8|toAddress:00.00.01|messageFlags:0xC7=ALL_LINK_BROADCAST:3:1|command1:0x12|command2:0x00|
2017-01-20 16:38:15 org.openhab.binding.insteonplm.internal.device.MessageHandler$LightOnSwitchHandler.handleMessage(MessageHandler.java:406) - LightOnSwitchHandler: device 1B.41.E8 was switched on FAST.
2017-01-20 16:38:15 org.openhab.binding.insteonplm.internal.device.DeviceFeature.publish(DeviceFeature.java:321) - 1B.41.E8:FastOnOff publishing: ON
2017-01-20 16:38:15 org.openhab.binding.insteonplm.internal.device.MessageDispatcher.handleAllLinkMessage(MessageDispatcher.java:75) - all link message: IN:Cmd:0x50|fromAddress:1B.41.E8|toAddress:00.00.01|messageFlags:0xC7=ALL_LINK_BROADCAST:3:1|command1:0x12|command2:0x00|
2017-01-20 16:38:15 org.openhab.binding.insteonplm.internal.device.MessageDispatcher.handleAllLinkMessage(MessageDispatcher.java:77) - all link message is no duplicate: true/true
2017-01-20 16:38:15 org.openhab.binding.insteonplm.internal.device.MessageDispatcher.handleAllLinkMessage(MessageDispatcher.java:79) - 1B.41.E8:GenericSwitch->LightOnSwitchHandler cmd1:0x12 group 1/1:IN:Cmd:0x50|fromAddress:1B.41.E8|toAddress:00.00.01|messageFlags:0xC7=ALL_LINK_BROADCAST:3:1|command1:0x12|command2:0x00|
2017-01-20 16:38:15 org.openhab.binding.insteonplm.internal.device.MessageHandler$LightOnSwitchHandler.handleMessage(MessageHandler.java:406) - LightOnSwitchHandler: device 1B.41.E8 was switched on FAST.
2017-01-20 16:38:15 org.openhab.binding.insteonplm.internal.device.DeviceFeature.publish(DeviceFeature.java:321) - 1B.41.E8:GenericSwitch publishing: ON
2017-01-20 16:38:15 org.openhab.binding.insteonplm.internal.device.DeviceFeature.publish(DeviceFeature.java:321) - 1B.41.E8:GenericLastTime publishing: 2017-01-20T16:38:15

```

And, here is the complete ‘events’ log:

```auto
2017-01-20 16:38:15.941 [InsteonPLMActiveBinding] - got msg: IN:Cmd:0x50|fromAddress:1B.41.E8|toAddress:00.00.01|messageFlags:0xC7=ALL_LINK_BROADCAST:3:1|command1:0x12|command2:0x00|
2017-01-20 16:38:15.942 [MessageDispatcher] - all link message: IN:Cmd:0x50|fromAddress:1B.41.E8|toAddress:00.00.01|messageFlags:0xC7=ALL_LINK_BROADCAST:3:1|command1:0x12|command2:0x00|
2017-01-20 16:38:15.942 [MessageDispatcher] - all link message is no duplicate: true/true
2017-01-20 16:38:15.942 [MessageDispatcher] - 1B.41.E8:FastOnOff->LightOnSwitchHandler cmd1:0x12 group 1/-1:IN:Cmd:0x50|fromAddress:1B.41.E8|toAddress:00.00.01|messageFlags:0xC7=ALL_LINK_BROADCAST:3:1|command1:0x12|command2:0x00|
2017-01-20 16:38:15.942 [MessageHandler] - LightOnSwitchHandler: device 1B.41.E8 was switched on FAST.
2017-01-20 16:38:15.942 [DeviceFeature] - 1B.41.E8:FastOnOff publishing: ON
2017-01-20 16:38:15.942 [MessageDispatcher] - all link message: IN:Cmd:0x50|fromAddress:1B.41.E8|toAddress:00.00.01|messageFlags:0xC7=ALL_LINK_BROADCAST:3:1|command1:0x12|command2:0x00|
2017-01-20 16:38:15.942 [MessageDispatcher] - all link message is no duplicate: true/true
2017-01-20 16:38:15.942 [MessageDispatcher] - 1B.41.E8:GenericSwitch->LightOnSwitchHandler cmd1:0x12 group 1/1:IN:Cmd:0x50|fromAddress:1B.41.E8|toAddress:00.00.01|messageFlags:0xC7=ALL_LINK_BROADCAST:3:1|command1:0x12|command2:0x00|
2017-01-20 16:38:15.943 [MessageHandler] - LightOnSwitchHandler: device 1B.41.E8 was switched on FAST.
2017-01-20 16:38:15.943 [DeviceFeature] - 1B.41.E8:GenericSwitch publishing: ON
2017-01-20 16:38:15.943 [DeviceFeature] - 1B.41.E8:GenericLastTime publishing: 2017-01-20T16:38:15
2017-01-20 16:38:16.142 [InsteonPLMActiveBinding] - got msg: IN:Cmd:0x50|fromAddress:1B.41.E8|toAddress:0F.9D.D9|messageFlags:0x41=ALL_LINK_CLEANUP:1:0|command1:0x12|command2:0x01|
2017-01-20 16:38:16.143 [MessageDispatcher] - all link message: IN:Cmd:0x50|fromAddress:1B.41.E8|toAddress:0F.9D.D9|messageFlags:0x41=ALL_LINK_CLEANUP:1:0|command1:0x12|command2:0x01|
2017-01-20 16:38:16.143 [MessageDispatcher] - all link message: IN:Cmd:0x50|fromAddress:1B.41.E8|toAddress:0F.9D.D9|messageFlags:0x41=ALL_LINK_CLEANUP:1:0|command1:0x12|command2:0x01|
2017-01-20 16:38:16.143 [DeviceFeature] - 1B.41.E8:GenericLastTime publishing: 2017-01-20T16:38:16

```

---

<div class="post-metadata">

**Author:** ![johnofcamas](https://community.openhab.org/user_avatar/community.openhab.org/johnofcamas/32/6854_2.png) [@johnofcamas](https://community.openhab.org/u/johnofcamas)\
**Post date:** [January 21, 2017, 2:07am UTC](https://community.openhab.org/t/insteonplm-not-registering-fast-on-off/20703/9 "2017-01-21T02:07:07Z")

</div>

I think I’m making some progress, the problem was my rule file…!!!

I had this:

```php
rule "OfficeFastOn"
when
	Item OfficeLightFastOnOff received command ON
then
    logDebug("rulelog", "Office Light FASTON")
end

```

When it should have been this:

```php
rule "OfficeFastOn"
when
	Item OfficeLightFastOnOff received update ON
then
    logDebug("rulelog", "Office Light FASTON")
end

```

update, instead of command! Now, it’s not the most reliable atm, but I think that might have to do more with insteon strangeness, than anything else.

---

<div class="post-metadata">

**Author:** ![ranielsen](https://community.openhab.org/letter_avatar_proxy/v4/letter/r/c5a1d2/32.png) [@ranielsen](https://community.openhab.org/u/ranielsen)\
**Post date:** [January 21, 2017, 2:15pm UTC](https://community.openhab.org/t/insteonplm-not-registering-fast-on-off/20703/10 "2017-01-21T14:15:24Z")

</div>

Every time you see:

```
2017-01-20 16:38:15.942 [MessageHandler] - LightOnSwitchHandler: device 1B.41.E8 was switched on FAST.
2017-01-20 16:38:15.942 [DeviceFeature] - 1B.41.E8:FastOnOff publishing: ON

```

You should see a corresponding event indicating the item OfficeLightFastOnOff is ON. At least that’s how it works with OH1. Maybe you also need to force the state back to OFF in you rule:

```
    OfficeLightFastOnOff.postUpdate(OFF)

```
