Confused: my fan has a "moisture"-feature, how does it work? #164
tbratfisch
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
My fan has a moisture-feature, it can evaporate water using ultrasound and inject it into the fan, but I can't get how that is working in the tuya API.
My device shows up like this:
"functions": [
{
"code": "switch",
"type": "Boolean",
"values": "{}"
},
{
"code": "mode",
"type": "Enum",
"values": "{"range":["nature","sleep","fresh","smart","strong","closed"]}"
},
{
"code": "fan_speed",
"type": "Enum",
"values": "{"range":["1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26"]}"
},
{
"code": "switch_horizontal",
"type": "Boolean",
"values": "{}"
},
{
"code": "countdown",
"type": "Enum",
"values": "{"range":["0","1","2","3","4","5","6"]}"
},
{
"code": "anion",
"type": "Boolean",
"values": "{}"
}
],
It's the same using tuya's API explorer, so the moisture-feature doesn't seem to appear in the device-features reported by the tuya API.
But: the tuya app is able to control it, if I change the setting in the app (in that case changing the moisture-level to 2), this project is reporting the changes:
021-07-17 20:12:53 DEBUG (Thread-7) [tuya iot] _on_log: Received PUBLISH (d0, q0, r0, m0), 'cloud/token/in/6dfd3613ff08bff67408a068b9733d28', ... (284 bytes)
2021-07-17 20:12:53 DEBUG (Thread-7) [tuya iot] payload-> b'{"data":"842ljSA53/3TyWCIUleXs33/yCCxA+72h/AaEYJaBJad7xvSIs0PLdKGeTU32HgNBj2LhiiEhc6NtC3rR1vSmvQ4j0E2MBMFOjzTXj4PBawvnx7f+uFiT67eTOVgYRa7qKKT9RJ0qXOY6hjjUZDP1aVk2W3aVNLRElps2f9eopBj+wW7Bfn8H/H1GSm0FDUe","protocol":4,"pv":"2.0","sign":"5925a67b1ab5c2c53622d7b7f39ca3a3","t":1626545572}'
2021-07-17 20:12:53 DEBUG (Thread-7) [tuya iot] on_message: {'data': {'dataId': '16fcddde-bc73-4bd2-8ead-31855279608b', 'devId': '27478210fcf5c48154c3', 'productKey': '2r65vzsm3j3dv5bc', 'status': [{'101': '2'}]}, 'protocol': 4, 'pv': '2.0', 'sign': '5925a67b1ab5c2c53622d7b7f39ca3a3', 't': 1626545572}
2021-07-17 20:12:53 DEBUG (Thread-7) [tuya iot] mq receive-> {'data': {'dataId': '16fcddde-bc73-4bd2-8ead-31855279608b', 'devId': '27478210fcf5c48154c3', 'productKey': '2r65vzsm3j3dv5bc', 'status': [{'101': '2'}]}, 'protocol': 4, 'pv': '2.0', 'sign': '5925a67b1ab5c2c53622d7b7f39ca3a3', 't': 1626545572}
2021-07-17 20:12:53 DEBUG (Thread-7) [tuya iot] mq _on_device_report-> [{'101': '2'}]
Can someone explain to me how the app queries the existence and/or possible values of this feature?
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions