コード例 #1
0
ファイル: OpenZWaveDevice.cs プロジェクト: Mavtak/roomie
        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);
        }
コード例 #2
0
ファイル: OpenZWaveDevice.cs プロジェクト: Mavtak/roomie
        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);
        }