Hi all,
Yesterday I got a LSC Smart pet feeder and added it in Home Assistant with the integration Tuya
I noticed that the app has a lot more features than home assistant is viewing:
I saw online on how to get data points in Tuya development and pulled them for the pet feeder and ended up with:
{“103”:“Flip”,“106”:“Motion detector sensitivity”,“108”:“Night Vision”,“111”:“存储卡格式化”,“115”:“Motion Detection”,“117”:“格式化状态”,“134”:“Motion”,“150”:“SD卡录像开关”,“151”:“录像模式”,“231”:“Feed”,“232”:“Food Weight”,“233”:“Realtime Data”,“234”:“History Data”,“235”:“短音录制”}
I also pulled a more readable export from the api explorer with all DP’s:
{
"result": {
"category": "sp",
"functions": [
{
"code": "basic_flip",
"desc": "{}",
"name": "反面翻转",
"type": "Boolean",
"values": "{}"
},
{
"code": "motion_sensitivity",
"desc": "{\"range\":[\"0\",\"1\",\"2\"]}",
"name": "移动侦测灵敏度",
"type": "Enum",
"values": "{\"range\":[\"0\",\"1\",\"2\"]}"
},
{
"code": "basic_nightvision",
"desc": "{\"range\":[\"0\",\"1\",\"2\"]}",
"name": "红外夜视",
"type": "Enum",
"values": "{\"range\":[\"0\",\"1\",\"2\"]}"
},
{
"code": "sd_format",
"desc": "{}",
"name": "存储卡格式化",
"type": "Boolean",
"values": "{}"
},
{
"code": "motion_switch",
"desc": "{}",
"name": "移动报警开关",
"type": "Boolean",
"values": "{}"
},
{
"code": "record_switch",
"desc": "{}",
"name": "SD卡录像开关",
"type": "Boolean",
"values": "{}"
},
{
"code": "record_mode",
"desc": "{\"range\":[\"1\",\"2\"]}",
"name": "录像模式",
"type": "Enum",
"values": "{\"range\":[\"1\",\"2\"]}"
}
],
"status": [
{
"code": "basic_flip",
"name": "反面翻转",
"type": "Boolean",
"values": "{}"
},
{
"code": "motion_sensitivity",
"name": "移动侦测灵敏度",
"type": "Enum",
"values": "{\"range\":[\"0\",\"1\",\"2\"]}"
},
{
"code": "basic_nightvision",
"name": "红外夜视",
"type": "Enum",
"values": "{\"range\":[\"0\",\"1\",\"2\"]}"
},
{
"code": "sd_storge",
"name": "获取存储卡容量",
"type": "String",
"values": "{\"maxlen\":255}"
},
{
"code": "sd_status",
"name": "存储卡状态",
"type": "Integer",
"values": "{\"min\":1,\"max\":5,\"scale\":0,\"step\":1}"
},
{
"code": "sd_format",
"name": "存储卡格式化",
"type": "Boolean",
"values": "{}"
},
{
"code": "movement_detect_pic",
"name": "移动检测",
"type": "Raw",
"values": "{}"
},
{
"code": "sd_format_state",
"name": "格式化状态",
"type": "Integer",
"values": "{\"unit\":\"\",\"min\":-20000,\"max\":200000,\"scale\":0,\"step\":1}"
},
{
"code": "motion_switch",
"name": "移动报警开关",
"type": "Boolean",
"values": "{}"
},
{
"code": "record_switch",
"name": "SD卡录像开关",
"type": "Boolean",
"values": "{}"
},
{
"code": "record_mode",
"name": "录像模式",
"type": "Enum",
"values": "{\"range\":[\"1\",\"2\"]}"
}
]
},
"success": true,
"t": 1723719954134,
"tid": "570f826e5af611ef883136d89ae34f8e"
}
But my question is, how do I correctly map these data points so I can use them in HA? If there is a guide or something, that would be great. I tried using local tuya but that doesn’t seem to work. I heard people talking about tuyalocal being better but i can’t seem to find that integration…
Prefferably I would add these dp’s in the tuya cloud integration since that seems to work the best, but I have no idea how.
Also if there are more people with this pet feeder, let me know what you figured out.
Thanks!