Replies: 3 comments 6 replies
-
History data is unlikely to be usefully available over the local protocol, most likely only the latest record is sent at end of cleaning, and the normal case is the cloud keeps the history and allows the app to query it, but this would not be applicable to local use. |
Beta Was this translation helpful? Give feedback.
-
Still searching for a way to do this. The current entities/sensors seem to be a bit buggy sometimes, for example when enabling motion detection, it becomes unknown after 30 sec. So if there is someone who can help me out with using these DP's to enrich entities in HA, please let me know. 😄 |
Beta Was this translation helpful? Give feedback.
-
I mean for example here: |
Beta Was this translation helpful? Give feedback.
-
Hi all,
Just started using TuyaLocal because of the huge support for devices, I used LocalTuya before but this Pet Smart Pet feeder had very limited entities/sensors etc. I added this pet feeder in TuyaLocal and got a lot more out of it, but I still miss some functions, like press to feed or a history of feeding.
Currently this feeder uses the ceres_plus_petfeeder.yaml from devices because that probably is the closest to that device. I got the DP_ids via the Iot platform from my own device, they are as followed:
"result": { "properties": [ { "code": "basic_flip", "custom_name": "", "dp_id": 103, "time": 1723910842385, "type": "bool", "value": false }, { "code": "motion_sensitivity", "custom_name": "", "dp_id": 106, "time": 1723813952722, "type": "enum", "value": "0" }, { "code": "basic_nightvision", "custom_name": "", "dp_id": 108, "time": 1723813952760, "type": "enum", "value": "0" }, { "code": "sd_storge", "custom_name": "", "dp_id": 109, "time": 1723813953033, "type": "string", "value": "896|896|0" }, { "code": "sd_status", "custom_name": "", "dp_id": 110, "time": 1723813953079, "type": "value", "value": 5 }, { "code": "sd_format", "custom_name": "", "dp_id": 111, "time": 1723650126400, "type": "bool", "value": false }, { "code": "movement_detect_pic", "custom_name": "", "dp_id": 115, "time": 1723650126400, "type": "raw" }, { "code": "sd_format_state", "custom_name": "", "dp_id": 117, "time": 1723650130139, "type": "value", "value": 0 }, { "code": "motion_switch", "custom_name": "", "dp_id": 134, "time": 1723650129819, "type": "bool", "value": false }, { "code": "record_switch", "custom_name": "", "dp_id": 150, "time": 1723650130038, "type": "bool", "value": true }, { "code": "record_mode", "custom_name": "", "dp_id": 151, "time": 1723803105627, "type": "enum", "value": "1" }, { "code": "feed_num", "custom_name": "", "dp_id": 231, "time": 1723878182225, "type": "value", "value": 4 }, { "code": "food_weight", "custom_name": "", "dp_id": 232, "time": 1723650173063, "type": "value", "value": 10 }, { "code": "realtime_data", "custom_name": "", "dp_id": 233, "time": 1723878177015, "type": "enum", "value": "0" }, { "code": "history_data", "custom_name": "", "dp_id": 234, "time": 1723650126400, "type": "bool", "value": false }, { "code": "feed_voice_record", "custom_name": "", "dp_id": 235, "time": 1723650126400, "type": "enum", "value": "0" }, { "code": "schedule", "custom_name": "", "dp_id": 236, "time": 1723877353330, "type": "string", "value": "7f0820041000000" } ] }, "success": true, "t": 1723910852986, "tid": "cf9e5aaf5cb211ef883136d89ae34f8e" }
So here I see History data, Feed num which I think is feeding.
I would like to add some of these DP_ids to enrich the entities/sensors/functions in HA for this device, but how do I go about this? I'm pretty new to this and can't really find any guides on how to actually do this. Most of them explain the proces of getting the device id, local key and DP_ids but don't actually show how I can map these.
If there is a guide or something available on how to map these DP_ids, that would be awesome!
Beta Was this translation helpful? Give feedback.
All reactions