Closed CraXgt closed 2 years ago
It is certainly possible to receive data from Energy meters devices using node-red and this node. I'm using two Energy meters in a photovoltaic application, but about Energy Meter device I fond very different and strange behavior. I study 3 devices, two DIN rail, and one smart socket: all different. For details of known devices see https://github.com/msillano/tuyaDAEMON/tree/main/devices ( look at BreakerDIN, ACmeter, smart_socket).
Each Tuya device is a separate case (see tuya-devices-capabilities-as-currently-known ) but in general it can be said:
If the GET(SCHEMA) command is accepted it is a good solution.
Some devices send the V, I, W values in PUSH (e.g. when change see BreakerDIN) others are mute, requiring a mandatory REFRESH to send the data (see Smart_Socket).
REFRESH (SCHEMA) can not send any data: in general REFRESH only sends data that have changed. Better to use GET(SCHEMA)
For many DPs GET doesn't work, try SET (null) (see Smart_Socket)
Some devices do not send separate DPs, but data are coded in a structure (see phaseA on BreakerDIN)
Some GETs acts like SCHEMA (i.e. return all or many dataPoints, see ACmeter)
Some data, available in the user interface in 'smartHome' app, are not sent by the device, but are calculated by Tuya-cloud (e.g. today Ele (kWh) by Smart_Socket).
For me the best way is to "study" the capabilities of a new device, perhaps with the help of tuyaDaemon-toolkit, and once you have identified all the capabilities of the individual dataPoints, try the code with node-red.
Regards, I hope I have provided some help. m.s.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Auto closing the issue
Hi there! I've got an Energy Meter telling the current energy used only in a status-answer. Values are not stored in a datapoint. So what I'm trying to call is "GET /v1.0/iot-03/devices/xxxxId/status". Any chance to do it with these nodes?
cheers