Tuya Air quality Detector

Hello there,

I just bought this Tuya air quality detector (https://fr.aliexpress.com/item/1005005971500482.html?gatewayAdapt=glo2fra) and linked with the app SmartLife.
Then I see it in Home Assistant with the Tuya Integration, but some data are unavailable like
“air_quality_index”: “level_1”,
“pm1”: 17,
“pm10”: 28,
“battery_state”: “low”,
“battery_percentage”: 100,
“charge_state”: false

image

That’s very strange, because if I try to export the log file, I could find the sensor in the file that are not shown in HA screen.

Any idea on how I can display the value of the sensor in HA ?
here is the log file:

{
  "home_assistant": {
    "installation_type": "Home Assistant OS",
    "version": "2023.11.3",
    "dev": false,
    "hassio": true,
    "virtualenv": false,
    "python_version": "3.11.6",
    "docker": true,
    "arch": "aarch64",
    "timezone": "Europe/Paris",
    "os_name": "Linux",
    "os_version": "6.1.21-v8",
    "supervisor": "2023.11.3",
    "host_os": "Home Assistant OS 11.1",
    "docker_version": "24.0.6",
    "chassis": "embedded",
    "run_as_root": true
  },
  "custom_components": {
    "tplink_easy_smart": {
      "version": "0.3.0",
      "requirements": [
        "json5==0.9.10"
      ]
    },
    "scheduler": {
      "version": "v0.0.0",
      "requirements": []
    },
    "waterkotte_heatpump": {
      "version": "0.0.11",
      "requirements": [
        "pywaterkotte2==0.0.7"
      ]
    },
    "myEnedis": {
      "version": "2.3.0",
      "requirements": [
        "packaging>=20.8"
      ]
    },
    "hacs": {
      "version": "1.33.0",
      "requirements": [
        "aiogithubapi>=22.10.1"
      ]
    }
  },
  "integration_manifest": {
    "domain": "tuya",
    "name": "Tuya",
    "codeowners": [
      "@Tuya",
      "@zlinoliver",
      "@frenck"
    ],
    "config_flow": true,
    "dependencies": [
      "ffmpeg"
    ],
    "dhcp": [
      {
        "macaddress": "105A17*"
      },
      {
        "macaddress": "10D561*"
      },
      {
        "macaddress": "1869D8*"
      },
      {
        "macaddress": "381F8D*"
      },
      {
        "macaddress": "508A06*"
      },
      {
        "macaddress": "68572D*"
      },
      {
        "macaddress": "708976*"
      },
      {
        "macaddress": "7CF666*"
      },
      {
        "macaddress": "84E342*"
      },
      {
        "macaddress": "D4A651*"
      },
      {
        "macaddress": "D81F12*"
      }
    ],
    "documentation": "https://www.home-assistant.io/integrations/tuya",
    "integration_type": "hub",
    "iot_class": "cloud_push",
    "loggers": [
      "tuya_iot"
    ],
    "requirements": [
      "tuya-iot-py-sdk==0.6.6"
    ],
    "is_built_in": true
  },
  "data": {
    "endpoint": "https://openapi.tuyaeu.com",
    "auth_type": 0,
    "country_code": "33",
    "app_type": "smartlife",
    "mqtt_connected": null,
    "disabled_by": null,
    "disabled_polling": false,
    "devices": [
      {
        "name": "Prise intelligente",
        "model": "BP20V4",
        "category": "cz",
        "product_id": "o7ve1lp3gfjvsvyo",
        "product_name": "Smart plug",
        "online": true,
        "sub": false,
        "time_zone": "+02:00",
        "active_time": "2023-05-10T15:13:54+00:00",
        "create_time": "2023-05-10T15:13:54+00:00",
        "update_time": "2023-05-10T15:13:58+00:00",
        "function": {
          "switch_1": {
            "type": "Boolean",
            "value": {}
          },
          "countdown_1": {
            "type": "Integer",
            "value": {
              "unit": "s",
              "min": 0,
              "max": 86400,
              "scale": 0,
              "step": 1
            }
          },
          "relay_status": {
            "type": "Enum",
            "value": {
              "range": [
                "power_off",
                "power_on",
                "last"
              ]
            }
          },
          "overcharge_switch": {
            "type": "Boolean",
            "value": {}
          },
          "light_mode": {
            "type": "Enum",
            "value": {
              "range": [
                "relay",
                "pos",
                "none"
              ]
            }
          },
          "child_lock": {
            "type": "Boolean",
            "value": {}
          },
          "cycle_time": {
            "type": "String",
            "value": {}
          },
          "random_time": {
            "type": "String",
            "value": {}
          },
          "switch_inching": {
            "type": "String",
            "value": {}
          }
        },
        "status_range": {
          "switch_1": {
            "type": "Boolean",
            "value": {}
          },
          "countdown_1": {
            "type": "Integer",
            "value": {
              "unit": "s",
              "min": 0,
              "max": 86400,
              "scale": 0,
              "step": 1
            }
          },
          "add_ele": {
            "type": "Integer",
            "value": {
              "min": 0,
              "max": 50000,
              "scale": 3,
              "step": 100
            }
          },
          "cur_current": {
            "type": "Integer",
            "value": {
              "unit": "mA",
              "min": 0,
              "max": 30000,
              "scale": 0,
              "step": 1
            }
          },
          "cur_power": {
            "type": "Integer",
            "value": {
              "unit": "W",
              "min": 0,
              "max": 80000,
              "scale": 1,
              "step": 1
            }
          },
          "cur_voltage": {
            "type": "Integer",
            "value": {
              "unit": "V",
              "min": 0,
              "max": 5000,
              "scale": 1,
              "step": 1
            }
          },
          "relay_status": {
            "type": "Enum",
            "value": {
              "range": [
                "power_off",
                "power_on",
                "last"
              ]
            }
          },
          "overcharge_switch": {
            "type": "Boolean",
            "value": {}
          },
          "light_mode": {
            "type": "Enum",
            "value": {
              "range": [
                "relay",
                "pos",
                "none"
              ]
            }
          },
          "child_lock": {
            "type": "Boolean",
            "value": {}
          },
          "cycle_time": {
            "type": "String",
            "value": {}
          },
          "random_time": {
            "type": "String",
            "value": {}
          },
          "switch_inching": {
            "type": "String",
            "value": {}
          }
        },
        "status": {
          "switch_1": false,
          "countdown_1": 0,
          "add_ele": 11,
          "cur_current": 0,
          "cur_power": 0,
          "cur_voltage": 2231,
          "relay_status": "last",
          "overcharge_switch": false,
          "light_mode": "relay",
          "child_lock": false,
          "cycle_time": "",
          "random_time": "",
          "switch_inching": ""
        },
        "home_assistant": {
          "name": "Prise intelligente",
          "name_by_user": null,
          "disabled": false,
          "disabled_by": null,
          "entities": [
            {
              "disabled": false,
              "disabled_by": null,
              "entity_category": "config",
              "device_class": null,
              "original_device_class": null,
              "icon": null,
              "original_icon": null,
              "unit_of_measurement": null,
              "state": {
                "entity_id": "select.prise_intelligente_power_on_behavior",
                "state": "last",
                "attributes": {
                  "options": [
                    "power_off",
                    "power_on",
                    "last"
                  ],
                  "friendly_name": "Prise intelligente Power on behavior"
                },
                "last_changed": "2023-11-26T13:20:39.839386+00:00",
                "last_updated": "2023-11-26T13:20:39.839386+00:00"
              }
            },
            {
              "disabled": false,
              "disabled_by": null,
              "entity_category": "config",
              "device_class": null,
              "original_device_class": null,
              "icon": null,
              "original_icon": null,
              "unit_of_measurement": null,
              "state": {
                "entity_id": "select.prise_intelligente_indicator_light_mode",
                "state": "relay",
                "attributes": {
                  "options": [
                    "relay",
                    "pos",
                    "none"
                  ],
                  "friendly_name": "Prise intelligente Mode voyant lumineux"
                },
                "last_changed": "2023-11-26T13:20:39.839727+00:00",
                "last_updated": "2023-11-26T13:20:39.839727+00:00"
              }
            },
            {
              "disabled": true,
              "disabled_by": "integration",
              "entity_category": null,
              "device_class": null,
              "original_device_class": "current",
              "icon": null,
              "original_icon": null,
              "unit_of_measurement": "A",
              "state": null
            },
            {
              "disabled": true,
              "disabled_by": "integration",
              "entity_category": null,
              "device_class": null,
              "original_device_class": "power",
              "icon": null,
              "original_icon": null,
              "unit_of_measurement": "W",
              "state": null
            },
            {
              "disabled": true,
              "disabled_by": "integration",
              "entity_category": null,
              "device_class": null,
              "original_device_class": "voltage",
              "icon": null,
              "original_icon": null,
              "unit_of_measurement": "V",
              "state": null
            },
            {
              "disabled": false,
              "disabled_by": null,
              "entity_category": "config",
              "device_class": null,
              "original_device_class": null,
              "icon": null,
              "original_icon": "mdi:account-lock",
              "unit_of_measurement": null,
              "state": {
                "entity_id": "switch.prise_intelligente_child_lock",
                "state": "off",
                "attributes": {
                  "icon": "mdi:account-lock",
                  "friendly_name": "Prise intelligente S\u00e9curit\u00e9 enfants"
                },
                "last_changed": "2023-11-26T13:20:39.839965+00:00",
                "last_updated": "2023-11-26T13:20:39.839965+00:00"
              }
            },
            {
              "disabled": false,
              "disabled_by": null,
              "entity_category": null,
              "device_class": null,
              "original_device_class": "outlet",
              "icon": null,
              "original_icon": null,
              "unit_of_measurement": null,
              "state": {
                "entity_id": "switch.prise_intelligente_socket_1",
                "state": "off",
                "attributes": {
                  "device_class": "outlet",
                  "friendly_name": "Prise intelligente Socket 1"
                },
                "last_changed": "2023-11-26T13:20:39.840175+00:00",
                "last_updated": "2023-11-26T13:20:39.840175+00:00"
              }
            }
          ]
        }
      },
      {
        "name": "Passerelle ZigBee",
        "model": "heiman",
        "category": "wg2",
        "product_id": "qap4spxzuuokc9lp",
        "product_name": "Gateway",
        "online": false,
        "sub": false,
        "time_zone": "+01:00",
        "active_time": "2022-02-24T19:26:20+00:00",
        "create_time": "2022-02-24T19:26:20+00:00",
        "update_time": "2023-04-25T19:46:27+00:00",
        "function": {},
        "status_range": {},
        "status": {},
        "home_assistant": {
          "name": "Passerelle ZigBee",
          "name_by_user": null,
          "disabled": false,
          "disabled_by": null,
          "entities": []
        }
      },
      {
        "name": "Capteur qualit\u00e9 de l'air",
        "model": "",
        "category": "hjjcy",
        "product_id": "ofq1jlyksn2rys3o",
        "product_name": "Nobito",
        "online": false,
        "sub": false,
        "time_zone": "+01:00",
        "active_time": "2023-11-27T18:00:49+00:00",
        "create_time": "2023-11-27T18:00:49+00:00",
        "update_time": "2023-11-27T18:00:49+00:00",
        "function": {},
        "status_range": {
          "air_quality_index": {
            "type": "Enum",
            "value": {
              "range": [
                "level_1",
                "level_2",
                "level_3",
                "level_4"
              ]
            }
          },
          "temp_current": {
            "type": "Integer",
            "value": {
              "unit": "\u2103",
              "min": -90,
              "max": 800,
              "scale": 1,
              "step": 1
            }
          },
          "humidity_value": {
            "type": "Integer",
            "value": {
              "unit": "%",
              "min": 0,
              "max": 100,
              "scale": 0,
              "step": 1
            }
          },
          "co2_value": {
            "type": "Integer",
            "value": {
              "unit": "ppm",
              "min": 400,
              "max": 6000,
              "scale": 0,
              "step": 1
            }
          },
          "ch2o_value": {
            "type": "Integer",
            "value": {
              "unit": "mg/m\u00b3",
              "min": 0,
              "max": 600,
              "scale": 3,
              "step": 1
            }
          },
          "voc_value": {
            "type": "Integer",
            "value": {
              "unit": "mg/m\u00b3",
              "min": 0,
              "max": 2000,
              "scale": 3,
              "step": 1
            }
          },
          "pm25_value": {
            "type": "Integer",
            "value": {
              "unit": "ug/m\u00b3",
              "min": 0,
              "max": 2000,
              "scale": 0,
              "step": 1
            }
          },
          "pm1": {
            "type": "Integer",
            "value": {
              "unit": "ug/m\u00b3",
              "min": 0,
              "max": 2000,
              "scale": 0,
              "step": 1
            }
          },
          "pm10": {
            "type": "Integer",
            "value": {
              "unit": "ug/m\u00b3",
              "min": 0,
              "max": 2000,
              "scale": 0,
              "step": 1
            }
          },
          "battery_state": {
            "type": "Enum",
            "value": {
              "range": [
                "low",
                "middle",
                "high"
              ]
            }
          },
          "battery_percentage": {
            "type": "Integer",
            "value": {
              "unit": "%",
              "min": 0,
              "max": 100,
              "scale": 0,
              "step": 1
            }
          },
          "charge_state": {
            "type": "Boolean",
            "value": {}
          }
        },
        "status": {
          "air_quality_index": "level_1",
          "temp_current": 241,
          "humidity_value": 38,
          "co2_value": 400,
          "ch2o_value": 3,
          "voc_value": 6,
          "pm25_value": 24,
          "pm1": 17,
          "pm10": 28,
          "battery_state": "low",
          "battery_percentage": 100,
          "charge_state": false
        },
        "home_assistant": {
          "name": "Nobito",
          "name_by_user": null,
          "disabled": false,
          "disabled_by": null,
          "entities": [
            {
              "disabled": false,
              "disabled_by": null,
              "entity_category": null,
              "device_class": null,
              "original_device_class": "temperature",
              "icon": null,
              "original_icon": null,
              "unit_of_measurement": "\u00b0C",
              "state": {
                "entity_id": "sensor.nobito_temperature",
                "state": "unavailable",
                "attributes": {
                  "state_class": "measurement",
                  "unit_of_measurement": "\u00b0C",
                  "device_class": "temperature",
                  "friendly_name": "Nobito Temp\u00e9rature"
                },
                "last_changed": "2023-11-27T18:00:51.578344+00:00",
                "last_updated": "2023-11-27T18:00:51.578344+00:00"
              }
            },
            {
              "disabled": false,
              "disabled_by": null,
              "entity_category": null,
              "device_class": null,
              "original_device_class": "humidity",
              "icon": null,
              "original_icon": null,
              "unit_of_measurement": "%",
              "state": {
                "entity_id": "sensor.nobito_humidite",
                "state": "unavailable",
                "attributes": {
                  "state_class": "measurement",
                  "unit_of_measurement": "%",
                  "device_class": "humidity",
                  "friendly_name": "Nobito Humidit\u00e9"
                },
                "last_changed": "2023-11-27T18:00:51.579339+00:00",
                "last_updated": "2023-11-27T18:00:51.579339+00:00"
              }
            },
            {
              "disabled": false,
              "disabled_by": null,
              "entity_category": null,
              "device_class": null,
              "original_device_class": "carbon_dioxide",
              "icon": null,
              "original_icon": null,
              "unit_of_measurement": "ppm",
              "state": {
                "entity_id": "sensor.nobito_dioxyde_de_carbone",
                "state": "unavailable",
                "attributes": {
                  "state_class": "measurement",
                  "unit_of_measurement": "ppm",
                  "device_class": "carbon_dioxide",
                  "friendly_name": "Nobito Dioxyde de carbone"
                },
                "last_changed": "2023-11-27T18:00:51.580129+00:00",
                "last_updated": "2023-11-27T18:00:51.580129+00:00"
              }
            },
            {
              "disabled": false,
              "disabled_by": null,
              "entity_category": null,
              "device_class": null,
              "original_device_class": null,
              "icon": null,
              "original_icon": null,
              "unit_of_measurement": "mg/m\u00b3",
              "state": {
                "entity_id": "sensor.nobito_formaldehyde",
                "state": "unavailable",
                "attributes": {
                  "state_class": "measurement",
                  "unit_of_measurement": "mg/m\u00b3",
                  "friendly_name": "Nobito Formald\u00e9hyde"
                },
                "last_changed": "2023-11-27T18:00:51.581011+00:00",
                "last_updated": "2023-11-27T18:00:51.581011+00:00"
              }
            },
            {
              "disabled": false,
              "disabled_by": null,
              "entity_category": null,
              "device_class": null,
              "original_device_class": "volatile_organic_compounds",
              "icon": null,
              "original_icon": null,
              "unit_of_measurement": "\u00b5g/m\u00b3",
              "state": {
                "entity_id": "sensor.nobito_cov",
                "state": "unavailable",
                "attributes": {
                  "state_class": "measurement",
                  "unit_of_measurement": "\u00b5g/m\u00b3",
                  "device_class": "volatile_organic_compounds",
                  "friendly_name": "Nobito COV"
                },
                "last_changed": "2023-11-27T18:00:51.583947+00:00",
                "last_updated": "2023-11-27T18:00:51.583947+00:00"
              }
            },
            {
              "disabled": false,
              "disabled_by": null,
              "entity_category": null,
              "device_class": null,
              "original_device_class": "pm25",
              "icon": null,
              "original_icon": null,
              "unit_of_measurement": "\u00b5g/m\u00b3",
              "state": {
                "entity_id": "sensor.nobito_pm2_5",
                "state": "unavailable",
                "attributes": {
                  "state_class": "measurement",
                  "unit_of_measurement": "\u00b5g/m\u00b3",
                  "device_class": "pm25",
                  "friendly_name": "Nobito PM2.5"
                },
                "last_changed": "2023-11-27T18:00:51.585101+00:00",
                "last_updated": "2023-11-27T18:00:51.585101+00:00"
              }
            }
          ]
        }
      }
    ]
  }
}

I have the same problem, but with the Zigbee version, using Z2M. Hope someone here can help fix.