I further developed your and VasilijHCNs code a bit (to also make use of a DHT11 sensorand process its data in easyIoT), and just wanted to say here "thank you" for the inspiration. Yourdimmer/webserver code (and Vasilij's work on adapting it for easyIoT instead of Domoticz) got me started with programming in Lua for nodeMCU, and the fact that I can now omit any additional microcontroller and have everything run on the esp8266 is mighty cool.
So, once again: thank you!
Oh, and I also created a github repo, just in case anyone's interested in my "easyIoT dimmer/switch/DHT11 sensor node running nodeMCU":
https://github.com/DennisSc/easyIoT-nodeMCU/
regards
Dennis