Exemple #1
0
        public OpenZWaveDevice(Network network, ZWManager manager, byte id)
            : base(network)
        {
            Manager = manager;
            Id      = id;
            Values  = new OpenZWaveDeviceValueCollection();

            Address = Id.ToString();

            Event = new OpenZWaveEvent(this);

            _toggleSwitch      = new OpenZWaveToggleSwitch(this);
            _dimmerSwitch      = new OpenZWaveDimmerSwitch(this);
            _thermostat        = new OpenZWaveThermostat(this);
            _binarySensor      = new OpenZWaveBinarySensor(this);
            _powerSensor       = new OpenZWavePowerSensor(this);
            _temperatureSensor = new OpenZWaveTemperatureSensor(this);
            _humiditySensor    = new OpenZWaveHumiditySensor(this);
            _illuminanceSensor = new OpenZWaveIlluminanceSensor(this);
        }
Exemple #2
0
        public OpenZWaveDevice(Network network, ZWManager manager, byte id)
            : base(network)
        {
            Manager = manager;
            Id = id;
            Values = new OpenZWaveDeviceValueCollection();

            Address = Id.ToString();

            Event = new OpenZWaveEvent(this);

            _toggleSwitch = new OpenZWaveToggleSwitch(this);
            _dimmerSwitch = new OpenZWaveDimmerSwitch(this);
            _thermostat = new OpenZWaveThermostat(this);
            _binarySensor = new OpenZWaveBinarySensor(this);
            _powerSensor = new OpenZWavePowerSensor(this);
            _temperatureSensor = new OpenZWaveTemperatureSensor(this);
            _humiditySensor = new OpenZWaveHumiditySensor(this);
            _illuminanceSensor = new OpenZWaveIlluminanceSensor(this);
        }