Hi there, looking for a bit of help as I exeded my knowledge
I have Home Assistant with tuya integration .
All is already set up and I have couple of devices I can control without issue. Today I added new zigbee soil sensor to my tuya and wanted to use it for some automation in HA.
However even though I can see it in devices ( as it’s connected with my gateway ) . It does not have any entities in HA.
If I download diagnostic , it has humidity , temperature, and battery values , but those are unavailable. I tried to manually add sensors, but can’t refer that device . Presuming I have its id
from core.device_registry
, is there any chance to somehow add it to HA ?
I have external Moes zigbee gateway but it’s the one connected to tuya account . I don’t have any cordinator , and if possible want to configure it using current setup ( already has bunch of devices on that gateway etc, some automation and my HA is not exposed outside of my LAN )
I was thinking about last resort to maybe there is a way to add and grab those arguments for this soil using rest ( as I do have clientID and secret ) but don’t even know how to start , how to authenticate with tuya api , and refresh token if it expires
Diagnostics content below :
{
"home_assistant": {
"installation_type": "Home Assistant Container",
"version": "2022.10.2",
"dev": false,
"hassio": false,
"virtualenv": false,
"python_version": "3.10.5",
"docker": true,
"arch": "aarch64",
"timezone": "Europe/Warsaw",
"os_name": "Linux",
"os_version": "4.4.192-rockchip64",
"run_as_root": true
},
"custom_components": {
"localtuya": {
"version": "5.0.0",
"requirements": []
},
"hacs": {
"version": "1.28.3",
"requirements": [
"aiogithubapi>=22.2.4"
]
}
},
"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",
"@frenck"
],
"config_flow": true,
"iot_class": "cloud_push",
"loggers": [
"tuya_iot"
],
"is_built_in": true
},
"data": {
"endpoint": "https://openapi.tuyaeu.com",
"auth_type": 0,
"country_code": "48",
"app_type": "smartlife",
"mqtt_connected": true,
"disabled_by": null,
"disabled_polling": false,
"name": "Czujnik Wilgoci Inspekt",
"model": "QT-07S-Zigbee",
"category": "zwjcy",
"product_id": "myd45weu",
"product_name": "Soil sensor",
"online": true,
"sub": true,
"time_zone": "+02:00",
"active_time": "2024-06-06T15:44:01+00:00",
"create_time": "2024-06-06T15:44:01+00:00",
"update_time": "2024-06-06T15:44:28+00:00",
"function": {
"temp_unit_convert": {
"type": "Enum",
"value": {
"range": [
"c",
"f"
]
}
}
},
"status_range": {
"humidity": {
"type": "Integer",
"value": {
"unit": "%",
"min": 0,
"max": 100,
"scale": 0,
"step": 1
}
},
"temp_current": {
"type": "Integer",
"value": {
"unit": "\u2103",
"min": -30,
"max": 70,
"scale": 0,
"step": 1
}
},
"temp_unit_convert": {
"type": "Enum",
"value": {
"range": [
"c",
"f"
]
}
},
"battery_state": {
"type": "Enum",
"value": {
"range": [
"low",
"middle",
"high"
]
}
},
"battery_percentage": {
"type": "Integer",
"value": {
"unit": "%",
"min": 0,
"max": 100,
"scale": 0,
"step": 1
}
}
},
"status": {
"humidity": 84,
"temp_current": 23,
"temp_unit_convert": "c",
"battery_state": "high",
"battery_percentage": 90
},
"home_assistant": {
"name": "Czujnik Wilgoci Inspekt",
"name_by_user": null,
"disabled": false,
"disabled_by": null,
"entities": []
}
}
}
core.device_registry
{
"area_id": null,
"config_entries": [
"REDACTED"
],
"configuration_url": null,
"connections": [],
"disabled_by": null,
"entry_type": null,
"hw_version": null,
"id": "REDACTED",
"identifiers": [
[
"tuya",
"REDACTED"
]
],
"manufacturer": "Tuya",
"model": "Soil sensor (unsupported)",
"name_by_user": null,
"name": "Czujnik Wilgoci Inspekt",
"sw_version": null,
"via_device_id": null
},