Determine light offline/online state?

Looks like it is working now:

Tried that successfully with my hue things …