Skip to content

how to setup different setTopic/getTopic values #186

@tobiasfaust

Description

@tobiasfaust

Hi,
i want to use as setTopic an predefined on-for-timer command.
PumpControl_TulpeMD/Garten/on-for-timer 60
See full code example below.
But it sends out
PumpControl_TulpeMD/Garten/on-for-timer 60 1
and this command donw know my targe. I checked this with mqtt-exporer.

The getTopic works well. The state value is 1 for ON or 0 for OFF.

Do you have any hint to achieve that?


  {
        "name": "Garden",
        "type": "Switch",
        "icon": "garden",
        "devices": [
            {
                "name": "dummy",
                "setTopic": "PumpControl_TulpeMD/Garten/on-for-timer 60",
                "getTopic": "PumpControl_TulpeMD/Garten/state",
                "onValue": "1",
                "offValue": "0"
            }
        ]
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions