From 0f713d2502097fe6a3bf59ce5a72efc32dc3cad9 Mon Sep 17 00:00:00 2001 From: Jason Rumney Date: Sun, 23 Jun 2024 18:05:13 +0900 Subject: [PATCH] V330L pet feeder: add missing dps - Add camera - Add additional attributes for non-useful data. Issue #2027 --- ACKNOWLEDGEMENTS.md | 1 + DEVICES.md | 1 + .../tuya_local/devices/v330l_petfeeder.yaml | 43 ++++++++++++++++++- 3 files changed, 44 insertions(+), 1 deletion(-) diff --git a/ACKNOWLEDGEMENTS.md b/ACKNOWLEDGEMENTS.md index db18012be4..3d4bd7d1b9 100644 --- a/ACKNOWLEDGEMENTS.md +++ b/ACKNOWLEDGEMENTS.md @@ -575,3 +575,4 @@ Further device support has been made with the assistance of users. Please consid - [gy6221](https://github.com/gy6221) for contributing improvements to Atorch SW1P switches. - [opolczer](https://github.com/opolczer) for assisting with support for KY 35W-10 shutter controllers and Fisher air to water heat pump. - [jannisan](https://github.com/jannisan) for contributing support for Divoo DWV010 dual water timers. +- [pergolafabio](https://github.com/pergolafabio) for contributing support for V330 pet feeders. diff --git a/DEVICES.md b/DEVICES.md index d936be2fea..0588cd50c9 100644 --- a/DEVICES.md +++ b/DEVICES.md @@ -648,6 +648,7 @@ port and password. - Petoneer Fresco Hydrate Ultra pet fountain/ - PNI water feeder - Rojeco PTM-001 pet feeder (two versions) +- V330L pet feeder - YP pet feeder ### Remote controllers diff --git a/custom_components/tuya_local/devices/v330l_petfeeder.yaml b/custom_components/tuya_local/devices/v330l_petfeeder.yaml index 36977cb9b5..7e123d7508 100644 --- a/custom_components/tuya_local/devices/v330l_petfeeder.yaml +++ b/custom_components/tuya_local/devices/v330l_petfeeder.yaml @@ -17,6 +17,32 @@ primary_entity: range: min: 0 max: 10 + - id: 202 + type: integer + name: food_weight + optional: true + mapping: + - scale: 10 + - id: 203 + type: integer + name: control + optional: true + - id: 204 + type: integer + name: realtime_data + optional: true + - id: 205 + type: integer + name: weight + optional: true + - id: 207 + type: string + name: schedule + optional: true + - id: 208 + type: string + name: voice_record + optional: true secondary_entities: - entity: light translation_key: indicator @@ -120,6 +146,21 @@ secondary_entities: name: sensor optional: true mapping: - - dps_val: 3 + - dps_val: 4 value: true - value: false + - entity: camera + dps: + - id: 113 + type: boolean + optional: true + name: record + mapping: + - dps_val: null + value: false + hidden: true + - id: 115 + type: base64 + name: snapshot + optional: true + sensitive: true