make-all / tuya-local

Local support for Tuya devices in Home Assistant
MIT License
1.43k stars 556 forks source link

Request support for the Breville Smart Air™ Viral Protect Compact #2585

Closed TwoBigPaws closed 1 day ago

TwoBigPaws commented 2 days ago

Log message

Logger: custom_components.localtuya.common
Source: custom_components/localtuya/common.py:130
integration: LocalTuya (documentation, issues)
First occurred: 1:14:31 PM (238 occurrences)
Last logged: 1:35:45 PM

Missing device configuration for device_id bf0dad7513ab0f30a8jx1w

Product ID

akpngsiz9hggeuwq

Product Name

the Smart Air™ Viral Protect Compact

DPS information

{
  "result": {
    "model": "{\"modelId\":\"00000372pw\",\"services\":[{\"actions\":[],\"code\":\"\",\"description\":\"\",\"events\":[],\"name\":\"默认服务\",\"properties\":[{\"abilityId\":1,\"accessMode\":\"rw\",\"code\":\"switch\",\"description\":\"\",\"extensions\":{\"iconName\":\"icon-dp_power2\",\"attribute\":\"1153\"},\"name\":\"开关\",\"typeSpec\":{\"type\":\"bool\"}},{\"abilityId\":2,\"accessMode\":\"ro\",\"code\":\"pm25\",\"description\":\"上传的数据带有小数点,倍数选择1\",\"extensions\":{\"iconName\":\"icon-pm\",\"attribute\":\"1152\"},\"name\":\"PM2.5\",\"typeSpec\":{\"type\":\"value\",\"max\":9999,\"min\":0,\"scale\":1,\"step\":1,\"unit\":\"ug/m3\"}},{\"abilityId\":3,\"accessMode\":\"rw\",\"code\":\"mode\",\"description\":\"\",\"extensions\":{\"iconName\":\"icon-dp_mode\",\"attribute\":\"1152\"},\"name\":\"模式\",\"typeSpec\":{\"type\":\"enum\",\"range\":[\"manual\",\"auto\",\"sleep\"]}},{\"abilityId\":4,\"accessMode\":\"rw\",\"code\":\"fan_speed_enum\",\"description\":\"\",\"extensions\":{\"iconName\":\"icon-dp_wind\",\"attribute\":\"1152\"},\"name\":\"风速\",\"typeSpec\":{\"type\":\"enum\",\"range\":[\"low\",\"mid\",\"high\",\"turbo\"]}},{\"abilityId\":5,\"accessMode\":\"ro\",\"code\":\"filter_life\",\"description\":\"\",\"extensions\":{\"iconName\":\"icon-dp_time2\",\"attribute\":\"1152\"},\"name\":\"滤芯寿命\",\"typeSpec\":{\"type\":\"value\",\"max\":100,\"min\":0,\"scale\":0,\"step\":1,\"unit\":\"%\"}},{\"abilityId\":9,\"accessMode\":\"rw\",\"code\":\"uv\",\"description\":\"\",\"extensions\":{\"iconName\":\"icon-dp_power2\",\"attribute\":\"1152\"},\"name\":\"UV杀菌\",\"typeSpec\":{\"type\":\"bool\"}},{\"abilityId\":11,\"accessMode\":\"rw\",\"code\":\"filter_reset\",\"description\":\"\",\"extensions\":{\"iconName\":\"icon-dp_loop\",\"attribute\":\"1152\"},\"name\":\"滤芯复位\",\"typeSpec\":{\"type\":\"bool\"}},{\"abilityId\":16,\"accessMode\":\"ro\",\"code\":\"filter_days\",\"description\":\"\",\"extensions\":{\"iconName\":\"icon-dp_time2\",\"attribute\":\"1152\"},\"name\":\"滤芯剩余时间\",\"typeSpec\":{\"type\":\"value\",\"max\":4320,\"min\":0,\"scale\":0,\"step\":1,\"unit\":\"Days\"}},{\"abilityId\":18,\"accessMode\":\"rw\",\"code\":\"countdown_set\",\"description\":\"\",\"extensions\":{\"iconName\":\"icon-dp_time2\",\"attribute\":\"1152\"},\"name\":\"倒计时\",\"typeSpec\":{\"type\":\"enum\",\"range\":[\"cancel\",\"2h\",\"4h\",\"8h\"]}},{\"abilityId\":19,\"accessMode\":\"ro\",\"code\":\"countdown_left\",\"description\":\"定时倒计时\",\"extensions\":{\"iconName\":\"icon-dp_time2\",\"attribute\":\"1152\"},\"name\":\"倒计时剩余时间\",\"typeSpec\":{\"type\":\"value\",\"max\":480,\"min\":0,\"scale\":0,\"step\":1,\"unit\":\"min\"}},{\"abilityId\":21,\"accessMode\":\"ro\",\"code\":\"air_quality\",\"description\":\"\",\"extensions\":{\"iconName\":\"icon-air_quality\",\"attribute\":\"1152\"},\"name\":\"空气质量\",\"typeSpec\":{\"type\":\"enum\",\"range\":[\"great\",\"good\",\"medium\",\"severe\"]}}]}]}"
  },
  "success": true,
  "t": 1733020515989,
  "tid": "e5e94ac4af8c11ef983cfe89c4e28932"
}

