def set_state(self, state):
        self.basicevent.SetBinaryState(BinaryState=int(state))
        self._state = int(state)
Set the state of this device to on or off.
dataset/ETHPy150Open iancmcc/ouimeaux/ouimeaux/device/maker.py/Maker.set_state