Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to setup different setTopic/getTopic values #186

Open
tobiasfaust opened this issue May 2, 2024 · 0 comments
Open

how to setup different setTopic/getTopic values #186

tobiasfaust opened this issue May 2, 2024 · 0 comments

Comments

@tobiasfaust
Copy link

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"
            }
        ]
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant