Showing entries with tag "Tasmota".

Found 4 entries

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

Arduino Relay shield on a Wemos D1

I bought an Arduino Relay Shield to use on my Wemos D1 (ESP8266). After some poking around here is the mapping for which pins enable which relays:

Pin Relay
GPIO13 Relay #1
GPIO12 Relay #2
GPIO14 Relay #3
GPIO4 Relay #4

To enable the relays on this shield you pull the appropriate pin HIGH. Other relay boards I've seen require you to pull the pin LOW, so don't get confused.

Here is the Tasmota template I used for the relay shield.

{"NAME":"Relay Shield","GPIO":[0,0,0,0,24,0,0,0,22,21,23,0,0],"FLAG":0,"BASE":18}
Leave A Reply

Wemos D1 mini Pin mapping

I've been using the Wemos D1 mini for several home automation projects. Unforunately the pin designations on the board don't match what Tasmota uses. I was able to track down the Wemos D1 mini pin mappings to create a cheat sheet.

Label GPIO
D0 16
D1 5
D2 4
D3 0
D4 2
D5 14
D6 12
D7 13
D8 15
RX 3
TX 1

Bolded pins can be used for any project without limitation, other pins can be used but may have some limitations.

Leave A Reply

Linking two Tasmota devices (without MQTT)

I have two Tasmota enabled devices that I want to turn on/off at the same time. In my case I have a wall switch that powers the main lights, and a wall socket that powers some corner lights and a radio. Using Tasmota's rule system this is not too complicated. We need tell each Tasmota device that whenever the state of it's relay changes (for whatever reason: button, timer, etc.) it needs to tell the other Tasmota device to set it's relay to the matching state. We can use the WebSend feature built in to Tasmota to send commands between two devices.

On device #1

RULE1 on POWER1#State do WebSend [] POWER1 %value% ENDON

On device #2

            RULE1 on POWER1#State do WebSend [] POWER1 %value% ENDON

This can also be done using MQTT pretty simply, but I wanted to see if I could do it with vanilla Tasmota. Doing it direct with WebSend is pretty simple and saves having to run an MQTT broker if you just have two simple devices.

Leave A Reply