# How to send multi-part command to Tasmota?

**URL:** <https://discourse.nodered.org/t/how-to-send-multi-part-command-to-tasmota/40278>\
**Category:** General\
**Created:** [3 February 2021 01:30 UTC](https://discourse.nodered.org/t/how-to-send-multi-part-command-to-tasmota/40278 "2021-02-03T01:30:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![apricotfarm](https://avatars.discourse-cdn.com/v4/letter/a/779978/32.png) [@apricotfarm](https://discourse.nodered.org/u/apricotfarm)\
**Post date:** [3 February 2021 01:30 UTC](https://discourse.nodered.org/t/how-to-send-multi-part-command-to-tasmota/40278/1 "2021-02-03T01:30:06Z")

</div>

Can I send a multi-part command to a Tasmota device using MQTT? I want to set the TimeDST setting; typing directly into the Tasmota console, the command looks something like this:

```
TimeDST 0,2,3,1,2,-240

```

...easy enough, works great. But I want to send that command from Node-RED, and I can't figure out how to package it up in MQTT. Basically, I'm looking for the proper topic/payload combo, and I just can't figure it out.

---

<div class="post-metadata">

**Author:** ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)\
**Post date:** [3 February 2021 06:04 UTC](https://discourse.nodered.org/t/how-to-send-multi-part-command-to-tasmota/40278/2 "2021-02-03T06:04:08Z")

</div>

In an inject node set the topic to something like: `cmnd/yourdevice/TimeDST`  
and the payload: `0,2,3,1,2,-240`

Note that if you use an NTP server instead, DST will be done automatically.

---

<div class="post-metadata">

**Author:** ![apricotfarm](https://avatars.discourse-cdn.com/v4/letter/a/779978/32.png) [@apricotfarm](https://discourse.nodered.org/u/apricotfarm)\
**Post date:** [4 February 2021 01:01 UTC](https://discourse.nodered.org/t/how-to-send-multi-part-command-to-tasmota/40278/3 "2021-02-04T01:01:21Z")

</div>

Yup, that did it! Many, many thanks!!

I think I must have tried just about every other permutation -- I was trying to squeeze the payload into various JSON objects and the like. It never occurred to me to just toss in everything after the command as a simple payload string.

Just to spell it out for anyone else having the same issue, here is an example of an inject node that worked properly:

![tasmota_inject](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/4/7/47c9894d6ea2ab399056cf65e1809f259694df89.png)

(Those numbers in the payload are correct for US Eastern Std Time, in case anyone is wondering).

As far as the NTP server goes, I had been assuming that what you said is correct, but the Tasmota documentation says that doing the whole TimeSTD/TimeDST dance is required for Daylight Savings Time adjustments to be applied automatically:

> You must also set the [`TimeZone`](https://tasmota.github.io/docs/Commands/#timezone) and Daylight Saving Time policies ([`TimeDST`](https://tasmota.github.io/docs/Commands/#timestd)/[`TimeSTD`](https://tasmota.github.io/docs/Commands/#timedst)).  
> [[FAQ - Tasmota](https://tasmota.github.io/docs/FAQ/#timers-trigger-at-the-wrong-time)]

It seems like the documentation is a little unclear in this regard -- I interpret that line as meaning that even if you do use an NTP server, you still have to apply the TimeSTD/TimeDST. If I'm wrong about this, please let me know -- I'd much rather just set an NTP server and forget about it!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [18 February 2021 01:01 UTC](https://discourse.nodered.org/t/how-to-send-multi-part-command-to-tasmota/40278/4 "2021-02-18T01:01:36Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
