Request support for <TY-WFH V3.01 Tuya Wi-Fi Sliding gate opener>
Log message
Logger: custom_components.tuya_local.config_flow
Source: custom_components/tuya_local/config_flow.py:483
integration: Tuya Local (documentation, issues)
First occurred: 4:08:04 PM (1 occurrences)
Last logged: 4:08:04 PM
Device matches None with quality of 0%. DPS: {"updated_at": 1722503280.5162299, "105": 13, "110": false, "111": false, "112": -84}
DPS information
{
"result": {
"model": "{\"modelId\":\"000004g07c\",\"services\":[{\"actions\":[],\"code\":\"\",\"description\":\"\",\"events\":[],\"name\":\"默认服务\",\"properties\":[
{\"abilityId\":101,\"accessMode\":\"rw\",\"code\":\"wfh_open\",\"description\":\"\",\"extensions\":{\"iconName\":\"icon-dp_up\",\"attribute\":\"4\"},\"name\":\"开门\",\"typeSpec\":{\"type\":\"bool\"}},
{\"abilityId\":102,\"accessMode\":\"rw\",\"code\":\"wfh_close\",\"description\":\"\",\"extensions\":{\"iconName\":\"icon-dp_down\",\"attribute\":\"4\"},\"name\":\"关门\",\"typeSpec\":{\"type\":\"bool\"}},
{\"abilityId\":103,\"accessMode\":\"rw\",\"code\":\"wfh_stop\",\"description\":\"\",\"extensions\":{\"iconName\":\"icon-zanting\",\"attribute\":\"4\"},\"name\":\"停止\",\"typeSpec\":{\"type\":\"bool\"}},
{\"abilityId\":104,\"accessMode\":\"rw\",\"code\":\"wfh_lock\",\"description\":\"\",\"extensions\":{\"iconName\":\"icon-tcl_function_hs\",\"attribute\":\"4\"},\"name\":\"锁\",\"typeSpec\":{\"type\":\"bool\"}},
{\"abilityId\":105,\"accessMode\":\"ro\",\"code\":\"return_state\",\"description\":\"\",\"name\":\"状态返回\",\"typeSpec\":{\"type\":\"value\",\"max\":128,\"min\":0,\"scale\":1,\"step\":1,\"unit\":\"\"}},
{\"abilityId\":106,\"accessMode\":\"ro\",\"code\":\"l_close\",\"description\":\"\",\"name\":\"关行程\",\"typeSpec\":{\"type\":\"bool\"}},
{\"abilityId\":107,\"accessMode\":\"ro\",\"code\":\"l_open\",\"description\":\"\",\"name\":\"开行程\",\"typeSpec\":{\"type\":\"bool\"}},
{\"abilityId\":108,\"accessMode\":\"ro\",\"code\":\"inrf\",\"description\":\"\",\"name\":\"红外\",\"typeSpec\":{\"type\":\"bool\"}},
{\"abilityId\":109,\"accessMode\":\"ro\",\"code\":\"fsw\",\"description\":\"\",\"name\":\"地感\",\"typeSpec\":{\"type\":\"bool\"}},
{\"abilityId\":110,\"accessMode\":\"rw\",\"code\":\"fast_op\",\"description\":\"\",\"name\":\"快捷开门\",\"typeSpec\":{\"type\":\"bool\"}},
{\"abilityId\":111,\"accessMode\":\"ro\",\"code\":\"hidden_state\",\"description\":\"\",\"name\":\"隐藏状态显示图标\",\"typeSpec\":{\"type\":\"bool\"}},
{\"abilityId\":112,\"accessMode\":\"ro\",\"code\":\"wfh_rssi\",\"description\":\"\",\"name\":\"信号强度显示\",\"typeSpec\":{\"type\":\"value\",\"max\":50,\"min\":-200,\"scale\":0,\"step\":1,\"unit\":\"\"}}]}]}"
},
Product ID
eba8122a8c4a4ac164axx3
Product Name
TY-WFH V3.01
Information about how the device functions
this is a link to a store page of this device where i've purchased it from: https://www.lazada.co.th/products/wifi-wifi-board-for-sliding-gate-motor-ac-i4205648986.html
Device attaches on top of gate motor control bord
Within an application when accesing device it has 4 buttons {OPEN} {CLOSE} {STOP} {LOCK}.
Top left of the screen shows current state: Closed/Open etc
Top right of the screen shows: signal strength i guess
see picture:
Thank you!
The dps information only contains id and name, no information about type and range, so it is unlikely this will ever get to the front of the queue for implementing in this state.
The dps information only contains id and name, no information about type and range, so it is unlikely this will ever get to the front of the queue for implementing in this state.
I have updated DPS information, hopefully this is what you require. If i can help in any other way let me know
I'm not sure about the open/closed detection, as it isn't very clear from the dp names. But I have made an initial attempt.
Hello Jason, Thank you very much I have tested it and it works. I have added the device using protocol 3.5 without any issues. buttons open, close, lock, stop all works fine. The only issue is status always shows as "closed". So what ill do ill try to get DPS information when gate is open/closed/opening and see what it shows and hopefully that can be solved. Thank you again!
not sure if it's helpful or not this a a result: sensor 105: states - 1.30=closed, 1.20=open, 0.60=lock
nesesito el diagrama de conexion
Hello. Thank you very much for integrating this device! From this thread, I understood that there was an issue with the gate open/close status, and it has been resolved. However, I am still experiencing this issue. Could you please clarify whether I misunderstood and the issue cannot be fixed, or if I might have done something wrong and it should actually work? 🙂
I think the full story of dps 105 and 111 are not well understood. The current implementation is only based on the observations in the previous comment. The Tuya docs call 105 "return_value" and say it is scaled by 10. In the previous user's comment they note that specific values seem to mean specific things. But maybe this is installation dependent. Maybe these are actually bitfields, and yours has an extra bit set, or maybe it is a measurement of an analog sensor which can only be translated to states after calibration.
not sure if it's helpful or not this a a result: sensor 105: states - 1.30=closed, 1.20=open, 0.60=lock
Well, yes, I checked through TinyTuya. DPS 105 has different values:
- Opened - 2
- Open - 3
- Closing - 4
- Closed - 5
- Remote control opening lock - 6
111 always in True. i don't know what this is)
I don't understand how everyone can have different codes. Maybe after a firmware update?
@sciux2, what firmware do you have right now? And is the integration still working?
I have 2.0.1."
not sure if it's helpful or not this a a result: sensor 105: states - 1.30=closed, 1.20=open, 0.60=lock
Well, yes, I checked through TinyTuya. DPS 105 has different values:
- Opened - 2
- Open - 3
- Closing - 4
- Closed - 5
- Remote control opening lock - 6
111 always in True. i don't know what this is)
I don't understand how everyone can have different codes. Maybe after a firmware update? @sciux2, what firmware do you have right now? And is the integration still working? I have 2.0.1."
Hi, I've just looked on tuya Smart app and i can't seem to find firmware version for the device. Mind telling me where did you find what version firmware is on it?
not after which update, but recently my device stopped working, i have manually edited config /homeassistant/custom_components/tuya_local/devices/rse_tywfh301_gate.yaml
and replaced sensor 105 with this:
- entity: binary_sensor
name: Gate
class: garage_door
dps:
- id: 105
type: integer
name: sensor
mapping:
- dps_val: 12 # Change based on observed "open" value value: true # Open
- dps_val: 13 # Change based on observed "closed" value value: false # Closed
- id: 105
type: integer
name: sensor
mapping:
how did i come up with these values i don't really remember since i've done it long time ago, but i used chatgpt to generate this bit of 105 sensor. After i've replaced original with this at least my gate opener functions as in opens and closes, unfortunately as i said i can't get status to show so i use external door sensor to monitor if gate is open or closed
It worked! Somehow it didn't occur to me to manually change the configuration). ChatGPT gave me this config:
mapping:
- dps_val: 2 value: opening
- dps_val: 3 value: open
- dps_val: 4 value: closing
- dps_val: 5 value: closed Unfortunately, it doesn't work. Your configuration with primitive true/false works. "Closed" is only displayed when it's actually closed. "Open" is displayed when opening, open, and closing. It's acceptable. I'm curious if it's possible to add the ability to input such variables when adding to Tuya Local.
I attach screenshots to check the firmware version