def set_power_state(self, is_on, bulb=ALL_BULBS, timeout=None):
with _blocking(self.lock, self.power_state, self.light_state_event,<EOL>timeout):<EOL><INDENT>self.send(REQ_SET_POWER_STATE,<EOL>bulb, '<STR_LIT>', '<STR_LIT>' if is_on else '<STR_LIT>')<EOL>self.send(REQ_GET_LIGHT_STATE, ALL_BULBS, '<STR_LIT>')<EOL><DEDENT>return self.power_state<EOL>
Sets the power state of one or more bulbs.