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

[New device support]: Tuya Dual Smart plug with power monitoring #18326

Closed
fumantsu opened this issue Jul 14, 2023 · 14 comments
Closed

[New device support]: Tuya Dual Smart plug with power monitoring #18326

fumantsu opened this issue Jul 14, 2023 · 14 comments
Labels
new device support New device support request

Comments

@fumantsu
Copy link

Link

https://www.immax.eu/immax-neo-smart-internal-double-socket-16a-zigbee-3-0-p15142/?cid=1505

Database entry

{"id":24,"type":"Router","ieeeAddr":"0xa4c1380d0ce83f21","nwkAddr":19480,"manufId":4417,"manufName":"_TZ3000_jak16dll","powerSource":"Mains (single phase)","modelId":"TS011F","epList":[1,2,242],"endpoints":{"1":{"profId":260,"epId":1,"devId":266,"inClusterList":[3,4,5,6,1794,2820,57344,57345,0],"outClusterList":[25,10],"clusters":{"genBasic":{"attributes":{"65534":0,"modelId":"TS011F","manufacturerName":"_TZ3000_jak16dll","powerSource":1,"zclVersion":3,"appVersion":192,"stackVersion":0,"hwVersion":1,"dateCode":""}},"haElectricalMeasurement":{"attributes":{"acCurrentDivisor":1000,"acCurrentMultiplier":1}},"seMetering":{"attributes":{"divisor":100,"multiplier":1}}},"binds":[{"cluster":6,"type":"endpoint","deviceIeeeAddress":"0x00212effff0854c0","endpointID":1},{"cluster":2820,"type":"endpoint","deviceIeeeAddress":"0x00212effff0854c0","endpointID":1},{"cluster":1794,"type":"endpoint","deviceIeeeAddress":"0x00212effff0854c0","endpointID":1}],"configuredReportings":[{"cluster":2820,"attrId":1285,"minRepIntval":5,"maxRepIntval":3600,"repChange":5},{"cluster":2820,"attrId":1288,"minRepIntval":5,"maxRepIntval":3600,"repChange":50},{"cluster":2820,"attrId":1291,"minRepIntval":5,"maxRepIntval":3600,"repChange":10},{"cluster":1794,"attrId":0,"minRepIntval":5,"maxRepIntval":3600,"repChange":[1,1]}],"meta":{}},"2":{"profId":260,"epId":2,"devId":266,"inClusterList":[4,5,6,57345],"outClusterList":[],"clusters":{},"binds":[],"configuredReportings":[],"meta":{}},"242":{"profId":41440,"epId":242,"devId":97,"inClusterList":[],"outClusterList":[33],"clusters":{},"binds":[],"configuredReportings":[],"meta":{}}},"appVersion":192,"stackVersion":0,"hwVersion":1,"dateCode":"","zclVersion":3,"interviewCompleted":true,"meta":{"configured":-1941818122},"lastSeen":1689365856180,"defaultSendRequestWhen":"immediate"}

Comments

The particular is actually a dual plug (not single) so it is missing control one of the plugs. I have below the datapoints.
{"1":"Switch","2":"Switch 2","9":"Countdown","10":"Countdown 2","17":"Add Electricity","18":"Current","19":"Power","20":"Voltage","21":"Test Bit","26":"Fault","27":"Relay Status","209":"Cycle Timing","210":"Random Timing"}

Since the zigbee model was exist but it points to a single plug I wasn't sure how to approach it from the prospective of the guide

External converter

No response

Supported color modes

No response

Color temperature range

No response

@fumantsu fumantsu added the new device support New device support request label Jul 14, 2023
@github-actions
Copy link
Contributor

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days

@github-actions github-actions bot added the stale Stale issues label Aug 14, 2023
@wociscz
Copy link

wociscz commented Aug 17, 2023

same as #17041

@fumantsu
Copy link
Author

fumantsu commented Aug 17, 2023 via email

@github-actions github-actions bot removed the stale Stale issues label Aug 18, 2023
@thebang2
Copy link

Any further infos for that?

@Koenkk
Copy link
Owner

Koenkk commented Aug 27, 2023

Could you check if the issue is fixed with the following external converter: https://gist.github.com/Koenkk/e8587976de964e3c76c89c12b13b6266

  • save this as file next to configuration.yaml as ext_converter.js
  • add it to configuration.yaml:
external_converters:
  - ext_converter.js
  • start z2m, check if issue is fixed

@thebang2
Copy link

thebang2 commented Aug 27, 2023

Edit: I was too dumb to copy the complete code - I can confirm @wociscz that it all works, except the device picture!

Device picture:
https://cdn.immax.cz/images/0/f981bf351b416dd3/2/immax-neo-smart-internal-double-socket-16a-zigbee-3-0.jpg

@wociscz
Copy link

wociscz commented Aug 27, 2023

Neat, works like a charm - Can control both sockets independently. Power metering is common for both sockets (for device as a whole). Icon/Image is different, but nvm.
Luckily socket 1 is the left one from the top view. I mean left to right.
Thanks for help

image
image
image

I'd say - problem fixed.

Koenkk added a commit to Koenkk/zigbee-herdsman-converters that referenced this issue Aug 28, 2023
@Koenkk
Copy link
Owner

Koenkk commented Aug 28, 2023

Great, picture will be fixed after the next release (please remove the external converter after updating to the next release)

@wociscz
Copy link

wociscz commented Aug 29, 2023

Just little note, power [W] and current [A] seems to not showing any value. Still at 0 all the time. But not important for me.

@thebang2
Copy link

You are right - power, voltage and current without function:

current

@thebang2
Copy link

thebang2 commented Oct 1, 2023

Up! :)

@ReNeGaDe124
Copy link

You are right - power, voltage and current without function:

current

Hello, I just bought this model yesterday and I think I found a workaround to properly show the Power, Current and Voltage sensors.

  • On line 40 of ext_converter.js change from meta: {multiEndpoint: true}, to meta: {multiEndpoint: false},
  • Restart zigbee2mqtt

image

This is working for me. Hope it can help you as well. Maybe the developer can include this change in next release or find a better solution.

@thebang2
Copy link

Can confirm the change from @ReNeGaDe124 is working:

image

@Koenkk: Maybe you can add this change in the next update?

Koenkk added a commit to Koenkk/zigbee-herdsman-converters that referenced this issue Dec 13, 2023
@Koenkk
Copy link
Owner

Koenkk commented Dec 13, 2023

meta: {multiEndpoint: false} will prevent state updates from the device from working, I've pushed a different fix for this.

Changes will be available in the dev branch in a few hours from now.

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

No branches or pull requests

5 participants