Skip to content

Repository files navigation

OpenNetty Home Assistant Add-on

OpenWebNet/MQTT gateway for BTicino and Legrand home automation devices.

This add-on bridges OpenWebNet gateways to MQTT, enabling Home Assistant to control and monitor BTicino and Legrand devices via MQTT Discovery.

Supported protocols

  • OpenWebNet/Zigbee - MyHome Play devices (via BTicino 3578 or Legrand 88328 Zigbee/USB gateway)
  • OpenWebNet/Nitoo - In One by Legrand devices (via Legrand 88213 powerline/USB gateway)
  • OpenWebNet/SCS - MyHome/MyHome Up devices (via BTicino F454 or MH202 SCS/Ethernet gateway)

Supported devices

The full list of supported BTicino and Legrand products can be found in the OpenNettyDevices.xml file.

Installation

  1. Add this repository to your Home Assistant add-on store:

    Add repository

    Or manually add the repository URL:

    https://github.com/IsraelBenDavid/opennetty-core
    
  2. Install the OpenNetty add-on from the store.

  3. Configure the add-on (see below).

  4. Start the add-on.

Configuration

MQTT

OptionDescriptionRequired
mqtt_serverHostname or IP of your MQTT broker (e.g. core-mosquitto)Yes
mqtt_portMQTT broker port (default 1883, or 8883 for TLS)Yes
mqtt_usernameMQTT broker usernameYes
mqtt_passwordMQTT broker passwordYes

MQTT TLS (optional)

OptionDescription
mqtt_tls_enabledEnable TLS/SSL for the MQTT connection
mqtt_tls_ca_certCA certificate filename in the /ssl directory (e.g. ca.crt)
mqtt_tls_client_certClient certificate filename in the /ssl directory (e.g. client.crt)
mqtt_tls_client_keyClient private key filename in the /ssl directory (e.g. client.key)
mqtt_tls_server_hostExpected server hostname for TLS certificate validation

Gateways

Add your OpenWebNet gateways under the gateways list. Each gateway requires:

OptionDescriptionRequired
brandLegrand or BTicinoYes
modelGateway model number (e.g. 88328, F454)Yes
serial_numberSerial number (or MAC address for TCP gateways, e.g. 00:03:50:A2:27:1B)Yes
gateway_nameA friendly name for the gatewayYes
gateway_typeSerial or TcpYes
portSerial port path (for Serial gateways)Serial only
serverIP address (for TCP gateways)Tcp only
passwordGateway password (for TCP gateways requiring authentication)If required

General

OptionDescriptionDefault
ha_discovery_cultureLanguage for HA discovery payloads (e.g. en, fr). Leave empty for system default.empty
debug_loggingEnable detailed logging output for troubleshootingfalse

Scan delay settings

These settings control the timing of the Zigbee discovery scan. Adjust them if you experience issues with device detection on busy networks.

OptionDescriptionDefault
scan_retry_no_response_delayDelay (ms) before retrying when no response is received2000
scan_retry_error_delayDelay (ms) before retrying after an error3000
scan_inter_device_delayDelay (ms) between querying each device1000
scan_query_timeoutTimeout (ms) for waiting for a product info response5000

Set any value to 0 to disable the delay.

Example configuration

mqtt_server: core-mosquittomqtt_port: 1883mqtt_username: opennettymqtt_password: my_passwordmqtt_tls_enabled: falseha_discovery_culture: endebug_logging: falsescan_retry_no_response_delay: 2000scan_retry_error_delay: 3000scan_inter_device_delay: 1000scan_query_timeout: 5000gateways:
- brand: Legrandmodel: "88328"serial_number: "0026BD26"gateway_name: Zigbee Gatewaygateway_type: Serialport: /dev/serial/by-id/usb-Silicon_Labs_CP2102_USB_to_UART_Bridge_Controller_0001-if00-port0
- brand: BTicinomodel: F454serial_number: "00:03:50:A2:27:1B"gateway_name: SCS Gatewaygateway_type: Tcpserver: 192.168.1.10password: my_gateway_password

How it works

Once configured and started, the add-on:

  1. Connects to your OpenWebNet gateways (Serial or TCP).
  2. Publishes MQTT Discovery payloads so Home Assistant automatically creates entities for all detected devices.
  3. Bridges state changes and commands between OpenWebNet and MQTT in real time.
  4. For Zigbee gateways, performs a discovery scan to automatically detect connected devices.

Devices appear automatically in Home Assistant under the MQTT integration - no additional configuration needed.

Troubleshooting

  • Enable Debug Logging in the add-on configuration for detailed output.
  • Check the add-on logs in the Home Assistant Supervisor panel.
  • For Zigbee scan issues, try increasing the scan delay values.
  • Ensure your MQTT broker (e.g. Mosquitto) is running and accessible.

License

This project is licensed under the Apache License 2.0.

Based on OpenNetty by Kevin Chalet.

About

Home Assistant add-on: OpenWebNet/MQTT gateway for BTicino and Legrand home automation devices

Topics

Resources

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages