Use constants for the is_light_on return value

The return value is not bool (it could have been), but an uint8 with
constants.