# Node-red-contrib-sonoff-tasmota

**URL:** <https://discourse.nodered.org/t/node-red-contrib-sonoff-tasmota/6530>\
**Category:** General\
**Created:** [7 January 2019 22:19 UTC](https://discourse.nodered.org/t/node-red-contrib-sonoff-tasmota/6530 "2019-01-07T22:19:26Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![yawstick](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/yawstick/32/4593_2.png) [@yawstick](https://discourse.nodered.org/u/yawstick)\
**Post date:** [7 January 2019 22:19 UTC](https://discourse.nodered.org/t/node-red-contrib-sonoff-tasmota/6530/1 "2019-01-07T22:19:26Z")

</div>

Tried to install the tasmota tools and got the following result... dont really know what to make of this

pi@raspberrypi:~/.node-red $ npm install node-red-contrib-sonoff-tasmota  
(node:14414) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.  
npm WARN package.json node-red-contrib-graphs@0.3.5 license should be a valid SPDX license expression  
node-red-contrib-sonoff-tasmota@3.0.0 node\_modules/node-red-contrib-sonoff-tasmota  
└── debug@2.6.9 (ms@2.0.0)

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [7 January 2019 22:28 UTC](https://discourse.nodered.org/t/node-red-contrib-sonoff-tasmota/6530/2 "2019-01-07T22:28:17Z")

</div>

What came after that ? - It looks like a warning rather than an error... (so far)...

Basically it means it's an old node and about the break soon when they finally remove the os.tmpDir() function... and the packaging of the node could be improved with a more correct license clause... but as long as it's just a waring... it should be ok... (for now).

---

<div class="post-metadata">

**Author:** ![yawstick](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/yawstick/32/4593_2.png) [@yawstick](https://discourse.nodered.org/u/yawstick)\
**Post date:** [7 January 2019 22:35 UTC](https://discourse.nodered.org/t/node-red-contrib-sonoff-tasmota/6530/3 "2019-01-07T22:35:43Z")

</div>

that was the end of the output from the command line... it does not appear to have added tasmota node tools to the node-red gui

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [7 January 2019 23:17 UTC](https://discourse.nodered.org/t/node-red-contrib-sonoff-tasmota/6530/4 "2019-01-07T23:17:12Z")

</div>

> [@yawstick](#):
>
> node-red-contrib-sonoff-tasmota

What version of npm are you using? Running `npm install` doesn't run any code in the module you are installing, so it would not have triggered the DeprecationWarning. The only _running_ code is npm itself. So, the question is what version of `npm` and `node` are you using? What's the result of:

```auto
npm -v
node -v

```

---

<div class="post-metadata">

**Author:** ![yawstick](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/yawstick/32/4593_2.png) [@yawstick](https://discourse.nodered.org/u/yawstick)\
**Post date:** [7 January 2019 23:49 UTC](https://discourse.nodered.org/t/node-red-contrib-sonoff-tasmota/6530/5 "2019-01-07T23:49:52Z")

</div>

pi@raspberrypi:~/.node-red $ npm -v 1.4.21

(node:16561) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.

pi@raspberrypi:~/.node-red $ node -v v8.11.1

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [8 January 2019 00:00 UTC](https://discourse.nodered.org/t/node-red-contrib-sonoff-tasmota/6530/6 "2019-01-08T00:00:01Z")

</div>

Yikes. Please upgrade it asap

Ideally follow our pi install / upgrade instructions on the docs page and use the script to upgrade

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [8 January 2019 09:42 UTC](https://discourse.nodered.org/t/node-red-contrib-sonoff-tasmota/6530/7 "2019-01-08T09:42:30Z")

</div>

> [@yawstick](#):
>
> npm install node-red-contrib-sonoff-tasmota

I would not bother using that node, it is easier IMO to communicate with the devices using MQTT. That is what most users do.

---

<div class="post-metadata">

**Author:** ![yawstick](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/yawstick/32/4593_2.png) [@yawstick](https://discourse.nodered.org/u/yawstick)\
**Post date:** [8 January 2019 12:59 UTC](https://discourse.nodered.org/t/node-red-contrib-sonoff-tasmota/6530/8 "2019-01-08T12:59:32Z")

</div>

Thanks for all the help... still pretty new to python, node-red, Raspi... I'm using ESP32 with upython and MQTT to monitor some temps and control some outputs on the ESP32. I have some of the sonoff devices but have not modded any of them... are folks using the tasmota software on the sonoffs.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [8 January 2019 13:36 UTC](https://discourse.nodered.org/t/node-red-contrib-sonoff-tasmota/6530/9 "2019-01-08T13:36:17Z")

</div>

> [@yawstick](#):
>
> are folks using the tasmota software on the sonoffs.

Absolutely.  
There is an excellent tasmota support list  
[https://groups.google.com/forum/#!categories/sonoffusers](https://groups.google.com/forum/#!categories/sonoffusers)
