'Initialize the myStrom switch.'

def __init__(self, name, resource):

    from pymystrom import MyStromPlug
    self._name = name
    self._resource = resource
    self.data = {}
    self.plug = MyStromPlug(self._resource)
    self.update()
