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

Request support for Wi-Fi IR Remote Control S08 #1719

Closed
webstudiobond opened this issue Mar 7, 2024 · 2 comments
Closed

Request support for Wi-Fi IR Remote Control S08 #1719

webstudiobond opened this issue Mar 7, 2024 · 2 comments

Comments

@webstudiobond
Copy link

Log Message

2024-03-07 12:25:12.741 INFO (MainThread) [custom_components.tuya_local.device] Setting protocol version for Test to 3.3
2024-03-07 12:25:15.001 WARNING (MainThread) [custom_components.tuya_local.config_flow] Device matches hircr_reemote_control with quality of 100%. DPS: {"updated_at": 1709807112.8282583, "1": "send_ir"}
2024-03-07 12:25:15.001 WARNING (MainThread) [custom_components.tuya_local.config_flow] Report this to https://github.com/make-all/tuya-local/issues/
2024-03-07 12:25:30.884 INFO (MainThread) [custom_components.tuya_local.device] Creating device: 04703701e098061667be
2024-03-07 12:25:30.890 INFO (MainThread) [homeassistant.components.remote] Setting up tuya_local.remote
2024-03-07 12:25:30.897 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new remote.tuya_local entity: remote.ir_remote_control_bedroom
2024-03-07 12:25:30.900 INFO (MainThread) [custom_components.tuya_local.device] Setting protocol version for IR remote control bedroom to 3.3
2024-03-07 12:34:45.973 INFO (MainThread) [custom_components.tuya_local.remote] Learning power for TV: gxGpERoCcgIxAqkGOgK8BjUCqgYxAl0CLAJZAhoCXQIsAlgCHgJYAi0CxQYeArwG/wHhBjACVwIdAlgCMAJVAgICiwIeAk8C/wGMAhoCxwb6AeEGMAJXAhoCVwIxAkECMAJxAhoCzAYVAr0GNQJYAhcCXgItAsYGFgKnBhoC4QYyAsQGFgJqtYcRyRH6Ad4GNgIgyw==
File "/config/custom_components/tuya_local/remote.py", line 243, in async_send_command
File "/config/custom_components/tuya_local/remote.py", line 198, in _encode_send_code
File "/config/custom_components/tuya_local/remote.py", line 243, in async_send_command
File "/config/custom_components/tuya_local/remote.py", line 198, in _encode_send_code

Information about DPS mappings

