Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unsupported device - WiFi Digital Meter - PJ-1103 Power meter #336

Closed
MoosJ80 opened this issue Jan 4, 2023 · 18 comments
Closed

Unsupported device - WiFi Digital Meter - PJ-1103 Power meter #336

MoosJ80 opened this issue Jan 4, 2023 · 18 comments

Comments

@MoosJ80
Copy link

MoosJ80 commented Jan 4, 2023

I have tried to add this device with different methods / integrations.

  • Official Tuya integration
  • LocalTuya
  • Tuya-Local

The device is recognized but none of the entities..
Any help would be appreciated.

Model PJ-1103 (from official Tuya integration log)

https://nl.aliexpress.com/item/1005004845740618.html?spm=a2g0o.order_list.order_list_main.17.21ef79d26ELMmJ&gatewayAdapt=glo2nld

DP ID's
Cur Current - 18
CUR Power - 19
Max Standby power - 51
Cur Voltage - 20
Max Power - 52
Test Bit - 21
Voltage Coe - 22

image

@make-all make-all added the new device Unsupported device label Jan 4, 2023
make-all added a commit that referenced this issue Jan 7, 2023
Issue #336, and some assumptions on scales based on other similar devices.
@make-all make-all added awaiting confirmation Wating for confirmation the issue is solved unreleased Will be in next release labels Jan 7, 2023
@Cook23
Copy link

Cook23 commented Jan 7, 2023

Same request for same device. here is the information I got about it:

Tuya Protocol Version = 3.4

"category": "aqcz",
"product_name": "WiFi Digital Meter",
"product_id": "djfep9s6s3b2qk89",
"biz_type": 0,
"model": "PJ-1103",
"sub": false,

Datapoints returned are

