Ubiquiti binding issue

Tags: #<Tag:0x00007f617198a380> #<Tag:0x00007f617198a240> #<Tag:0x00007f617198a178>

Hi!
I installed the ubiquiti binding and followed the guide on openhab.org. But for mee it seems like for every refresh it changes the devices status, so it goes like this:
"2020-05-25 00:48:36.923 [vent.ItemStateChangedEvent] - PifiPhone changed from ON to OFF
2020-05-25 00:48:36.931 [vent.ItemStateChangedEvent] - PifiPhoneSite changed from Default to UNDEF
2020-05-25 00:48:36.944 [vent.ItemStateChangedEvent] - MifiPhone changed from ON to OFF
2020-05-25 00:48:36.947 [vent.ItemStateChangedEvent] - MifiPhoneSite changed from Default to UNDEF
2020-05-25 00:48:43.150 [vent.ItemStateChangedEvent] - PifiPhone changed from OFF to ON
2020-05-25 00:48:43.157 [vent.ItemStateChangedEvent] - PifiPhoneSite changed from UNDEF to Default
2020-05-25 00:48:43.172 [vent.ItemStateChangedEvent] - PifiPhoneLastSeen changed from 2020-05-25T00:48:26.000+0200 to 2020-05-25T00:48:41.000+0200
2020-05-25 00:48:43.174 [vent.ItemStateChangedEvent] - MifiPhone changed from OFF to ON
2020-05-25 00:48:43.176 [vent.ItemStateChangedEvent] - MifiPhoneSite changed from UNDEF to Default
2020-05-25 00:48:43.178 [vent.ItemStateChangedEvent] - MifiPhoneLastSeen changed from 2020-05-25T00:48:26.000+0200 to 2020-05-25T00:48:41.000+0200
2020-05-25 00:48:52.543 [vent.ItemStateChangedEvent] - PifiPhone changed from ON to OFF
2020-05-25 00:48:52.556 [vent.ItemStateChangedEvent] - PifiPhoneSite changed from Default to UNDEF
2020-05-25 00:48:52.580 [vent.ItemStateChangedEvent] - MifiPhone changed from ON to OFF
2020-05-25 00:48:52.588 [vent.ItemStateChangedEvent] - MifiPhoneSite changed from Default to UNDEF
2020-05-25 00:48:58.797 [vent.ItemStateChangedEvent] - PifiPhone changed from OFF to ON
2020-05-25 00:48:58.805 [vent.ItemStateChangedEvent] - PifiPhoneSite changed from UNDEF to Default
2020-05-25 00:48:58.822 [vent.ItemStateChangedEvent] - PifiPhoneLastSeen changed from 2020-05-25T00:48:41.000+0200 to 2020-05-25T00:48:56.000+0200
2020-05-25 00:48:58.838 [vent.ItemStateChangedEvent] - MifiPhone changed from OFF to ON
2020-05-25 00:48:58.840 [vent.ItemStateChangedEvent] - MifiPhoneSite changed from UNDEF to Default
2020-05-25 00:48:58.843 [vent.ItemStateChangedEvent] - MifiPhoneLastSeen changed from 2020-05-25T00:48:41.000+0200 to 2020-05-25T00:48:56.000+0200
"
And I directly started watching a youtube video on one of the phone. Any idea what am I missing or could you help to write a rule which only checks when was the last state update and if its older than a given value, make the phone away?