Problème d'inclusion sonnette GWH-ML-001

Bonjour,

Je migre de jeedom à HA et jusque là tout se passait bien avec l’aide des forums mais là je bug…
J’ai une sonnette tuya WGH-ML-001 qui fonctionnait sous jeedom (mais technique à mettre en place). Elle fait remonter via son DPS 5 une valeur sous forme de chaine de 8 caractères. J’avais pu rentrer cela sous jeedom et ça fonctionnait.

Côté HA j’ai téléchargé l’intégration localtuya, j’ai bien configurer mon compte avec les différents paramètres retrouvés sur tuya iot plateform, ma sonnette est bien détéctée mais je ne parviens pas à créer correctement une entité pour faire remonter cette valeur dps = XXXXXXXX

Les tutos sur reddit et chatgpt ne fonctionne pas.

Quelqu’un peut-il me guider ?


System Information

version core-2026.1.3
installation_type Home Assistant OS
dev false
hassio true
docker true
container_arch amd64
user root
virtualenv false
python_version 3.13.11
os_name Linux
os_version 6.12.63-haos
arch x86_64
timezone Europe/Paris
config_dir /config
Home Assistant Community Store
GitHub API ok
GitHub Content ok
GitHub Web ok
HACS Data ok
GitHub API Calls Remaining 5000
Installed Version 2.0.5
Stage running
Available Repositories 2646
Downloaded Repositories 25
Home Assistant Cloud
logged_in false
can_reach_cert_server ok
can_reach_cloud_auth ok
can_reach_cloud ok
Home Assistant Supervisor
host_os Home Assistant OS 17.0
update_channel stable
supervisor_version supervisor-2026.01.1
agent_version 1.8.1
docker_version 29.1.3
disk_total 234.0 GB
disk_used 9.2 GB
nameservers 192.168.1.1
healthy true
supported true
host_connectivity true
supervisor_connectivity true
ntp_synchronized true
virtualization
board generic-x86-64
supervisor_api ok
version_api ok
installed_addons Terminal & SSH (9.22.0), File editor (5.8.0), Mosquitto broker (6.5.2), Zigbee2MQTT (2.7.2-1), Tailscale (0.26.1)
Dashboards
dashboards 6
resources 13
views 5
mode storage
Network Configuration
adapters lo (disabled), eno1 (enabled, default, auto), docker0 (disabled), hassio (disabled), veth71d0fab (disabled), veth24c2f33 (disabled), vethef041d3 (disabled), veth4fe67dc (disabled), veth216e09b (disabled), veth9a2d002 (disabled), veth467e689 (disabled), veth960c2e1 (disabled), vethed04f9d (disabled), veth6f4d4f7 (disabled)
ipv4_addresses lo (127.0.0.1/8), eno1 (192.168.1.48/24), docker0 (172.30.232.1/23), hassio (172.30.32.1/23), veth71d0fab (), veth24c2f33 (), vethef041d3 (), veth4fe67dc (), veth216e09b (), veth9a2d002 (), veth467e689 (), veth960c2e1 (), vethed04f9d (), veth6f4d4f7 ()
ipv6_addresses lo (::1/128), eno1 (fe80::3e98:ecdf:435a:8519/64), docker0 (fe80::3cbb:c5ff:fe27:3193/64), hassio (fd0c:ac1e:2100::1/48, fe80::209f:faff:fe53:b373/64), veth71d0fab (fe80::d07a:7cff:fe49:b258/64), veth24c2f33 (fe80::e4e9:93ff:feb7:a343/64), vethef041d3 (fe80::fcd2:1bff:fe06:425e/64), veth4fe67dc (fe80::4889:e3ff:fe4b:8889/64), veth216e09b (fe80::ccf9:67ff:fe5b:6e26/64), veth9a2d002 (fe80::9c0c:67ff:feb7:787a/64), veth467e689 (fe80::a8b8:30ff:fe2b:dc2d/64), veth960c2e1 (fe80::f8ee:b7ff:fee4:c73f/64), vethed04f9d (fe80::6837:43ff:fe15:a4bb/64), veth6f4d4f7 (fe80::f86b:6eff:fe6e:82d9/64)
announce_addresses 192.168.1.48, fe80::3e98:ecdf:435a:8519
Recorder
oldest_recorder_run 18 janvier 2026 à 16:24
current_recorder_run 28 janvier 2026 à 09:49
estimated_db_size 90.21 MiB
database_engine sqlite
database_version 3.49.2
Xiaomi Miot
component_version 1.1.2
can_reach_server ok
can_reach_spec ok
logged_accounts 1
total_devices 1
___

Au cas où ce serai utile, le fichier de diagnostic

