# Transferring temperature readings from Tasmota to IHost Sonoff

**URL:** https://discourse.nodered.org/t/transferring-temperature-readings-from-tasmota-to-ihost-sonoff/96241
**Category:** General
**Created:** [25 March 2025 08:55 UTC](https://discourse.nodered.org/t/transferring-temperature-readings-from-tasmota-to-ihost-sonoff/96241 "2025-03-25T08:55:51Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![nroman60](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/nroman60/32/99728_2.png) [@nroman60](https://discourse.nodered.org/u/nroman60)
#### Post date: [25 March 2025 08:55 UTC](https://discourse.nodered.org/t/transferring-temperature-readings-from-tasmota-to-ihost-sonoff/96241/1 "2025-03-25T08:55:51Z")

</div>

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/7/6/762224e995b99a755feb677fdd7acf98dc5a6241.jpeg)

I need to transfer the temperature value from ESP 32 Tasmota to IHost Sonoff.

For this I use Palette node-red-contrib-tasmota -nodeSensor.

At its output I get

```auto
25.03.2025, 09:56:16node: debug 10
msg.payload : Object
object
Time: "2025-03-25T08:56:15"
Switch1: "ON"
BMP180: object
Temperature: 23
Pressure: 977.1
INA219: object
Id: 40
Voltage: 1
Current: 0.001
Power: 0
PressureUnit: "hPa"
TempUnit: "C"

```

Further Function Node Temp On Message

```auto
let sensorData = msg.payload;
msg.payload = {
  deviceid: "60681044-bc85-45f2-a7d9-284c03d27b8c",
  params: {
    temperature: sensorData.BMP180 ? sensorData.BMP180.Temperature : null
  }
};

return msg;

```

On the way out

```auto
25.03.2025, 09:56:16node: debug 14
msg.payload : Object
object
deviceid: "60681044-bc85-45f2-a7d9-284c03d27b8c"
params: object
temperature: 23

```

Temp output connected to Palette EweLink Cube put-device-state.Output

```auto
25.03.2025, 09:56:16node: debug 17
msg.payload : Object
object
header: object
name: "ErrorResponse"
message_id: "7558dc77-cf4a-4459-b9d4-b81087025489"
version: "2"
payload: object
type: "INVALID_PARAMETERS"
description: "endpoint error!"

```

What's wrong?

---

<div class="post-metadata">

### Author: ![Sean-McG](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/sean-mcg/32/54677_2.png) [@Sean-McG](https://discourse.nodered.org/u/Sean-McG)
#### Post date: [25 March 2025 17:17 UTC](https://discourse.nodered.org/t/transferring-temperature-readings-from-tasmota-to-ihost-sonoff/96241/2 "2025-03-25T17:17:39Z")

</div>

Welcome to the forum 😀

Unfortunately I have no knowledge about IHost Sonoff, or the EweLink Cube nodes

A quick look seems to suggest that both are intended as an alternative to something like a raspberry Pi. Which device is running NODE RED ?

I couldn't find any documentation quickly that would help with your problem, but it seems evident that the put-device-state node is not happy with the payload you sent it., rather than a node red issue as such.

---

<div class="post-metadata">

### Author: ![nroman60](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/nroman60/32/99728_2.png) [@nroman60](https://discourse.nodered.org/u/nroman60)
#### Post date: [25 March 2025 17:43 UTC](https://discourse.nodered.org/t/transferring-temperature-readings-from-tasmota-to-ihost-sonoff/96241/3 "2025-03-25T17:43:53Z")

</div>

# SONOFF iHost Smart Home Hub.[eWeLink CUBE Open API V2 - eWeLink](https://ewelink.cc/ewelink-cube/introduce-open-api/document/)

---

<div class="post-metadata">

### Author: ![Sean-McG](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/sean-mcg/32/54677_2.png) [@Sean-McG](https://discourse.nodered.org/u/Sean-McG)
#### Post date: [26 March 2025 06:03 UTC](https://discourse.nodered.org/t/transferring-temperature-readings-from-tasmota-to-ihost-sonoff/96241/4 "2025-03-26T06:03:12Z")

</div>

@nroman60,

Sorry I don't have the time to digest all of that. I couldn't find any information about the nodes, which seem to be "under development".

Hopefully someone here is familiar with this kit.

---

<div class="post-metadata">

### Author: ![Johnnybegoode](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/johnnybegoode/32/88032_2.png) [@Johnnybegoode](https://discourse.nodered.org/u/Johnnybegoode)
#### Post date: [26 March 2025 08:20 UTC](https://discourse.nodered.org/t/transferring-temperature-readings-from-tasmota-to-ihost-sonoff/96241/5 "2025-03-26T08:20:25Z")

</div>

