I am looking at smart plug like this one sold at bunnings https://www.brilliantsmart.com.au/ on one of my downlights at home. From a safety perspective, I dont see an issue, as the transformers are all wired to a plug top, and I would simply unplug it, and put this device in the middle. My concern is based around how these kinds of devices would behave with the dimmer switch inline? theoretically, the relay should be fine, I'm just wondering how the controller (esp8266) would behave. Thought?