make-all / tuya-local

Local support for Tuya devices in Home Assistant
MIT License
1.01k stars 405 forks source link

Request support for Smoke Alarm model: CS01 #1901

Closed contactnat closed 3 weeks ago

contactnat commented 3 weeks ago

Log Message

Logger: custom_components.tuya_local.device
Source: custom_components/tuya_local/device.py:433
integration: Tuya Local ([documentation](https://github.com/make-all/tuya-local), [issues](https://github.com/make-all/tuya-local/issues))
First occurred: 8:43:44 AM (8 occurrences)
Last logged: 8:47:55 AM

Test protocol error 905: Network Error: Device Unreachable

Information about DPS mappings

{
  "result": {
    "model": "{\"modelId\":\"000002qgr3\",\"services\":[{\"actions\":[],\"code\":\"\",\"description\":\"\",\"events\":[],\"name\":\"默认服务\",\"properties\":[{\"abilityId\":1,\"accessMode\":\"ro\",\"code\":\"smoke_sensor_state\",\"description\":\"\",\"extensions\":{\"attribute\":\"128\"},\"name\":\"烟雾检测状态\",\"typeSpec\":{\"type\":\"enum\",\"range\":[\"alarm\",\"normal\",\"detecting\",\"unknown\"]}},{\"abilityId\":9,\"accessMode\":\"ro\",\"code\":\"checking_result\",\"description\":\"\",\"extensions\":{\"attribute\":\"128\"},\"name\":\"设备自检结果\",\"typeSpec\":{\"type\":\"enum\",\"range\":[\"checking\",\"check_success\",\"check_failure\",\"others\"]}},{\"abilityId\":11,\"accessMode\":\"ro\",\"code\":\"fault\",\"description\":\"\",\"extensions\":{\"attribute\":\"128\"},\"name\":\"故障告警\",\"typeSpec\":{\"type\":\"bitmap\",\"label\":[\"fault\"],\"maxlen\":1}},{\"abilityId\":14,\"accessMode\":\"ro\",\"code\":\"battery_state\",\"description\":\"\",\"extensions\":{\"attribute\":\"128\"},\"name\":\"电池电量状态\",\"typeSpec\":{\"type\":\"enum\",\"range\":[\"low\",\"middle\",\"high\"]}},{\"abilityId\":18,\"accessMode\":\"ro\",\"code\":\"co_state\",\"description\":\"\",\"extensions\":{\"attribute\":\"128\"},\"name\":\"CO检测状态\",\"typeSpec\":{\"type\":\"enum\",\"range\":[\"alarm\",\"normal\"]}},{\"abilityId\":20,\"accessMode\":\"rw\",\"code\":\"link_alarm\",\"description\":\"\",\"extensions\":{\"attribute\":\"128\"},\"name\":\"联动报警\",\"typeSpec\":{\"type\":\"enum\",\"range\":[\"alarm\",\"alarm_cancel\"]}}]}]}"
  },
  "success": true,
  "t": 1715287828046,
  "tid": "c43fd5430e4511efa6ed16994efa91b4"
}

Product ID

"product_id": "ks1pvdia7ogdxb8m",

Information about how the device functions

smoke alarm

make-all commented 3 weeks ago

Battery powered? Does it use a hub?

contactnat commented 3 weeks ago

Battery powered? Does it use a hub?

sorry, more info. Battery powered yes - 2x AA no hub, it is connected via wifi

make-all commented 3 weeks ago

Battery powered devices need a hub to communicate locally. Those that do not have a local hub, use the cloud as a hub.