DPS: {'17': (Integer, I don't know what is it. Useless.), '18': (Integer, Amperage in 0.001A), '19': (Integer, Power in 0.1W), '20': (Integer, Voltage in 0.1V), '52': (Integer, Max configured power in 0.1W, useless)}

make-all added a commit that referenced this issue Jan 8, 2023
Issue #336 comment from @Cook23
 - added product id
 - made some dps optional as they are not appearing

Product is using protocol version 3.4, so may not be fully working yet.
@make-all
Copy link
Owner

make-all commented Jan 8, 2023

Thanks, based on other users' reports for protocol version 3.4 devices, it may not be fully working yet. But I have made some changes based on the additional info.

@make-all make-all removed new device Unsupported device unreleased Will be in next release labels Jan 8, 2023
@Cook23
Copy link

Cook23 commented Jan 8, 2023

Works nicely.

Thanks a lot

Pitty is it seems this device do not provide energy counter. Ok I will integrate power in HA.

@make-all
Copy link
Owner

make-all commented Jan 8, 2023

I have never seen a Tuya device provide a usable energy counter. The ones that do reset their counter as soon as they have reported the increment to the cloud, so it works more like a flashing light on your meter that you might miss than an energy reading.

@make-all make-all removed the awaiting confirmation Wating for confirmation the issue is solved label Jan 8, 2023
@make-all make-all closed this as completed Jan 8, 2023
@Cook23
Copy link

Cook23 commented Jan 8, 2023

This one works perfectly well. It have an endless counting counter for energy. Endless at least since 6 month and 7500 kWh counted. https://community.home-assistant.io/t/tuya-1-or-3-phase-energy-meter/351386/10

I use "localtuya" for it. I don't know if you support it. Here are the info about it :

Tuya Protocol Version = 3.3

"category": "zndb",
"product_name": "Power Clamp",
"product_id": "r64livttuufctble",
"biz_type": 0,
"model": "PC321",
"sub": false,

DP List :

N° | Libellé | Phase | Scale | Unit

101 | Tension | 1 | 0.1 | V
102 | Courant | 1 | 0.001 | A
103 | Puissance | 1 | 1 | W
104 | Cos phi | 1 | 0.01 | 1
106 | Energie | 1 | 0.01 | kWh
 
111 | Tension | 2 | 0.1 | V
112 | Courant | 2 | 0.001 | A
113 | Puissance | 2 | 1 | W
114 | Cos phi | 2 | 0.01 | 1
116 | Energie | 2 | 0.01 | kWh

121 | Tension | 3 | 0.1 | V
122 | Courant | 3 | 0.001 | A
123 | Puissance | 3 | 1 | W
124 | Cos phi | 3 | 0.01 | 1
126 | Energie | 3 | 0.01 | kWh

131 | Energie | Total | 0.01 | kWh
132 | Courant | Total | 0.001 | A
133 | Puissance | Total | 1 | W
135 | Frequence | Total | 1 | Hz
136 | Temperature | Total | 0.1 | °C

@make-all
Copy link
Owner

make-all commented Jan 8, 2023

Yes, there is that one, and another dedicated electricity meter that support energy properly. I was thinking of the power sockets that have an "add_ele" dp that only ever reads 0 or 1 in normal usage (I suspect they may go higher if offline).

@MoosJ80
Copy link
Author

MoosJ80 commented Jan 8, 2023

It is working now.
Thanks a lot!

@MoosJ80
Copy link
Author

MoosJ80 commented Jan 8, 2023

Works nicely.

Thanks a lot

Pitty is it seems this device do not provide energy counter. Ok I will integrate power in HA.

Have you got a short instruction how to do this?

@Cook23
Copy link

Cook23 commented Jan 8, 2023

Have you got a short instruction how to do this?

Only few clics needed from Settings / Integration-Devices-Entities-Helpers Click on "Helpers" or whatever it's renamed in your laguage. Then Add. Then choose Riemann Integrate. Then configure the box and choose "left Riemann".

https://www.home-assistant.io/integrations/integration/

@imgkaisser
Copy link

Hi, I have the same device (confirmed with the device id matching the id inside the update yaml of localtuya), but after the last update, this device keeps saying "Not supported"
The device is working perfectly with smart life, how have you configured it to work correctly?
Thanks in advance

@MoosJ80
Copy link
Author

MoosJ80 commented Jan 8, 2023

Hi, I have the same device (confirmed with the device id matching the id inside the update yaml of localtuya), but after the last update, this device keeps saying "Not supported" The device is working perfectly with smart life, how have you configured it to work correctly? Thanks in advance

You should update the integration and probably restart HA

@MoosJ80
Copy link
Author

MoosJ80 commented Jan 8, 2023

Unfortunately the device becomes unavailable after a few hours.

Logger: homeassistant.components.sensor
Source: helpers/entity_platform.py:797
Integration: Sensor (documentation, issues)
First occurred: 21:29:13 (125 occurrences)
Last logged: 23:20:21

Updating tuya_local sensor took longer than the scheduled update interval 0:00:30

@Cook23
Copy link

Cook23 commented Jan 9, 2023

OK same for me. Unavailable from HA.

From tinytuya (python -m tinytuya devices) "No Response" so it's not the fault of HA integration. Device stop to answer after few hours. it's probably by design. That's a pitty.

Power off / power on and device restart to work. probably only for few hours.

Strangely 36 hour after power off / on still working

After 1 week, still working OK.

@imgkaisser
Copy link

I have reinstalled the complete component, restarting afterwards and even turning it off and on.
I have the tuya-local version 2023.1.0, I have the device with a fixed ip by mac on the router and I have checked that it is well connected, in smart life it works out perfectly, without cuts, with a good signal and without any problem.
What I can be doing wrong? I keep getting device not supported

@make-all
Copy link
Owner

Please open a new issue if the problem is still there in 2023.1.1

@jesusmendez87
Copy link

Hi!
The id 18 does not add up in HA the same as in the application. I am trying to count with utility-meter but it does not add in a similar way to the application. Has anyone managed to count the accumulated consumption of kw/h?

@make-all
Copy link
Owner

Use an integration helper on the power sensor.

The "add_ele" dp of Tuya devices is not as useful for kWh measurement as they first appear, since they reset to zero immediately after incrementing (probably immediately after reporting the increment to the cloud), so end up being more like counting led flashes on a non-smart meter than a useful kWh measurement.

@Casadomoticap
Copy link

It seems that still not supported? How do you integrate it? When I try the message "Sorry, there is no support for this device" appears :/

I use the 2023.2.0 version of it. Any help please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants