Dear developer
In my case, the device operates through mqtt payload, so it is not like a factory, setting start and stop through 0,1
Instead, a load like this is used to start and stop the device
{“tagId”:”pump1″,”value”:1}
{“tagId”:”pump1″,”value”:0}
So I need to send string. Through settings, I have implemented a button on the screen. After clicking, a string input box pops up. After entering {“tagId”:”pump1″,”value”:1}, the device can be controlled.
But obviously such input is not user-friendly, and users need to enter different id values.
Is there a way to send {“tagId”:”pump1″,”value”:1} to the mqtt topic without manual input as long as an ON button is clicked.
If it works, I will define another button OFF with the content {“tagId”:”pump1″,”value”:0}
I guess it should be possible via formulas or other advanced functions, but I’m not quite familiar with it yet.
Looking forward to your help, thank you in advance.