ZY-HPS01-5.8G dps string doesn't match purchased ZY-HPS01-5.8G - illuminance_value is 11 not 103 #2849
Open
2 of 4 tasks
Labels
device variant
Variant of a supported device
Description
My newly purchased ZY-HPS01-5.8G uses a dps string doesn't match the existing ZY-HPS01-5.8G device. The illuminance_value is 11 not 103. This prevented the device from being recognized.
When I change that, the device is now recognized and working correctly. Although illuminance values may be off by a factor of 10.
I don't know if this is new to the model, (or if this is an older device - no date on the device or documentation), or a typo.
Steps to reproduce
Compare the yaml file to the 'diagnostic' file downloaded via the Tuya-Local integration.
Expected behaviour
The device should be recognized and operate correctly.
Additional context
Diagnostic:
"data": {
"name": "Radar 01",
"type": "zyhps01a_human_presence_sensor",
"device_id": "REDACTED",
"device_cid": "",
"local_key": "REDACTED",
"host": "REDACTED",
"protocol_version": 3.4,
"tinytuya_version": "1.15.1",
"api_version_set": 3.4,
"api_version_used": 3.4,
"api_working": true,
"status": {},
"cached_state": {
"updated_at": 1737659180.8580568,
"11": 240,
"104": 30,
"105": 6,
"107": 8,
"109": 300,
"110": 50,
"111": 300,
"112": 50,
"101": "presence"
},
"pending_state": {},
"connected": true,
"force_dps": [],
"home_assistant": {
"name": "e 01",
"name_by_user": null,
"disabled": false,
"disabled_by": null,
"entities": [
{
"disabled": false,
"disabled_by": null,
"entity_category": "config",
"device_class": null,
"original_device_class": null,
"icon": null,
"unit_of_measurement": "s",
"state": {
"entity_id": "number.radar_01_presence_delay",
"state": "30",
"attributes": {
"min": 0.0,
"max": 180.0,
"step": 10.0,
"mode": "auto",
"unit_of_measurement": "s",
"friendly_name": "Radar 01 Presence delay"
},
"last_changed": "2025-01-23T18:53:37.389808+00:00",
"last_reported": "2025-01-23T18:53:37.502650+00:00",
"last_updated": "2025-01-23T18:53:37.389808+00:00"
}
},
{
"disabled": false,
"disabled_by": null,
"entity_category": "config",
"device_class": null,
"original_device_class": null,
"icon": null,
"unit_of_measurement": "x",
"state": {
"entity_id": "number.radar_01_motion_sensitivity",
"state": "6",
"attributes": {
"min": 0.0,
"max": 10.0,
"step": 1.0,
"mode": "auto",
"unit_of_measurement": "x",
"friendly_name": "Radar 01 Motion sensitivity"
},
"last_changed": "2025-01-23T18:53:36.831823+00:00",
"last_reported": "2025-01-23T18:53:37.502722+00:00",
"last_updated": "2025-01-23T18:53:36.831823+00:00"
}
},
{
"disabled": false,
"disabled_by": null,
"entity_category": "config",
"device_class": null,
"original_device_class": null,
"icon": null,
"unit_of_measurement": "x",
"state": {
"entity_id": "number.radar_01_breath_sensitivity",
"state": "8",
"attributes": {
"min": 0.0,
"max": 10.0,
"step": 1.0,
"mode": "auto",
"unit_of_measurement": "x",
"friendly_name": "Radar 01 Breath sensitivity"
},
"last_changed": "2025-01-23T18:53:37.278685+00:00",
"last_reported": "2025-01-23T18:53:37.503361+00:00",
"last_updated": "2025-01-23T18:53:37.278685+00:00"
}
},
{
"disabled": false,
"disabled_by": null,
"entity_category": "config",
"device_class": null,
"original_device_class": null,
"icon": null,
"unit_of_measurement": "cm",
"state": {
"entity_id": "number.radar_01_motion_maximum_distance",
"state": "300",
"attributes": {
"min": 0.0,
"max": 600.0,
"step": 10.0,
"mode": "auto",
"unit_of_measurement": "cm",
"friendly_name": "Radar 01 Motion maximum distance"
},
"last_changed": "2025-01-23T18:53:36.499154+00:00",
"last_reported": "2025-01-23T18:53:37.503448+00:00",
"last_updated": "2025-01-23T18:53:36.499154+00:00"
}
},
{
"disabled": false,
"disabled_by": null,
"entity_category": "config",
"device_class": null,
"original_device_class": null,
"icon": null,
"unit_of_measurement": "cm",
"state": {
"entity_id": "number.radar_01_motion_minimum_distance",
"state": "50",
"attributes": {
"min": 0.0,
"max": 600.0,
"step": 10.0,
"mode": "auto",
"unit_of_measurement": "cm",
"friendly_name": "Radar 01 Motion minimum distance"
},
"last_changed": "2025-01-23T18:53:36.720947+00:00",
"last_reported": "2025-01-23T18:53:37.503510+00:00",
"last_updated": "2025-01-23T18:53:36.720947+00:00"
}
},
{
"disabled": false,
"disabled_by": null,
"entity_category": "config",
"device_class": null,
"original_device_class": null,
"icon": null,
"unit_of_measurement": "cm",
"state": {
"entity_id": "number.radar_01_breath_maximum_distance",
"state": "300",
"attributes": {
"min": 0.0,
"max": 600.0,
"step": 10.0,
"mode": "auto",
"unit_of_measurement": "cm",
"friendly_name": "Radar 01 Breath maximum distance"
},
"last_changed": "2025-01-23T18:53:36.943592+00:00",
"last_reported": "2025-01-23T18:53:37.503569+00:00",
"last_updated": "2025-01-23T18:53:36.943592+00:00"
}
},
{
"disabled": false,
"disabled_by": null,
"entity_category": "config",
"device_class": null,
"original_device_class": null,
"icon": null,
"unit_of_measurement": "cm",
"state": {
"entity_id": "number.radar_01_breath_minimum_distance",
"state": "50",
"attributes": {
"min": 0.0,
"max": 600.0,
"step": 10.0,
"mode": "auto",
"unit_of_measurement": "cm",
"friendly_name": "Radar 01 Breath minimum distance"
},
"last_changed": "2025-01-23T18:53:37.167123+00:00",
"last_reported": "2025-01-23T18:53:37.503624+00:00",
"last_updated": "2025-01-23T18:53:37.167123+00:00"
}
},
{
"disabled": false,
"disabled_by": null,
"entity_category": null,
"device_class": null,
"original_device_class": "motion",
"icon": null,
"unit_of_measurement": null,
"state": {
"entity_id": "binary_sensor.radar_01_motion",
"state": "on",
"attributes": {
"device_class": "motion",
"friendly_name": "Radar 01 Motion"
},
"last_changed": "2025-01-23T19:04:24.014796+00:00",
"last_reported": "2025-01-23T19:04:36.198382+00:00",
"last_updated": "2025-01-23T19:04:24.014796+00:00"
}
}
]
}
}
}
Confirmation
I am sure this is a bug or improvement, that is well enough described that it can be implemented.
If this is for a specific device, the device config is mentioned above, or diagnostics are included.
Log messages or diagnostics relevant to the issue are included.
This is not requesting addition of a new device.
The text was updated successfully, but these errors were encountered: