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

LDSENK02S DonT display Voltage or Current #7147

Open
Martin82sf opened this issue Mar 2, 2024 · 17 comments
Open

LDSENK02S DonT display Voltage or Current #7147

Martin82sf opened this issue Mar 2, 2024 · 17 comments

Comments

@Martin82sf
Copy link

Issue

Koenkk/zigbee2mqtt#20841

Introduced in:

5f33787#diff-3e7c29010594010cba39762df3fec6fc1fb0bf958c48679cf19cf508cd8c59a2L309-L320

Kind regards

@Koenkk
Copy link
Owner

Koenkk commented Mar 2, 2024

Can you provide the debug log when configuring this device via the frontend -> device -> reconfigure (yellow refresh) button?

See this on how to enable debug logging.

@Martin82sf
Copy link
Author

All yours , sorry, a little big one

log.txt

@Koenkk
Copy link
Owner

Koenkk commented Mar 4, 2024

Could you check if the issue is fixed with the following external converter:

  • 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 and check that the reported values are correct.

@Martin82sf
Copy link
Author

Sorry, it is not fixed.

Config

image

image

Error Z2M

image

Last Log:

Zigbee2MQTT:error 2024-03-06 08:51:14: Failed to load external converter file 'ext_converter.js' (onOff is not defined)
Zigbee2MQTT:error 2024-03-06 08:51:14: Probably there is a syntax error in the file or the external converter is not compatible with the current Zigbee2MQTT version

log_2.txt

@Koenkk
Copy link
Owner

Koenkk commented Mar 6, 2024

@Martin82sf
Copy link
Author

Nope

image

log_3.txt

@Koenkk
Copy link
Owner

Koenkk commented Mar 7, 2024

@Martin82sf
Copy link
Author

No Error, but No info about current or voltage

image image

Log

log_4.txt

@Koenkk
Copy link
Owner

Koenkk commented Mar 10, 2024

Updated https://gist.github.com/Koenkk/8e665bf0c40a5c39a9dda421e1ba4345 , can you try again?

@Martin82sf
Copy link
Author

Sadly, same situation, no errors but no info about current or voltage

log_4.txt

@Koenkk
Copy link
Owner

Koenkk commented Mar 12, 2024

The converter is now the same as before the commit in the OP, when you downgrade z2m, does it work again?

@Martin82sf
Copy link
Author

Sorry for the delay, I cant downgrade to the old version I dont have any backups, my fault

@chiva
Copy link

chiva commented Jun 22, 2024

Hey everyone,

Just got this device and having a similar experience on latest version (1.38.0), the power and energy is reported, but voltage and current isn't.

I investigated a bit, and saw that support for this device was added in converters v15.10.0, which appeared in release 1.31.0.
I downgraded my instance to that version and this is what I see:

{
    "energy": null,
    "linkquality": 66,
    "power": null,
    "power_on_behavior": "off",
    "state": "ON"
}

Not sure if downgrading affected anything, but voltage and current weren't included at that time.
CleanShot 2024-06-22 at 10 31 19

Then, in 1.35.0 voltage and current fields appeared, probably due to this newly added feature?

Zigbee2MQTT will now attempt to automatically detect features supported by the device and discover those to e.g. the frontend and Home Assistant.

Or to this refactor?
5f33787

feat(ignore): Refactor various switches to modernExtend

So this is the view from 1.35 onwards:
CleanShot 2024-06-22 at 11 03 22

{
    "linkquality": 69,
    "power_on_behavior": "off",
    "state": "ON",
    "current": null,
    "energy": null,
    "power": null,
    "voltage": null
}

Question is, do we know if the device reports voltage and current?
Is there any way to discover that capability? Or if it's reporting it on another attribute?
Else, we should remove it to avoid confusion.

Thanks!

@pcastelog
Copy link

Any update on this topic?
I tried to add the external converter but doesn't work, probably some incompatibility in the last releases with the code you provided @Koenkk
Interestingly enough, I have 3 switches one was added like a month before the other two and works (power and energy) when the other two just the power is visible in HA.

@cesarblancg
Copy link
Contributor

Hello!

I tried using the external converter, but it didn’t work. I tried one manufactured on 23/12/22 and another on 28/02/23. I bought an Enki Connect (the official Zigbee router), but I can’t see the power consumption with the app. So, I opened a ticket with Enki in Spain (Adeo in other countries). When they respond, I will update this issue.

@pcastelog
Copy link

@cesarblancg if the power consumption is also not displayed in the app, could we say that is broken by design? 😄
Did you get any information back from Enki?

@cesarblancg
Copy link
Contributor

@cesarblancg if the power consumption is also not displayed in the app, could we say that is broken by design? 😄 Did you get any information back from Enki?

They didn't help me, so I changed all my sockets with the new one from ikea. Sry

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

5 participants