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 PetSnowy Snow+ cat litter #2806

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

davidjmdev
Copy link

Tuyas API Explorer output:

Device details:

{
  "result": [
    {
      "active_time": 1737109975,
      "bind_space_id": "xxx",
      "category": "msp",
      "create_time": 1737109975,
      "custom_name": "PetSnowy Snow+",
      "icon": "smart/icon/bay1589792063349Obje/2e7bf43b432cb8da316211d65dcd4bfb.png",
      "id": "xxx",
      "ip": "xxx",
      "is_online": true,
      "lat": "xxx",
      "local_key": "xxx",
      "lon": "xxx",
      "model": "PS-001",
      "name": "Arenero autolimpiable SNOW⁺",
      "product_id": "bdfimkssp9ews36b",
      "product_name": "SNOW智能猫砂盆 (更新主体)",
      "sub": false,
      "time_zone": "+01:00",
      "update_time": 1737145783,
      "uuid": "xxx"
    }
  ],
}

Properties:

{
  "result": {
    "properties": [
      {
        "code": "switch",
        "custom_name": "",
        "dp_id": 1,
        "time": 1737110681743,
        "type": "bool",
        "value": false
      },
      {
        "code": "auto_clean",
        "custom_name": "",
        "dp_id": 4,
        "time": 1737110672148,
        "type": "bool",
        "value": true
      },
      {
        "code": "delay_clean_time",
        "custom_name": "",
        "dp_id": 5,
        "time": 1737110672148,
        "type": "value",
        "value": 4
      },
      {
        "code": "cat_weight",
        "custom_name": "",
        "dp_id": 6,
        "time": 1737109975772,
        "type": "value",
        "value": 0
      },
      {
        "code": "excretion_times_day",
        "custom_name": "",
        "dp_id": 7,
        "time": 1737130720417,
        "type": "value",
        "value": 1
      },
      {
        "code": "excretion_time_day",
        "custom_name": "",
        "dp_id": 8,
        "time": 1737130720426,
        "type": "value",
        "value": 162
      },
      {
        "code": "manual_clean",
        "custom_name": "",
        "dp_id": 9,
        "time": 1737152743439,
        "type": "bool",
        "value": false
      },
      {
        "code": "sleep",
        "custom_name": "",
        "dp_id": 10,
        "time": 1737154539531,
        "type": "bool",
        "value": false
      },
      {
        "code": "light",
        "custom_name": "",
        "dp_id": 16,
        "time": 1737154572786,
        "type": "bool",
        "value": true
      },
      {
        "code": "deodorization",
        "custom_name": "",
        "dp_id": 17,
        "time": 1737154600185,
        "type": "bool",
        "value": true
      },
      {
        "code": "notification",
        "custom_name": "",
        "dp_id": 21,
        "time": 1737156399993,
        "type": "bitmap",
        "value": 16
      },
      {
        "code": "fault",
        "custom_name": "",
        "dp_id": 22,
        "time": 1737155454059,
        "type": "bitmap",
        "value": 0
      },
      {
        "code": "factory_reset",
        "custom_name": "",
        "dp_id": 23,
        "time": 1737109975772,
        "type": "bool",
        "value": false
      },
      {
        "code": "status",
        "custom_name": "",
        "dp_id": 24,
        "time": 1737154539548,
        "type": "enum",
        "value": "standby"
      },
      {
        "code": "filter_reset",
        "custom_name": "",
        "dp_id": 101,
        "time": 1737109975772,
        "type": "bool",
        "value": false
      },
      {
        "code": "filter_days",
        "custom_name": "",
        "dp_id": 102,
        "time": 1737154809022,
        "type": "value",
        "value": 29
      },
      {
        "code": "average_times",
        "custom_name": "",
        "dp_id": 103,
        "time": 1737109975772,
        "type": "value",
        "value": 1
      },
      {
        "code": "lock",
        "custom_name": "",
        "dp_id": 104,
        "time": 1737155066939,
        "type": "bool",
        "value": true
      },
      {
        "code": "periodic_cleaning",
        "custom_name": "",
        "dp_id": 105,
        "time": 1737110672393,
        "type": "raw",
        "value": "/w=="
      },
      {
        "code": "sleep_time",
        "custom_name": "",
        "dp_id": 106,
        "time": 1737110671928,
        "type": "raw",
        "value": "Ei0CLQERERE="
      },
      {
        "code": "automatic_purity",
        "custom_name": "",
        "dp_id": 107,
        "time": 1737138484804,
        "type": "bool",
        "value": true
      },
      {
        "code": "periodic_purity",
        "custom_name": "",
        "dp_id": 108,
        "time": 1737110020181,
        "type": "raw",
        "value": "/w=="
      },
      {
        "code": "empty",
        "custom_name": "",
        "dp_id": 109,
        "time": 1737152353233,
        "type": "bool",
        "value": false
      },
      {
        "code": "pause",
        "custom_name": "",
        "dp_id": 110,
        "time": 1737110672148,
        "type": "bool",
        "value": false
      },
      {
        "code": "continue",
        "custom_name": "",
        "dp_id": 111,
        "time": 1737109975772,
        "type": "bool",
        "value": false
      },
      {
        "code": "ball_reset",
        "custom_name": "",
        "dp_id": 112,
        "time": 1737156796856,
        "type": "bool",
        "value": true
      },
      {
        "code": "cleaned_complete",
        "custom_name": "",
        "dp_id": 113,
        "time": 1737109975772,
        "type": "bool",
        "value": false
      },
      {
        "code": "reser_complete",
        "custom_name": "",
        "dp_id": 114,
        "time": 1737109975772,
        "type": "bool",
        "value": false
      },
      {
        "code": "empty_cancel",
        "custom_name": "",
        "dp_id": 115,
        "time": 1737109975772,
        "type": "bool",
        "value": false
      },
      {
        "code": "toilet_record",
        "custom_name": "",
        "dp_id": 116,
        "time": 1737130720410,
        "type": "string",
        "value": "113000A2"
      },
      {
        "code": "t_d_sw",
        "custom_name": "",
        "dp_id": 117,
        "time": 1737110672148,
        "type": "bool",
        "value": false
      },
      {
        "code": "t_cleasw",
        "custom_name": "",
        "dp_id": 118,
        "time": 1737110672148,
        "type": "bool",
        "value": false
      }
    ]
  },
}