> [@nroman60](#):
>
> What's wrong?

As commented it looks like the temperature path parameters are not correct. I don´t use this Tasmota node so can´t be 100% sure, but using the standard MQTT node it doesn´t look so different (looking at your debug10) as in my case the function node would be

> msg.payload = {  
> "temperature": {  
> "temperature": msg.payload.BME280.Temperature  
> }  
> }  
> return msg;

In this case it is a BME sensor, which I have in this flow, sending the value to an iHost virtual temperature sensor.

> **Flow**
>
> [  
> {  
> "id": "a71ab4ec0d6e9ded",  
> "type": "put-device-state",  
> "z": "bb5ad6bb5b4a6bde",  
> "name": "Virtual Temp Sensor iHost",  
> "server": "7645b9a88fbe034c",  
> "category": "temperatureSensor",  
> "device": "f116863a-959e-4e21-9b8a-a638a9b8e33d",  
> "state": "",  
> "number": "c9cd1a4e-fa9b-11ef-9cd2-0242ac120002",  
> "x": 950,  
> "y": 440,  
> "wires": [  
>   
> ]  
> },  
> {  
> "id": "3d624ea5fdd2377e",  
> "type": "function",  
> "z": "bb5ad6bb5b4a6bde",  
> "name": "function 10",  
> "func": "msg.payload = {\n "temperature": {\n "temperature": msg.payload.BME280.Temperature\n }\n}\nreturn msg;",  
> "outputs": 1,  
> "timeout": 0,  
> "noerr": 0,  
> "initialize": "",  
> "finalize": "",  
> "libs": ,  
> "x": 690,  
> "y": 440,  
> "wires": [  
> [  
> "a71ab4ec0d6e9ded"  
> ]  
> ]  
> },  
> {  
> "id": "1f9d2b1eb1ac73c8",  
> "type": "mqtt in",  
> "z": "bb5ad6bb5b4a6bde",  
> "name": "",  
> "topic": "tele/tasmota\_352503/SENSOR",  
> "qos": "2",  
> "datatype": "auto-detect",  
> "broker": "3bcf20bbba8064e7",  
> "nl": false,  
> "rap": true,  
> "rh": 0,  
> "inputs": 0,  
> "x": 270,  
> "y": 440,  
> "wires": [  
> [  
> "3d624ea5fdd2377e",  
> "d570b6cb4ecc55ac"  
> ]  
> ]  
> },  
> {  
> "id": "d570b6cb4ecc55ac",  
> "type": "debug",  
> "z": "bb5ad6bb5b4a6bde",  
> "name": "Temperature",  
> "active": false,  
> "tosidebar": true,  
> "console": false,  
> "tostatus": true,  
> "complete": "payload.BME280.Temperature",  
> "targetType": "msg",  
> "statusVal": "payload.BME280.Temperature",  
> "statusType": "auto",  
> "x": 530,  
> "y": 520,  
> "wires":   
> },  
> {  
> "id": "7645b9a88fbe034c",  
> "type": "api-server",  
> "name": "Token",  
> "ip": "192.168.0.85:80",  
> "ipaddr": "",  
> "token": "70320e15-887e-4d48-ad3e-3d12061c6925"  
> },  
> {  
> "id": "3bcf20bbba8064e7",  
> "type": "mqtt-broker",  
> "name": "Mosquitto mqtt 8883",  
> "broker": "192.168.0.85",  
> "port": "8883",  
> "clientid": "",  
> "autoConnect": true,  
> "usetls": false,  
> "protocolVersion": "4",  
> "keepalive": "60",  
> "cleansession": true,  
> "autoUnsubscribe": true,  
> "birthTopic": "",  
> "birthQos": "0",  
> "birthRetain": "false",  
> "birthPayload": "",  
> "birthMsg": {},  
> "closeTopic": "",  
> "closeQos": "0",  
> "closeRetain": "false",  
> "closePayload": "",  
> "closeMsg": {},  
> "willTopic": "",  
> "willQos": "0",  
> "willRetain": "false",  
> "willPayload": "",  
> "willMsg": {},  
> "userProps": "",  
> "sessionExpiry": ""  
> }  
> ]

---

<div class="post-metadata">

### Author: ![nroman60](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/nroman60/32/99728_2.png) [@nroman60](https://discourse.nodered.org/u/nroman60)
#### Post date: [28 March 2025 10:06 UTC](https://discourse.nodered.org/t/transferring-temperature-readings-from-tasmota-to-ihost-sonoff/96241/6 "2025-03-28T10:06:57Z")

</div>

Thanks. It seems to be working.

---

<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: [26 June 2025 10:07 UTC](https://discourse.nodered.org/t/transferring-temperature-readings-from-tasmota-to-ihost-sonoff/96241/7 "2025-06-26T10:07:31Z")

</div>

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