Пример #1
0
    def __init__(self, client, device):
        """initialize a LGE Dryer Device."""
        LGEDevice.__init__(self, client, device)

        import wideq
        self._dryer = wideq.DryerDevice(client, device)

        self._dryer.monitor_start()
        self._dryer.monitor_start()
        self._dryer.delete_permission()
        self._dryer.delete_permission()

        # The response from the monitoring query.
        self._state = None

        self.update()
Пример #2
0
    def __init__(self, client, device, name, model_type):
        """initialize a LGE WATER PURIFIER Device."""
        LGEDevice.__init__(self, client, device)

        import wideq
        self._wp = wideq.WPDevice(client, device)

        self._wp.monitor_start()
        self._wp.monitor_start()
        self._wp.delete_permission()
        self._wp.delete_permission()

        # The response from the monitoring query.
        self._state = None
        self._name = name
        self._type = model_type

        self.update()
Пример #3
0
    def __init__(self, client, device):
        """initialize a LGE Refrigerator Device."""
        LGEDevice.__init__(self, client, device)

        import wideq
        self._ref = wideq.RefDevice(client, device)

        self._ref.monitor_start()
        self._ref.monitor_start()
        self._ref.delete_permission()
        self._ref.delete_permission()

        # The response from the monitoring query.
        self._state = None
        # Store a transient temperature when we've just set it. We also
        # store the timestamp for when we set this value.
        self._transient_temp = None
        self._transient_time = None

        self.update()
Пример #4
0
    def __init__(self, client, device, name, model_type):
        """initialize a LGE HAVC Device."""
        LGEDevice.__init__(self, client, device)

        import wideq
        self._dehum = wideq.DehumDevice(client, device)

        self._dehum.monitor_start()
        self._dehum.monitor_start()
        self._dehum.delete_permission()
        self._dehum.delete_permission()

        # The response from the monitoring query.
        self._state = None

        self._transient_hum = None
        self._transient_time = None
        self._name = name
        self._type = model_type

        self.update()
Пример #5
0
    def __init__(self, client, device, name, model_type, celsius=True):
        """initialize a LGE HAVC Device."""
        LGEDevice.__init__(self, client, device)
        self._celsius = celsius

        import wideq
        self._ac = wideq.ACDevice(client, device)

        self._ac.monitor_start()
        self._ac.monitor_start()
        self._ac.delete_permission()
        self._ac.delete_permission()

        # The response from the monitoring query.
        self._state = None
        # Store a transient temperature when we've just set it. We also
        # store the timestamp for when we set this value.
        self._transient_temp = None
        self._transient_time = None
        self._name = name
        self._type = model_type

        self.update()