enhancementhelp wanted
仓库指标
- Star
- (960 star)
- PR 合并指标
- (PR 指标待抓取)
描述
Device normal info
- Shaw Cat Litter Box V5
Currently only weight, excretion duration and excretion times are available in the integration. It would be nice to have all the entities and buttons available via the integration, especially since the litter box does not store settings and it gets reset to default (auto cleanup enabled, IR sensor set to off, clumping set back to 3 minutes and cleaning interval set back to 15 minutes) after a power outage.
Device info (please complete the following information, which can be found in log): like this:
"data": {
"endpoint": "https://apigw.tuyaeu.com",
"terminal_id": "1769859417780033qjd",
"mqtt_connected": true,
"disabled_by": null,
"disabled_polling": false,
"devices": [
{
"id": "bf3900826db71c1ce7hvid",
"name": "cat litter box V5",
"category": "msp",
"product_id": "n6vngrvcvqj54t4t",
"product_name": "cat litter box V5",
"online": true,
"sub": false,
"time_zone": "+02:00",
"active_time": "2026-01-10T13:05:32+00:00",
"create_time": "2026-01-10T13:05:32+00:00",
"update_time": "2026-01-10T13:05:32+00:00",
"function": {
"deodorization": {
"type": "Boolean",
"value": "{}"
}
},
"status_range": {
"cat_weight": {
"type": "Integer",
"value": "{\"unit\":\"kg\",\"min\":0,\"max\":10000,\"scale\":3,\"step\":1}"
},
"excretion_times_day": {
"type": "Integer",
"value": "{\"unit\":\"times\",\"min\":0,\"max\":60,\"scale\":0,\"step\":1}"
},
"excretion_time_day": {
"type": "Integer",
"value": "{\"unit\":\"s\",\"min\":0,\"max\":1800,\"scale\":0,\"step\":1}"
},
"deodorization": {
"type": "Boolean",
"value": "{}"
},
"fault": {
"type": "Bitmap",
"value": "{\"label\":[\"motor_fault\",\"program_fault\",\"g_sensor_fault\"]}"
}
},
"status": {
"cat_weight": 5620,
"excretion_times_day": 1,
"excretion_time_day": 134,
"deodorization": false,
"fault": 0
},
"home_assistant": {
"name": "cat litter box V5",
"name_by_user": "Litter Box 1",
"disabled": false,
"disabled_by": null,
"entities": [
{
"disabled": false,
"disabled_by": null,
"entity_category": null,
"device_class": null,
"original_device_class": "weight",
"icon": null,
"original_icon": null,
"unit_of_measurement": "kg",
"state": {
"entity_id": "sensor.litter_box_1_cat_weight",
"state": "5.62",
"attributes": {
"state_class": "measurement",
"unit_of_measurement": "kg",
"device_class": "weight",
"friendly_name": "Litter Box 1 Cat weight"
},
"last_changed": "2026-01-31T11:37:40.366892+00:00",
"last_reported": "2026-01-31T11:37:40.366892+00:00",
"last_updated": "2026-01-31T11:37:40.366892+00:00"
}
},
{
"disabled": false,
"disabled_by": null,
"entity_category": null,
"device_class": null,
"original_device_class": "duration",
"icon": null,
"original_icon": null,
"unit_of_measurement": "s",
"state": {
"entity_id": "sensor.litter_box_1_excretion_duration",
"state": "134.0",
"attributes": {
"state_class": "measurement",
"unit_of_measurement": "s",
"device_class": "duration",
"friendly_name": "Litter Box 1 Excretion duration"
},
"last_changed": "2026-01-31T11:37:40.367774+00:00",
"last_reported": "2026-01-31T11:37:40.367774+00:00",
"last_updated": "2026-01-31T11:37:40.367774+00:00"
}
},
{
"disabled": false,
"disabled_by": null,
"entity_category": null,
"device_class": null,
"original_device_class": null,
"icon": null,
"original_icon": null,
"unit_of_measurement": "times",
"state": {
"entity_id": "sensor.litter_box_1_excretion_times_day",
"state": "1.0",
"attributes": {
"unit_of_measurement": "times",
"friendly_name": "Litter Box 1 Excretion times (day)"
},
"last_changed": "2026-01-31T11:37:40.368487+00:00",
"last_reported": "2026-01-31T11:37:40.368487+00:00",
"last_updated": "2026-01-31T11:37:40.368487+00:00"
}
}
]
},
"set_up": true,
"support_local": true,
"local_strategy": {
"6": {
"value_convert": "default",
"status_code": "cat_weight",
"config_item": {
"statusFormat": "{\"cat_weight\":\"$\"}",
"valueDesc": "{\"unit\":\"kg\",\"min\":0,\"max\":10000,\"scale\":3,\"step\":1}",
"valueType": "Integer",
"enumMappingMap": {},
"pid": "n6vngrvcvqj54t4t"
}
},
"7": {
"value_convert": "default",
"status_code": "excretion_times_day",
"config_item": {
"statusFormat": "{\"excretion_times_day\":\"$\"}",
"valueDesc": "{\"unit\":\"times\",\"min\":0,\"max\":60,\"scale\":0,\"step\":1}",
"valueType": "Integer",
"enumMappingMap": {},
"pid": "n6vngrvcvqj54t4t"
}
},
"8": {
"value_convert": "default",
"status_code": "excretion_time_day",
"config_item": {
"statusFormat": "{\"excretion_time_day\":\"$\"}",
"valueDesc": "{\"unit\":\"s\",\"min\":0,\"max\":1800,\"scale\":0,\"step\":1}",
"valueType": "Integer",
"enumMappingMap": {},
"pid": "n6vngrvcvqj54t4t"
}
},
"17": {
"value_convert": "default",
"status_code": "deodorization",
"config_item": {
"statusFormat": "{\"deodorization\":\"$\"}",
"valueDesc": "{}",
"valueType": "Boolean",
"enumMappingMap": {},
"pid": "n6vngrvcvqj54t4t"
}
},
"22": {
"value_convert": "default",
"status_code": "fault",
"config_item": {
"statusFormat": "{\"fault\":\"$\"}",
"valueDesc": "{\"label\":[\"motor_fault\",\"program_fault\",\"g_sensor_fault\"]}",
"valueType": "Bitmap",
"enumMappingMap": {},
"pid": "n6vngrvcvqj54t4t"
}
}
},
"warnings": null
}
]
}