Gateways & Connection Architecture (WHO = 13)¶
This guide details the network connection, authentication, and resilience architecture for Legrand / BTicino OpenWebNet gateways in Home Assistant.
๐๏ธ Supported Gateway Hardware¶
The MyHOME integration communicates with SCS bus gateways over TCP/IP:
| Gateway Model | Protocol Support | Max Command Workers | Inter-Frame Delay | UPnP Discovery | Notes |
|---|---|---|---|---|---|
| F454 | OpenWebNet / HMAC | 4 workers | 50 ms | โ Port 49153 | Full high-speed multi-session support |
| F455 | OpenWebNet / HMAC | 4 workers | 50 ms | โ Port 49153 | Basic gateway (single SCS bus) |
| F461 | OpenWebNet / HMAC | 4 workers | 50 ms | โ Manual | Compact DIN Ethernet Web Server |
| MH202 | OpenWebNet / HMAC | 2 workers | 100 ms | โ Port 49153 | Modern scenario programmer gateway |
| MH201 | OpenWebNet | 1 worker | 100 ms | โ Port 49153 | Second-generation scenario programmer |
| MyHomeServer1 | OpenWebNet / HMAC | 4 workers | 20 ms | โ SSDP | Cloud/local hybrid gateway |
| MH200N | OpenWebNet | 1 worker | 150 ms | โ SSDP | Second-generation scenario programmer |
| MH200 (Legacy) | OpenWebNet | 1 worker | 150 ms | โ SSDP | Strict single-session pacing; watchdog hardened |
| H4890 / AM4890 | OpenWebNet | 1 worker | 50 ms | โ SSDP | 3.5" Touch screen display IP gateway (Axolute / Livinglight) |
| F452 / F453 / F453AV | OpenWebNet | 1 worker | 150 ms | โ Port 49153 | Audio/video & web server gateway |
| H4684 / H/L4684 | OpenWebNet | 1 worker | 50 ms | โ SSDP | Colour touch screen IP gateway (Axolute / LivingLight) |
๐ Connection Setup via Config Flow¶
Step 1: Initial Discovery¶
- On local networks, MyHOME gateways announce themselves via SSDP / UPnP (mDNS /
.localhostnames are not used by OpenWebNet gateways). - If discovered automatically over SSDP, Home Assistant displays a discovery card prompting you to Configure the gateway, or lists discovered gateways in the setup picker alongside "Custom (IP Gateway)".
- If configuring manually: Go to Settings -> Devices & Services -> Add Integration -> search MyHOME -> choose Custom (IP Gateway).
Step 2: Installation Parameters Reference¶
| Step | Parameter | Key | Type | Default | Description |
|---|---|---|---|---|---|
custom |
IPv4 Address | address (stored as host) |
IPv4 String | 192.168.1.100 |
Strict numeric IPv4 address of the OpenWebNet gateway (.local mDNS hostnames and IPv6 literals are rejected). A static IP or DHCP reservation is strongly advised. |
custom |
Port | port |
Integer | 20000 |
TCP port for the OpenWebNet service (1โ65535, standard default 20000). Home Assistant then attempts a UPnP get_gateway metadata lookup at that IP. |
custom_manual (only if UPnP lookup fails) |
MAC Address | serialNumber (stored as mac) |
String | 00:03:50:00:00:00 |
Gateway MAC address (unique_id). Automatically replaced after authentication if the gateway safely answers *#13**12## (F461, MyHomeServer1). |
custom_manual (only if UPnP lookup fails) |
Device Type | modelName (stored as name) |
Select | MyHomeServer1 |
Hardware model (SUPPORTED_GATEWAY_MODELS, including "Generic"). Probed and refined post-auth via *#13**15##, *#13**16##, and *#1013**1##. |
password (only when required by gateway) |
Password | password |
String | โ | Numeric OPEN password (MH200, MH200N, MH201, F452, F453, F453AV, H4684) or alphanumeric SHA-256 HMAC password (F454, F455, F461, MH202, MyHomeServer1). |
โก Dual-Session Architecture¶
OpenWebNet gateways manage communication using two distinct connection modes:
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Home Assistant โ
โโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโฒโโโโโโโโโโโโโโโ
โ โ
Command Session Event Session
(*99*0##) (*99*1##)
โ โ
Transactional Persistent Stream
(Sends WHAT/DIMENSION) (Listens to Bus Traffic)
โ โ
โผ โผ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ MyHOME OpenWebNet Gateway โ
โ (F454 / MHS1 / MH201) โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
SCS 2-Wire Bus
-
Event Session (
*99*1##):- Long-lived persistent TCP socket opened at startup.
- Listens passively for all telegrams occurring on the physical SCS bus (e.g. wall switch presses, sensor readings, actuator confirmations).
- Feeds the in-band Bus Monitor and updates Home Assistant entity states immediately.
-
Command Session (
*99*0##):- Dedicated transactional channel used to dispatch actions (e.g. turning on a light, opening a shutter, syncing gateway time).
- Manages request queueing, rate limiting, and response verification (
*#*1##ACK vs.*#*0##NACK).
โ๏ธ Gateway Runtime Options Flow¶
You can adjust integration runtime parameters at any time without re-adding the gateway:
- Navigate to Settings โ Devices & Services โ MyHOME.
- Click Configure on the gateway integration card.
| Option | Key | Selector / Type | Default | Session / Model Limits | Description |
|---|---|---|---|---|---|
| Command Worker Concurrency | command_worker_count |
Integer | 1 (2 on F455 and MyHomeServer1, via command_session_default) |
Range 1โ4 capped by model (1 on single-session models, 2 on MH202, 4 on F454/F455/F461/MyHomeServer1; 1โ10 on Generic) |
Number of concurrent asynchronous command sessions (*99*0##) dispatched to the gateway. |
| Dimmer Transition Mode | transition_mode |
Select | software_stepped |
software_stepped, native, auto |
Home Assistant software-stepped fade interpolation vs native hardware speed parameter (auto aliases software_stepped). |
| Event Bus Broadcasting | generate_events |
Boolean | False |
All gateways | Emits raw OpenWebNet bus frames onto the Home Assistant event bus as myhome_message_event. |
| Broadcast Re-sync | broadcast_resync |
Boolean | True |
All gateways | Sweeps group (#G), area, and general (WHERE = 0) light addresses for status after a debounced silence window. |
| Gateway Host Address | address (writes entry.data["host"]) |
IPv4 String | Current host |
Valid IPv4 | In-place update of the gateway IPv4 address (host) without deleting the config entry. |
| Gateway Password | password (writes entry.data["password"]) |
String | Current password |
OPEN numeric / SHA-256 HMAC | In-place update of the OpenWebNet password without deleting the config entry. |
| Gateway Hardware Model | name (writes entry.data["name"] / model) |
Select | Current model | SUPPORTED_GATEWAY_MODELS |
In-place override of the gateway hardware model and active OWNd profile (model_source = "manual"). |
| Ignored Bus Addresses | ignored_addresses |
Multiline Text | [] |
All gateways | Newline- or comma-separated WHO/WHERE addresses (e.g. 1/74, 1/74#4#01) silenced from discovery, entity creation, and fault tracking. |
| Bus Topology | bus_topology |
Select | standalone |
standalone, shared (multi-gateway setups) |
Declares whether this gateway operates on an independent SCS bus (standalone) or shares a physical SCS bus with another configured gateway (shared). |
| Gateway Role | gateway_role |
Select | primary |
primary, secondary, standby (shared bus) |
Shared-bus coordination role: primary owns general bus discovery, secondary handles delegated WHO subsystems, and standby stays passive for hot failover. |
| Primary Gateway | primary_gateway |
Select | First peer gateway | Configured non-follower gateways | Target primary gateway MAC address paired with a secondary or standby follower on a shared SCS bus. |
| Delegated Subsystems | delegated_whos |
Multi-Select | Auto-inferred ([]) |
Delegatable WHO codes (secondary role) |
OpenWebNet WHO subsystems delegated to a secondary gateway on a shared bus (for example WHO = 6 / WHO = 8 door entry or WHO = 16 audio). |
| Auto-Join Streaming Groups | auto_join_streaming |
Boolean | True |
WHO 16 audio zones | Automatically joins an active streaming decoder group when turning on a room amplifier or adjusting volume from a physical wall control. |
| FM Tuner Station Pictures | tuner_pictures |
Multiline Text | "" |
<MHz>=<URL> lines |
Custom station artwork mapping (MHz=URL per line, e.g. 96.2=/local/radio/one.png) displayed while an F500/F500N tuner is tuned to that frequency. |
| Audio Matrix Source Names | source_1_name..source_4_name |
Text | "" |
4 matrix inputs (S1โS4) |
Friendly labels for physical sound sources wired to F441/F441M matrix inputs S1โS4 (blank hides unconfigured inputs from source selection). |
| Audio Source FM Tuner Flag | source_1_tuner..source_4_tuner |
Boolean | False |
4 matrix inputs (S1โS4) |
Declares whether matrix input S1โS4 is an F500/F500N RDS FM tuner, creating its radio media_player, frequency number, and seek button entities. |
| Audio Environment Default Source | default_source_env_1..default_source_env_9 (stored in source_defaults) |
Select | none |
Active audio environments 1โ9 (none, 1โ4) |
Per-environment default matrix input (S1โS4) selected when turning on a two-digit room amplifier (EA) from Home Assistant (none leaves routing unchanged). |
| Streaming Decoder Entity | decoder_1_entity..decoder_4_entity |
Entity (media_player) |
"" |
4 decoder slots (excludes MyHOME & MA clones) | Upstream hardware media_player entity (e.g. Squeezelite, WiiM, Cambridge Audio) whose analog line-out feeds one of the matrix inputs. |
| Streaming Decoder Matrix Input | decoder_1_source..decoder_4_source |
Select | Slot index (1โ4) |
Unique matrix input 1โ4 per active decoder |
Physical F441/F441M matrix source input (S1โS4) wired to each streaming decoder's line-out. |
| Streaming Decoder Pre-Gain | decoder_1_pre_gain..decoder_4_pre_gain |
Integer (%) |
0 |
0โ100% integer (step: 1) |
Fixed line-level feed trim (0โ100% integer: 0% leaves upstream volume untouched; 1โ100% sets upstream volume to min(1.0, 0.75 + pre_gain / 100)). |
| Streaming Decoder Companion | decoder_1_companion..decoder_4_companion |
Entity (media_player) |
"" (auto-detect) |
4 decoder slots (optional companion player) | Optional companion media_player entity receiving stream URLs (play_media) on behalf of the hardware decoder when left blank for auto-detection. |
1. Command Worker Concurrency (command_worker_count)¶
- Range:
1to4on profiled gateways (1to10onGeneric). - Dynamically capped and validated against the gateway model's hardware limit:
- 1 worker:
MH200,MH200N,MH201,F452,F452V,F453,F453AV,H4684,AM4890/H4890/LN4890. - Up to 2 workers:
MH202(default1). - Up to 4 workers:
F454,F461(default1);F455,MyHomeServer1(default2).
- 1 worker:
- Prevents socket flooding and gateway CPU exhaustion while maximizing throughput on modern multi-session gateways.
2. Dimmer Transition Mode (transition_mode)¶
software_stepped(Default & Recommended): Home Assistant calculates and dispatches smooth software-stepped brightness interpolation (up to 25 steps,SOFTWARE_TRANSITION_MAX_STEPS = 25). Guarantees consistent fade behavior across all BTicino dimmer generations (F418,F418U2, DALI interfaces).native: Passes the transition duration directly to the gateway using OpenWebNet hardware fade speed parameters (rather than fixedWHAT = 2โ9brightness steps). Only recommended when your physical dimmers honour native hardware fade speed parameters.auto: Alias forsoftware_stepped.
3. Event Bus Broadcasting (generate_events)¶
- Boolean switch (Default:
False). - When enabled, raw OpenWebNet bus telegrams are emitted onto Home Assistant's event bus as
myhome_message_eventevents for custom automations.
4. Broadcast Re-sync (broadcast_resync)¶
- Boolean switch (Default:
True). - When enabled, detecting group (
#G), area, or general (WHERE = 0) light broadcast commands arms a 500 ms (RESYNC_DEBOUNCE_S = 0.5) debounce window and sweeps only addresses whose actuators did not echo spontaneously.
5. Multi-Room Audio Routing, Tuners & Dynamic Proxy Decoders (WHO = 16 / WHO = 22)¶
- Audio Source Names & Tuner Flags (
source_1_name..source_4_name,source_1_tuner..source_4_tuner): Assign friendly names for the physical inputs on the F441/F441M audio matrix (e.g. "Living Room HiFi", "FM Tuner"). Enablesource_1_tuner..source_4_tuneron F500/F500N inputs so FM frequency, preset, and RDS controls are created acrossWHO = 16andWHO = 22(includingWHO = 22-only gateways). - Default Source per Environment (
default_source_env_1..default_source_env_9): Declares which matrix input (S1โS4) is selected when a two-digitWHO = 16amplifier in that environment is switched on. - Dynamic Proxy Decoders (
decoder_1_entity..decoder_4_entity,decoder_1_source..decoder_4_source,decoder_1_pre_gain..decoder_4_pre_gain,decoder_1_companion..decoder_4_companion): Map external streaming players (e.g. Music Assistant, Squeezelite, WiiM, DLNA DMR) to physical matrix inputs (WHO = 16), with integer pre-gain trim (0โ100%).
6. Reconfigure vs Configure (Options Flow)¶
- Reconfigure (
โฎ โ Reconfigure): Updates connection transport settings in place โhost(IPv4),port, andpasswordโ verifying connectivity before saving. - Configure (
Configurebutton / Options Flow): Changes the gateway hardware model (name), runtime worker/fade/audio options, shared-bus topology, oraddress/passwordin place without deleting devices or breaking entity IDs.
๐ก๏ธ Reliability & Watchdogs¶
The integration includes enterprise-grade connection reliability safeguards:
- OS-Level TCP Socket Keepalive: OWNd enables OS-level TCP socket keepalive probes (
SO_KEEPALIVE) on the event session socket to detect half-open NAT/router drops. OnF454,F461,MH200andMH200Nit also writes the keepalive frame*#*1##on the event session every 90 s; on the other models that session carries no periodic application frames. - Backoff & Auto-Reconnect: If a network glitch or gateway reboot occurs, the event and command workers automatically cycle through an exponential backoff reconnect loop.
- Availability Grace Period: An entity availability grace timer (60 seconds) prevents entities from rapidly toggling to
Unavailableduring brief gateway reconnections or WiFi dropouts. - Silent Reconnect Cycles: The read cycle in which OWNd re-establishes the event socket produces no frame and is skipped at
DEBUGlevel;Event connection lost, reconnecting...is OWNd's own log line and is normal on gateways that close idle sockets (MH200/MH201). - Profile-Gated Discovery: The startup status requests (
*#2*0##,*#4*0##,*#16*0*5##) are only sent for subsystems the gateway profile advertises, and*#4*0##/*#16*0*5##are left out on the models whose firmware drops them (see runtime behaviour). - Reauthentication: A rejected OpenWebNet password raises
ConfigEntryAuthFailed; Home Assistant shows Reauthentication required and opens the reauth flow. Other connection failures are retried with backoff (ConfigEntryNotReady). - Bus Monitor Tap: Zero-overhead in-band packet tap that copies incoming and outgoing frames directly to the diagnostic Lovelace bus card without opening additional sockets.
See Runtime Behaviour Notes for the reasoning behind each of these.
๐ Gateway Timezone Configuration¶
OpenWebNet gateways manage an internal real-time clock (RTC) queried via WHO=13 dimension 0 (*#13**0##) or dimension 22 (*#13**22##). When the timezone has not been configured in the gateway's management interface, the gateway emits a placeholder sentinel value 999 in the timezone field (e.g. *#13**0*<HH>*<MM>*<SS>*999## or *#13**22*...*999*...##).
This placeholder can cause date and time parsing failures or dropped gateway diagnostic messages. When the integration detects this sentinel, it registers a Home Assistant Repair issue advising that the gateway requires configuration. (See Unconfigured Timezone in the Repair Issues Guide).
Note
The F461 gateway is configured exclusively via the Home + Project app and maintains its clock via NTP. Its firmware always reports 999 over OpenWebNet even when configured; the integration recognizes this and automatically exempts the F461 from this warning.
How to resolve:¶
- Log into the gateway's web administration interface, or open MyHOME_Suite / TiMyHome / MyHOME_Up.
- Navigate to the Date & Time or Clock settings.
- Configure the correct local time and timezone (or enable NTP synchronization if supported by your gateway).
- Save the configuration and reboot or restart the gateway.
Once the gateway responds with a valid timezone offset, the repair issue automatically resolves and clears from your Home Assistant Repairs dashboard.
๐ How the Gateway Model is Identified¶
The model label decides the gateway profile (command sessions, pacing, queue size, which subsystems are queried) and appears in the entry title, the device registry, diagnostics and every bus-monitor export โ so it must be right, and it must say how it was established.
| Source | Meaning | Trust |
|---|---|---|
ssdp |
The gateway announced its own modelName over UPnP/SSDP |
Authoritative |
manual |
You picked the model in the config flow | Trusted, but correctable by certain evidence |
who13 |
No model was configured; labelled from the WHO=13 device-type reply | Best effort |
WHO=13 dimension 15 ("MODEL REQUEST", *#13**15*<code>##) is the only in-band identity signal. Its official table โ BTicino OpenWebNet_Community_2_device v1.0.0, 13 June 2006, ยง1.2.6 โ is complete at six entries: 2 MHServer, 4 MH200, 6 F452, 7 F452V, 11 MHServer2, 13 H4684. Every gateway sold since (F454, F455, MH200N, MH202, MyHOMEServer1โฆ) is absent and reuses or invents codes, so the reply can corroborate an identity but never establish one for a modern gateway. Field evidence: code 200 is reported by both the F454 (#370) and MyHOMEServer1 (#292/#297), corroborating modern gateway models without uniquely identifying either.
Rules applied when the reply arrives:
- Compatible model (e.g. configured MH200 with code
4, or configured F454 / MyHOMEServer1 with code200): consistent, nothing changes. A model the tables list by name must match by name or brand variant: an MH200N has a code of its own (44), so code4contradicts it. Only a variant suffix no table lists is compared by family and never downgraded. ssdpcontradicted: model kept; a repair issue asks you to confirm.manualcontradicted by an official code: model, profile and device registry are corrected and a repair issue tells you (the old manual flow defaulted to F454, which is how mislabelled entries came to exist).manualcontradicted by an observed-only code: model kept; a repair issue asks you to confirm.- No model configured: labelled from an official code; ambiguous codes (such as
200) do not auto-label and keep the gateway as generic. - Unknown code: recorded, nothing changes โ please attach a trace to an issue so the code can be documented.
Every diagnostics download and bus-monitor export carries an identification block: the model, its source, the raw who13_code, what the specification (who13_model_official) and field evidence (who13_model_observed) say it means, the WHO=1013 reply when one was needed (who1013_code, who1013_model, and the who1013_n_conf / who1013_brand / who1013_line metadata that comes with it), firmware / kernel / distribution from dimensions 16 / 23 / 24, the active profile, and any conflict. A trace can therefore never hide a mislabelled gateway.
๐ฆ Manual Installation Pitfalls¶
When installing a release myhome.zip by hand, the archive must be extracted into /config/custom_components/myhome/ โ never into /config/custom_components/ itself:
unzip -q myhome.zip -d /config/custom_components/myhome # correct
unzip -q myhome.zip -d /config/custom_components # wrong
A stray __init__.py / manifest.json in the root of custom_components turns that folder into a regular Python package whose init is the integration code. On Home Assistant 2026.9+ the loader then imports no custom integration at all โ every custom integration shows Not loaded, the bus-monitor card 404s, and nothing is logged at warning level.
Likewise keep backups outside custom_components (e.g. /config/myhome_backup/). A copy such as custom_components/myhome_backup_2026โฆ/ registers a second myhome domain: the loader logs We found a custom integration myhome twice and may load the backup instead of the real one (duplicate CEN units, stale code).
๐ Multi-Gateway & Shared Bus Support¶
In complex installations, multiple OpenWebNet gateways may exist in Home Assistant under two primary architectures:
+-------------------------------------------------+
| HOME ASSISTANT CORE |
| |
| +-------------------+ +-----------------+ |
| | Primary Entities | | Secondary Ent. | |
| |{prim_mac}-WHO-ADDR| |{sec_mac}-WHO-ADDR| |
| +---------^---------+ +--------^--------+ |
+-------------|----------------------|------------+
| |
+-----------------------+ |
| | |
[Normal Operation] [Failover Active] |
| | |
v v v
+---------------+ +---------------+ +---------------+
| PRIMARY | | WARM STANDBY | | SECONDARY |
| GATEWAY | | GATEWAY | | GATEWAY |
| (F454 / etc) | | (MH202 / etc)| | (Audio/Cover) |
+-------+-------+ +-------+-------+ +-------+-------+
| | |
| TX Echo Filter | Inbound Bridging | Delegated WHOs
| (1.5s window) | (CEN, Events, Cmds) | (e.g. WHO 2, 16)
| | |
========+=======================+======================+========
PHYSICAL SCS BUS (Twisted Pair)
========+=======================+======================+========
| | |
+-------+-------+ +-------+-------+ +-------+-------+
| Light Actuator| | Shutter Switch| | Audio F441 |
| (WHO 1) | | (WHO 2) | | (WHO 16) |
+---------------+ +---------------+ +---------------+
1. Independent Bus Segments (standalone)¶
Each gateway is connected to its own separate physical SCS bus segment (for example, separate apartment units, outbuildings, or dedicated subsystems connected via galvanically isolated interfaces).
- Behavior: Every gateway independently discovers, polls, and creates entities.
- Entity Unique IDs: Scoped as
{mac}-{who}-{where}, guaranteeing uniqueness across different gateways without conflicts.
2. Shared Bus (shared)¶
Two or more gateways are wired to the same physical SCS wiring (for example, a modern MH201 handling general automation alongside a legacy MH200N running complex logic scenarios or a 3486 burglar alarm interface).
Without proper coordination on a shared bus:
- Both gateways observe the same bus traffic, causing duplicate Home Assistant entities for every physical light, cover, or thermostat.
- Startup discovery sweeps (
*#2*0##,*#4*0##, etc.) sent simultaneously by multiple gateways collide on the SCS bus, triggering NACK storms and rate-limiting timeouts. - Ambiguous service calls (such as
myhome.sweep_bus) query all gateways redundantly.
Shared Bus Configuration:¶
- Primary Gateway (configure it first):
- Set
bus_topology: sharedandgateway_role: primary. - Performs active startup sweeps and entity discovery for every subsystem not delegated to a secondary.
- Cannot leave the primary role while a secondary or standby still points at it.
- Set
- Secondary Gateway (Subsystem Offloading):
- Set
bus_topology: sharedandgateway_role: secondary. - Select the Primary Gateway in the dropdown.
- Active startup sweeps for non-delegated subsystems are automatically suppressed.
- Automatic entity discovery on bus events is suppressed for non-delegated WHOs.
- Any pre-existing duplicate secondary entities matching the primary gateway are pruned on startup.
- Changing the role reloads the gateway once the options are saved.
- Set
- Warm Standby Gateway (High Availability Failover):
- Set
bus_topology: sharedandgateway_role: standby. - Select the Primary Gateway in the dropdown.
- Functions as a warm backup (e.g. an MH202 or secondary F454 standing by behind a main F454).
- While the primary gateway is healthy, duplicate entity discovery and startup sweeps are suppressed.
- Transparent Failover: If the primary gateway loses connection or becomes unresponsive:
- Outbound commands and status polls are seamlessly dispatched via the standby gateway, and so are their replies.
- Inbound bus frames received by the standby gateway are bridged to primary entities (only from the standby, so a secondary on the same bus does not deliver them twice).
- Scenario control events (CEN
WHO=15and CEN+WHO=25) are bridged with the primary's MAC address and entry ID to both the HA event bus and dispatcher listeners, allowing device triggers to fire transparently. - Once the outage outlasts the 60-second reconnect grace, a Repair Issue (
gateway_failover_active) is raised alerting you to the offline primary unit while keeping your home fully functional. - When the primary gateway reconnects, Home Assistant automatically performs failback and clears the repair issue.
- Set
+-------------------------------------------------------------------------------+
| STANDBY FAILOVER STATE MACHINE |
+-------------------------------------------------------------------------------+
| |
| +------------------------+ +-------------------------+ |
| | PRIMARY ONLINE | Primary Session | FAILOVER ACTIVE | |
| | | Drops (> 60s) | | |
| | - Standby silent | -----------------> | - Outbound via Standby | |
| | - No duplicate ent. | | - Inbound bridged to | |
| | - Primary routes cmds | <----------------- | primary entities | |
| +------------------------+ Primary Returns | - CEN events mapped | |
| | - Repair issue raised | |
| +------------+------------+ |
| | |
| Standby Drops | Standby |
| Too | Reconnects |
| v |
| +-------------------------+ |
| | FULL BUS OUTAGE | |
| | - Primary entities | |
| | marked UNAVAILABLE | |
| +-------------------------+ |
+-------------------------------------------------------------------------------+
- Delegated Subsystems:
- If the secondary gateway is a specialized unit (such as a 3486 for
WHO=5Burglar Alarm or an MH200N dedicated toWHO=16/22Audio), select those subsystems under Delegated Subsystems. - New devices of a delegated subsystem are discovered by the secondary only; the primary stops sweeping and discovering that subsystem.
- Devices the primary already had before the delegation stay on the primary, so no entity is renamed or loses its settings. To move one to the secondary, delete it from the primary gateway's device page; the secondary discovers it on its next bus frame.
- If the secondary gateway is a specialized unit (such as a 3486 for
Automated Topology & Subsystem Delegation Inference¶
Rather than requiring users to manually calculate subsystem overlaps and gateway tiers, Home Assistant automatically infers the optimal shared bus configuration based on gateway hardware models, performance tiers, and OpenWebNet command capabilities.
+------------------------------------------+
| Two Gateways on Shared Physical Bus |
| (Gateway A & Gateway B) |
+--------------------+---------------------+
|
v
+------------------------------------------+
| 1. Compare Hardware Performance Tiers |
| - Tier 1: F454, F455, F461, MHS1 |
| - Tier 2: MH201, MH202, H4890/Touch |
| - Tier 3: MH200N/200, F452/453, H4684 |
+--------------------+---------------------+
|
v
+-----------------------------------------------+
| Rank by (Tier ASC, WHO Count DESC, MAC ASC) |
| Higher Tier / More WHOs = PRIMARY |
| Remaining Gateway = FOLLOWER |
+-----------------------+-----------------------+
|
v
+------------------------------------------+
| 2. Compute Capability Delta Formula |
| ฮ = S_follower \ S_primary |
+--------------------+---------------------+
|
+----------------------+----------------------+
| |
ฮ = โ
(Empty Delta) ฮ โ โ
(Subsystems in ฮ)
| |
v v
+------------------------------+ +-------------------------------+
| Assign ROLE_STANDBY | | Assign ROLE_SECONDARY |
| (Warm Standby HA Failover) | | (Subsystem Offloading) |
+--------------+---------------+ +---------------+---------------+
| |
| - 0 duplicate entities | - Delegate WHOs in ฮ
| - Suppress secondary sweeps | - Auto-couple WHO 16 & 22
| - Transparent failover on | - Primary stops sweeping
| primary disconnect | delegated subsystems
| |
+----------------------+----------------------+
|
v
+------------------------------------------+
| 3. Automated Execution & Deployment |
| - 1-Click UI: SharedBusRepairFlow |
| - Options Flow: Smart Pre-population |
+------------------------------------------+
Gateway Performance Tiers & Pacing¶
- Tier 1 (High Throughput / Multi-Session, 20โ50 ms pacing):
F454,F455,F461,MyHomeServer1. - Tier 2 (Modern Scenario & Touchscreen Gateways, 50โ100 ms pacing):
MH201,MH202,H4890/AM4890/LN4890(and Legrand catalogue equivalents067292,573958,078479). - Tier 3 (Legacy & Single-Session Gateways):
MH200N,MH200,F452,F452V,F453,F453AV,H4684/H/L4684, andGeneric.
When two gateways are paired on a shared bus, the integration ranks them by performance tier (Tier 1 > Tier 2 > Tier 3), supported OpenWebNet subsystem coverage (more supported WHO dimensions wins), and deterministic MAC address ordering (pri_mac <= sec_mac) as a final tie-breaker. The broader, more performant gateway is assigned as the Primary.
Capability Delta Formula¶
The follower gateway's role and delegated subsystems are calculated by evaluating the set difference of supported OpenWebNet subsystems (S):
- Empty Delta (
ฮ = โ):- When the primary already covers all subsystems supported by the secondary (e.g. F454 + MH202), the secondary is assigned the Warm Standby (
standby) role. - No duplicate entities are created, and the secondary transparently takes over bus communication if the primary fails.
- When the primary already covers all subsystems supported by the secondary (e.g. F454 + MH202), the secondary is assigned the Warm Standby (
- Non-Empty Delta (
ฮ โ โ):- When the secondary supports specialized subsystems absent from the primary (e.g. MyHomeServer1 + H4890, where H4890 provides Burglar Alarm
WHO=5, AuxiliaryWHO=9, and Sound DiffusionWHO=16/22), the secondary is assigned the Secondary (secondary) role with delegated subsystemsฮ. - In addition, audio subsystems (
WHO=16Matrix andWHO=22Sound Diffusion) are automatically coupled so both route through the dedicated audio hardware.
- When the secondary supports specialized subsystems absent from the primary (e.g. MyHomeServer1 + H4890, where H4890 provides Burglar Alarm
Smart Defaults & 1-Click Repair¶
- Options Flow: Selecting
bus_topology: sharedand picking a Primary gateway dynamically pre-populates the inferred Gateway Role and Delegated Subsystems multi-select options. - Repair Flow: When an unconfigured shared bus is detected via TX-to-RX echoes (
shared_bus_detected), Home Assistant generates a 1-click repair issue displaying the inferred topology, assigned roles, and rationale. Submitting the repair dialog automatically applies the topology to both gateways and reloads them.
Automatic Shared Bus Detection¶
The integration passively compares the traffic of every pair of gateways that is not configured on the same bus. Due to false positives with external automation platforms, concurrent RX triggers are ignored. The only accepted evidence is a strict TX-to-RX echo:
- Gateway B receives a physical point-to-point frame on the bus that Gateway A transmitted less than 1.5 seconds prior (
SHARED_BUS_TX_ECHO_S = 1.5). - General lighting (
WHERE=0), general automation (WHERE=0), area commands (WHEREstarting with#or area codes), and group commands (WHERE=#0) are filtered out to prevent false correlations when automations trigger synchronized broadcast scenes across separate physical buses. - Three correlated frames within an evidence window of 10 minutes (
SHARED_BUS_EVIDENCE_WINDOW_S = 600.0) raise an actionable Home Assistant Repair Issue (shared_bus_detected), alerting you to configure the shared bus relationship. Gateway-localWHO=13/WHO=1013frames are ignored. Configuring the pair on one bus dismisses the issue.
Multi-Gateway Logging & Diagnostic Traces¶
When commissioning or diagnosing multi-gateway installations, Home Assistant logs every step of the topology evaluation and failover lifecycle.
Enable debug logging in configuration.yaml or via the Home Assistant UI (Settings โ Devices & Services โ MyHOME โ โฎ โ Enable debug logging):
logger:
logs:
custom_components.myhome: debug
custom_components.myhome.topology: debug
custom_components.myhome.repairs: debug
OWNd: debug
What to Look for in the Logs:¶
- Topology Inference & Subsystem Delegation:
DEBUG: Evaluating shared bus topology between F454 (Tier 1, WHOs [1, 2, 4, ...]) and MH202 (Tier 2, WHOs [1, 2, 4, ...]). Primary selection: F454 (Tier 1 < Tier 2). Secondary capability delta: [] (audio coupled: False) INFO: Inferred shared bus topology: Primary=F454 (00:03:50:aa:bb:01, Tier 1), Follower=MH202 (00:03:50:aa:bb:02, Tier 2, role=standby, delegated=[]). F454 (Tier 1) selected as Primary (Tier 1 < Tier 2). MH202 capabilities are fully covered by Primary; configured as Warm Standby for failover. - Smart Options Flow Pre-Population:
- 1-Click Repair Execution:
- Shared-Bus Detection (TX-to-RX Echoes):
- Delegated Command Routing:
- Warm Standby Failover & Inbound Bridging:
Opening an Issue on GitHub:¶
When reporting behavior relating to shared buses, failover, or inference:
- Navigate to Settings โ Devices & Services โ MyHOME.
- Click โฎ โ Download diagnostics on both gateway cards. The downloaded JSON includes full
bus_topology,gateway_role,delegated_whos, failover state, command queue pacing, and the rolling 500-frame buffer (with credentials redacted). - Attach both diagnostic JSON files to your GitHub issue.