ZHA - Moes Universal IR Remote

I tried to turn off the device and repair it again, but didn’t work. But my device is not the one with batteries, mine is the one on the socket. Here’s the link of the Aliexpress.

https://pt.aliexpress.com/item/1005006007728129.html?spm=a2g0o.order_list.order_list_main.26.21efcaa49FNFso&gatewayAdapt=glo2bra

Holly, I am still pretty beginner level with HA. Did not figure out this solution… I will try again some day.

I opted for a broadlink product called rm4 pro

Does this still work for everyone?
My device was working great almost for a year now, but 2 days ago it suddenly throws executing errors.
I didn’t change anything, everything was working fine.

This is the error I get:

Logger: homeassistant.components.script.formuler_center
Bron: helpers/script.py:525
integratie: Script (documentatie, problemen)
Eerst voorgekomen: 16:40:11 (1 gebeurtenissen)
Laatst gelogd: 16:40:11

Formuler Center: Error executing script. Unexpected error for call_service at pos 1: 2
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 525, in _async_step
    await getattr(self, handler)()
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 764, in _async_call_service_step
    response_data = await self._async_run_long_action(
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 727, in _async_run_long_action
    return await long_task
           ^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/core.py", line 2763, in async_call
    response_data = await coro
                    ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/core.py", line 2806, in _execute_service
    return await target(service_call)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1102, in _async_admin_handler
    await result
  File "/usr/src/homeassistant/homeassistant/components/zha/websocket_api.py", line 1389, in issue_zigbee_cluster_command
    await zha_device.issue_cluster_command(
  File "/usr/local/lib/python3.12/site-packages/zha/zigbee/device.py", line 888, in issue_cluster_command
    response = await getattr(cluster, commands[command].name)(
                                      ~~~~~~~~^^^^^^^^^
KeyError: 2

Just if somebody is running into the same problem, the quirk stopped working for me after the recent HA update. Replaced line 382 with
last_learned_ir_code = t.CharacterString(value="")

works now:)

2 Likes

@Pidi3331 You should report that as a new bug here → Issues · zigpy/zha-device-handlers · GitHub

That way the issue can be tracked and fixed upstream so everyone get the fix once merged in that repository on GitHub and bumped in Home Assistant.

For reference read the → https://www.home-assistant.io/integrations/zha#how-to-add-support-for-new-and-unsupported-devices under troubleshootuiigng section in ZHA documentation)

2 Likes

@Pidi3331 thanks for your reply, like @Hedda mentioned it is better to report a new bug for this.

I am not that great with this kind a thing, I can imagine some other people will struggle to find out what you mean with replacing the line 382.

For example, in my custom quirk it was the line 377 and not 382, I had older version probably, so I replaced with the new one and modified the line 382 in there, and after a HA restart it started to work again. Thank you for pointing it out :grin: :+1:

Reminder for others, here is the custom quirk:

This fix worked for me as well. I posted it as a bug report on the github.

1 Like

Thanks @pidii3 this worked for me also. To get it going I had previously rolled back my update. I am happy this is working for me again now.

1 Like

It was quite a hassle to integrate it into Home Assistant via ZHA, but digging into forums, I managed to do it.

I have documented it, in case someone is interested.

https://medium.com/@cslev/adding-a-zigbee-infrared-blaster-to-home-assistant-using-nothing-but-zha-f651b7da5429

1 Like

I’m interested, but I didn’t payed

https://cslev.vip/2024/09/07/adding-a-zigbee-infrared-blaster-to-home-assistant-using-nothing-but-zha/

I’d love to read the article. Your personal website is showing Maintenance mode is on.

Yeah, sorry about it. My lovely lifetime subscribed hosting provider decided to disappear after one year. I am amidst migrating my website to Namecheap hosting.
The post btw is just a snippet from the youtube video. Please just watch the youtube video then.

Hope it helps, and sorry about it

Thanks to everyone for contributing so far! I have read through various blogs and forums but I have not managed to get it working.
I have a UFO-R11 (batteries) showing up as “TZ3290_ot6ewjvmejq5ekhl TS1201” after pairing. I have added the custom quirk (latest version of the file) in the directory and added the directory to my configuration.yaml under zha.

When I read the attributes from last_learned_id_code (after issuing the learnid command) I always get a different value for the same button presses, no matter what remote I use and which button I press. sometimes the base64 string is quite short, sometimes is very long (500 characters).
I have re-paired the device a couple of time already, but I dont know what to do anymore.
I consider myself quite tech-savvy when it comes to Home assistant, but I need your help on this one :slight_smile:

Any help is appreciated!
Bildschirmfoto 2024-11-17 um 15.42.37

Seems as if the changing values are normal. I simply took one of them and put it into my script and it works just fine!