Hi all,
I am currently trying to set up a kind of log box on my openhabpanel. Thus I can see which things happened the last time and why certain rules fired in this or that way.
First example / question is the following:
I’m having a rule in which different factors are asked for watering the garden, e.g. temperature above a certain threshold, probability of rain, etc… These are 6 decisions and Id like to know each day why for instance the garden wasn
t wartered.
So my idea would be to create an array of only one liners which say for instance:
Temperature too low
Soil Moisture still above threshhold
Therefore I created if sequences in the rule and local vars to save the individual sentences. I’d like to put them together in the Habpanel in a sort of Listed box that I can read them line by line. What is the best approach? I don’t know how to continue currently because I am not able to save an array of strings and display them in the habpanel again -.-
currently I have the following, e.g.:
decision4 = "Too much rain tomorrow. "
decision6 = "Temperature below 5 °C. "
FBWateringText.sendCommand(decision1,decision2,decision3,decision4,decision5)
But I don’t know how to put this into lines later on in the habpanel… any idea?
Thanks a lot in advance, BR
Klim!!