Open k00ala opened 5 years ago
Hi @k00ala,
thanks a lot for this hint. I will analyse this problem and hopefully find a solution. Your thing, item and sitemap definition look good. Maybe it has something to do with the initial "NULL" state. Could you do me a favor and switch your virtualrocker twice after a restart?
Best regards Daniel
Hey @fruggy83
Log of switching the virtualRocker few times:
2018-11-10 11:44:15.772 [nt.ItemStatePredictedEvent] - v1 predicted to become ON
2018-11-10 11:44:15.789 [vent.ItemStateChangedEvent] - v1 changed from NULL to ON
2018-11-10 11:44:16.637 [ome.event.ItemCommandEvent] - Item 'v1' received command OFF
2018-11-10 11:44:16.643 [nt.ItemStatePredictedEvent] - v1 predicted to become OFF
2018-11-10 11:44:16.653 [vent.ItemStateChangedEvent] - v1 changed from ON to OFF
2018-11-10 11:44:17.409 [ome.event.ItemCommandEvent] - Item 'v1' received command ON
2018-11-10 11:44:17.417 [nt.ItemStatePredictedEvent] - v1 predicted to become ON
2018-11-10 11:44:17.432 [vent.ItemStateChangedEvent] - v1 changed from OFF to ON
It seems that the Things which are defined by text files are not correct initialized on startup. I defined a new virtualRockerSwitch Thing via PaperUI and this works after restart. This is now my workaround but its not perfect because i want to define everything by text files.
Best regards Stefan
Hey,
great work @fruggy83 i was waiting for a long time on this binding!
Now i have found a problem with the virtualRockerSwitch. It stop sending when i restart openhab. But when i change the channel on thing and item live in the textfiles from virtualRockerswitchA to virtualRockerswitchB and also from virtualRockerswitchB to virtualRockerswitchA it starts working again.
Log: After restart and switch item on the sitemap:
After changed channel from B to A (update process and afterwards trigger via sitemap):
My config is:
Thing:
Item:
Sitemap: