make-all / tuya-local

Local support for Tuya devices in Home Assistant
MIT License
1.41k stars 542 forks source link

Request support for Smoke Detector #2403

Closed markussiegert closed 2 weeks ago

markussiegert commented 1 month ago

Log message

Device matches avatto_curtain_switch with quality of 29%. DPS: {"updated_at": 1729092800.019969, "1": "2", "2": 0, "11": 0, "14": "high", "15": 100, "16": true, "101": true}

DPS information

Silence: code: "16"
Smoke Detection State: code: "1"
Detected Smoke: code: "2"
User Test: code: "101"
Fault Alarm: code: "11"
Battery level state: code: "14"
Battery Level: code: "15"

Code:   smoke_sensor_status 
DP:     1
Type:   Enum    
Values: {"range": ["alarm", "normal"]} / ["1", "2"] in local protocol?

Code:   smoke_sensor_value
DP:     2
Type:   Integer
Values: {"unit": "", "min": 0, "max": 100, "scale": 1, "step": 1}

Code:   battery_state
DP:     14
Type:   Enum
Values: {"range": ["low", "middle", "high"]}

Code:   battery_percentage
DP:     15
Type:   Integer 
Values: {"unit": "%", "min": 0, "max": 100, "scale": 0, "step": 1}

Code:   muffling
DP:     16
Type:   Boolean 
Values: "{true,false}"

Product ID

lsjnzox4skgduemo

Product Name

Smoke Detector

Information about how the device functions

Smoke Detector

markussiegert commented 1 month ago

Dieser Fehler wurde von einer benutzerdefinierten Integration verursacht

Logger: custom_components.tuya_local.config_flow Quelle: custom_components/tuya_local/config_flow.py:485 Integration: Tuya Local (Dokumentation, Probleme) Erstmals aufgetreten: 17:33:23 (1 Vorkommnisse) Zuletzt protokolliert: 17:33:23

Device matches avatto_curtain_switch with quality of 29%. DPS: {"updated_at": 1729092800.019969, "1": "2", "2": 0, "11": 0, "14": "high", "15": 100, "16": true, "101": true}