Instruction set:

{
  "result": {
    "category": "msp",
    "functions": [
      {
        "code": "switch",
        "desc": "switch",
        "name": "switch",
        "type": "Boolean",
        "values": "{}"
      },
      {
        "code": "auto_clean",
        "desc": "auto clean",
        "name": "auto clean",
        "type": "Boolean",
        "values": "{}"
      },
      {
        "code": "delay_clean_time",
        "desc": "delay clean time",
        "name": "delay clean time",
        "type": "Integer",
        "values": "{\"unit\":\"min\",\"min\":2,\"max\":60,\"scale\":0,\"step\":2}"
      },
      {
        "code": "manual_clean",
        "desc": "manual clean",
        "name": "manual clean",
        "type": "Boolean",
        "values": "{}"
      },
      {
        "code": "sleep",
        "desc": "sleep",
        "name": "sleep",
        "type": "Boolean",
        "values": "{}"
      },
      {
        "code": "light",
        "desc": "light",
        "name": "light",
        "type": "Boolean",
        "values": "{}"
      },
      {
        "code": "deodorization",
        "desc": "deodorization",
        "name": "deodorization",
        "type": "Boolean",
        "values": "{}"
      },
      {
        "code": "factory_reset",
        "desc": "factory reset",
        "name": "factory reset",
        "type": "Boolean",
        "values": "{}"
      },
      {
        "code": "status",
        "desc": "status",
        "name": "status",
        "type": "Enum",
        "values": "{\"range\":[\"standby\",\"cleaning\",\"deodorization\",\"sleep\"]}"
      }
    ]
  },
}

Product ID

bdfimkssp9ews36b

Information about how the device functions

A rotating Cat Toilet.
You can start the cleaning manually and automatic, Deodorization manually or automatic, Weight your cat, Do not Disturb Rules, Time measurement, how often was you cat, alert when bag is full, calibrate litter level...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 👀 In review
Development

Successfully merging this pull request may close these issues.

1 participant