zigbee2mqtt icon indicating copy to clipboard operation
zigbee2mqtt copied to clipboard

[Feature request]: Expose Shelly Gen4 Wi-Fi enable/disable as a native Home Assistant switch

Open eichhorn opened this issue 1 month ago • 0 comments

Is your feature request related to a problem? Please describe

The Shelly Power Strip 4 Gen4 (S4PL-00416EU) already supports enabling and disabling Wi-Fi through the wifi_config.enabled property in Zigbee2MQTT.

However, this property is part of a composite expose and is not automatically discovered as a standalone switch entity in Home Assistant.

Currently, Home Assistant exposes the Wi-Fi Configuration and Wi-Fi Status entities, but does not provide a native switch to toggle Wi-Fi connectivity.

Users must either open the Zigbee2MQTT frontend or manually create MQTT switches in Home Assistant.

Describe the solution you'd like

Please expose wifi_config.enabled as a dedicated on/off switch through Home Assistant MQTT Discovery.

Expected behavior:

  • Automatically create a Wi-Fi enable/disable switch entity in Home Assistant.
  • Associate the switch with the existing Shelly device.
  • Reflect the actual Wi-Fi enabled/disabled state.
  • Allow toggling Wi-Fi directly from the Home Assistant dashboard.
  • Work out of the box without custom converters, MQTT templates, or additional YAML configuration.

Ideally, this functionality should also be available for other compatible Shelly Gen4 devices exposing the same wifi_config.enabled property.

Describe alternatives you've considered

I successfully created manual MQTT switches in Home Assistant. However, this requires additional YAML configuration and manual device association through MQTT identifiers.

While this workaround is functional, it introduces unnecessary complexity for a feature already supported by Zigbee2MQTT.

A native implementation would provide a cleaner, maintainable, and update-safe solution.

Additional context

  • Device: Shelly Power Strip 4 Gen4
  • Model: S4PL-00416EU
  • Integration: Zigbee2MQTT via MQTT Discovery
  • Home Assistant: Home Assistant OS
  • Existing expose: wifi_config.enabled (binary, read/write)

Device documentation: https://www.zigbee2mqtt.io/devices/S4PL-00416EU.html

eichhorn avatar Oct 18 '26 10:10 eichhorn