{
  "home_assistant": {
    "installation_type": "Home Assistant OS",
    "version": "2026.1.3",
    "dev": false,
    "hassio": true,
    "virtualenv": false,
    "python_version": "3.13.11",
    "docker": true,
    "arch": "x86_64",
    "timezone": "Europe/Paris",
    "os_name": "Linux",
    "os_version": "6.12.63-haos",
    "container_arch": "amd64",
    "supervisor": "2026.01.1",
    "host_os": "Home Assistant OS 17.0",
    "docker_version": "29.1.3",
    "chassis": "embedded",
    "run_as_root": true
  },
  "custom_components": {
    "hacs": {
      "documentation": "https://hacs.xyz/docs/use/",
      "version": "2.0.5",
      "requirements": [
        "aiogithubapi>=22.10.1"
      ]
    },
    "xiaomi_miot": {
      "documentation": "https://github.com/al-one/hass-xiaomi-miot",
      "version": "1.1.2",
      "requirements": [
        "construct>=2.10.68",
        "python-miio>=0.5.12",
        "micloud>=0.5"
      ]
    },
    "anycubic_cloud": {
      "documentation": "https://www.home-assistant.io/integrations/anycubic_cloud",
      "version": "0.2.2",
      "requirements": [
        "paho-mqtt"
      ]
    },
    "utility_meter_next_gen": {
      "documentation": "https://github.com/cabberley/utility_meter_evolved",
      "version": "2025.11.0",
      "requirements": [
        "cronsim==2.7"
      ]
    },
    "better_thermostat": {
      "documentation": "https://github.com/KartoffelToby/better_thermostat",
      "version": "1.7.0",
      "requirements": []
    },
    "localtuya": {
      "documentation": "https://github.com/rospogrigio/localtuya/",
      "version": "5.2.3",
      "requirements": []
    },
    "stellantis_vehicles": {
      "documentation": "https://github.com/andreadegiovine/homeassistant-stellantis-vehicles",
      "version": "2026.1.2",
      "requirements": [
        "Pillow==12.*",
        "pycryptodome==3.*",
        "paho-mqtt>=1.3"
      ]
    },
    "anycubic_wifi": {
      "documentation": "https://www.home-assistant.io/integrations/anycubic_wifi",
      "version": "1.1",
      "requirements": [
        "uart-wifi==0.2.1"
      ]
    },
    "xiaomi_home": {
      "documentation": "https://github.com/XiaoMi/ha_xiaomi_home/blob/main/README.md",
      "version": "v0.4.7",
      "requirements": [
        "construct>=2.10.56",
        "paho-mqtt",
        "numpy",
        "cryptography",
        "psutil"
      ]
    },
    "melcloud_custom": {
      "documentation": "https://github.com/ollo69/ha-melcloud-custom",
      "version": "0.3.7",
      "requirements": [
        "pymelcloud==2.5.9"
      ]
    },
    "versatile_thermostat": {
      "documentation": "https://github.com/jmcollin78/versatile_thermostat",
      "version": "8.6.1",
      "requirements": [
        "numpy",
        "scipy"
      ]
    }
  },
  "integration_manifest": {
    "domain": "localtuya",
    "name": "LocalTuya integration",
    "codeowners": [
      "rospogrigio",
      "postlund"
    ],
    "config_flow": true,
    "dependencies": [],
    "documentation": "https://github.com/rospogrigio/localtuya/",
    "iot_class": "local_push",
    "issue_tracker": "https://github.com/rospogrigio/localtuya/issues",
    "requirements": [],
    "version": "5.2.3",
    "is_built_in": false,
    "overwrites_built_in": false
  },
  "setup_times": {
    "null": {
      "setup": 0.00949782703537494
    },
    "01KG1S0PMMNP8M85SMVDAJQ3BS": {
      "wait_import_platforms": -4.421401536092162e-05,
      "config_entry_setup": 1.0025574319879524
    }
  },
  "data": {
    "device_config": {
      "device_id": "XXXXXXXXXXXXX",
      "dps_strings": [
        "1 (value: BgQBDAEOAP8E/v8AMQ==)" 
      ],
      "enable_debug": false,
      "entities": [
        {
          "device_class": "occupancy",
          "friendly_name": "Bouton sonnette",
          "id": 1,
          "platform": "binary_sensor",
          "state_off": "False",
          "state_on": "True"
        }
      ],
      "friendly_name": "Sonnette portail",
      "host": "192.168.XXX.XXX",
      "local_key": "XXXXXXXXXXXX",
      "product_key": "26xtgamy3tv1awhl",
      "protocol_version": "3.3",
      "scan_interval": 0
    }
  },
  "issues": []
}

Salut

Sous local tuya lots de la création des entites, pour ton dps5 tu as choisi sensor lors de la configuration ?

J’ai une entité de ce type pour le distributeur de croquettes et sa fonctionne.

En fait à la création je n’ai pas pu choisir le dps, comme si la sonnette était bien reconnue mais qu’il ne pouvait pas lier des entités.

J’ai créé un peu avec chatgpt et un peu par ce que je trouvais sur reddit ou github ce qui a peut être aussi causé des erreurs.

Tu as utilisé quel intégration exactement ?

J’utilise celle ci :

Sinon tu as aussi make all local tuya :

Impeccable avec cette intégration, merci @pascal_ha

1 « J'aime »