It occurs to me that you could use some kind of sensor that verifies the tension that is reaching the lighting you want to control, and notify it is your web server in real time to know at any time if it is on or not.
Hutokea kwangu kwamba unaweza kutumia aina fulani ya Kihisi ambayo inathibitisha mvutano ni kufikia taa unataka udhibiti, na Arifu ni yako seva ya wavuti katika muda halisi kujua wakati wowote kama ni juu au si.