Beispiel #1
0
    def __init__(self, _mac, _name, _pin=None):
        """Initialize the thermostat."""
        from cometblue import device as cometblue_dev

        global gatt_mgr

        self.modes = [STATE_AUTO, STATE_AUTO_LOCKED, STATE_MANUAL, STATE_MANUAL_LOCKED]
        self._mac = _mac
        self._name = _name
        self._pin = _pin
        self._thermostat = cometblue_dev.CometBlue(_mac, gatt_mgr, _pin)
        self._target = CometBlueStates()
        self._current = CometBlueStates()
Beispiel #2
0
    def __init__(self, _mac, _name, _pin=None):
        """Initialize the thermostat."""
        from cometblue import device as cometblue_dev

        global gatt_mgr

        self._hvac_mode = HVAC_MODE_HEAT
        self._mac = _mac
        self._name = _name
        self._pin = _pin
        self._thermostat = cometblue_dev.CometBlue(_mac, gatt_mgr, _pin)
        self._target = CometBlueStates()
        self._current = CometBlueStates()