I had initially tried that, but then the automation never fired. My ugly workaround was using a light sensor already in the room to tell if the light was off for the condition. I later figured out that “off” is case sensitive, and I for some reason had a capital O.
Thanks!