Teekanne / openhab

Automatically exported from code.google.com/p/openhab
0 stars 0 forks source link

refreshState function for active refreshing States of KNX Binded items #335

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
1. Feature Description
I will call refreshState in a rule to refresh the current State from an item 
with knx binding instead of receiving knx events for every state change

2. Example Use Case for a gas impulse counter
Every 5 minutes is somtimes enough to get the current counter value from a knx 
counter.

i can setup the knx counter to send a message only for every 10. count. 

but somtimes you got many impulse counts. e.g. in the winter. (it will increase 
the knx bus load)

and sometimes you get only some impulse counts. e.g. in the summer.

Original issue reported on code.google.com by holger.h...@visual-meta.com on 6 Jun 2013 at 7:28

GoogleCodeExporter commented 8 years ago
Hi,

I'm working on something similar. 
Find below part of a thread I posted in openhab group where focus was on Number 
items on httpbinding
My goal is to have the reloadable feature available at items level.
Right now I've implemented for knx binding.

....
I'm playing with energy/overload manager and I've to poll every xx-seconds 
several items.
Googling around searching for solutions I ended-up to this thread.
......

Find below a brief overview of the proposed solution:

- a new "fake" binding tag "reloadable" is used to tag items that do supports 
reloading

- at GenericItem level a reloadable property has been added 

- a new RefreshCommand type has been added

- instances of item classes extending GenericItem could be created with 
reloadable set to true or false. Instances having reloadable set to true will 
return a list with one more command (the RefreshCommand) compared with the not 
reloadable

- any binding supporting reloadable command will be changed to deal with this 
new command (I tried with KNX)

A partial very preliminary implementation can be found on my fork jock71/openhab
(Probably something need still to be pushed)

Regards,
Andrea

Original comment by andrea.g...@gmail.com on 31 Oct 2013 at 6:30

GoogleCodeExporter commented 8 years ago

Original comment by teichsta on 5 Nov 2013 at 10:47

GoogleCodeExporter commented 8 years ago
This issue has been migrated to Github. If this issue id is greater than103 its 
id has been preserved on Github. You can open your issue by calling the URL 
https://github.com/openhab/openhab/issues/<issueid>. Issues with ids less or 
equal 103 new ids were created.

Original comment by teichsta on 17 Nov 2013 at 8:08

GoogleCodeExporter commented 8 years ago
see above!

Issue has been migrated to Github and should be discussed there.

Original comment by teichsta on 21 Nov 2013 at 1:51

GoogleCodeExporter commented 8 years ago
Hi Andrea,

is there any progress with your refreshCommand to refresh knx items? Are the 
any plans to merge it back?

Regards,

Holger

Original comment by holger.h...@gmail.com on 16 Feb 2014 at 2:31

GoogleCodeExporter commented 8 years ago
Hi Holger,

please note, this issue tracker is closed. Please discuss this issue on Github 
(see https://github.com/openhab/openhab/issues/335).

Best, Thomas E.-E.

Original comment by teichsta on 25 Feb 2014 at 9:30