-
Notifications
You must be signed in to change notification settings - Fork 736
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
[Device Support Request] Tuya Soil Sensor (_TZE284_sgabhwa6 TS0601) #3266
Comments
I did a scan using ZHA Toolkit Scan{
"ieee": "REDACTED",
"nwk": "REDACTED",
"model": "TS0601",
"manufacturer": "_TZE284_sgabhwa6",
"manufacturer_id": "0x4417",
"endpoints": [
{
"id": 1,
"device_type": "0x0051",
"profile": "0x0104",
"in_clusters": {
"0x0000": {
"cluster_id": "0x0000",
"title": "Basic",
"name": "basic",
"attributes": {
"0x0000": {
"attribute_id": "0x0000",
"attribute_name": "zcl_version",
"value_type": [
"0x20",
"uint8_t",
"Analog"
],
"access": "READ|REPORT",
"access_acl": 5,
"attribute_value": 3
},
"0x0001": {
"attribute_id": "0x0001",
"attribute_name": "app_version",
"value_type": [
"0x20",
"uint8_t",
"Analog"
],
"access": "READ|REPORT",
"access_acl": 5,
"attribute_value": 77
},
"0x0002": {
"attribute_id": "0x0002",
"attribute_name": "stack_version",
"value_type": [
"0x20",
"uint8_t",
"Analog"
],
"access": "READ|REPORT",
"access_acl": 5,
"attribute_value": 0
},
"0x0003": {
"attribute_id": "0x0003",
"attribute_name": "hw_version",
"value_type": [
"0x20",
"uint8_t",
"Analog"
],
"access": "READ|REPORT",
"access_acl": 5,
"attribute_value": 1
},
"0x0004": {
"attribute_id": "0x0004",
"attribute_name": "manufacturer",
"value_type": [
"0x42",
"CharacterString",
"Discrete"
],
"access": "READ|REPORT",
"access_acl": 5,
"attribute_value": "_TZE284_sgabhwa6"
},
"0x0005": {
"attribute_id": "0x0005",
"attribute_name": "model",
"value_type": [
"0x42",
"CharacterString",
"Discrete"
],
"access": "READ|REPORT",
"access_acl": 5,
"attribute_value": "TS0601"
},
"0x0006": {
"attribute_id": "0x0006",
"attribute_name": "date_code",
"value_type": [
"0x42",
"CharacterString",
"Discrete"
],
"access": "READ|REPORT",
"access_acl": 5,
"attribute_value": ""
},
"0x0007": {
"attribute_id": "0x0007",
"attribute_name": "power_source",
"value_type": [
"0x30",
"enum8",
"Discrete"
],
"access": "READ|REPORT",
"access_acl": 5,
"attribute_value": 3
},
"0xffcf": {
"attribute_id": "0xffcf",
"attribute_name": "65487",
"value_type": [
"0x21",
"uint16_t",
"Analog"
],
"access": "READ|WRITE|REPORT",
"access_acl": 7
},
"0xffde": {
"attribute_id": "0xffde",
"attribute_name": "65502",
"value_type": [
"0x20",
"uint8_t",
"Analog"
],
"access": "READ|WRITE|REPORT",
"access_acl": 7,
"attribute_value": 13
},
"0xffe2": {
"attribute_id": "0xffe2",
"attribute_name": "65506",
"value_type": [
"0x20",
"uint8_t",
"Analog"
],
"access": "READ|REPORT",
"access_acl": 5,
"attribute_value": 56
},
"0xffe3": {
"attribute_id": "0xffe3",
"attribute_name": "65507",
"value_type": [
"0x48",
"Array",
"Discrete"
],
"access": "READ|REPORT",
"access_acl": 5
},
"0xfffd": {
"attribute_id": "0xfffd",
"attribute_name": "cluster_revision",
"value_type": [
"0x21",
"uint16_t",
"Analog"
],
"access": "READ|REPORT",
"access_acl": 5,
"attribute_value": 2
},
"0xfffe": {
"attribute_id": "0xfffe",
"attribute_name": "reporting_status",
"value_type": [
"0x30",
"enum8",
"Discrete"
],
"access": "READ|REPORT",
"access_acl": 5,
"attribute_value": 0
}
},
"commands_received": {},
"commands_generated": {}
},
"0x0004": {
"cluster_id": "0x0004",
"title": "Groups",
"name": "groups",
"attributes": {
"0x0000": {
"attribute_id": "0x0000",
"attribute_name": "name_support",
"value_type": [
"0x18",
"bitmap8",
"Discrete"
],
"access": "READ|REPORT",
"access_acl": 5,
"attribute_value": 0
},
"0xfffd": {
"attribute_id": "0xfffd",
"attribute_name": "cluster_revision",
"value_type": [
"0x21",
"uint16_t",
"Analog"
],
"access": "READ|REPORT",
"access_acl": 5,
"attribute_value": 2
}
},
"commands_received": {},
"commands_generated": {}
},
"0x0005": {
"cluster_id": "0x0005",
"title": "Scenes",
"name": "scenes",
"attributes": {
"0x0000": {
"attribute_id": "0x0000",
"attribute_name": "count",
"value_type": [
"0x20",
"uint8_t",
"Analog"
],
"access": "READ|REPORT",
"access_acl": 5,
"attribute_value": 0
},
"0x0001": {
"attribute_id": "0x0001",
"attribute_name": "current_scene",
"value_type": [
"0x20",
"uint8_t",
"Analog"
],
"access": "READ|REPORT",
"access_acl": 5,
"attribute_value": 0
},
"0x0002": {
"attribute_id": "0x0002",
"attribute_name": "current_group",
"value_type": [
"0x21",
"uint16_t",
"Analog"
],
"access": "READ|REPORT",
"access_acl": 5,
"attribute_value": 0
},
"0x0003": {
"attribute_id": "0x0003",
"attribute_name": "scene_valid",
"value_type": [
"0x10",
"Bool",
"Discrete"
],
"access": "READ|REPORT",
"access_acl": 5,
"attribute_value": 0
},
"0x0004": {
"attribute_id": "0x0004",
"attribute_name": "name_support",
"value_type": [
"0x18",
"bitmap8",
"Discrete"
],
"access": "READ|REPORT",
"access_acl": 5,
"attribute_value": 0
},
"0xfffd": {
"attribute_id": "0xfffd",
"attribute_name": "cluster_revision",
"value_type": [
"0x21",
"uint16_t",
"Analog"
],
"access": "READ|REPORT",
"access_acl": 5,
"attribute_value": 2
}
},
"commands_received": {},
"commands_generated": {}
},
"0xed00": {
"cluster_id": "0xed00",
"title": "Cluster",
"name": null,
"attributes": {
"0xfffd": {
"attribute_id": "0xfffd",
"attribute_name": "65533",
"value_type": [
"0x21",
"uint16_t",
"Analog"
],
"access": "READ|REPORT",
"access_acl": 5,
"attribute_value": 1
}
},
"commands_received": {},
"commands_generated": {}
},
"0xef00": {
"cluster_id": "0xef00",
"title": "Cluster",
"name": null,
"attributes": {
"0x0000": {
"attribute_id": "0x0000",
"attribute_name": "0",
"value_type": [
"0x20",
"uint8_t",
"Analog"
],
"access": "READ|REPORT",
"access_acl": 5,
"attribute_value": 0
}
},
"commands_received": {},
"commands_generated": {}
}
},
"out_clusters": {
"0x000a": {
"cluster_id": "0x000a",
"title": "Time",
"name": "time",
"attributes": {
"0xfffd": {
"attribute_id": "0xfffd",
"attribute_name": "cluster_revision",
"value_type": [
"0x21",
"uint16_t",
"Analog"
],
"access": "READ",
"access_acl": 1,
"attribute_value": 1
}
},
"commands_received": {},
"commands_generated": {}
},
"0x0019": {
"cluster_id": "0x0019",
"title": "Ota",
"name": "ota",
"attributes": {
"0x0000": {
"attribute_id": "0x0000",
"attribute_name": "upgrade_server_id",
"value_type": [
"0xf0",
"EUI64",
"Discrete"
],
"access": "READ",
"access_acl": 1,
"attribute_value": [
255,
255,
255,
255,
255,
255,
255,
255
]
},
"0x0001": {
"attribute_id": "0x0001",
"attribute_name": "file_offset",
"value_type": [
"0x23",
"uint32_t",
"Analog"
],
"access": "READ",
"access_acl": 1,
"attribute_value": 4294967295
},
"0x0002": {
"attribute_id": "0x0002",
"attribute_name": "current_file_version",
"value_type": [
"0x23",
"uint32_t",
"Analog"
],
"access": "READ",
"access_acl": 1,
"attribute_value": 77
},
"0x0003": {
"attribute_id": "0x0003",
"attribute_name": "current_zigbee_stack_version",
"value_type": [
"0x21",
"uint16_t",
"Analog"
],
"access": "READ",
"access_acl": 1,
"attribute_value": 2
},
"0x0004": {
"attribute_id": "0x0004",
"attribute_name": "downloaded_file_version",
"value_type": [
"0x23",
"uint32_t",
"Analog"
],
"access": "READ",
"access_acl": 1,
"attribute_value": 4294967295
},
"0x0005": {
"attribute_id": "0x0005",
"attribute_name": "downloaded_zigbee_stack_version",
"value_type": [
"0x21",
"uint16_t",
"Analog"
],
"access": "READ",
"access_acl": 1,
"attribute_value": 65535
},
"0x0006": {
"attribute_id": "0x0006",
"attribute_name": "image_upgrade_status",
"value_type": [
"0x30",
"enum8",
"Discrete"
],
"access": "READ",
"access_acl": 1,
"attribute_value": 0
},
"0x0007": {
"attribute_id": "0x0007",
"attribute_name": "manufacturer_id",
"value_type": [
"0x21",
"uint16_t",
"Analog"
],
"access": "READ",
"access_acl": 1,
"attribute_value": 4417
},
"0x0008": {
"attribute_id": "0x0008",
"attribute_name": "image_type_id",
"value_type": [
"0x21",
"uint16_t",
"Analog"
],
"access": "READ",
"access_acl": 1,
"attribute_value": 65535
},
"0x0009": {
"attribute_id": "0x0009",
"attribute_name": "minimum_block_req_delay",
"value_type": [
"0x21",
"uint16_t",
"Analog"
],
"access": "READ",
"access_acl": 1,
"attribute_value": 0
},
"0xfffd": {
"attribute_id": "0xfffd",
"attribute_name": "cluster_revision",
"value_type": [
"0x21",
"uint16_t",
"Analog"
],
"access": "READ",
"access_acl": 1,
"attribute_value": 3
}
},
"commands_received": {},
"commands_generated": {}
}
}
}
]
} |
I have exactly the same problem. I tried adding the quirks file at zhaquirks/tuya/ts0601_sensor.py, with ("_TZE284_sgabhwa6", "TS0601") added to the MODELS_INFO for class TuyaSoilSensor, but that didn't work. The diagnostics show "quirk_applied": false. I see one has been produced for zigbee2mqtt, see Koenkk/zigbee-herdsman-converters#7741, in case that helps. |
Is it possible to convert the zigbee2mqtt configuration to ZHA ? |
I tried with ChatGPT and this was the result: _TZE284_sgabhwa6 TS0601.py.txt However it doesn't work, of course, there are errors on the log
To try it I added this to configuration.yaml:
and copied the ...TS0601.py file to that folder I'm sure someone with experience creating these zha-device-handlers can do it now that the equivalent zigbee2mqtt converter exists. I hope someone has some time to do it. PS: |
Problem description
New Tuya Soil Sensor does not appear to have any clusters with temp/humidity readings after adding
https://www.aliexpress.us/item/3256806923087260.html
Solution description
Device supported, reporting soil temp, humidity and battery level
Screenshots/Video
Screenshots/Video
[Paste/upload your media here]
Device signature
Device signature
Diagnostic information
Diagnostic information
Logs
Logs
Custom quirk
Custom quirk
Additional information
No response
The text was updated successfully, but these errors were encountered: