src/Door_accessory.js
changeset 3 67f6a1e7c40a
parent 1 bc6a0f25a229
child 11 a70d948427d3
equal deleted inserted replaced
2:3ab597628612 3:67f6a1e7c40a
    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, 'Psudo-Camera');
    61 door.addService(Service.CameraRTPStreamManagement, 'Pseudo-Camera');
    62 door.addService(Service.Speaker, 'Psudo-Speaker');
    62 door.addService(Service.Speaker, 'Pseudo-Speaker');
    63 door.addService(Service.Microphone, 'Psudo-Microphone');
    63 door.addService(Service.Microphone, 'Pseudo-Microphone');
    64 
    64 
    65 door.addService(Service.LockMechanism, 'Door')
    65 door.addService(Service.LockMechanism, 'Door')
    66     .setCharacteristic(Characteristic.LockTargetState, Characteristic.LockTargetState.SECURED) // force initial state
    66     .setCharacteristic(Characteristic.LockTargetState, Characteristic.LockTargetState.SECURED) // force initial state
    67     .setCharacteristic(Characteristic.LockCurrentState, Characteristic.LockCurrentState.SECURED)
    67     .setCharacteristic(Characteristic.LockCurrentState, Characteristic.LockCurrentState.SECURED)
    68     .getCharacteristic(Characteristic.LockTargetState)
    68     .getCharacteristic(Characteristic.LockTargetState)