xZetsubou / hass-localtuya

🔹 A Home Assistant integration to handle Tuya devices locally "fork from localtuya"
https://xzetsubou.github.io/hass-localtuya/
GNU General Public License v3.0
378 stars 43 forks source link

[Bug]: Cant learn commands with my IR remote #357

Open gaspuas opened 3 days ago

gaspuas commented 3 days ago

LocalTuya Version

2024.9.0

Home Assistant Version

2024.9.3

Environment

What happened?

My IR remote cannot learn commands. When I enter the learning stage and send the signal from my air conditioning remote to the IR remote, it turns-on the air but does not learn the command.

{2D98CAB9-152D-4CBE-8C4D-A352ED4187E4}

{740AD233-4EE8-4A4C-BBDA-7ED0FA61C155}

{898E4EEE-68C6-4FF4-8F79-9008FDD0C2ED}

{C2B9DF1A-2E12-4A1B-9A3E-23EFE0BB7422}

Steps to reproduce.

  1. Configure device connectivity
  2. Configure entity
  3. remote.learn_command
  4. realice an action
  5. press air conditioner´s on button close to my IR remote
  6. Not working xd

Relevant log output

Registrador: homeassistant.components.websocket_api.http.connection
Fuente: components/websocket_api/commands.py:820
integración: Home Assistant WebSocket API (documentación, problemas)
Ocurrió por primera vez: 25 de septiembre de 2024, 09:44:16 (38 ocurrencias)
Última vez registrado: 09:56:00

[547750729840] Failed to learn: Power_on
[547750737904] Failed to learn: Encendido
[547750737904] Couldn't find the command Power_ON for in Aire acondicionado device. the available commands for this device is: ['EncenderAire', 'ApgarAire', 'EncenderAire2', 'EncenderAire3', 'ON', 'OFF', 'Power', 'Power_on', 'Encendido']
[547750737904] Couldn't find the command 210 for in Aire acondicionado device. the available commands for this device is: ['EncenderAire', 'ApgarAire', 'EncenderAire2', 'EncenderAire3', 'ON', 'OFF', 'Power', 'Power_on', 'Encendido']
[547417994240] Failed to learn: Power_on

Diagnostics information.

localtuya-01J854NYNGF06V594G5672F3AH-Control remoto-3a78960496637759b0ec11166f6c9956 (1).json

xZetsubou commented 5 hours ago

I think you configured the device incorrectly the cloud isn't setup so can't see all available DPS, If I does your remote has temperature / humidify sensors? if yes then DP 101 and 102 are probably temperatures sensor however..

Enable the debug for both Device and integration then do learn/send process from the IR Control using TUYA APP then post all the logs here.

gaspuas commented 2 hours ago

i dont know if this help because i also cant do learn/send process using TUYA APP thats also weird but i get this from the logs //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// home-assistant_localtuya_2024-09-30T13-04-57.684Z.log