# Issue reading Tasmota power sensor

**URL:** https://discourse.nodered.org/t/issue-reading-tasmota-power-sensor/81781
**Category:** General
**Created:** [4 October 2023 23:51 UTC](https://discourse.nodered.org/t/issue-reading-tasmota-power-sensor/81781 "2023-10-04T23:51:45Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![richiep](https://avatars.discourse-cdn.com/v4/letter/r/59ef9b/32.png) [@richiep](https://discourse.nodered.org/u/richiep)
#### Post date: [4 October 2023 23:51 UTC](https://discourse.nodered.org/t/issue-reading-tasmota-power-sensor/81781/1 "2023-10-04T23:51:45Z")

</div>

Hey All.  
I'm using the generic tasmota node to receive power consumption data from a CloudFree P2 power plug. However I'm getting an error message

On the tasmota console I see the values I'm looking for on the topic  
"tele/dcPower/SENSOR"

However when this message is received by node red I get the following error.  
"Invalid payload received for raw tasmota commands"

How can I set this up properly?  
Thanks  
Rich

```auto
[
    {
        "id": "d9f7b04c97a810b3",
        "type": "inject",
        "z": "e620cc7c9fe4ff1c",
        "name": "",
        "props": [
            {
                "p": "payload"
            }
        ],
        "repeat": "5",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "",
        "payloadType": "date",
        "x": 110,
        "y": 220,
        "wires": [
            [
                "e2db2758b650aca1"
            ]
        ]
    },
    {
        "id": "e2db2758b650aca1",
        "type": "Tasmota Generic",
        "z": "e620cc7c9fe4ff1c",
        "broker": "f627f7eebdf01372",
        "device": "dcPower",
        "name": "",
        "outputs": 1,
        "uidisabler": false,
        "fullTopic": "",
        "cmndPrefix": "",
        "statPrefix": "",
        "telePrefix": "",
        "qos": 1,
        "retain": false,
        "subscribeToStat": false,
        "subscribeToTele": true,
        "x": 240,
        "y": 280,
        "wires": [
            [
                "3815599c2d0dba1f"
            ]
        ]
    },
    {
        "id": "3815599c2d0dba1f",
        "type": "json",
        "z": "e620cc7c9fe4ff1c",
        "name": "",
        "property": "payload",
        "action": "obj",
        "pretty": true,
        "x": 390,
        "y": 280,
        "wires": [
            [
                "fa0930c40c3f2b5a",
                "aa871b861d2bb4b2",
                "48ddf82f7ed81abe"
            ]
        ]
    },
    {
        "id": "fa0930c40c3f2b5a",
        "type": "change",
        "z": "e620cc7c9fe4ff1c",
        "name": "",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "payload.ENERGY.Power",
                "tot": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 562,
        "y": 245.000018119812,
        "wires": [
            [
                "212e028fa6b482e0",
                "25493f978533d871",
                "548840afeb91526b",
                "8dfb171d05ece8a0",
                "b6668680b4bb8827",
                "3f5d3c10f66b08d5"
            ]
        ]
    },
    {
        "id": "b6668680b4bb8827",
        "type": "debug",
        "z": "e620cc7c9fe4ff1c",
        "name": "debug 178",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "true",
        "targetType": "full",
        "statusVal": "",
        "statusType": "auto",
        "x": 570,
        "y": 160,
        "wires": []
    },
    {
        "id": "f627f7eebdf01372",
        "type": "tasmota-mqtt-broker",
        "name": "",
        "broker": "192.168.1.154",
        "port": "1883",
        "clientid": "",
        "usetls": false,
        "keepalive": "60",
        "cleansession": true
    }
]

```

---

<div class="post-metadata">

### Author: ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)
#### Post date: [5 October 2023 06:08 UTC](https://discourse.nodered.org/t/issue-reading-tasmota-power-sensor/81781/2 "2023-10-05T06:08:00Z")

</div>

> [@richiep](#):
>
> I'm using the generic tasmota node

There seem to be two different "generic tasmota" nodes listed at [flows.nodered.org](http://flows.nodered.org).  
There is a reported issue on github for one of them that it does not work on Node-red 3.1.

> [@richiep](#):
>
> On the tasmota console I see the values I'm looking for on the topic  
> "tele/dcPower/SENSOR"
> 
> However when this message is received by node red I get the following error.  
> "Invalid payload received for raw tasmota commands"

If you had a more conventional setup with Mosquitto (or even Aedes) I'd say use an Mqtt-in node to subscribe to tele/dcPower/SENSOR and show us the result.

---

<div class="post-metadata">

### Author: ![richiep](https://avatars.discourse-cdn.com/v4/letter/r/59ef9b/32.png) [@richiep](https://discourse.nodered.org/u/richiep)
#### Post date: [5 October 2023 12:03 UTC](https://discourse.nodered.org/t/issue-reading-tasmota-power-sensor/81781/3 "2023-10-05T12:03:27Z")

</div>

> [@jbudd](#):
>
> If you had a more conventional setup with Mosquitto (or even Aedes) I'd say use an Mqtt-in node to subscribe to tele/dcPower/SENSOR and show us the result.

Yep, this is what I wound up doing. Works great!

Thanks!

---

<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: [19 October 2023 12:04 UTC](https://discourse.nodered.org/t/issue-reading-tasmota-power-sensor/81781/4 "2023-10-19T12:04:25Z")

</div>

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