Skip to content

Make command MQTT topic independent from controller or add generic MQTT 'controller' #378

@giddyhup

Description

@giddyhup

NOTE: This is not a support forum! For questions and support go here: https://www.letscontrolit.com/forum/viewforum.php?f=1

Steps to reproduce

How can we trigger this problem?

Even though the documentation is generic the way commands are accepted via MQTT seems to be specific to the respectively selected first controller protocol. (Discussed and discovered here.)

Does the problem persist after powering off and on? (just resetting isnt enough sometimes)

Yes.

Expected behavior

Tell us what should happen?

The documentation states regarding submission of commands via MQTT: "send the <command> to topic <MQTT subscribe template>/cmd".

Actual behavior

Tell us what happens instead?

I have PiDome MQTT selected, the Controller Subscribe topic is modified to be "home/%sysname%/#" . When I send a command payload to "home/foobar/cmd" nothing happens (system name is set to foobar).

Suggested solution approach

Change the way commands are accepted via MQTT so that it is always the same, independently from the activated controller, or, if the first suggestion breaks things, add a generic MQTT controller setting that complies with the documentation. Should you decide to do the latter I suggest adding also user name and password fields like in OpenHAB MQTT.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions