iCalendar binding - no upcoming event

Hi There,

i am using the ical Binding for trash calendar. It works fine, but there is a case, im looking for solution or hints:

We have pickup “Altkleider”, ist only one time in a year, so rest of the year the item (event Filter) shows “UNDEF”. I know, that this correct but it would be nice if there is a way to “translate” to “no upcoming event”

Is there any way to do that?

Set a profil in the channel configuration (OH 4)

and place a translation like


(function(i) {
2
    var state = ""
3
    var value = i
4
    if((value == "UNDEF") || (value == "NULL")){
5
    state = "-";
6
    } else {
7
    state = value;
8
    }
9
    return state;
10
})(input)

You can replace line 5 „state= „ with your own comments

1 Like