sieren / Homepoint

Espressif ESP32 Based Smarthome screen for MQTT
MIT License
630 stars 89 forks source link

how to setup different setTopic/getTopic values #186

Open tobiasfaust opened 6 months ago

tobiasfaust commented 6 months ago

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"
            }
        ]
    }