MQTT and check if light is on

My goal is to receive a notification before going to bed if some light are still on.
Trying now the Zanzito app which is receiving notification from mqtt

How can I do this? Newb here

Maybe publish state of light all time, or at interval, or?