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

Added Support for ZHA connected Tuya 1201 / Moes Universal Remote #1248

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

aconscious
Copy link

@aconscious aconscious commented May 9, 2024

Added Support for EXP34U338CW / YK-H/531E

Hi,

This PR adds support for the "Tuya 1201", or "Moes Universal Remote" as the packaging on the device suggests. It might work on other devices, I have yet to test that since I don't have another Zigbee enabled IR device.

This will also require the non-upstream quirk from ZHA: zigpy/zha-device-handlers#2336
Though, this seems to be considered for upstream shortly.

I started doing this without realizing that #1178 and #1137 had already done the work. So our approaches might differ slightly..

in #1178 i saw some discussions regarding how controller_data should be set up. I did not really think so thoroughly through this, as I have no actual clue what I'm doing. Trying to find documentation on how hass.services.async_call() wasn't that successful so I just bruteforced my way through it, specially when trying to find how to programmatically handle the sending of the codes, as described in zigpy/zha-device-handlers#1687 (comment). But I did try it with 2 different Tuya devices (Different IEEE-identifiers) on 2 separate AC units and it worked. Though if you have multiple ZHA dongles in your homeassistant this might not work?

So with that said, maybe the actual handling of ZHA devices could be ignored and this could only be a PR for the EXP34U338CW / YK-H/531E support, through however the project decides how to support ZHA devices.

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

Successfully merging this pull request may close these issues.

None yet

1 participant