src/Door_accessory.js
changeset 22 00185499ed12
parent 11 a70d948427d3
equal deleted inserted replaced
21:6ad3cf1d57c3 22:00185499ed12
    56     DOOR.identify();
    56     DOOR.identify();
    57     callback();
    57     callback();
    58 });
    58 });
    59 
    59 
    60 door.addService(Service.Doorbell, 'Doorbell');
    60 door.addService(Service.Doorbell, 'Doorbell');
    61 door.addService(Service.CameraRTPStreamManagement, 'Pseudo-Camera');
       
    62 door.addService(Service.Speaker, 'Pseudo-Speaker');
       
    63 door.addService(Service.Microphone, 'Pseudo-Microphone');
       
    64 
    61 
    65 door.addService(Service.LockMechanism, 'Door')
    62 door.addService(Service.LockMechanism, 'Door lock')
    66     .setCharacteristic(Characteristic.LockTargetState, Characteristic.LockTargetState.SECURED) // force initial state
    63     .setCharacteristic(Characteristic.LockTargetState, Characteristic.LockTargetState.SECURED) // force initial state
    67     .setCharacteristic(Characteristic.LockCurrentState, Characteristic.LockCurrentState.SECURED)
    64     .setCharacteristic(Characteristic.LockCurrentState, Characteristic.LockCurrentState.SECURED)
    68     .getCharacteristic(Characteristic.LockTargetState)
    65     .getCharacteristic(Characteristic.LockTargetState)
    69     .on('set', function(value, callback) {
    66     .on('set', function(value, callback) {
    70         setDoorTargetState(value);
    67         setDoorTargetState(value);