Skip to content
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

Request support for Tesla Smart pet feeder with Camera #2781

Open
fate8383 opened this issue Jan 14, 2025 · 5 comments
Open

Request support for Tesla Smart pet feeder with Camera #2781

fate8383 opened this issue Jan 14, 2025 · 5 comments
Labels
full_info All info needed was provided new device Unsupported device

Comments

@fate8383
Copy link

fate8383 commented Jan 14, 2025

Log message

2025-01-14 01:56:49.314 WARNING (MainThread) [custom_components.tuya_local.config_flow] Adding Tesla Smart Pet Feeder Camera device with product id hdvemiqnknebgflm
2025-01-14 01:56:49.320 WARNING (MainThread) [custom_components.tuya_local.config_flow] Unable to fetch data model from cloud: 'str' object has no attribute 'keys'
2025-01-14 01:56:49.320 WARNING (MainThread) [custom_components.tuya_local.config_flow] Device matches None with quality of 0%. DPS: {"updated_at": 0}
I get error: ```text 2025-01-14 00:45:02.293 ERROR (MainThread) [custom_components.tuya_local.device] Failed to refresh device state for Test. 2025-01-14 00:45:27.560 ERROR (MainThread) [custom_components.tuya_local.device] Failed to refresh device state for Test. 2025-01-14 00:46:06.669 ERROR (MainThread) [custom_components.tuya_local.device] Failed to refresh device state for Test. 2025-01-14 00:47:03.449 ERROR (MainThread) [custom_components.tuya_local.device] Failed to refresh device state for Test. 2025-01-14 00:49:43.060 ERROR (MainThread) [custom_components.tuya_local.device] Failed to refresh device state for Test. 2025-01-14 00:50:06.368 ERROR (MainThread) [custom_components.tuya_local.device] Failed to refresh device state for Test. ```

Product ID

hdvemiqnknebgflm

Product Name

Tesla Smart Pet Feeder with Camera

DPS information

{
  "result": {
    "properties": [
      {
        "code": "basic_flip",
        "custom_name": "",
        "dp_id": 103,
        "time": 1736807183763,
        "type": "bool",
        "value": false
      },
      {
        "code": "motion_sensitivity",
        "custom_name": "",
        "dp_id": 106,
        "time": 1736807183964,
        "type": "enum",
        "value": "0"
      },
      {
        "code": "basic_nightvision",
        "custom_name": "",
        "dp_id": 108,
        "time": 1736807187594,
        "type": "enum",
        "value": "0"
      },
      {
        "code": "sd_storge",
        "custom_name": "",
        "dp_id": 109,
        "time": 1736807187268,
        "type": "string",
        "value": "62489792|45120|62444672"
      },
      {
        "code": "sd_status",
        "custom_name": "",
        "dp_id": 110,
        "time": 1736807187278,
        "type": "value",
        "value": 1
      },
      {
        "code": "sd_format",
        "custom_name": "",
        "dp_id": 111,
        "time": 1736805321392,
        "type": "bool",
        "value": true
      },
      {
        "code": "movement_detect_pic",
        "custom_name": "",
        "dp_id": 115,
        "time": 1736805229608,
        "type": "raw"
      },
      {
        "code": "sd_format_state",
        "custom_name": "",
        "dp_id": 117,
        "time": 1736807187554,
        "type": "value",
        "value": 0
      },
      {
        "code": "motion_switch",
        "custom_name": "",
        "dp_id": 134,
        "time": 1736807183813,
        "type": "bool",
        "value": false
      },
      {
        "code": "record_switch",
        "custom_name": "",
        "dp_id": 150,
        "time": 1736807187368,
        "type": "bool",
        "value": true
      },
      {
        "code": "record_mode",
        "custom_name": "",
        "dp_id": 151,
        "time": 1736807187506,
        "type": "enum",
        "value": "2"
      },
      {
        "code": "feed_num",
        "custom_name": "",
        "dp_id": 231,
        "time": 1736809678230,
        "type": "value",
        "value": 1
      },
      {
        "code": "food_weight",
        "custom_name": "",
        "dp_id": 232,
        "time": 1736807182776,
        "type": "value",
        "value": 10
      },
      {
        "code": "realtime_data",
        "custom_name": "",
        "dp_id": 233,
        "time": 1736807225449,
        "type": "enum",
        "value": "1"
      },
      {
        "code": "history_data",
        "custom_name": "",
        "dp_id": 234,
        "time": 1736805229608,
        "type": "bool",
        "value": false
      },
      {
        "code": "schedule",
        "custom_name": "",
        "dp_id": 236,
        "time": 1736807310260,
        "type": "string",
        "value": "7f08150510000007f2015051000000"
      }
    ]
  },
  "success": true,
  "t": 1736812769675,
  "tid": "6d43505bd20a11ef9e5f9e9247cde4aa"
}