{
  "result": {
    "model": "{\"modelId\":\"00000011oz\",\"services\":[{\"actions\":[],\"code\":\"\",\"description\":\"\",\"events\":[],\"name\":\"默认服务\",\"properties\":[{\"abilityId\":1,\"accessMode\":\"rw\",\"code\":\"control\",\"description\":\"send_ir:码库红外码发送\\nstudy:进入学习状态\\nstudy_exit:退出学习状态\\nstudy_key:学习获取到的红外码发送\",\"name\":\"控制命令\",\"typeSpec\":{\"range\":[\"send_ir\",\"study\",\"study_exit\",\"study_key\"],\"type\":\"enum\",\"typeDefaultValue\":\"send_ir\"}},{\"abilityId\":2,\"accessMode\":\"ro\",\"code\":\"study_code\",\"description\":\"用于学习功能数据上报\",\"name\":\"学习上报参数\",\"typeSpec\":{\"maxlen\":128,\"type\":\"raw\"}},{\"abilityId\":3,\"accessMode\":\"wr\",\"code\":\"ir_code\",\"description\":\"用于搭配按键参数解码使用\",\"name\":\"遥控器解码参数\",\"typeSpec\":{\"maxlen\":255,\"type\":\"string\",\"typeDefaultValue\":\"\"}},{\"abilityId\":4,\"accessMode\":\"wr\",\"code\":\"key_code\",\"description\":\"\",\"name\":\"码库按键参数\",\"typeSpec\":{\"maxlen\":255,\"type\":\"string\",\"typeDefaultValue\":\"\"}},{\"abilityId\":5,\"accessMode\":\"wr\",\"code\":\"key_code2\",\"description\":\"仅用于机顶盒多个按键下发\",\"name\":\"码库按键参数2\",\"typeSpec\":{\"maxlen\":255,\"type\":\"string\",\"typeDefaultValue\":\"\"}},{\"abilityId\":6,\"accessMode\":\"wr\",\"code\":\"key_code3\",\"description\":\"仅用于机顶盒多个按键下发\",\"name\":\"码库按键参数3\",\"typeSpec\":{\"maxlen\":255,\"type\":\"string\",\"typeDefaultValue\":\"\"}},{\"abilityId\":7,\"accessMode\":\"wr\",\"code\":\"key_study\",\"description\":\"\",\"name\":\"来自学习参数下发\",\"typeSpec\":{\"maxlen\":128,\"type\":\"raw\"}},{\"abilityId\":8,\"accessMode\":\"wr\",\"code\":\"key_study2\",\"description\":\"仅用于机顶盒多个按键同时下发\",\"name\":\"来自学习参数下发2\",\"typeSpec\":{\"maxlen\":128,\"type\":\"raw\"}},{\"abilityId\":9,\"accessMode\":\"wr\",\"code\":\"key_study3\",\"description\":\"仅用于机顶盒多个按键下发\",\"name\":\"来自学习参数下发3\",\"typeSpec\":{\"maxlen\":128,\"type\":\"raw\"}},{\"abilityId\":10,\"accessMode\":\"wr\",\"code\":\"delay_time\",\"description\":\"\",\"name\":\"红外码发送延时\",\"typeSpec\":{\"max\":65535,\"min\":0,\"scale\":1,\"step\":1,\"type\":\"value\",\"typeDefaultValue\":0,\"unit\":\"ms\"}},{\"abilityId\":11,\"accessMode\":\"wr\",\"code\":\"key_code4\",\"description\":\"\",\"name\":\"新按键参数\",\"typeSpec\":{\"maxlen\":255,\"type\":\"string\",\"typeDefaultValue\":\"\"}},{\"abilityId\":12,\"accessMode\":\"wr\",\"code\":\"key_study4\",\"description\":\"\",\"name\":\"新学习参数\",\"typeSpec\":{\"maxlen\":128,\"type\":\"raw\"}},{\"abilityId\":13,\"accessMode\":\"rw\",\"code\":\"type\",\"description\":\"\",\"name\":\"码库标识\",\"typeSpec\":{\"max\":255,\"min\":0,\"scale\":1,\"step\":1,\"type\":\"value\",\"typeDefaultValue\":0,\"unit\":\"\"}}]}]}"
  },
  "success": true,
  "t": 1709808073146,
  "tid": "37cbc654dc6f11ee91c03221dd841d9c"
}

Product ID

{
  "result": [
    {
      "active_time": 1709788469,
      "bind_space_id": "20141523",
      "category": "qt",
      "create_time": 1609166965,
      "custom_name": "",
      "icon": "smart/icon/ay1525749833414yotNt/f0d080dfc793d4dcf423d953ccb7d1aa.png",
      "id": "04703701e098061667be",
      "ip": "xxx",
      "is_online": true,
      "lat": "xxx",
      "local_key": "xxx",
      "lon": "xxx",
      "model": "S06-OC-TYWE3S黑色界面",
      "name": "Smart IR",
      "product_id": "JvihcnJiXk1grl60",
      "product_name": "智能红外遥控器",
      "sub": false,
      "time_zone": "+02:00",
      "update_time": 1709788489,
      "uuid": "04703701e098061667be"
    }
  ],
  "success": true,
  "t": 1709806843289,
  "tid": "5ab93a5ddc6c11ee91c03221dd841d9c"
}

Information about how the device functions

https://expo.tuya.com/product/393910

Info

The device is added, the remote control can be trained, but commands are not sent.

@webstudiobond webstudiobond added the new device Unsupported device label Mar 7, 2024
@make-all make-all added bug Something isn't working and removed new device Unsupported device labels Mar 7, 2024
@make-all
Copy link
Owner

make-all commented Mar 7, 2024

I think the stack trace is indicating a bug, not an incompatibility with the existing config for hir_cir_remote.

make-all added a commit that referenced this issue Mar 7, 2024
@make-all make-all added awaiting confirmation Wating for confirmation the issue is solved unreleased Will be in next release labels Mar 7, 2024
@webstudiobond
Copy link
Author

webstudiobond commented Mar 7, 2024

I replaced it in line 198, as in the fix. Restarted home assistant. Now, when sending a command, there is no error, but the command is not executed, and no signal is sent from the remote control. There is nothing about this in the homeassistant and iot.tuya logs either.
Perhaps this is due to the fact that send_ir is only available in range for ID 1

@make-all make-all removed bug Something isn't working awaiting confirmation Wating for confirmation the issue is solved unreleased Will be in next release labels Mar 27, 2024
timlaing pushed a commit to timlaing/tuya-local that referenced this issue Aug 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

2 participants