Skip to content
OpenWebNet-HAPublic

About

Modern async Home Assistant integration for Legrand & BTicino MyHOME SCS bus systems via OpenWebNet IP & Serial gateways.

Topics

Resources

Contributing

Stars

194 stars

Watchers

16 watching

Forks

Latest commit

 

History

2,138 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MyHOME — OpenWebNet Integration for Home Assistant

Validate with hassfest Marketplace / HACS Validation test-coverage Coverage Integration Quality Scale Quality scale tier Home Assistant Marketplace Latest Release Python 3.14 mypy Ruff User Manual Discussions License: Apache-2.0

Async-native Home Assistant integration for BTicino / Legrand MyHOME SCS bus systems connected via OpenWebNet TCP/IP gateways, powered by the decoupled OWNd protocol engine and maintained by the OpenWebNet-HA community organisation.

📖 User Manual • 📦 Installation • ⚙️ Quick Start • 🏛️ Supported Hardware • 📡 Bus Monitor • 💬 Discussions • 🤝 Contributing • 📄 License


Highlights

  • UI-First Setup & Dynamic Auto-Discovery: SSDP/UPnP gateway discovery, native Config, Options, and Subentry flows, and automatic on-wire SCS entity discovery — with optional myhome.yaml declarations for physical #G lighting groups, WHO=6 door-entry locks, and DALI feature locks.
  • Declarative Hardware Gateway Profiles: Model-aware session concurrency and adaptive per-target frame scheduling (FrameScheduler) across 11 BTicino and Legrand IP gateway families, prioritizing user commands and immediate cover STOP actions ahead of background sweeps.
  • Lighting, Motorized Covers & Climate: Smooth dimmer fades, hardware-offloaded DIN actuator countdown timers (WHO=1), DALI HSV & DT8 Tunable White (2000K–6535K), calibrated shutter and Venetian slat-tilt kinematics with ~1 s live position interpolation (WHO=2), and Central Unit 3550 / 4695 whole-home climate coordination (WHO=4).
  • Multi-Room Audio & Streaming Proxy: F441/F441M matrix routing, F500/F500N FM radio tuner controls with live RDS (WHO=16 / WHO=22), and dynamic DecoderPool streaming from Music Assistant or Spotify Connect with analog gain-staging.
  • Native CEN / CEN+ Triggers & Bus Projection (expose): All 8 press, hold, release, and rotary dial device triggers directly in the Home Assistant automation editor (WHO=15 / WHO=25), plus declarative HA-to-SCS bus projection (WHO=1, 2, 4, 13, 18) so physical wall pushbuttons can control Home Assistant entities with LED feedback.
  • Multi-Gateway Topologies & In-Band Diagnostics: MAC-isolated multi-gateway routing, shared-bus warm-standby failover, self-clearing Home Assistant Repair issues, and a zero-socket built-in <myhome-openwebnet-bus-monitor> Lovelace card.

User Manual & Documentation

Full setup guides, per-subsystem configuration references, automation recipes, and troubleshooting steps are published in the MyHOME User Manual:

👉 https://openwebnet-ha.github.io/MyHOME/

Category Manual Guides
Getting Started Configuration Overview • Installation • Hardware Compatibility • Clean Uninstall
Gateways & Bus Gateways & Connection • Gateway Identification • Expose HA Entities to SCS Bus • Services Reference
Entity Domains Lights & DALI • Covers & Travel-Time Calibration • Climate & Heating • Sound System & Streaming • CEN / CEN+ Buttons • Switches • Sensors & Energy • Binary Sensors • Burglar Alarm
Diagnostics & Recipes Lovelace Bus Monitor Card • Home Assistant Repairs • Dashboard Recipes • Use Cases • Troubleshooting • Known Limitations
Protocol & Specs Supported Functions Matrix • OpenWebNet WHO Specifications • Official Legrand Developer Portal

Installation

Requirement: Home Assistant 2026.8 or newer (Python 3.14).

Option 1: Home Assistant Marketplace (2026.11+) / HACS (2026.8 – 2026.10)

From Home Assistant 2026.11 on, use the built-in Home Assistant Marketplace (Settings → Marketplace); existing HACS installations and custom repositories migrate automatically on upgrade. On Home Assistant 2026.8 – 2026.10, use HACS.

  1. Add or locate the repository:
    • Home Assistant 2026.11+ (Marketplace): Open Settings → Marketplace and search for MyHOME (if not yet listed in your catalog, select Add from link in the upper-right corner, enter https://github.com/OpenWebNet-HA/MyHOME, select Integration if prompted, and select Add).
    • Home Assistant 2026.8 – 2026.10 (HACS): Open HACS → Integrations and search for MyHOME (or open ⋮ → Custom repositories and add https://github.com/OpenWebNet-HA/MyHOME with category Integration).
  2. Install & restart:
    • Open MyHOME and select Install in Marketplace (or Download in HACS). To pick a specific release tag, open ⋮ → Install another version (Marketplace) or ⋮ → Redownload (HACS).
    • Restart Home Assistant (Settings → System → Restart).

Caution

Migrating from a personal fork? Never delete your MyHOME integration entry or click "Delete and uninstall"! Deleting the integration under Settings → Devices & services — or choosing Delete and uninstall in Marketplace's "integration in use" dialog — removes all configured gateways, devices, and entities.

  • If a fork is marked Installed in Marketplace (2026.11+): update /config/custom_components/myhome/ in place using Option 2 (Manual / Terminal) below instead of clicking Delete and uninstall.
  • If a fork was only added as a link (not installed) in Marketplace (2026.11+): open Settings → Marketplace → ⋮ → Custom repositories, click Remove next to the fork, and add OpenWebNet-HA/MyHOME via Add from link.
  • On Home Assistant < 2026.11 (HACS): open HACS → ⋮ → Custom repositories, remove the fork URL, and add OpenWebNet-HA/MyHOME.

Option 2: Manual Archive or Terminal & SSH

(Also recommended for installing pre-release tags ahead of stable catalog releases — see the Installation Manual for 1-click SSH and Docker commands.)

  1. Download myhome.zip from GitHub Releases.
  2. Extract myhome.zip into /config/custom_components/myhome/ (so manifest.json is at /config/custom_components/myhome/manifest.json).
  3. Restart Home Assistant (Settings → System → Restart).

Warning

Never keep backup folders inside /config/custom_components/ (such as custom_components/myhome.backup)! Home Assistant scans every subdirectory under custom_components/ containing a manifest.json, causing import failures (No module named 'custom_components.myhome.backup'). Store any safety backups outside custom_components/ (for example /config/myhome_backup/).

For clean uninstallation steps, see Removal & Clean Uninstall.

Upgrading from the previous stable release? Follow the upgrade guide.


Quick Start

  1. Add Your Gateway: Navigate to Settings → Devices & Services → Add Integration → MyHOME. Confirm an SSDP/UPnP-discovered gateway (Configure), or enter your gateway's IP address, port (default 20000), and OpenWebNet / HMAC password manually.
  2. Automatic Bus Discovery: MyHOME establishes dedicated command (*99*0##) and event (*99*1##) sessions, identifies your gateway hardware profile, and automatically discovers devices from bus sweeps and live frames.
  3. Fine-Tune in UI: Click Configure on the MyHOME integration card to adjust command worker concurrency, dimmer transition mode (software_stepped or native), F500/F500N FM tuner source flags (source_1_tuner–source_4_tuner), audio decoder pool mappings, exposed Home Assistant entities, probe-less thermo actuator switches, or ignored addresses.
  4. Optional myhome.yaml Overlay: Physical SCS lighting groups (#1–#255 under light:), WHO=6 video door-entry locks, impulse covers, and DALI lock_features declarations can be placed in /config/myhome.yaml — see the Configuration Overview.

Supported Hardware

Gateway Profiles

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)

This table is automatically updated from gateway profile definitions and hardware specifications.

Supported Entity Domains & Automations

Domain WHO Capabilities
light WHO=1 On/Off, Dimmers with brightness control & transitions (stepped & native), DALI DT8 Tunable White (Dimension 14, 2000K–6535K), HS/RGB colour, Hardware-offloaded bus timers (myhome.turn_on_timed via duration / hours / minutes / seconds)
switch WHO=1 / 4 / 9 / 25 Relays & socket actuators (WHO=1, switch/outlet device classes), thermoregulation zone/actuator power switches (WHO=4), auxiliary & CEN+ contact invert switches (WHO=9 / 25), Hardware-offloaded bus timers (myhome.turn_on_timed via duration / hours / minutes / seconds)
cover WHO=1 / WHO=2 Motorized shutters, blinds, roll-ups with state tracking, position-reporting actuators & virtual travel-time positioning; impulse gates & garage doors (WHO=1) with sensor feedback and an optional multi-factor approval workflow
lock WHO=6 Native video door entry strikes (WHO=6, configured in myhome.yaml) with constant-time PIN authentication and auto-relock
climate WHO=4 Heating, cooling, 4-pipe systems, thermostats, setpoints, fancoil 3-speed modes, offset tracking, Central Unit 3550 (#0) & 4695 (#0#1) master coordination & seasonal propagation
alarm_control_panel WHO=5 Central units (3485/3486), read-only state (disarmed / armed away / triggered), zone 0 broadcast sync; arm/disarm via AUX frames (docs)
binary_sensor WHO=1 / 9 / 25 Magnetic contacts, door/window sensors, PIR motion, AUX channels (1–9), dry contacts (F482/3477), inverted contacts
sensor WHO=1 / 4 / 18 Power meters, energy counters (total/daily/monthly), temperature probes (3475), illuminance / lux sensors
button WHO=14 / 2 / 16 / 22 Hardware actuator lock/unlock for lights, switches & covers (WHO=14), cover travel time calibration buttons (per cover & gateway-wide, WHO=2), F500/F500N FM tuner Seek up / Seek down buttons (WHO=16 / 22)
number WHO=16 / 22 Direct manual FM radio frequency input & stepping (87.50–108.00 MHz, 0.05 MHz step) for declared F500/F500N tuner sources (WHO=16 / 22)
media_player WHO=16 / 22 F441/F441M audio zones, F500/F500N FM radio tuners (presets, RDS, Media Browser, manual frequency & preset storage on WHO=16 & WHO=22), volume normalization, software mute, streaming dynamic proxy (Music Assistant / Spotify Connect)
device_trigger (Automations) WHO=15 / 25 Stateless CEN & CEN+ scenario pushbuttons with string-preserved addressing ("0001"), gateway MAC isolation, and 8 native UI trigger types (short press, long press start, held, release, rotary dials)

This table is automatically updated from platform definitions and supported_functions.md.

📊 Hardware Trace Availability Matrix (Real-Plant CI Corpus)
Gateway Model WHO 0
Scenario
WHO 1
Lights
WHO 2
Autom.
WHO 3
Load
WHO 4
Climate
WHO 5
Alarm
WHO 6
Door
WHO 7
Video
WHO 8
Intercom
WHO 9
Aux
WHO 13
Gateway
WHO 14
Lock
WHO 15
CEN
WHO 16
Audio
WHO 17
Scenario
WHO 18
Energy
WHO 22
Audio Diff.
WHO 25
CEN+
WHO 1001
Diag
WHO 1004
Diag
WHO 1013
Diag
WHO 1022
Diag
067292 ✅ ✅ ✅
F453 ✅ ✅ ✅ ✅ ✅
F453AV ✅ ✅ ✅ ✅ ✅ ✅
F454 ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅
F455 ✅ ✅ ✅ ✅ ✅ ✅ ✅
F459 ✅ ✅ ✅ ✅ ✅
F461 ✅ ✅ ✅ ✅ ✅ ✅ ✅
H4684 / H/L4684 ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅
H4890 / AM4890 ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅
MH200 ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅
MH200N ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅
MH201 ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅
MH202 ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅
MyHomeServer1 ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅

Checkmarks (✅) indicate that at least one anonymized bus capture in tests/fixtures/ exercises that subsystem on the given gateway model. See Trace Availability and Issue #466 to contribute traces.


Bus Monitor & Diagnostics

MyHOME includes an in-band real-time bus monitor operating over the existing gateway event stream with zero extra socket connections:

MyHOME OpenWebNet Bus Monitor Lovelace Card

  • Visual Card Picker: Search for "MyHOME OpenWebNet Bus Monitor" under + Add Card in any dashboard (custom:myhome-openwebnet-bus-monitor).
  • Live Frame Stream & Injector: Subsystem badges (WHO=1, WHO=2, WHO=4, WHO=15/25, WHO=16/22, WHO=18), ACK/NACK highlighting, filtering by WHO / WHERE / RX/TX, offline trace replay, and syntax-validated manual frame injection.
  • Sanitized Diagnostics: One-click diagnostic export from the card or via Settings → Devices & Services → MyHOME → ⋮ → Download diagnostics, with automatic credential, IP, MAC, and SSDP redaction.

Read the full Lovelace Bus Monitor Card Guide.


Quality & Development

MyHOME enforces 100% statement test coverage across all integration modules, mypy --strict type checking, empirical gateway firmware oracle conformance, and deterministic replay of anonymized real-plant OpenWebNet traces. For local setup, test runners, trace anonymization (scripts/anonymize_plant_fixture.py), and pull request guidelines, see CONTRIBUTING.md and ROADMAP.md.

Home Assistant Integration Quality Scale

Tier reached: 🏆 Platinum

Tier Rules satisfied Status
🥉 Bronze 20 / 20 ✅ complete
🥈 Silver 10 / 10 ✅ complete
🥇 Gold 21 / 21 ✅ complete
🏆 Platinum 3 / 3 ✅ complete

Self-audit of quality_scale.yaml against the official Integration Quality Scale; a tier needs every rule of that tier and all lower tiers done/exempt. Updated by the Integration Quality Scale workflow; tiers are formally awarded only by Home Assistant core review.

Code Coverage

The integration maintains 6,554 automated unit tests (100% line coverage across all modules) verified in CI on every pull request.

📊 Per-Module Coverage Breakdown (100% across all integration modules)
Component / Module Coverage Notes
__init__.py 100% Setup/unload lifecycle, static Lovelace card registration & cleanup, and migrations
access_policy.py 100% Human-in-the-loop approval, pre-warning, and watchdog policy for impulse gates/doors
alarm_control_panel.py 100% Read-only WHO=5 burglar alarm central unit status (3485/3486) and broadcast sync
binary_sensor.py 100% WHO=1 PIR motion, WHO=9 AUX channels, and WHO=25 dry contacts with state inversion
bus_monitor.py 100% In-band 500-frame circular ring buffer tap (0 extra gateway sockets)
button.py 100% WHO=14 actuator lock/unlock, WHO=2 cover calibration, and WHO=16/22 FM tuner seek
climate.py 100% WHO=4 zone thermostats, 4-pipe/fancoil controls, and Central Unit 3550/4695 sync
config_flow.py 100% Gateway onboarding, manual/SSDP setup, and subentry flow registration
config_flow_audio.py 100% Audio matrix sources, FM tuner flags, environment defaults, and decoder slot options
config_flow_discovery.py 100% SSDP discovery, connection probing, reauthentication, and reconfiguration steps
config_flow_expose.py 100% Subentry flow for projecting Home Assistant entities onto the SCS bus
config_flow_options.py 100% Gateway runtime options flow (worker sessions, fades, connection, ignored addresses)
config_flow_thermo_switch.py 100% Subentry flow for WHO=4 probe-less thermoregulation / towel-warmer switches
config_flow_topology.py 100% Shared-bus primary, secondary (delegated WHO), and warm-standby topology flows
const.py 100% Protocol commands, dimensions, platform definitions, and integration constants
cover.py 100% WHO=2 shutters/blinds and WHO=1 impulse gates/garage doors with state tracking
cover_calibration.py 100% Automated on-bus stopwatch travel-time calibration engine for WHO=2 covers
cover_motion.py 100% Pure travel-time position interpolation math and command echo suppression
cover_scope.py 100% Stateless general, area, and group WHERE cover entities (WHO=2)
cover_strategies/__init__.py 100% Strategy exports and registry for pluggable WHO=2 cover kinematics
cover_strategies/base.py 100% Base protocol and shared timing state for WHO=2 cover kinematics strategies
cover_strategies/native.py 100% Native percentage position strategy for advanced WHO=2 actuators (Dim 10/11)
cover_strategies/simple.py 100% Open/close/stop strategy for uncalibrated standard WHO=2 actuators
cover_strategies/timed.py 100% Interpolated virtual position strategy for travel-time calibrated WHO=2 shutters
cover_strategies/venetian.py 100% Combined curtain travel and slat-tilt dead-reckoning strategy for Venetian blinds
data.py 100% Typed per-entry runtime_data container and config-entry lookup helpers
decoder_allocation.py 100% Deterministic decoder slot allocation, LRU eviction, and group topology bookkeeper
decoder_companion.py 100% Cross-integration streaming companion discovery and loop-safe entity filtering
decoder_pool.py 100% Dynamic streaming proxy audio pool coordinating matrix inputs and upstream players
device_health.py 100% Hardware fault telemetry and self-clearing Home Assistant Repair issue lifecycle
device_trigger.py 100% Stateless WHO=15 CEN and WHO=25 CEN+ pushbutton and rotary automation triggers
diagnostics.py 100% Sanitized config-entry diagnostics export with credential, IP, and MAC redaction
discovery.py 100% Shared entity restore, YAML overlay merge, dynamic bus discovery, and dispatcher
expose.py 100% Virtual OpenWebNet responder projecting HA entities and system clock onto SCS
gateway.py 100% Gateway coordinator, profile capability gates, startup sweeps, and bus lifecycle
gateway_events.py 100% Inbound OpenWebNet frame classification, event bus emission, and doorbell routing
gateway_resync.py 100% Debounced lighting status resync sweeps after group, area, and general broadcasts
gateway_sessions.py 100% Persistent event session watchdog, priority command queue, and paced worker pool
identity.py 100% Multi-source gateway model and firmware resolution (SSDP, WHO=13, WHO=1013)
ignored.py 100% WHO/WHERE address parser and filter silencing discovery, entities, and fault alerts
legacy_yaml.py 100% Backward-compatible myhome.yaml loader, schema validator, and platform normalizer
light.py 100% WHO=1 relays, dimmers, DALI DT8 tunable white/HSV colour, and DIN bus timers
light_dali.py 100% DALI DT8 feature-lock and Home Assistant colour-mode mutual exclusion helpers
light_fade.py 100% Software-stepped dimmer brightness fade interpolation and cancellation engine
light_group.py 100% Declared physical SCS lighting group entities (WHO=1, WHERE=#G) with member rollup
lock.py 100% WHO=6 video door-entry electric strikes with constant-time PIN verification
media_player.py 100% WHO=16 F441/F441M audio zones, WHO=16/22 FM RDS tuners, and dynamic streaming proxy
media_player_decoder.py 100% Upstream streaming decoder mirroring, fixed pre-gain feed trim, and anti-hiss auto-off
media_player_group.py 100% Multi-room audio zone join/unjoin, master hand-over, parking, and group wake
media_player_pool.py 100% Gateway options-to-DecoderPool builder and live pool reconfiguration helpers
media_player_power.py 100% Audio zone power-state machine, frame classification, and auto-off delay rules
media_player_routing.py 100% WHO=16 environment/amplifier matrix routing address math
media_player_source.py 100% Matrix input source naming, tuner binding, and per-environment default routing
media_player_zone.py 100% Shared state, volume/mute primitives, and DecoderPool access for audio zone mixins
migrate.py 100% Config-entry version upgrades and zero-friction entity/device registry migrations
myhome_device.py 100% Base entity class, DeviceInfo registry linkage, and availability lifecycle
number.py 100% Direct FM radio frequency number entities (87.50–108.00 MHz) for F500/F500N tuners
poll_health.py 100% Adaptive suppression of non-answering bus addresses during background status polls
repairs.py 100% Home Assistant Repair issue builders, interactive fix flows, and cleanup helpers
router.py 100% O(1) WHO/WHERE frame router dispatching bus telegrams to registered entities
sensor.py 100% WHO=18 active power & total/daily/monthly energy counters, WHO=4 probes, WHO=1 lux
services.py 100% Domain service registrations, Voluptuous schemas, and gateway/entity action handlers
sound_source.py 100% F500/F500N FM RDS tuner media_player entity, preset browser, and WHO=16/22 tuning
switch.py 100% WHO=1 relay/outlet switches, WHO=4 thermo actuator switches, and WHO=9/25 invert switches
thermo_switch.py 100% Runtime helpers and subentry sync for WHO=4 probe-less thermo actuator switches
topology.py 100% Shared-bus role validation, WHO delegation rules, and warm-standby failover logic
tuner_decode.py 100% Pure WHO=16 and WHO=22 FM frequency, preset, and RDS text frame decoders
typing_compat.py 100% Cross-version Home Assistant typing compatibility shims for strict mypy
validate.py 100% Voluptuous schemas for myhome.yaml devices, canonical WHERE rules, and access policies
websocket.py 100% WebSocket API for real-time bus monitor streaming, frame history, and diagnostics
where_grammar.py 100% Canonical OpenWebNet APL, F422 #4#bus, and WHO=4 zone/actuator WHERE grammar

Credits & Attribution

Developed and maintained by the OpenWebNet-HA community.

Special thanks to:


License

Copyright © 2020–2026 OpenWebNet-HA Community & Contributors.

Licensed under the Apache License 2.0, the same permissive open-source license used by Home Assistant Core and OWNd.

About

Modern async Home Assistant integration for Legrand & BTicino MyHOME SCS bus systems via OpenWebNet IP & Serial gateways.

Topics

Resources

Contributing

Stars

194 stars

Watchers

16 watching

Forks

Releases

Packages

Used by

Contributors

Languages