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

Update ultenic_d10_vacuum.yaml #1

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
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
44 changes: 20 additions & 24 deletions custom_components/tuya_local/devices/ultenic_d10_vacuum.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,48 +7,36 @@ primary_entity:
entity: vacuum
dps:
- id: 1
type: boolean
name: activate

- id: 2
type: boolean
name: power

# Unsure of its function, optional for now.
optional: true

- id: 4
type: string
name: command
mapping:
- dps_val: standby
value: standby
- dps_val: clean
- dps_val: smart
value: start_cleaning
- dps_val: pause
value: pause
- dps_val: goto_charge
value: return_to_base
- dps_val: select_room
value: select_room

- id: 5
type: string
name: status
mapping:
- dps_val: standby
value: standby
- dps_val: cleaning
value: cleaning
- dps_val: paused
value: paused
- dps_val: charging
value: charging
- dps_val: error
value: error
- dps_val: select_room
value: select_room
- dps_val: smart
value: cleaning
- dps_val: goto_charge
value: returning
# Add additional mappings as needed

- id: 8
type: integer
name: battery_level
unit: "%"
class: measurement

- id: 9
type: string
name: fan_speed
Expand Down Expand Up @@ -102,3 +90,11 @@ secondary_entities:
type: string
name: language
optional: true
- entity: sensor
class: battery
dps:
- id: 8
type: integer
name: sensor
unit: "%"
class: measurement