Seems to work well and the code's easy to understand
I do have a query on "Current State". I don't know if this is specific to some drivers or devices (or a combination) but the on/off state doesn't refresh in the webpage. I know it does update when i'm using a dimmer for a different device. Is this a driver bug or HE weirdness?