Repository navigation
2026.12.0-dev | VoIP Stack for Home Assistant and ESPHome
Pre-releaseYour PBX should be nervous.
🖥️ VoIP Dashboard: your phone system, on one screen
Look how great it turned out. I personally love it.
For a full-width VoIP Dashboard tab, edit the view and choose Panel. Place the VoIP Dashboard as its single card.
The gate phone rings. On the wall tablet you can see who is calling, whether reception is free and who already has a customer on hold. Pick up the gate call, see the visitor, then transfer the call to reception. The same Home Assistant installation can run the queue, ring a room phone and send an announcement to the workshop. I started looking at our FreeSWITCH installation at work and wondering which reception jobs Home Assistant could take on. An expensive question, measured in evenings I will never get back.
This rolling 2026.12.0-dev preview adds the VoIP Dashboard, shared SIP accounts, global call popups, queues with operator controls, paging, incoming-number routing, a shared LDAP directory, managed desk phones and incoming video on supported ESP32-S3 displays. You can start with two Home Assistant phones, bring your existing SIP equipment, or build a room station with ESPHome. The integration and cards require Home Assistant 2026.11.1 or newer. The maintained firmware recipes have been built with ESPHome Device Builder 2026.11.1. Installation and migration
Add VoIP Dashboard in the card picker and choose its calling phone. Its header follows that phone. The tiles show the other extensions and your external contacts. A ringing tile identifies the caller and offers Pick up where available. Active and held calls have separate entries. Open the keypad to dial or send digits during a call, and use the gear for the selected phone's options. A custom title leaves the phone's identity visible beneath it. For a reception screen, give the card the full view width. The compact phone card, ESP mirror and phonebook remain available for smaller dashboards. Card views and controls
The HA section picker also offers VoIP Stack. Choose existing SIP accounts and save the section to generate their compact phone cards together. The saved selection keeps those accounts associated with Home Assistant even while the browser is closed.
A modest improvement over shouting "IT'S FOR YOU" through three walls.
📺 An ESP32-S3 display can now show the other end of the call
An S3 camera phone could already send its picture in 2026.11.0. This release adds video reception on supported S3 displays. Call the door station from a round display, or answer its call there. The remote JPEG picture appears on the ESP, and you can talk and hang up on that device. A camera on the S3 is optional for receiving. Add a supported camera source separately if you also want the visitor to see you.
Remote video on a real ESP32-S3 display.
The maintained Spotpear Ball v2 FULL profile accepts up to 240 × 240. The Waveshare 1.85C BOX V2 FULL profile accepts up to 320 × 240. Both device recipes request up to 10 frames per second. The generic JPEG receiver defaults to 320 × 240 at 2 FPS. These limits let you choose how much work the display does alongside audio. On supported round FULL layouts, the first decoded frame opens a dedicated video page with a hangup control. Ending video brings back the regular display. A screenless Waveshare S3 Audio remains an audio phone. When the other endpoint sends H.264, enable HA video transcoding on a supported route to supply JPEG to the S3. S3 video setup and compatibility
🎥 P4 videophones and browser cameras
Choose the JPEG FULL landscape firmware for a Waveshare P4 that also runs Assist, local wake word and audio processing. It sends and receives JPEG during a call and exposes the same camera through a standard ESPHome camera entity. For a dedicated P4 videophone, separate VoIP-only recipes select JPEG or H.264. Each firmware has one video codec. Reception and transmission are independent: a browser can answer with audio only, receive the door picture without sending its own camera, or enable its camera for two-way video. A separate Send camera preference controls what the browser transmits. The Dashboard opens its video view on the first remote frame and returns to the tiles after hangup. On FULL firmware, video temporarily pauses local wake-word detection. At the end of the call the phone respects the user's saved Wake Word setting.
The P4 preserves the picture's proportions and orientation. A display-driver correction addresses the stall caused by small rotated redraws such as the Hang Up button. A physical P4 completed a minute-long two-way JPEG call and returned to idle in the repeat test. H.264 reception waits for a complete keyframe after packet loss. The browser now has an alternate camera-frame source for Safari, iOS and Firefox contexts that lack the usual capture interface. On Android devices where the camera encoder greatly exceeds the requested bitrate, it can try the supported software encoder. Thanks to Cybul3000 and Matt Sullivan for the browser contributions. P4 and browser video · Browser camera compatibility · Android bitrate handling
☎️ One extension for the handset, SIP app and Home Assistant card
SIP accounts already supported several registered clients. This release lets an HA phone card share a SIP account with registered clients, and adds standard SIP registration to ESP firmware. Give reception one SIP account. Several SIP clients can register to that same account at once: an ESP room station, a desk phone and a SIP app can share its credentials. Each registration keeps its own contact address. Its handset registers using SIP credentials. Its HA card uses the signed-in user's HA permissions. The account has one extension, mailbox, Do not disturb setting, forwarding policy and queue membership. An incoming offer, including a trunk call, can ring both handset and card. The first client to answer gets the conversation. Opening the card while the handset is talking lets you see the call. The handset keeps its audio. To move the conversation deliberately, park it and retrieve its reported slot on the other client.
A saved card keeps the account reachable while all HA pages are closed. The PBX still applies its ringing deadline and no-answer rules. Open the card during ringing and you can answer that same call. A second browser window has its own media identity. Browser audio now waits for the audio device to become ready before starting or answering, helping preserve the first part of a call on a newly opened dashboard. Normal view changes in the same page keep the call alive even when the card disappears from view. Cards, popups and their media connections check the signed-in user's permissions for the selected account. The dial list omits the selected account itself and includes other available accounts connected only to HA cards. Accounts, clients and handing off a call
🔔 Answer over any HA view, or open the call from a notification
On the receiving browser or Companion app, open the phone card's Options > Call popups or the account device's Visit link. Choose the existing account, enable Receive call popups on this device and save. Now a door call can appear while you're looking at the heating dashboard. Answer, decline or minimize with X, Esc or Back. Video appears automatically when the peer sends it; Send video controls the local camera. The small caller-and-timer bar reopens the conversation. Hang up actually ends it.
A real Casa-to-Test video call in Home Assistant. The gate picture is a demonstration camera input.
For an app that may be closed or suspended, use an actionable notification. Answer opens HA on the account and call that triggered the notification. Decline acts on that same call. An old notification cannot answer the next visitor. Repeat popup setup for each receiving browser or Companion app. Browser audio needs a running frontend, a secure connection and microphone permission. Speaker switching and background operation depend on the platform. Popup setup · Notification automation
Recorded in the official Android Companion app on our Android test emulator: receive the notification, tap Answer, connect to the same call and hang up from the card. Original screen recording.
💡 Busy lamps, shared contacts and message waiting
A Busy Lamp Field key on a desk phone, a Dashboard tile and a compatible ESP contact list can show whether a colleague is free, ringing, in a call or holding a call. Check the lamp before transferring someone, or pick up a ringing phone from your selected extension. The Dashboard also distinguishes Do not disturb, offline phones and new voicemail counts. Updated ESP firmware can subscribe to Message Waiting Indication and expose the waiting status and message counts to a display, LED or automation. Existing SIP voicemail clients continue to use their normal message indicators. Phonebook and status subscriptions · ESP account features
The VoIP Dashboard in portrait.
📖 One directory for HA, ESPs and ordinary desk phones
Add a contact once. Compatible desk phones can search it over LDAPv3, managed ESPs can refresh it, and the same phones and callable services appear in Home Assistant. A configured phone stays in the directory when it loses Wi-Fi or its registration expires. Availability and routing still determine whether it will ring. A successful refresh replaces the shared entries on the ESP, preserves its manual contacts, and keeps the last successful list through a temporary connection failure.
P4 demonstration of contact and call states.
The shared contact directory on a real ESP32-S3 phone.
In VoIP Stack > Reconfigure, open the LDAP directory settings. Point the handset at your reachable HA address, normally TCP port 1389 with base DN ou=phonebook,dc=voip. Use an enabled SIP account to sign in. Anonymous searches are off by default. Configure TLS to match the phone using implicit TLS or StartTLS as supported. The directory is read-only from the handset. HA Repairs reports listener and certificate setup problems. LDAP phone setup
🎛️ Choose where incoming calls go, right in Home Assistant
Open your Trunk device, choose Reconfigure, and select its incoming destination. A new trunk proposes the preferred Home Assistant account. Keep it to ring that account immediately after the normal routing decision, choose another VoIP Stack device or entity, or enter an extension, account name or SIP URI. Ordinary incoming calls have no automatic greeting or digit-collection delay. Existing configured destinations are preserved. Technical settings stay in collapsed Advanced sections of the relevant forms.
Want a welcome menu instead? Create an Automation contact named Welcome and select it as the trunk destination. It has its own HA device and call-event entity. In the native VoIP call received trigger, choose Automation contact device or Automation contact call event, or use the manual Destination filter. Use one destination selector. It binds the automation to that call, so its speech, keypad and forwarding actions need no manually copied Call-ID. Add Speak to the caller for TTS or Play audio to the caller for a recorded greeting, collect the digits, then choose where the same call goes. 1 followed by a pause can reach Reception, 2 followed by a pause can reach Support, and 111 followed by a pause can reach extension 111. No hash key is required; an optional # can confirm the completed entry. The menu compares the whole input, so 111 does not route as choice 1. HA conditions can add schedules or caller-based decisions in the ordinary automation editor. Build the Welcome menu.
🔢 A Welcome menu with a PIN, using ordinary HA actions
Build ordinary choices with Caller keypad input matches. Choose Input collection completed to accept a completed pause or an end key, then enter the expected digit or PIN. Forward call > Use collected keypad input forwards an entire dialed extension without Jinja expressions, response variables or a copied Call-ID. Existing automations keep their configured behavior.
You can also make Welcome offer 1 to call Home or 2 to enter a PIN. Select that Automation contact as the trunk destination, then use VoIP call received with Destination: Welcome, Speak to the caller and Wait for keypad input. The first wait collects one menu key. Choice 1 forwards the same call to Home; a failed forward ends the call. Choice 2 collects the complete numeric PIN for up to 15 seconds, with a three-second gap between digits and an optional # to confirm early. A gap can return digits with a timeout result, so the example checks the exact collected string rather than requiring a received status.
The complete Welcome and PIN recipe checks that the original call is still connected before opening cover.voip_demo_gate, a lab demonstration cover. It does not operate a real gate. The PIN comes from !secret voip_gate_pin in a YAML automation file; HA resolves that tag when loading the file, so it cannot be pasted directly into the automation editor's YAML view. Keep the PIN as a quoted numeric string to preserve leading zeros.
Follow the three native editor panels from the trunk to your menu. The screenshots use a virtual gate, so you can try the flow before choosing your own cover. Match a complete PIN with Caller keypad input matches and enter the expected digits. The linked YAML recipe also shows how to keep a PIN in secrets.yaml.
For extension dialing, leave Destination empty and enable Use collected keypad input. The complete number from this call is forwarded through the normal directory. The native trigger already supplies the call context; Advanced call selection is available for explicit concurrent-call choices.
📟 Automatic provisioning for physical desk phones
The catalog provides 98 downloadable configuration profiles across Fanvil, Grandstream, Snom and Yealink. Each model declares its available lines, key functions and delivery methods. The discovery matrix identifies the model and firmware evidence. A desk phone has its own HA device for the hardware. Assign one or more existing SIP accounts to its lines, choose the HA device each key should monitor, and set the phone's language, person or area where appropriate. The same association appears in the account editor. Removing a handset leaves its accounts available to other clients.
- Discover it. Discovery is enabled by default and operates independently of provisioning. Supported phones can appear under Discovered from a SIP Plug and Play announcement or HA's DHCP inventory. This includes the Snom 360 and 26 documented Yealink models for DHCP detection. You can also enter a MAC address and choose the model manually. A discovered phone receives its private setup URL only after you adopt it and enable provisioning.
- Give it a job. Assign the first SIP line during adoption or leave the phone unassigned until later. Depending on its profile, keys can dial any callable directory destination, including ring groups, queues, conferences, paging, Assist and automations; monitor a phone; change queue availability; or park and retrieve calls. Choose the function, destination and SIP line for each physical key. Drag its row in the same list to move the assignment, then save. New keys are added at the end of the list, and their positions are assigned automatically. With one configured SIP account there is no extra line choice; with several, choose the account by name. Automatic labels fit the model's display.
- Apply and check. The separate catalog contains 98 downloadable profiles across Fanvil, Grandstream, Snom and Yealink. Models have different discovery, configuration delivery, key and refresh capabilities. The device page distinguishes a prepared configuration, its download and registration from that handset. On a compatible model, HA can deliver the provisioning URL through SIP Plug and Play or DHCP. The physical phone's configuration link also lets an administrator copy the correct URL for manual setup. An eligible refresh waits while its line is busy. An uncertain result is visible for an administrator to retry.
- Existing handsets stay on their chosen profile. Use Phone settings and model > Update setup instructions for this phone model to adopt a newer revision. The Snom 360 profile now exposes all 12 lines and 12 programmable keys. One line can drive every key. BLF addresses with spaces use the selected line's SIP address. Fanvil X3U Pro firmware 2.12.20 has been exercised with key reordering and two-way native DND. These device results apply to the stated models. Desk phone provisioning · Discovery by model · Catalog at this release
🎧 Ring groups, support queues and operator statistics
Use a ring group when several phones should ring together and the first answer wins. Use a queue when callers should wait their turn. Both now have native HA service devices. A queue has one draggable list for its phones and distribution order. Ring all offers every eligible member; ordered follows the list, round robin continues after the last offered agent, and longest idle uses inactivity with list order for ties. Choose Add group, give it a name and optional extension, then select its members. Entering a new group name on a phone can create it automatically. Editing membership from either end updates the same group, including when an ESP is offline. Keep empty preserves a group even after its last member is removed.
For a support desk, choose ring all, configured order, round robin with memory or longest idle. Callers wait in arrival order. Set the answer window, retry delay, waiting audio, maximum wait and wrap-up time. The answer window belongs to each offer; the maximum wait belongs to the caller's whole visit to the queue. With a 20-second answer window and a 1-second retry delay, an unanswered operator returns briefly to idle before the next offer. The caller stays in the same queue. A phone's personal no-answer voicemail does not take that queue offer; the queue chooses its fallback when its own waiting limit is reached. Sequential strategies leave the other operators available for other queues. Set separate fallback destinations for a full queue, a timeout, no available agents, or a queue being disabled or removed. A caller can move between queues while retaining the call. Set maximum wait to 0 only when the caller should have no total queue-wait deadline; the no-agent policy, answer windows and retry delay keep their separate meanings.
An agent can log in, pause or log out without leaving the group. The compact card and ESP mirror expose the controls, and compatible SIP phones can use programmable login and pause keys with separate lamps. An optional auto-pause counts calls that actually rang and went unanswered. Busy phones or losing branches do not accumulate false missed calls. An account shared by a desk phone and a card still counts as one operator.
To see what happened on shift, use Get queue state, Get queue activity and Get queue metrics. The live view includes pending callers and operator eligibility. Recorder-backed history reports answered, abandoned and timed-out callers, completed waits and operator workload. A successful fallback keeps the original exit reason, so you can tell whether callers waited too long or nobody was logged in. Queue setup, agent controls and metrics
Hold music is optional. The passage of time is not.
📣 Page a room, a floor or several phones at once
Create a Paging group, select its phones and give it an extension. Dial it to speak live to the available accounts in that group. An administrator can also assign the selected phone to existing paging groups from the compact card's Options, alongside its ring-group and queue membership. To send a spoken or recorded announcement from an automation, use voip_stack.announce with the phones or group in targets. HA synthesizes the message once and reports the outcome for each account. If several clients share an account, every eligible client that accepts the announcement can receive it, including its desk phone and active HA audio client. A ready client starts promptly, and a client answering later receives the full finite message from its beginning. Normal calls still go to the first client that answers. Distinct target accounts receive the message together. Busy phones are skipped. If your automation starts a job without waiting, its announcement ID lets voip_stack.stop_announcement stop that specific job.
For example, this action uses the Home Assistant Cloud TTS provider. Select your installed TTS provider and the names of your own phones.
action: voip_stack.announce
data:
targets:
- Reception
- Warehouse
tts_entity_id: tts.home_assistant_cloud
message: A delivery is waiting at reception.The managed HA line can authorize paging on compatible ESPs. For a manually configured ESP account, enable allow_paging_auto_answer on the line intended to receive pages. This leaves ordinary incoming calls subject to their own answer setting. Physical phones must permit trusted intercom or paging auto-answer from their PBX; a phone merely ringing is not proof of playback. A receiving browser needs an active client able to play audio, receives with its microphone closed and can keep ordinary Auto Answer off. If the paging group already lives on a different PBX, save that PBX's paging number as an external contact and dial it through its trunk. Conference groups continue to offer a two-way audio room, and now release the room reliably when the last participants hang up together. Paging and live announcements · Audio conference groups
🔀 Route the number the customer actually called
Sales and support can share an outside line and have different public numbers. In the trunk configuration, choose where the provider puts the called number. Choices include Request-URI, To, P-Called-Party-ID, a named header or a fixed value. If a provider sends the trunk account in Request-URI and the public number in To, choose To. Configure ordered fallback fields and optional prefix replacements. Leading zeroes are preserved.
In the automation editor, use VoIP call destination requested, choose the incoming line, and route by the original or normalized called number. For example, send the support number to its queue during office hours and the reception number to an on-call phone after closing. The original number and incoming line remain available through forwarding and hangup. With a keypad menu, explicit digits select their destination. The no-digits path can use your HA routing automation. PBX and account Activity show the parties after hangup. Enable HA debug logging to follow the decisions for the same call. Incoming numbers and an example number block · Office automation examples
🌐 Better behaviour with an existing PBX or provider
On supported trunk calls, a registered SIP phone can now hear the provider's announcement or progress tone before the call is answered. The trunk's NAT settings distinguish automatic discovery, a direct connection and a manually supplied public address. Address discovery uses the actual call's media sockets so the SDP advertises the corresponding RTP and RTCP ports. Choose the mode for your network and provider. This improves the existing trunk path; registering an ESP directly to another PBX is configured separately below.
For support, the account and PBX Activity entries identify the call parties. Home Assistant debug logging follows called-number extraction, normalization, routing and the related call. You can enable it through the integration menu or temporarily from Developer tools > Actions:
action: logger.set_level
data:
custom_components.voip_stack: debugSet the same logger back to info when you finish reproducing the problem.
The logs explain where the call went. Finding meaning in the rest of it remains your problem.
🗣️ An Assist caller can ask for a person
Calling Assist and using a room satellite to place, answer or end a call were already available. The new part is what Assist can do with the telephone conversation it is currently handling. A caller can ask, "Can you put me through to reception?" A compatible conversation agent can transfer that caller to a permitted internal phone, ring group or queue. If the destination is busy or nobody answers, the caller can continue speaking to Assist on the same call. The agent can also check the current call, cancel a pending transfer or hang up at the caller's request. Use your existing Assist extension and pipeline with a conversation agent that supports Home Assistant tools. The doorbell-to-Assist example below combines that existing setup with the new ability to put the visitor through to a person.
A named Automation contact remains useful for a greeting, a keypad menu or a backend call that waits for an answer and speaks a message. Your HA automation can combine those existing actions with the new called-number and queue information. Assist call tools · Automation cookbook
Even the machines are covering an empty reception desk now.
🎙️ Transfer, voicemail, recording and door-station compatibility
Transfer, pickup, audio parking, voicemail, explicit call recording and named trunks were already available in 2026.11.0. This preview improves how they work across clients. Transfers to queues, ring groups and paging use the same destinations as an ordinary call. An enabled offline SIP account can apply its normal forwarding policy during transfer. Supported SIP video calls can be parked and retrieved on an audio-only SIP phone or a compatible videophone. An audio-only pickup keeps video inactive; after parking again, a compatible pickup can restore it within the source phone's camera preferences and negotiated video capabilities. Voicemail controls identify each message by caller and date for screen readers, and the account's waiting count is visible on the Dashboard. Existing two-party recordings remain available in HA Media. Set parking residence, conversation recording duration or voicemail message duration to 0 to remove that specific deadline. Parking still ends on retrieval or hangup, and unlimited recording still respects the archive quota. Voicemail retains its 180-second initial setting; conversation recording retains 3600 seconds. Positive saved limits are preserved.
Two reported door stations send more audio per RTP packet than their negotiated 20 ms preference suggests. The browser path now accepts the 320-byte PCMU packets reported for the Hikvision DS-KV6113-WPE1 (C) and the 1,280-byte PCM/16 kHz packets reported for the Dahua VTO2111D-P-S2. Controlled SIP peers sent the reported 40 ms packets. The receiving browser matched independently decoded wire audio. Original handset, tablet, camera and button behavior still needs confirmation on those models. Hikvision report · Dahua report
📲 ESPs use standard SIP accounts, at home and on other PBXs
An ESP phone now registers as a standard SIP client. The automatically provisioned HA line uses the same registrar and SIP authentication as an ordinary phone. Its ESP mirror remains a remote control: the physical ESP supplies its microphone and speaker.
To share an extension between an ESP, a desk phone and a browser, create one SIP account, register an ESP manual line and the desk phone to it, and choose that account on the HA softphone card. They share the extension and call policy; the first answering client takes an offered call. The diagram below shows this shared account separately from the automatically managed ESP line.
Add a maintained phone through the normal ESPHome integration. On managed profiles with ha_integration.auto_register: true, VoIP Stack creates the named HA line and sends its credentials through the existing ESPHome API. The VoIP Stack SIP account device shows call and registration state. The separate ESPHome device still has its microphone, volume controls and sensors. Use the ESP mirror to select a contact, dial, answer, send keypad digits or hang up from HA while the physical phone supplies the media. An older ESP can enroll after an update when it reconnects to its existing entry.
ESP mirror view illustration. The selected ESP supplies the microphone and speaker.
A newly enrolled ESP uses its ESPHome friendly name for its SIP login, including spaces and capitals. An empty friendly name uses the node name. If Add MAC suffix to name is enabled, the full suffixed node name identifies that device. Previously enrolled phones keep their saved login and password. Duplicate names go to Settings > System > Repairs, and the other phones continue to work. Removing the ESPHome entry revokes its managed SIP access; adding the same hardware again allows a fresh enrollment. Updated firmware also recovers when a changed password invalidates its previous status subscriptions.
Register one ESP on several PBXs
Use the ESP with VoIP Stack only, with an existing compatible SIP PBX only, or with both at the same time. Its registration pool supports up to four accounts, with a distinct account ID and credentials for each PBX. For example, keep the automatically provisioned ha line while registering office on an Asterisk, FreeSWITCH or other compatible PBX. A third account can register to another PBX. The registrations can stay active together; each call uses its selected line. One ESP handles one call at a time across all its lines. While it is already in a call, a new incoming call receives SIP 486 Busy Here, including when it arrives from a different registered PBX. The current conversation continues.
Top: an ESP manual line, desk phone and HA card share a user-created SIP account. Bottom: one ESP registers to several PBXs. An automatically managed ESP uses its ESP mirror for remote control.
The example below extends a maintained FULL profile. It reserves one slot for the automatically provisioned HA account and registers the second line to an existing PBX. Replace the example host and extension, and add office_sip_password to ESPHome secrets. The PBX account must allow G.722. The added codec joins the package's existing PCM declaration.
voip_stack:
registration:
max_accounts: 2
default_line: ha
accounts:
- account_id: office
registrar: pbx.example.org
port: 5060
username: "200"
password: !secret office_sip_password
transport: udp
audio:
codecs:
- codec: g722
tx:
- {sample_rate: 16000, frame_ms: 20}
- {sample_rate: 16000, frame_ms: 10}
rx:
- {sample_rate: 16000, frame_ms: 20}
- {sample_rate: 16000, frame_ms: 10}default_line: ha keeps ordinary outgoing calls on HA. Choose office with the existing line selector or voip_stack.start_call_on_line for a call through the external PBX. For example, an ESPHome automation on a maintained profile can call a colleague at extension 201 through the office line:
- voip_stack.start_call_on_line:
id: phone
target: "201"
line: officeTo add another manual PBX account, give it another account ID and increase max_accounts to leave room for ha as well. The ESP's account slots are SIP client registrations. An HA trunk connects the HA PBX itself to another PBX or provider.
For an external-PBX-only FULL build, set ha_integration.auto_register: false and default_line: office, and omit the HA-managed directory feature or configure an explicit external LDAP server. For HA-only use, keep the maintained profile without adding a manual PBX account. A standalone SIP phone keeps its local call controls when the HA API disconnects. Manual account changes made with the native actions are temporary unless explicitly saved. During a call, press VoIP Diagnostics for current media counters. Managed registration, manual PBXs and line actions
Your ESP can now register at home and at work. Apparently, being reachable in one place was not bleak enough.
🔊 G.722 wideband audio and independent packet times
G.722 lets a compatible PBX carry wideband speech directly to and from the ESP. Enable it in the ESP firmware, as above, and on its PBX account. G.722 calls have been exercised with Asterisk and FreeSWITCH. The codec carries 16 kHz speech at 64 kbit/s. Successful registration and audio codec compatibility are separate checks.
Maintained FULL profiles keep linear PCM (L16) for HA. Their preferred path sends 16 kHz speech in 20 ms packets and receives 48 kHz in 10 ms packets. Compatible 16 kHz phones can keep their common rate, and transmit and receive packet times can differ. Some supported S3 VoIP-only profiles with PSRAM use Opus. FULL and P4 configurations exclude Opus in this build. A G.711-only PBX route needs transcoding to a codec the ESP offers.
In custom firmware, migrate the old audio.tx, audio.rx, tx_formats and rx_formats settings to the ordered per-codec tx and rx lists under voip_stack.audio.codecs. A maintained FULL package already declares PCM. Edit that declaration if needed. If you redistribute a firmware binary containing Opus, include the license and notice files supplied with the release. Codec settings and worked YAML examples · Opus notices
🛠️ Screenshots, on-device controls and optional audio features
See what the ESP is showing. With the optional screenshot component and diagnostic package, press Take screenshot in HA. Screenshot ID changes when a new JPEG is ready. Put the image and button in a native Picture Glance card using a Template Image helper. An S3 captures its LVGL screen. A compatible P4 captures the composed interface and video in the displayed orientation. A busy display or failed capture preserves the last good image.
Enable on-demand screenshots · Template Image and Picture Glance example
Adjust the phone where you use it. Display settings expose the master, microphone and call-transmission gain controls available on that board, with the same limits and steps as HA. P4 camera profiles can expose JPEG quality. Master-volume changes are reflected while the phone is idle. The coordinated audio update improves handoffs when a new microphone or speaker user starts as the previous one stops, and fixes distorted samples after large microphone level changes. Generic I2S microphone profiles expose audio_mic_channel so Assist, wake word and VoIP all use the intended left or right input. On an Onju Voice with SPH0645 microphones, Roy Meissner (rmeissn) measured correct samples in 20 of 20 starts with rx_data_delay: pos_edge and the default clock. This opt-in timing adjustment applies to direct microphone capture on a shared primary standard I2S bus on ESP32-S3. Thanks for the hardware report and contribution. Audio Stack PR #17 Device controls · Audio Stack release changes
Two experimental options can be enabled in firmware.
- Say "Stop" to a ringing timer. On profiles with timers and local wake-word detection, set
firmware_timer_stop_word: trueundersubstitutionsand rebuild. Say Stop in English during the alarm, with Micro Wake Word enabled and the microphone unmuted. The normal wake word still starts Assist. Recognition over an actual ringing alarm depends on the device. Spoken timer control - Adapt playback to the room. On supported Audio Stack profiles,
audio_adaptive_volume: trueadds an Adaptive volume switch that starts off. It estimates the noise floor while the microphone is active and the speaker is idle. Playback stays quieter in a quiet room and approaches the Master setting after sustained noise. The chosen level holds during playback. Master at zero remains muted. Adaptive volume
🖱️ Capture the ESP display, then tap or swipe it remotely
You can now exercise an ESPHome display from Home Assistant, including from an AI agent with access to HA actions. Capture the current screen, choose coordinates, send a tap or swipe, then capture the result. The optional LVGL Touch Diagnostic component drives the existing LVGL pointer input, so a button receives its normal press and release and a list scrolls through its normal control. It uses the display's logical coordinates, starting at the top left.
Add the diagnostic package to a maintained display profile and rebuild once:
packages:
remote_touch: github://n-IA-hane/esphome-intercom/packages/diagnostics/touch.yaml@v2026.12.0-devAfter installing that firmware, a device named waveshare-p4-touch exposes the following action in Developer tools > Actions. Open a scrollable page and choose a path inside the list using the current screenshot:
action: esphome.waveshare_p4_touch_swipe
data:
x1: 240
y1: 360
x2: 240
y2: 150
duration_ms: 320For a single tap, use esphome.waveshare_p4_touch_touch with x and y. Replace the node prefix for a differently named ESP. Screenshot capture is the separate component described above: take a fresh image after the gesture and check Screenshot ID. The touch package is optional and is absent from default firmware. It adds no diagnostic task or per-gesture allocation site; a physical touch or screen change cancels the simulated gesture. Coordinate touch and swipe · Optional package
🧩 Use the display and audio components in your own ESPHome projects
The video renderer now has its own repository and accepts encoded frames independently of the phone software. An LVGL project can supply JPEGs to the S3 software renderer. On a compatible P4, a local frame producer can use the hardware-accelerated renderer. The standalone P4 example feeds a picture to the display with no camera, SIP connection or VoIP component. In a videophone the SIP component supplies frames to the same renderer. The standalone ESP Screenshot component can also capture a supported display in an unrelated project. On P4, Intercom retains a small MIPI display adaptation so the interface, video and screenshots agree on rotation and the last completed frame. Renderer and standalone examples · Standalone screenshot component
On a FULL room station, music, announcements, calls, Assist and Micro Wake Word share the board's microphone and speaker. Audio Stack handles capture, playback and echo processing. Runtime Controller coordinates the handoff when an activity ends and another needs the audio hardware. The preview uses Espressif's official GMF audio front-end manager with ESP-SR and preserves the board's processing settings. Matching streams can reuse their working buffers, freeing room for the other things a small phone is doing.
The public recipes run on stable ESPHome 2026.11.1 and select the necessary backports automatically for the features they include. Micro Wake Word, Voice Assistant, HTTP audio and speaker-source playback are aligned to a recorded official ESPHome revision with targeted fixes for starting and stopping sessions, replacing playback and completing streams. Custom configurations should use the matching package selections for their board. Firmware sources and selection · Touch and swipe controls
🧪 Preview status
The preview was also installed through Marketplace on a fresh Home Assistant OS system. Real calls between registered clients exercised UDP and TCP signaling, two-way audio and keypad tones. LDAP authentication and call-recording playback through the native Media browser were checked on that installation.
The feature sections describe the coordinated preview features. This update retains the trunk-to-voicemail policy fix and literal-name/ESP LDAP corrections, together with the queue and programmable-key editors shown above. A direct call to an automatically managed ESP account still uses its selected SIP registration; the shared-account example uses an ordinary SIP account associated with an HA card and an ESP manual line.
The release archive is tied to one exact source commit and coordinated component set. Its required GitHub CI jobs must all succeed before publication. Earlier firmware qualification on the ESP32-S3 Box V2 and P4 exercised real calls in both directions, including answer, hangup and complete call-resource cleanup. Each recorded call had four decoded audio streams with zero measured audio packet loss. Earlier Home Assistant preview installations also checked preserved account identities and writable integration files for future HACS updates. These results retain their original source revisions and do not establish a new physical qualification for every later change.
The real Welcome menu completed six trunk-call cases with 1, 2 and 667, without restarting when the forwarded destination began ringing. In a two-way call between the HA installations, changing one video direction preserved the other camera. Earlier physical captures retain their original firmware and scope. These checks do not establish acoustic speech quality, every desk-phone programmable key, other boards or the separate H.264 firmware. The office Waveshare S3 NAT check verified incoming ringing and cancellation through the intended PBX route while preserving another registered client; it did not establish outbound calls or acoustic quality.
The Stop model and adaptive volume remain experimental. JPEG is the maintained FULL P4 video path. H.264 uses its separate VoIP-only profile and qualification. The reported Onju AEC behaviour with filter_length: 6 and the long-uptime Spotpear playback case remain open investigations. The acceptance record and remaining hardware checks are in Stabilization. Onju report · Spotpear report
Automatic trunk digit collection has been retired. Incoming calls follow DID rules and the configured destination. For an existing extension menu, follow the Welcome automation migration. The update keeps your trunk, credentials and configured destination. A Home Assistant Repair identifies a previously active menu; it does not generate a replacement contact or automation for you.
Create an Automation contact named Welcome and use the complete greeting, input and forwarding recipe. It supports menu choices 1 for Reception and 2 for Support, or a complete extension such as 667. Its end key and time between digits are configurable. The example leaves the end key disabled and uses a three-second gap with a 30-second total limit. It compares the whole input, so an extension starting with 1 does not route on its first digit. Collected digits still forward when the gap ends with a timeout. Six recorded real trunk-call menu cases exercised 1, 2 and 667 followed by a pause, using both Automation contact device and call-event entity selectors. The latest repeat on source 4adf848f also verified that forwarding keeps the original call and does not start Welcome again when the destination rings.
🔧 Latest fixes in this preview
-
Keep browser video calls connected through parking and retrieval, and restore the active call when a parking request is declined.
-
Show the original caller during a transferred call and refresh the card's available actions after cancelling a pending transfer.
-
Preserve two-way audio when retrieving a parked browser video call, and resume incoming video automatically when the other phone supports it.
-
Enable the card's Park action for SIP video calls supported by the PBX. Retrieve the same conversation on an audio-only phone or a compatible videophone, and preserve the source's video offer when parking again. For a browser retrieving a SIP parking slot, optional Accept video and Send video controls stay in Advanced options without changing existing defaults. Call parking and pickup
-
Keep audio connected when SIP calls made through a hostname or outbound proxy receive media from the selected SIP peer. Audio, video, conferences and automation calls use that peer's numeric address for source checks and continue to reject unrelated senders.
-
In newly rebuilt firmware using the updated recipes, wait for audio shutdown before changing AEC mode. If shutdown does not finish within the wait, keep the current mode instead of reconfiguring an audio processor that is still in use.
-
Complete the Italian account-recovery Repair instructions, including updating old sensor references and explicitly confirming retirement of the duplicate legacy sensor.
-
For the historical duplicate call-state sensor, the migration Repair shows the old sensor and its current replacement. Update automations, scripts and dashboards, then explicitly confirm to retire only the old sensor. The account, current sensor, phone device and SIP credentials remain; other conflicts still require a Repair.
-
Accept empty legacy parent settings during migration and retain pending retired-menu notices until their native Repair is saved. Existing account records and their HA subentry, device and entity IDs, SIP credentials, extensions, mailbox references, cards and popup associations stay attached to the original phone, including while a conflict blocks migration. A Repair now identifies the affected saved phone or account and the conflicting name, number or shared identifier so you can correct the right configuration. Completed retry Repairs clear; guidance excludes passwords and raw exception text. A real conflict still needs correction and a retry.
-
Preserve a legacy provider as its own named line, including credentials, routing and enabled state. A disabled line stays disabled; a distinct existing provider is not overwritten. Explicit outgoing-default and no-default choices are retained. Check the named lines and selected default after upgrading.
-
Accept explicit 0 for unlimited duration in parking residence, queue maximum wait, conversation recording and voicemail messages. Their finite prefills and existing positive limits remain unchanged. Zero removes only the selected duration deadline. Hangup, storage quota, queue no-agent exits and finite input, preparation and retry waits still apply.
-
Keep audio connected when the other phone declines a camera upgrade. Audio changes accepted in the same response, including its new media address and packet-time limit, are applied while the card reports video as declined.
-
Restore an existing global popup automatically after its account identity is migrated. The saved link follows the same Home Assistant device, while disabled popups and revoked access stay disabled.
-
Keep video flowing on ESP-Hosted profiles when a negotiated audio-direction change stops microphone transmission. Resuming audio restores its existing transmission priority without waiting on an audio stream that is disabled.
-
Resolve media hostnames announced in SDP even when the provider uses separate signaling and media servers. Each negotiation uses one selected IPv4 media address for sending and receiving, with source filtering preserved.
-
Pick up a ringing phone directly from a freshly opened VoIP Dashboard, including when its selected SIP account has no registered handset. Retrieving a parked call keeps the original conversation, and its call counter clears when the conversation ends.
-
Use Forward call with the selected phone for local card-to-card calls as well as SIP calls, without copying a Call-ID for the current conversation.
-
Ring a phone registered over UDP without first waiting for an automatic TCP connection attempt when its call offer is large. Other UDP routes can recover after a confirmed TCP connection failure before sending. Explicit TCP/TLS settings stay in force, and a request already sent is never replayed over UDP by this recovery.
-
Keep legacy incoming-trunk aliases attached to the original account after migration. Removing that account no longer rings another account selected in a card.
-
Keep disabled audio RTCP disabled when browser audio changes format, including supported Dahua calls.
-
Keep one Call action. Incoming video opens automatically when the peer sends it; Send video controls only the local camera.
-
Tighten call ownership and teardown across SIP accounts, trunks, transfers, queues and automation calls, together with signaling, camera and renderer corrections.
-
Play supported SIP early media before answer, then keep the same call and audio transport when the peer answers. Early audio does not mark the call answered; the caller can still cancel it.
-
Correct registration behind NAT by learning the mapped address from the registrar and explicitly retiring the old Contact before publishing its replacement. Other clients registered to the same account stay registered.
-
Stop an Assist reply before playback starts and the ESP returns to its ready state without waiting for the playback timeout.
-
Keep the displayed call duration stable when the system clock changes by measuring elapsed time with a monotonic clock.
-
Reuse the existing video path when a session update changes only its media direction, preserving the camera and decoder in the unchanged direction.
-
Add optional Time between digits (
inter_digit_timeout) to Automation contact digit collection. It restarts after each digit; leaving it unset preserves the existing collection behavior. Trunks now route through DID rules and their configured destination. A spoken extension menu is an explicit Automation contact, with a migration Repair for previously enabled trunk menus. -
Preserve the negotiated video contract when the HA browser answers an incoming call to a SIP account shared with registered phones.
⬆️ Updating from 2026.11.0
Back up before updating. The void does not keep restore points.
-
Back up before the account migration. On HA 2026.11.1 or newer, make a Home Assistant backup with your current integration and configuration. Finish active calls. Open Settings > Marketplace, find VoIP Stack, open its three-dot menu and select Include pre-releases. Choose the preview and install or update it. If this same rolling version is already installed, use Reinstall to fetch the refreshed archive. Restart Home Assistant and reload the dashboard. Illustrated installation guide
-
Keep existing cards and phones. The integration migrates an HA softphone to a SIP account on its original HA device. A phone called
Front Deskkeeps its name, extension, device, entities, saved card selections, automations and routing preferences. If it had no SIP login, VoIP Stack createsFront Deskand generates the missing password. It preserves existing SIP credentials. Saved dashboards and popup preferences continue to receive for the same account. Where a YAML dashboard has been edited outside the UI, run VoIP Stack: Reload card associations. Check HA Repairs if a saved name or identity conflicts. The migration accepts empty legacy parent settings, and pending retired-menu guidance survives an interrupted Repair save. A remaining Repair identifies the affected saved phone or account and the conflicting name, number or shared identifier. Its existing references stay attached while the conflict is unresolved; complete the retry after correcting it. To return to the previous release after migration, restore the pre-upgrade backup. Account migration and rollback -
Refresh copied notifications. The Answer URI must carry
voip_answer=1,voip_endpointand the triggeringvoip_call_id. Pass that call'scall_idalongsidedevice_idto Decline. If Companion keeps the old controls after the update, refresh its frontend cache. Updated notification recipe -
Rebuild only the ESPs that need the new firmware. Start from the maintained preview YAML for the exact board. Bring over its name, credentials, wiring and desired features. Validate and upload with stable ESPHome Device Builder 2026.11.1. The recipes select the applicable wake-word, voice, playback and display corrections. An HA-only update leaves the currently installed firmware in place. Firmware guide · Matching builder and component sources
The downloadable integration is voip_stack.zip. The attached coordinated source manifest identifies the matching firmware and phone-profile revisions. SHA256SUMS identifies the published files. For examples of doorbell, reception and room-to-room installations, see the project thread on the Home Assistant Community forum.





















