Skip to main content



      Home
Home » Archived » Eclipse SmartHome » How to know when the an UI is used
How to know when the an UI is used [message #1734837] Mon, 13 June 2016 08:12 Go to next message
Eclipse UserFriend
Hello,

I'm try trying to Implement a binding. The devices that I want to include cannot communicate alone (I have to send to them a command and after they reply).

Thus, in order to know at every moment the state of my devices, I am forced to send a command every 2 seconds. I want to know if it's possible to know when a UI is used. In that way, I will be able to reduce the number of radio transmission.

Clément
Re: How to know when the an UI is used [message #1734906 is a reply to message #1734837] Mon, 13 June 2016 11:35 Go to previous messageGo to next message
Eclipse UserFriend
Hi Clément,

No, there is no way to tell whether a UI is currently open or not. This might also not suffice, because you might also have rules or remote systems that are interested in state updates.
The concept of ESH for such "on demand updates" is the REFRESH command - when your handler receives this command, it should reach out to the device to get its current state and send an update.

Through this mechanism, you can add a "refresh" button in your UI to manually trigger the refresh of the values. Or you can create a rule that refreshes it every 2 seconds until you deactivate the rule again. Or you have an external system sending a REFRESH command, because it needs the latest state.

Hope this helps!
Kai
Re: How to know when the an UI is used [message #1734957 is a reply to message #1734906] Tue, 14 June 2016 02:52 Go to previous message
Eclipse UserFriend
Thank you for your answer. It help me.

[Updated on: Tue, 14 June 2016 05:54] by Moderator

Previous Topic:<thing-type id="thingTypeId"> is case sensitive?
Next Topic:Posting custom command types on the event bus
Goto Forum:
  


Current Time: Sat Jul 12 22:17:45 EDT 2025

Powered by FUDForum. Page generated in 0.02308 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top