Information about how the device functions

Feed
Schedule
All the same as Tesla Smart Pet Feeder funtions

Camera (recording on SD card continues) (playback, snapshot, two way talk)

@fate8383 fate8383 added the new device Unsupported device label Jan 14, 2025
@fate8383 fate8383 changed the title Tesla Smart pet feeder with Camera Request support for Tesla Smart pet feeder with Camera Jan 14, 2025
@make-all
Copy link
Owner

Device is refusing to communicate (unable to refresh state). Such a device cannot work locally.

You could try going through the hints on #522, but it seems the connection is made, so the key, device id etc must be correct, the only thing that might be worth trying is different protocol versions.

@make-all make-all closed this as not planned Won't fix, can't repro, duplicate, stale Jan 14, 2025
@github-project-automation github-project-automation bot moved this to ✅ Done in Tuya Local Jan 14, 2025
@make-all make-all removed the new device Unsupported device label Jan 14, 2025
@make-all make-all removed this from Tuya Local Jan 14, 2025
@fate8383
Copy link
Author

2025-01-14 01:56:49.314 WARNING (MainThread) [custom_components.tuya_local.config_flow] Adding Tesla Smart Pet Feeder Camera device with product id hdvemiqnknebgflm
2025-01-14 01:56:49.320 WARNING (MainThread) [custom_components.tuya_local.config_flow] Unable to fetch data model from cloud: 'str' object has no attribute 'keys'
2025-01-14 01:56:49.320 WARNING (MainThread) [custom_components.tuya_local.config_flow] Device matches None with quality of 0%. DPS: {"updated_at": 0}
2025-01-14 01:56:49.320 WARNING (MainThread) [custom_components.tuya_local.config_flow] Include the previous log messages with any new device request to https://github.com
/make-all/tuya-local/issues/

@make-all make-all reopened this Jan 14, 2025
@make-all make-all moved this to 🔖 Ready in Tuya Local Jan 14, 2025
@make-all make-all added new device Unsupported device full_info All info needed was provided labels Jan 14, 2025
@fate8383
Copy link
Author

I am just making a mess now, you closed it I created a new issue with correct logs but then I await you reopened it. Now I closed the new one. I leaving it as is. Thanks for looking at it.

@fate8383
Copy link
Author

{
"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": 1736820868069,
"tid": "48414e48d21d11efa76ab217c6c149bc"
}

@fate8383
Copy link
Author

for some reason DPs for feeding are not there at all in the above...I finally found them all:
"dps_strings": [
"103 ( code: basic_flip , value: False )",
"106 ( code: motion_sensitivity , value: 1 )",
"108 ( code: basic_nightvision , value: 0 )",
"109 ( code: sd_storge , value: 896|896|0 )",
"110 ( code: sd_status , value: 5 )",
"111 ( code: sd_format , value: False, cloud pull )",
"117 ( code: sd_format_state , value: 0 )",
"134 ( code: motion_switch , value: False )",
"150 ( code: record_switch , value: True )",
"151 ( code: record_mode , value: 1 )",
"231 ( code: feed_publish , value: 1, cloud pull )",
"232 ( code: food_weight , value: 10 )",
"233 ( code: realtime_data , value: 0, cloud pull )",
"234 ( code: history_data , value: False, cloud pull )",
"235 ( code: feed_voice_record , value: 0 )",
"236 ( code: schedule , value: 7f11300310000007f2000031000000 )",
"238 ( code: feed_report , value: 1 )"
]
},

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
full_info All info needed was provided new device Unsupported device
Projects
Status: 🔖 Ready
Development

No branches or pull requests

2 participants