Controlling the lamp from the app:

Now we have completed all our setup and can control the lamp using the mobile app wherever we are located.

With the dashboard shortcut as mentioned in section 3, we can just press the icon for toggling the state of the device. If the device status is off the Lamp turns OFF and if the device status is ON in the dashboard icon the Lamp status will be ON in real time.

Turning ON the lamp:

 
Lamp ON

Turning OFF the lamp:

If you tap on the lamp icon as shown below, the icon changes with an indication of a non-glowing lamp and so does the hardware lamp in real time i.e. turns off or in other words power is disconnected by triggering the relay interfaced to ezlopi hardware device.

Lamp OFF