Expire bindings not working if time is longer than 1 minute

  • Platform information:
    • Hardware: Raspberry Type B
    • OS: what OS is used and which version
    • Java Runtime Environment: Zulu 8
    • openHAB version: 2.5.10

Hello all, I’m facing an issue with the expire binding not working if the time is higher that 2 minutes.

My typical item is configured like this:

Switch          Entryway_Light          "Luce Ingresso"     <light>    (Entryway, gLight)          ["Lighting", "Switchable"]   {alexa="disable",channel="amazonechocontrol:smartHomeDevice:14efeb2c:Entryway_Light:powerState",expire="5m,command=OFF"}

I don’t have any binding that apparently is refreshing and here is the log from switch ON to the expected OFF that never happens.

18:15:06.679 [INFO ] [smarthome.event.ItemStateChangedEvent] - Entryway_Light changed from OFF to ON
18:15:07.016 [INFO ] [smarthome.event.ItemStateChangedEvent] - LivingRoom_Light2 changed from ON to OFF
18:15:09.435 [INFO ] [smarthome.event.ItemStateChangedEvent] - Latency_Mobile_Matteo changed from 1051.0 ms to 1676.0 ms
18:15:09.799 [INFO ] [smarthome.event.ItemStateChangedEvent] - Lastseen_Mobile_Matteo changed from 2020-12-05T18:14:07.267+0100 to 2020-12-05T18:15:09.212+0100
18:15:33.226 [INFO ] [smarthome.event.ItemStateChangedEvent] - Latency_Mobile_Sara changed from 151.0 ms to 446.0 ms
18:15:33.320 [INFO ] [smarthome.event.ItemStateChangedEvent] - Lastseen_Mobile_Sara changed from 2020-12-05T18:14:32.323+0100 to 2020-12-05T18:15:32.929+0100
18:16:10.547 [INFO ] [smarthome.event.ItemStateChangedEvent] - Latency_Mobile_Matteo changed from 1676.0 ms to 878.0 ms
18:16:10.630 [INFO ] [smarthome.event.ItemStateChangedEvent] - Lastseen_Mobile_Matteo changed from 2020-12-05T18:15:09.212+0100 to 2020-12-05T18:16:10.329+0100
18:16:33.513 [INFO ] [smarthome.event.ItemStateChangedEvent] - Latency_Mobile_Sara changed from 446.0 ms to 112.0 ms
18:16:33.595 [INFO ] [smarthome.event.ItemStateChangedEvent] - Lastseen_Mobile_Sara changed from 2020-12-05T18:15:32.929+0100 to 2020-12-05T18:16:33.285+0100
18:17:11.817 [INFO ] [smarthome.event.ItemStateChangedEvent] - Latency_Mobile_Matteo changed from 878.0 ms to 751.0 ms
18:17:12.048 [INFO ] [smarthome.event.ItemStateChangedEvent] - Lastseen_Mobile_Matteo changed from 2020-12-05T18:16:10.329+0100 to 2020-12-05T18:17:11.387+0100
18:17:35.211 [INFO ] [smarthome.event.ItemStateChangedEvent] - Latency_Mobile_Sara changed from 112.0 ms to 1364.0 ms
18:17:35.334 [INFO ] [smarthome.event.ItemStateChangedEvent] - Lastseen_Mobile_Sara changed from 2020-12-05T18:16:33.285+0100 to 2020-12-05T18:17:34.791+0100
18:18:12.657 [INFO ] [smarthome.event.ItemStateChangedEvent] - Latency_Mobile_Matteo changed from 751.0 ms to 557.0 ms
18:18:12.841 [INFO ] [smarthome.event.ItemStateChangedEvent] - Lastseen_Mobile_Matteo changed from 2020-12-05T18:17:11.387+0100 to 2020-12-05T18:18:12.288+0100
18:18:35.417 [INFO ] [smarthome.event.ItemStateChangedEvent] - Latency_Mobile_Sara changed from 1364.0 ms to 95.0 ms
18:18:35.540 [INFO ] [smarthome.event.ItemStateChangedEvent] - Lastseen_Mobile_Sara changed from 2020-12-05T18:17:34.791+0100 to 2020-12-05T18:18:35.204+0100
18:19:13.927 [INFO ] [smarthome.event.ItemStateChangedEvent] - Latency_Mobile_Matteo changed from 557.0 ms to 856.0 ms
18:19:14.091 [INFO ] [smarthome.event.ItemStateChangedEvent] - Lastseen_Mobile_Matteo changed from 2020-12-05T18:18:12.288+0100 to 2020-12-05T18:19:13.419+0100
18:19:35.688 [INFO ] [smarthome.event.ItemStateChangedEvent] - Latency_Mobile_Sara changed from 95.0 ms to 80.0 ms
18:19:35.766 [INFO ] [smarthome.event.ItemStateChangedEvent] - Lastseen_Mobile_Sara changed from 2020-12-05T18:18:35.204+0100 to 2020-12-05T18:19:35.465+0100
18:20:14.506 [INFO ] [smarthome.event.ItemStateChangedEvent] - Latency_Mobile_Matteo changed from 856.0 ms to 558.0 ms
18:20:14.600 [INFO ] [smarthome.event.ItemStateChangedEvent] - Lastseen_Mobile_Matteo changed from 2020-12-05T18:19:13.419+0100 to 2020-12-05T18:20:14.249+0100
18:20:36.312 [INFO ] [smarthome.event.ItemStateChangedEvent] - Latency_Mobile_Sara changed from 80.0 ms to 378.0 ms
18:20:36.397 [INFO ] [smarthome.event.ItemStateChangedEvent] - Lastseen_Mobile_Sara changed from 2020-12-05T18:19:35.465+0100 to 2020-12-05T18:20:36.034+0100
18:21:15.227 [INFO ] [smarthome.event.ItemStateChangedEvent] - Latency_Mobile_Matteo changed from 558.0 ms to 130.0 ms
18:21:15.494 [INFO ] [smarthome.event.ItemStateChangedEvent] - Lastseen_Mobile_Matteo changed from 2020-12-05T18:20:14.249+0100 to 2020-12-05T18:21:14.625+0100

Just for detailed info I have the following bindings installed:

  • Amazon Echo Control
  • MQTT Binding
  • Network Binding
  • OpenWebNet Binding (latest snapshot in add-on folder)
  • Samsung TV Binding

It works fine for me with Z-Wave devices. Perhaps expire its not communicating through the Echo control binding?

Communication via Echo Control works well and I can have the expire working if the time is 1 or 2 minutes. I wonder if the Echo Control Binding is refreshing all items periodically. If this is the case for me the expire bindings becomes useless : I have all lights working through that binding and no other way.

1 Like

I was going to comment that someone else was running into this earlier this week, but I see that it was you. You’ve got a lot of threads going on, all of which seem to be related to the Echo Control Binding. :wink:

We talked about the Echo binding polling every 10 minutes, but I don’t see how that would affect any timers over two minutes. Whatever the case, if Expire doesn’t work you can just use a rule with CreateTimer and triggeringItem to accomplish the same thing.

Indeed this binding is creating several headaches to me.
At leaase I solved the refresh issue that was due to a bug of the binding (now solved with latest snapshot).

Yes, rules are well working (at lest this seems so far).

1 Like