@@ -55,12 +55,13 @@ live:
|
||||
# [...]
|
||||
```
|
||||
|
||||
| Option | Default | Description |
|
||||
| ---------------------------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| `button_size` | `40` | The size of the call control buttons in pixels. Must be >= `20`. |
|
||||
| `lock` | `true` | Whether to lock the rest of the card controls/actions while a call is in progress. Prevents an accidental tap, swipe or action mid-call. Set to `false` to allow interactions regardless of call state. |
|
||||
| `ringtone` | | The audible chime played while an inbound call (e.g. one started by [`view.triggers.actions.trigger: call`](./view.md?id=trigger-action-configuration)) is ringing. Stops as soon as the call is answered or ended. Manual calls never ring. See [`ringtone`](#ringtone). |
|
||||
| `unanswered_timeout_seconds` | `60` | The number of seconds an inbound call may ring unanswered before it is automatically ended. The timer is cancelled the moment the call is answered. Set to `0` to disable the timeout. |
|
||||
| Option | Default | Description |
|
||||
| ---------------------------- | ------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| `button_size` | `40` | The size of the call control buttons in pixels. Must be >= `20`. |
|
||||
| `enabled` | `true` | Whether the on-screen call controls are shown during a call. Set to `false` to hide them and drive calls from the [`menu`](./menu.md) instead. When hiding the controls, be sure to also remove `call` from `menu.auto_hide` so the menu stays visible allowing the call to be controlled. See [Driving calls from the menu](../examples.md?id=driving-calls-from-the-menu) for a complete example. |
|
||||
| `lock` | `true` | Whether to lock the rest of the card controls/actions while a call is in progress. Prevents an accidental tap, swipe or action mid-call. Set to `false` to allow interactions regardless of call state. |
|
||||
| `ringtone` | | The audible chime played while an inbound call (e.g. one started by [`view.triggers.actions.trigger: call`](./view.md?id=trigger-action-configuration)) is ringing. Stops as soon as the call is answered or ended. Manual calls never ring. See [`ringtone`](#ringtone). |
|
||||
| `unanswered_timeout_seconds` | `60` | The number of seconds an inbound call may ring unanswered before it is automatically ended. The timer is cancelled the moment the call is answered. Set to `0` to disable the timeout. |
|
||||
|
||||
> [!NOTE] Browser autoplay restrictions may prevent the ringtone from playing
|
||||
> until the page has received a user gesture (e.g. a tap or click). When that
|
||||
|
||||
@@ -563,6 +563,64 @@ profiles:
|
||||
> the view-only camera to `live_provider: ha` (HLS / receive-only WebRTC, which
|
||||
> never offers a backchannel) instead.
|
||||
|
||||
### Driving calls from the menu
|
||||
|
||||
By default on-screen controls will appear mid-card to handle a call. Setting
|
||||
[`live.controls.call.enabled: false`](configuration/live.md?id=call) hides those
|
||||
controls so the call can be driven via some other mechanism. In this example,
|
||||
the card is configured to allow calls to be driven from the menu instead.
|
||||
|
||||
This wires up the menu equivalents of every overlay control. The menu `call`
|
||||
button starts, ends, and (while ringing) rejects calls, but it cannot _answer_
|
||||
an inbound ring -- so a conditional answer button is added that appears only
|
||||
while ringing.
|
||||
|
||||
```yaml
|
||||
type: custom:advanced-camera-card
|
||||
cameras:
|
||||
- camera_entity: camera.front_door
|
||||
live_provider: go2rtc
|
||||
go2rtc:
|
||||
modes:
|
||||
- webrtc
|
||||
profiles:
|
||||
- doorbell
|
||||
live:
|
||||
controls:
|
||||
call:
|
||||
# Hide the on-screen call controls overlay -- the menu drives the call.
|
||||
enabled: false
|
||||
menu:
|
||||
# The menu hides during a call by default; keep it visible so its call
|
||||
# controls stay reachable.
|
||||
auto_hide: []
|
||||
buttons:
|
||||
# Starts a call, and becomes a hang-up button for the duration of a call.
|
||||
call:
|
||||
enabled: true
|
||||
# Mutes/unmutes your outbound microphone during a call.
|
||||
microphone:
|
||||
enabled: true
|
||||
type: toggle
|
||||
# Mutes/unmutes the inbound (caller's) audio during a call.
|
||||
mute:
|
||||
enabled: true
|
||||
elements:
|
||||
# The menu `call` button cannot answer an inbound (ringing) call, so this
|
||||
# answer button is shown only while ringing to provide that control.
|
||||
- type: custom:advanced-camera-card-conditional
|
||||
conditions:
|
||||
- condition: call
|
||||
call: ringing
|
||||
elements:
|
||||
- type: custom:advanced-camera-card-menu-icon
|
||||
icon: mdi:phone
|
||||
title: Answer call
|
||||
tap_action:
|
||||
action: custom:advanced-camera-card-action
|
||||
advanced_camera_card_action: call_answer
|
||||
```
|
||||
|
||||
## Events from other cameras
|
||||
|
||||
`dependencies.cameras` allows events/recordings for other cameras to be shown
|
||||
|
||||
Reference in New Issue
Block a user