Information about how the device functions

This device is in the exact same family as the non-compact version, Breville "the Smart Air™ Viral Protect", all the settings look to the the same and might just require a new item with a different product id (os multiple product ID's in the same entry.

I have a unit and am able to test anything required.

TwoBigPaws commented 2 days ago

Device Details

{ "result": [ { "active_time": 1733012863, "bind_space_id": "214512989", "category": "kj", "create_time": 1733011514, "custom_name": "", "icon": "smart/icon/ay157353776524912KIV/1653451238fb438b4aeae.png", "id": "bf0dad7513ab0f30a8jx1w", "ip": "116.255.53.3", "is_online": true, "lat": "-37.85", "localkey": "Os@Mb.ND+rx91+w", "lon": "145.05", "model": "LAP208", "name": "the Smart Air™ Viral Protect", "product_id": "akpngsiz9hggeuwq", "product_name": "the Smart Air™ Viral Protect", "sub": false, "time_zone": "+11:00", "update_time": 1733012866, "uuid": "2a7bf130635c73cf" } ], "success": true, "t": 1733020378615, "tid": "940419f3af8c11ef983cfe89c4e28932" }

Params

{ "result": { "properties": [ { "code": "switch", "custom_name": "", "dp_id": 1, "time": 1733019934680, "type": "bool", "value": true }, { "code": "pm25", "custom_name": "", "dp_id": 2, "time": 1733020788203, "type": "value", "value": 40 }, { "code": "mode", "custom_name": "", "dp_id": 3, "time": 1733019934680, "type": "enum", "value": "auto" }, { "code": "fan_speed_enum", "custom_name": "", "dp_id": 4, "time": 1733019934680, "type": "enum", "value": "low" }, { "code": "filter_life", "custom_name": "", "dp_id": 5, "time": 1733019934680, "type": "value", "value": 100 }, { "code": "uv", "custom_name": "", "dp_id": 9, "time": 1733019934680, "type": "bool", "value": true }, { "code": "filter_reset", "custom_name": "", "dp_id": 11, "time": 1733011514013, "type": "bool", "value": false }, { "code": "filter_days", "custom_name": "", "dp_id": 16, "time": 1733019934680, "type": "value", "value": 180 }, { "code": "countdown_set", "custom_name": "", "dp_id": 18, "time": 1733019934680, "type": "enum", "value": "cancel" }, { "code": "countdown_left", "custom_name": "", "dp_id": 19, "time": 1733019934680, "type": "value", "value": 0 }, { "code": "air_quality", "custom_name": "", "dp_id": 21, "time": 1733019934680, "type": "enum", "value": "great" } ] }, "success": true, "t": 1733020789447, "tid": "88e3cc17af8d11efb8d3d602bee329f0" }