Esempio n. 1
0
        public ZWaveThermostat(ZWaveDevice device)
        {
            _device     = device;
            _thermostat = device.BackingObject as GeneralThermostatV2;

            Core       = new ZWaveThermostatCore(device);
            Fan        = new ZWaveThermostatFan(device);
            _setpoints = new ZWaveSetpointCollection(device);

            if (_thermostat == null)
            {
                return;
            }

            SetCallbacks();
        }
Esempio n. 2
0
        public ZWaveThermostat(ZWaveDevice device)
        {
            _device = device;
            _thermostat = device.BackingObject as GeneralThermostatV2;

            Core = new ZWaveThermostatCore(device);
            Fan = new ZWaveThermostatFan(device);
            _setpoints = new ZWaveSetpointCollection(device);

            if (_thermostat == null)
            {
                return;
            }

            SetCallbacks();
        }