(to mitigate color and other settings not reaching lights that are off, for some reason)
Also quoted some things and improved logging a bit.