def is_switched_on(self, refresh=False):
if refresh:<EOL><INDENT>self.refresh()<EOL><DEDENT>return self.get_brightness(refresh) > <NUM_LIT:0><EOL>
Get dimmer state.

        Refresh data from Vera if refresh is True,
        otherwise use local cache. Refresh is only needed if you're
        not using subscriptions.