Time since event not working

It seems that the time since event has an issue with values from a device attribute “level”. It seems to be expecting a number class variable but for whatever reason the device attribute “level” it is accessing is being provided as a string.

app:202024-05-07 10:15:08.865 PMerrorinvalid operand type for 100(string) > 30.0(number, error=java.lang.ClassCastException)

This issue is not occurring with other statements accessing the same attribute from the device. See picture.

What device (brand and model) is this, and what driver ("Type" on the device detail page) are you using for it?

Advanced zigbee RGBW bulb

Did you run the "Configure" command after switching to this driver?

Also, it doesn't work with all devices. You might need the "Generic..." equivalent, also something you can try in any case.

Yes, i did use configure button.

Im using type profile Advanced zigbee RGBW bulb after trial and error.
Ive tried generic and had issues controlling the light.
I haven’t found a better option or know how to identify a profile that is more reliable with these osram bulbs.

I don’t have an issue getting a number value for level attribute when i compare the level attribute. See the photo where it shows the current value set on the device for level is 100.

The issue is seen in the photo above in the first condition where there are ?? between brackets where it should be 100, at the same time you see level accessed successfully in the last condition showing 100.

More details about the issue.

As you can see in the photo the time since event is used in three conditions but the key difference is the comparator used; greater than vs not equal too.

When i used the grater than expression the values are not available and show as (?).
When i use the not equal too expression then i get value, in this case its time (0:07:21).

Time Since Event: level(> 30.0) on Porch Light 1(?), Porch Light 2(?) any exceeds 0:05:00 FALSE (unused)

Time Since Event: level(> 30.0) on Porch Light 1(?) exceeds 0:05:00 FALSE

Time Since Event: level(≠ 30.0) on Porch Light 2(0:07:21) exceeds 0:05:00 TRUE (unused)

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.