how to setup different setTopic/getTopic values
tobiasfaust opened this issue · comments
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"
}
]
}