tuya-local icon indicating copy to clipboard operation
tuya-local copied to clipboard

Request support for gas sensor

Open kctony opened this issue 1 month ago • 2 comments

Log message

Could not find device: eb9ae14d5db395c67adfey

Cloud device spec: [{"id": 1, "name": "gas_sensor_state", "type": "Enum", "format": "{\"range\":[\"1\",\"2\"]}", "enumMap": {"1": {"code": "gas_sensor_state", "value": "1"}, "2": {"code": "gas_sensor_state", "value": "2"}, "alarm": {"code": "gas_sensor_state", "value": "1"}, "normal": {"code": "gas_sensor_state", "value": "2"}}}, {"id": 2, "name": "gas_sensor_value", "type": "Integer", "format": "{\"unit\":\"\",\"min\":0,\"max\":1000,\"scale\":1,\"step\":1}", "enumMap": {}}, {"id": 16, "name": "muffling", "type": "Boolean", "format": "{}", "enumMap": {}}]

Device matches loonas_curtain with quality of 50%. DPS: {"updated_at": 1764074882.4462042, "1": "normal", "2": 0, "11": 0, "16": false}

Product ID

eb9ae14d5db395c67adfey

Product Name

Gas sensor

DPS information

gas_sensor_state	Enum	
{
  "range": [
    "1",
    "2"
  ]
}
gas_sensor_value	Integer	
{
  "unit": "",
  "min": 0,
  "max": 1000,
  "scale": 1,
  "step": 1
}
muffling	Boolean	
"{true,false}"

Information about how the device functions

https://www.aliexpress.com/item/10000251748536.html

Image

kctony avatar Nov 25 '25 12:11 kctony

Hi, I cleared the log and re-executed the operation, and these are the only results.

Could not find device: eb9ae14d5db395c67adfey

Adding Gas sensor device with product id sclatjo1jqscmwwe

Cloud device spec: [{"id": 1, "name": "gas_sensor_state", "type": "Enum", "format": "{\"range\":[\"1\",\"2\"]}", "enumMap": {"1": {"code": "gas_sensor_state", "value": "1"}, "2": {"code": "gas_sensor_state", "value": "2"}, "alarm": {"code": "gas_sensor_state", "value": "1"}, "normal": {"code": "gas_sensor_state", "value": "2"}}}, {"id": 2, "name": "gas_sensor_value", "type": "Integer", "format": "{\"unit\":\"\",\"min\":0,\"max\":1000,\"scale\":1,\"step\":1}", "enumMap": {}}, {"id": 16, "name": "muffling", "type": "Boolean", "format": "{}", "enumMap": {}}]

Device matches loonas_curtain with quality of 50%. DPS: {"updated_at": 1764080183.3532531, "1": "normal", "2": 0, "11": 0, "16": false}

Image

kctony avatar Nov 25 '25 14:11 kctony

Hi, I made a simple YAML file myself. Please take a look.

gas_sensor.yaml

Image

kctony avatar Dec 05 '25 20:12 kctony