Support for tze200_ny94onlb (tuya 3-phase passthrough electric meter) #3747
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Proposed change
This is quirk for a 3P+N electrical meter from tuya.
See https://www.amazon.fr/dp/B0CG3CDMM7?ref=ppx_yo2ov_dt_b_fed_asin_title
It is a port from:
https://github.com/Koenkk/zigbee-herdsman-converters/blob/b222aebf2c560ebe18d427497fa65c7bc5ddc288/src/devices/tuya.ts#L8964
Additional information
It is somewhat working, but I'm a beginner in the zha space, so I think I could use a bit of help to bring this to the finish line.
ts0601_din_power.py
because my understanding is that the quirk builder is the preferred way to build new quirks. Additionally, the functional overlap between my device and the one supported by the current file did not feel that big. I hope this was not a mistake, please tell me if it was :)