I have an rather difficult issue (at least difficult to explain) with a binding, which behave strange when I try to control an item though Google Assistant (Google Home). It has simply driven me nuts for a few days now.
I believe the issue is cause due to a push button mapped to an switch item, which, from openhab, is predicted to be stated OFF. I use a rule to force it OFF 200ms after it has been turned ON (since it´s a push button).
It seems like Google Home can´t get the “triggering” command trough the binding, when asking to turn the item OFF, maybe because openhab had this item already predicted OFF, (my guess).
Turning the item ON works fine every time. Only Off seems to be a huge problem.
I can see from the normal log, that when asking Google to turn OFF the item, it respond with item OFF and it stays OFF. It should actually toggle the switch from OFF to ON, and then my rule force it back to OFF. But it doesn´t.
This is what happens, when I ask Google to turn ON the item:
2019-03-04 23:22:37.378 [ome.event.ItemCommandEvent] - Item 'testIHClysKip' received command ON
2019-03-04 23:22:37.393 [nt.ItemStatePredictedEvent] - testIHClysKip predicted to become ON
2019-03-04 23:22:37.405 [vent.ItemStateChangedEvent] - testIHClysKip changed from OFF to ON
2019-03-04 23:22:37.408 [GroupItemStateChangedEvent] - gV changed from OFF to ON through testIHClysKip
2019-03-04 23:22:37.708 [ome.event.ItemCommandEvent] - Item 'testIHClysKip' received command OFF
2019-03-04 23:22:37.717 [nt.ItemStatePredictedEvent] - testIHClysKip predicted to become OFF
2019-03-04 23:22:37.727 [vent.ItemStateChangedEvent] - testIHClysKip changed from ON to OFF
2019-03-04 23:22:37.740 [GroupItemStateChangedEvent] - gV changed from ON to OFF through testIHClysKip
This is what happens, when I ask Google to turn the very same item OFF:
2019-03-04 23:24:43.345 [ome.event.ItemCommandEvent] - Item 'testIHClysKip' received command OFF
2019-03-04 23:24:43.360 [nt.ItemStatePredictedEvent] - testIHClysKip predicted to become OFF
Thats it, nothing more… It should have toggled the item (switch) from OFF to ON, just like it did, when asking Google to turn ON, cause it´s a push button. But it doesn´t.
This is the item:
Switch testIHClysKip "Stue M2 kip [%s]" <switch> (gV) [ "Lighting" ] { channel="ihc:controller:elko:input30298" }
I also tried to change the tag to [“Switchable”] it doesn´t change anything.
This is most probably binding issue, cause the old binding for openhab1 work fine. I have contacted the author of the binding about it. But it might as well be a Google Home/openhab cloud issue, cause the push button normal state is always OFF. So there has to be something different in asking Google to turn ON or OFF.
So if possible, I would rather have a debug log file to present to him. Or does anyone have other suggestions how to deal with this/debug??