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

Add support for V330 pet feeder #2038

Merged
merged 4 commits into from
Jun 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
125 changes: 125 additions & 0 deletions custom_components/tuya_local/devices/v330l_petfeeder.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
name: Pet feeder
products:
- id: ibnk6keua0zzc2gr
name: V330 Petfeeder
# Needs to be added using the 3.2 protocol
primary_entity:
entity: number
name: Manual feed
icon: "mdi:food-drumstick"
dps:
- id: 201
type: integer
name: value
unit: portions
optional: true
persist: false
range:
min: 0
max: 10
secondary_entities:
- entity: light
translation_key: indicator
category: config
dps:
- id: 101
type: boolean
name: switch
- entity: switch
name: Flip
icon: "mdi:flip-horizontal"
category: config
dps:
- id: 103
type: boolean
name: switch
optional: true
- entity: switch
name: Timestamp
icon: "mdi:clock-time-eight"
category: config
dps:
- id: 104
type: boolean
name: switch
optional: true
- entity: switch
name: Motion notification
icon: "mdi:motion-sensor"
category: config
dps:
- id: 134
type: boolean
name: switch
optional: true
- entity: select
name: Motion sensitivity
icon: "mdi:motion-sensor"
category: config
dps:
- id: 106
type: string
name: option
optional: true
mapping:
- dps_val: "0"
value: Low
- dps_val: "1"
value: Medium
- dps_val: "2"
value: High
- entity: select
name: Nightvision
icon: "mdi:weather-night"
category: config
dps:
- id: 108
type: string
name: option
optional: true
mapping:
- dps_val: "0"
value: Auto
- dps_val: "1"
value: "Off"
- dps_val: "2"
value: "On"
- entity: binary_sensor
name: Food empty
class: problem
category: diagnostic
dps:
- id: 206
type: bitfield
name: sensor
optional: true
mapping:
- dps_val: 1
value: true
- value: false
- entity: binary_sensor
name: Not enough food
class: problem
category: diagnostic
dps:
- id: 206
type: bitfield
name: sensor
optional: true
mapping:
- dps_val: 2
value: true
- value: false
- entity: binary_sensor
name: Blocked
class: problem
category: diagnostic
dps:
- id: 206
type: bitfield
name: sensor
optional: true
mapping:
- dps_val: 3
value: true
- value: false