Tasmota API via HTTP using Curl

Tasmota has a huge catalog of commands that can be run via the serial console, MQTT, or HTTP. These commands are great for scripting purposes. The easiest way I've found to send a command is with Curl.


The API will answer in JSON which is easily digestible with JQ.

curl -s | jq
Leave A Reply - 2 Replies
lh61 2022-02-07 04:46pm - lh61+perturb@... - Logged IP:


I found that curl was even better than wget for iterative commands for instance this single command will close all my 12 RollerShutters

curl -q "[31-42]/cm?cmnd=ShutterClose"

Curl is available on my Android phone and this command works fine from a Terminal prompt but I still didn't find a way to stick it as a shortcut on the Home screen, the same way I can do it with a Browser bookmark.

anwa 2022-09-28 11:30am - No Email - Logged IP:

For bash/command line shortcuts have a look at https://wiki.termux.com/wiki/Termux:Widget

All content licensed under the Creative Commons License