Hi, i have a problem with a toggle widget on my project. I have 2 telemetry variables (dout.1 and dout.2) , values 'true','false'. Then i have a setting named Digital Output that have dout.1 and dout.2. I can change the values in settings but i can't change the values on my MQTT tile. Here is the configuration of my toggle widget..

    DavidSoriano What you publish to flespi/rest/... must correspond the REST API call to trigger digital output. In your case it is setting called "setdigout_2"

    You may go to device->settings->input/output->"Action command setdigout" and click on curl:connection to see REST API request format.

    flespi/state/gw/devices/{id}/telemetry/... topic is read-only, you can't publish to it.

    ok, but in True Action Topic on toggle widget i write "flespi/gw/devices/5078900/settings/outputs2" but does not work,....

      dout1 on: {"properties":{"out1":{"state":"1"}},"address":"connection"}
      dout1 off: {"properties":{"out1":{"state":"0"}},"address":"connection"}

      You have to swap "True/False action payload"

        ok, i got it, but from when i execute the action until when the button changes from red to green (0->1) there is a lot of delay, like 30 seconds... is there any way to make it faster?

          No, because it is waiting for a response from the device.

          flespi sends command as soon as it receives some packet from device. You may configure ping packet in Teltonika device for e.g. 5 seconds, thus device will send some byte each 5 seconds, and the command will be sent and executed faster. But it may result in higher mobile data consumption.

            baja this is not true, we send command at the same time, we receive REST API call, if the connection is active

            Write a Reply...