Closed fadmoze22 closed 2 years ago
tuya documentation tuya source (message by IssueLinks)
Hey there @tuya, @zlinoliver, @metisu, @frenck, mind taking a look at this issue as it has been labeled with an integration (tuya
) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)
Thanks for sharing that data @fadmoze22 👍
That is really helpful! Support for this product category isn't in yet, but will add it to my list of things to do 👍
Not sure if this will help but this is the diagnostics from my Arlec BT/WiFi hub. I have TuyaLocal running and working for switches and lights but it would be awesome to get motion sensor capabilities into Home Assistant.
Smart Hub says: unsupported Motion sensor reads: unavailable Temp/Humidity sensor reads: unavailable
{ "home_assistant": { "installation_type": "Home Assistant OS", "version": "2022.2.5", "dev": false, "hassio": true, "virtualenv": false, "python_version": "3.9.7", "docker": true, "arch": "x86_64", "timezone": "Australia/Sydney", "os_name": "Linux", "os_version": "5.10.98", "supervisor": "2022.01.1", "host_os": "Home Assistant OS 7.4", "docker_version": "20.10.9", "chassis": "vm", "run_as_root": true }, "custom_components": { "localtuya": { "version": "3.2.1", "requirements": [] }, "wiz_light": { "version": "0.4.5", "requirements": [ "pywizlight==0.4.15" ] }, "tuya_v2": { "version": "1.5.0", "requirements": [ "tuya-iot-py-sdk==0.4.1" ] }, "hacs": { "version": "1.22.0", "requirements": [ "aiogithubapi>=21.11.0" ] } }, "integration_manifest": { "domain": "tuya", "name": "Tuya", "documentation": "https://www.home-assistant.io/integrations/tuya", "requirements": [ "tuya-iot-py-sdk==0.6.6" ], "dependencies": [ "ffmpeg" ], "codeowners": [ "@Tuya", "@zlinoliver", "@METISU", "@frenck" ], "config_flow": true, "iot_class": "cloud_push", "dhcp": [ { "macaddress": "105A17" }, { "macaddress": "10D561" }, { "macaddress": "1869D8" }, { "macaddress": "381F8D" }, { "macaddress": "508A06" }, { "macaddress": "68572D" }, { "macaddress": "708976" }, { "macaddress": "7CF666" }, { "macaddress": "84E342" }, { "macaddress": "D4A651" }, { "macaddress": "D81F12*" } ], "is_built_in": true }, "data": { "endpoint": "https://openapi.tuyaeu.com", "auth_type": 0, "country_code": "61", "app_type": "tuyaSmart", "mqtt_connected": true, "disabled_by": null, "disabled_polling": false, "name": "Home Smart Hub", "model": "SGS01HA", "category": "wfcon", "product_id": "bkjsfuzu", "product_name": "Smart Hub", "online": true, "sub": true, "time_zone": "+11:00", "active_time": "2022-02-12T20:30:18+00:00", "create_time": "2022-02-12T20:30:18+00:00", "update_time": "2022-02-12T20:30:32+00:00", "function": {}, "status_range": {}, "status": {}, "home_assistant": { "name": "Home Smart Hub", "name_by_user": null, "disabled": false, "disabled_by": null, "entities": [] } } }
Also this is the diagnostics from the motion sensor.
{ "home_assistant": { "installation_type": "Home Assistant OS", "version": "2022.2.5", "dev": false, "hassio": true, "virtualenv": false, "python_version": "3.9.7", "docker": true, "arch": "x86_64", "timezone": "Australia/Sydney", "os_name": "Linux", "os_version": "5.10.98", "supervisor": "2022.01.1", "host_os": "Home Assistant OS 7.4", "docker_version": "20.10.9", "chassis": "vm", "run_as_root": true }, "custom_components": { "localtuya": { "version": "3.2.1", "requirements": [] }, "wiz_light": { "version": "0.4.5", "requirements": [ "pywizlight==0.4.15" ] }, "tuya_v2": { "version": "1.5.0", "requirements": [ "tuya-iot-py-sdk==0.4.1" ] }, "hacs": { "version": "1.22.0", "requirements": [ "aiogithubapi>=21.11.0" ] } }, "integration_manifest": { "domain": "tuya", "name": "Tuya", "documentation": "https://www.home-assistant.io/integrations/tuya", "requirements": [ "tuya-iot-py-sdk==0.6.6" ], "dependencies": [ "ffmpeg" ], "codeowners": [ "@Tuya", "@zlinoliver", "@METISU", "@frenck" ], "config_flow": true, "iot_class": "cloud_push", "dhcp": [ { "macaddress": "105A17" }, { "macaddress": "10D561" }, { "macaddress": "1869D8" }, { "macaddress": "381F8D" }, { "macaddress": "508A06" }, { "macaddress": "68572D" }, { "macaddress": "708976" }, { "macaddress": "7CF666" }, { "macaddress": "84E342" }, { "macaddress": "D4A651" }, { "macaddress": "D81F12*" } ], "is_built_in": true }, "data": { "endpoint": "https://openapi.tuyaeu.com", "auth_type": 0, "country_code": "61", "app_type": "tuyaSmart", "mqtt_connected": true, "disabled_by": null, "disabled_polling": false, "name": "Bathroom Motion Sensor", "model": "YIDONG", "category": "pir", "product_id": "6xcrb0jp", "product_name": "Motion Sensor", "online": false, "sub": true, "time_zone": "+08:00", "active_time": "2022-02-12T20:42:26+00:00", "create_time": "2022-02-12T20:42:26+00:00", "update_time": "2022-02-12T20:42:48+00:00", "function": {}, "status_range": { "pir": { "type": "Enum", "value": { "range": [ "pir", "none" ] } }, "battery_percentage": { "type": "Integer", "value": { "unit": "", "min": 0, "max": 10000, "scale": 0, "step": 1 } } }, "status": { "pir": "none", "battery_percentage": 100 }, "home_assistant": { "name": "Bathroom Motion Sensor", "name_by_user": null, "disabled": false, "disabled_by": null, "entities": [ { "disabled": false, "disabled_by": null, "entity_category": null, "device_class": null, "original_device_class": "motion", "icon": null, "original_icon": null, "unit_of_measurement": null, "state": { "entity_id": "binary_sensor.bathroom_motion_sensor", "state": "unavailable", "attributes": { "device_class": "motion", "friendly_name": "Bathroom Motion Sensor" }, "last_changed": "2022-02-12T23:23:02.499277+00:00", "last_updated": "2022-02-12T23:23:02.499277+00:00" } }, { "disabled": false, "disabled_by": null, "entity_category": "diagnostic", "device_class": null, "original_device_class": "battery", "icon": null, "original_icon": null, "unit_of_measurement": "%", "state": { "entity_id": "sensor.bathroom_motion_sensor_battery", "state": "unavailable", "attributes": { "state_class": "measurement", "unit_of_measurement": "%", "device_class": "battery", "friendly_name": "Bathroom Motion Sensor Battery" }, "last_changed": "2022-02-12T23:23:02.511999+00:00", "last_updated": "2022-02-12T23:23:02.511999+00:00" } } ] } } }
@TSharp95 I've hidden both of your comments, as they are not related to the issue presented here.
The problem
Hi , The sensor been working in the beta Tuya v2. Please see this pull request: tuya/tuya-home-assistant#445
What version of Home Assistant Core has the issue?
core-2022.2.3
What was the last working version of Home Assistant Core?
core-2021.10
What type of installation are you running?
Home Assistant OS
Integration causing the issue
Tuya
Link to integration documentation on our website
https://www.home-assistant.io/integrations/tuya/
Diagnostics information
{ "home_assistant": { "installation_type": "Home Assistant OS", "version": "2022.2.3", "dev": false, "hassio": true, "virtualenv": false, "python_version": "3.9.7", "docker": true, "arch": "aarch64", "timezone": "Asia/Jerusalem", "os_name": "Linux", "os_version": "5.10.92-v8", "supervisor": "2022.01.1", "host_os": "Home Assistant OS 7.3", "docker_version": "20.10.9", "chassis": "embedded", "run_as_root": true }, "custom_components": { "xiaomi_cloud_map_extractor": { "version": "v2.1.5", "requirements": [ "pillow", "pybase64", "python-miio", "requests", "pycryptodome" ] }, "hacs": { "version": "1.22.0", "requirements": [ "aiogithubapi>=21.11.0" ] }, "grocy": { "version": "v3.0.1", "requirements": [ "pygrocy==1.0.0", "iso8601==0.1.12", "integrationhelper==0.2.2" ] }, "alexa_media": { "version": "3.10.15", "requirements": [ "alexapy==1.25.3", "packaging>=20.3", "wrapt>=1.12.1" ] }, "frigate": { "version": "2.2.0", "requirements": [] }, "reolink_dev": { "version": "0.49", "requirements": [ "reolink==0.0.60" ] } }, "integration_manifest": { "domain": "tuya", "name": "Tuya", "documentation": "https://www.home-assistant.io/integrations/tuya", "requirements": [ "tuya-iot-py-sdk==0.6.6" ], "dependencies": [ "ffmpeg" ], "codeowners": [ "@Tuya", "@zlinoliver", "@METISU", "@frenck" ], "config_flow": true, "iot_class": "cloud_push", "dhcp": [ { "macaddress": "105A17*" }, { "macaddress": "10D561*" }, { "macaddress": "1869D8*" }, { "macaddress": "381F8D*" }, { "macaddress": "508A06*" }, { "macaddress": "68572D*" }, { "macaddress": "708976*" }, { "macaddress": "7CF666*" }, { "macaddress": "84E342*" }, { "macaddress": "D4A651*" }, { "macaddress": "D81F12*" } ], "is_built_in": true }, "data": { "endpoint": "https://openapi.tuyaeu.com", "auth_type": 0, "country_code": "972", "app_type": "smartlife", "mqtt_connected": true, "disabled_by": null, "disabled_polling": false, "name": "Kids 1 Climate", "model": "ZS-TL02", "category": "dgnbj", "product_id": "vzqtvljm", "product_name": "two in one(Brightness + temperature and humidity)", "online": true, "sub": true, "time_zone": "+08:00", "active_time": "2021-04-01T17:33:04+00:00", "create_time": "2021-04-01T17:33:04+00:00", "update_time": "2021-12-20T12:14:33+00:00", "function": {}, "status_range": { "battery_percentage": { "type": "Integer", "value": { "unit": "%", "min": 0, "max": 100, "scale": 0, "step": 1 } }, "bright_value": { "type": "Integer", "value": { "unit": "", "min": 0, "max": 1000, "scale": 0, "step": 1 } }, "temp_current": { "type": "Integer", "value": { "min": -400, "max": 2000, "scale": 1, "step": 1 } }, "humidity_value": { "type": "Integer", "value": { "unit": "%", "min": 0, "max": 100, "scale": 0, "step": 1 } } }, "status": { "battery_percentage": 71, "bright_value": 108, "temp_current": 157, "humidity_value": 76 }, "home_assistant": { "name": "Kids 1 Climate", "name_by_user": null, "disabled": false, "disabled_by": null, "entities": [] } } }
Example YAML snippet
No response
Anything in the logs that might be useful for us?
No response
Additional information
No response I have the same problem with my tuya bresser Wetterstation. No temp inside, no temp outside, no hunidy, no light no uv i dex no wind and no rain.
When comes a solution to integrate sensors? In tuya v2 there was a solution for it.
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.
The problem
Hi , The sensor been working in the beta Tuya v2. Please see this pull request: https://github.com/tuya/tuya-home-assistant/pull/445
What version of Home Assistant Core has the issue?
core-2022.2.3
What was the last working version of Home Assistant Core?
core-2021.10
What type of installation are you running?
Home Assistant OS
Integration causing the issue
Tuya
Link to integration documentation on our website
https://www.home-assistant.io/integrations/tuya/
Diagnostics information
Example YAML snippet
No response
Anything in the logs that might be useful for us?
No response
Additional information
No response