vinodsr / node-red-contrib-tuya-smart-device

a node-red module for managing tuya smart devices
https://flows.nodered.org/node/node-red-contrib-tuya-smart-device
MIT License
47 stars 15 forks source link

Missing values electricity meter #88

Closed hannoverRed closed 2 years ago

hannoverRed commented 2 years ago

Hello everyone,

counter Unfortunately I don't get the following values left out!

"status": [ { "code": "forward_energy_total", "value": 217 }, { "code": "phase_a", "value": "{\"electricCurrent\":1.34,\"power\":0.273,\"voltage\":217.0}" }, { "code": "fault", "value": 0 }, { "code": "switch_prepayment", "value": false }, { "code": "balance_energy", "value": 0 }, { "code": "clear_energy", "value": false }, { "code": "charge_energy", "value": 0 }, { "code": "switch", "value": true }, { "code": "alarm_set_2", "value": "[{\"alarmCode\":\"overcurrent\",\"doAction\":false,\"threshold\":\"60\"},{\"alarmCode\":\"ammeter_overvoltage\",\"doAction\":false,\"threshold\":\"245\"},{\"alarmCode\":\"under_voltage\",\"doAction\":false,\"threshold\":\"180\"},{\"alarmCode\":\"insufficient_balance\",\"doAction\":false,\"threshold\":\"30\"}]" }, { "code": "event_clear", "value": false } ],

I can only read these:

dps: object 1: 220 10: 0 12: false 13: 0 16: true

But I also need these values here:

{\"electricCurrent\":1.34,\"power\":0.273,\"voltage\":217.0}" }

hannoverRed commented 2 years ago

Is anyone able to help me?