Moes Smart Knob Lights Control

I tried this version as well, but it is throwing an error.