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

Added support for Sobralik Pet Water Fountain #1846

Merged
merged 6 commits into from
Aug 29, 2024
Merged

Conversation

edev-us
Copy link
Contributor

@edev-us edev-us commented Apr 22, 2024

I added support for Sobralik Pet Water Fountain

Included support for all properties / abilities.

Protocol: 3.3

image

@malosaa
Copy link
Contributor

malosaa commented Jun 23, 2024

@edev-us i did look at your code and did an update.
Can you test if this works?
All suggestions from Make-All have been updated in this code.

name: Sobralik Pet Water Fountain
products:
  - id: hpa87ady0hndivqn
primary_entity:
  entity: switch
  icon: "mdi:water-pump"
  dps:
    - id: 1
      type: boolean
      name: switch
    - id: 23
      name: fault
      type: bitfield
      mapping:
        - dps_val: 1
          value: lack_water
        - dps_val: 2
          value: filter_replace
        - dps_val: 4
          value: clean_reminder

secondary_entities:
  - entity: button
    name: Filter Reset
    icon: "mdi:air-filter"
    category: config
    dps:
      - id: 5
        type: boolean
        name: button
  - entity: button
    name: Clean Reset
    icon: "mdi:pump"
    category: config
    dps:
      - id: 6
        type: boolean
        name: button
  - entity: sensor
    name: Filter Left
    icon: "mdi:air-filter"
    category: diagnostic
    dps:
      - id: 3
        type: integer
        name: sensor
        precision: 0
        range:
          min: 0
          max: 90
        unit: d
  - entity: sensor
    name: Clean Left
    icon: "mdi:pump"
    category: diagnostic
    dps:
      - id: 4
        type: integer
        name: sensor
        precision: 0
        range:
          min: 0
          max: 31
        unit: d
  - entity: number
    name: Filter Life
    icon: "mdi:air-filter"
    category: config
    dps:
      - id: 7
        type: integer
        name: value
        precision: 0
        range:
          min: 0
          max: 90
        unit: d
  - entity: number
    name: Clean Life
    icon: "mdi:pump"
    category: config
    dps:
      - id: 8
        type: integer
        name: value
        precision: 0
        range:
          min: 0
          max: 31
        unit: d
  - entity: binary_sensor
    name: Tank Empty
    category: diagnostic
    translation_key: tank_empty
    dps:
      - id: 9
        type: boolean
        name: tank_empty
        mapping:
          - dps_val: level_1
            value: true
          - dps_val: level_2
            value: false

@make-all make-all removed the awaiting feedback Needs more information label Aug 29, 2024
As no feedback was received, I went ahead and assumed the fault dp works like other tuya devices, and the number you had assigned were actually bit indexes.

PR make-all#1846
@make-all make-all merged commit 76caaf5 into make-all:main Aug 29, 2024
4 checks passed
make-all added a commit that referenced this pull request Aug 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants