equal
deleted
inserted
replaced
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) |