Compare commits

...

2 Commits

Author SHA1 Message Date
d80cd34a88 change back to audio first
Some checks failed
Build and push Doorman UI / API / docker (push) Successful in 1m33s
Build and push image for doorman-homeassistant / docker (push) Failing after 8s
Build and push image for doorman-homeassistant / deploy-gitainer (push) Has been skipped
2025-05-29 22:22:20 -07:00
95f84ff9a7 add buzzer presskey to edit form 2025-05-26 16:33:10 -07:00
2 changed files with 10 additions and 9 deletions

View File

@ -4,20 +4,18 @@ import { InfoResponseClient } from '../../../doorman-api/src/functions/api/door/
export function doorOpenTwiml(config: InfoResponseClient): VoiceResponse {
const twiml = new Twilio.twiml.VoiceResponse();
// pause for some time
twiml.pause({ length: 1 });
// play audio
twiml.play('https://buzzer-2439-prod.twil.io/buzzing_up_boosted.mp3');
// press digit
twiml.play({ digits: config.pressKey }); // configured in doorman what button to click and passed into this function
// play audio
twiml.play('https://buzzer-2439-prod.twil.io/buzzing_up_boosted.mp3');
// pause again
// pause
twiml.pause({ length: 1 });
// exit
twiml.hangup();
// @ts-ignore
return twiml;
}

View File

@ -78,6 +78,9 @@ export const EditPage = () => {
valueAsNumber: true,
})} />
</FormField>
<FormField label="Unlock key" constraintText="Key to press to buzz up on Intercom">
<input {...register("pressKey")} />
</FormField>
<FormField
errorText={fallbackNumbersError}
label="Fallback numbers"