varamfer / openhab

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

add an byte to item structure for indication alarm, warning etc. levels #90

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
ad an bitmask (byte) to the item structure for indication alarm or warning 
levels

i have been working a lot witrh scada system for each item you could devine 
several alarm or warning levels. the levels result in a different preentation 
of the item (visualisation). in case of openhab if an reading goe over oder 
under certain levels the color or background color could change so you may see 
it directly in the ui if some error is present or the values passed limits ...

in my application i would like to show the temperature of the bathroom in a 
differnt color if the limit is reached. but also binary values could have an 
alarm or warning limit ...

thanks in adavance

Lars

Original issue reported on code.google.com by openhab.lb on 13 May 2012 at 7:03

GoogleCodeExporter commented 8 years ago
isn't that a matter of providing the right icons for different states?

openHAB already supports showing different icons referring to different states 
(see light, roller shutter, etc.). The accomplish this the corresponding icons 
(found in openhabhome/webapp/icons/) have their state in it's name. You will 
find a rollershutter base icon (rollershutter.png) and the rollershutter-50.png 
which represents a half open rollershutter.

To show different temperature levels you could provide a temperature-20.png 
which is blue and a temperature-26.png which is red.

Does that meet your requirements?

Original comment by teichsta on 13 Jul 2012 at 10:09

GoogleCodeExporter commented 8 years ago
okay, i have to think about it ...

for presentation you are right i may change the picture on my warning, alarming 
levels, but for me it would be nicer to change als font and background color of 
the segment, but this more related to the ui, how this may be can handle such a 
function)

in rules it would be great to to access easily if an alarm or warning persists 
.... if you think about alarm or warning lists in future maybe, also an good 
idea each item has its own info 

but for the first request there is the workaround with the symbol in front oft 
the text to show alarm warning etc.... 

Original comment by openhab.lb on 26 Jul 2012 at 1:25

GoogleCodeExporter commented 8 years ago
how i can setup different levels for each temperature item ?

Original comment by openhab.lb on 26 Jul 2012 at 1:26

GoogleCodeExporter commented 8 years ago
hmmm, ok ... that would be also possible by defining images with different 
temperature-markers, but i agree that this is not really feasible.

so we leave this issue open and will see ...

Original comment by teichsta on 27 Jul 2012 at 7:30

GoogleCodeExporter commented 8 years ago
I'd agree with Thomas that the way to handle this is by specific icons. It 
might be work to create them, but there shouldn't be too many different ranges 
that one would like to configure, should there?

Changing font & background color is something that is not allowed with the 
current UI concept, so that is is out of discussion.

Showing warnings if the level reaches a certain threshold should be done 
similar as KNX does it: Besides the Number item, there should simply be a 
Switch item, which turns on if the threshold is reached and the warning should 
be issued. Rules can then directly react on it.

I reject this issue. If you think this is not ok, please comment and reopen. 
Thanks.

Original comment by kai.openhab on 29 Jul 2012 at 8:07