Controllerx: [FEATURE REQUEST] Make the zigbee2mqtt topic prefix variable

Created on 16 Sep 2020  路  2Comments  路  Source: xaviml/controllerx

Feature Request

Is your feature request related to a problem?

I had to make some manual changes in the code because zigbee2mqtt in my setup is not using the default zigbee2mqtt topic.
If it's not too much of a hassle I'd really like use your upstream code without changing the hardcoded mqtt topic.

Describe the solution / feature you'd like

Configure the zigbee2mqtt topic from the app.yaml file by adding a new configuration option in the integration settings:

sound_controller_bedroom:
  module: controllerx
  class: E1744MediaPlayerController
  controller: sound_controller_bedroom
  integration:
    name: z2m
    listen_to: mqtt

    topic_prefix: some/other/topic/for/zigbee2mqtt
    action_key: action

  media_player: media_player.sonos_bedroom

Describe alternatives you've considered

Changing the hardcoded topic in /controllerx/cx_core/integration/z2m.py

enhancement

Most helpful comment

This has been released in ControllerX v3.5.0

All 2 comments

This has been released in ControllerX v3.5.0

Hi' @fliphess

Was going to ask Xavi for exact this feature, as my Tasmota wall switches MQTT communication with ControllerX/HA doesn't really belong in the zigbee2mqtt topic.

Thank you ! 馃槉

Ciao !

Was this page helpful?
0 / 5 - 0 ratings