Skip to content

Conversation

@augs
Copy link
Contributor

@augs augs commented Dec 28, 2025

Adds support for the Faroro TD20 Pet Treat Camera.

This device was previsouly sold on Amazon at https://www.amazon.com/dp/B0C6JMWTYN

Local DPS discovery of my reference device returns:

[
 {"id": 103, "name": "basic_flip", "type": "Boolean", "format": "{}", "enumMap": {}},
 {"id": 108, "name": "basic_nightvision", "type": "Enum", "format": "{\"range\":[\"0\",\"1\",\"2\"]}", "enumMap": {}},
 {"id": 134, "name": "motion_switch", "type": "Boolean", "format": "{}", "enumMap": {}},
 {"id": 168, "name": "motion_area_switch", "type": "Boolean", "format": "{}", "enumMap": {}},
 {"id": 169, "name": "motion_area", "type": "String", "format": "{\"maxlen\":255}", "enumMap": {}}
]

Functionality not implemented

Camera audio and video is not implemented as it is not supported by tuya-local

Camera motion scheduling is also not exposed via any DPS that I can find so it is not implemented.

DPS #169 motion_area is only exposed as a text field. The device expects a JSON payload defining an overlay box. The values are most likely percentages of camera area. Below is an example for the entire area:
{"num":1,"region0":{"x":0,"y":0,"xlen":100,"ylen":100}}

DPS #212 logic is not implemented as it would require some custom parsing of the payload JSON. It triggers when motion is detected and an image is uploaded to a cloud bucket. Below is an example:

{"v":"4.0","bucket":"ty-us-storage$$","cmd":"ipc_motion","type":"image","with":"resource","alarm":true,"time":1766941681,"files":[["/######-##########-#####################/unify/###########.jpeg","#################"]]}

DPS #233 主动消息推送 or proactive push notifications does not appear to accept any value changes.

@@ -0,0 +1,72 @@
name: Faroro Pet Treat Camera
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Top level name should be generic, as other brands are likely to be used for the same device in different markets.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done, should I also rename the file?

augs and others added 3 commits January 3, 2026 10:16
- Pet Treat Camera seems like a marketing name, so moved to model, with TD20 bumped to model_id. Choose a more generic top level name that follows HA case convention.
- shortened some entity names
- added some icons

PR make-all#4216
@make-all make-all merged commit ab6e411 into make-all:main Jan 4, 2026
4 checks passed
@github-project-automation github-project-automation bot moved this from 👀 In review to ✅ Done in Tuya Local Jan 4, 2026
make-all added a commit that referenced this pull request Jan 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

2 participants