Heyaxa WiFi Wireless Pool Thermometer works with HA

I recently purchased one of these
Heyaxa WiFi Pool Thermometer
from Amazon in the hope it would work with HA. It uses its own App, but the App is Tuya based. With a little work I was able to get it working using the LocalTuya integration.
https://github.com/rospogrigio/localtuya/.

It does not work with the standard HA Tuya integration (the integration sees it as an unknown device, and there are no entities added).

The Heyaxa instructions say to add the thermometer to the Heyaxa App but you can skip that step.

  1. Add the device to your existing Tuya or Smart Life app.
  2. Follow the instructions in the LocalTuya integration to add a device. You will need your device’s ID and local_key (see LocalTuya instructions to obtain these).
  3. LocalTuya will detect several entities on the device. These are:
    101: Heyaxa Basestation Temperature
    103: Remote Pool Sensor Current Temperature
    102: Heyaxa Basestation Humidity
    and two others which I think are Max and Min temperatures (I didn’t need these so I didn’t add them)
  4. Add them as sensors and you’re done. Note for the temperature sensors you will need to put in a multiplier of 0.1

Here’s what the Thermometer looks like in the Tuya Developer Platform:

{
  "result": {
    "active_time": 1719587749,
    "biz_type": 18,
    "category": "wsdcg",
    "create_time": 1719587749,
    "icon": "smart/icon/bay1635491881802G0pP/276ba9e798838088804a620e18fb7a9c.jpg",
    "id": "xxxxxxxxxxxxxx",
    "ip": "x.x.x.x",
    "lat": "xxxxx",
    "local_key": "xxxxxxxxxxxxxxxx",
    "lon": "xxxxxxxx",
    "model": "05HWS",
    "name": "Heyaxa Wi-Fi Smart Pool Thermometer ",
    "online": true,
    "owner_id": "6667840",
    "product_id": "xdtaournnxe7aebw",
    "product_name": "Heyaxa Wi-Fi Smart Pool Thermometer ",
    "status": [],
    "sub": false,
    "time_zone": "-07:00",
    "uid": "xxxxxxxxxxxxxxx",
    "update_time": 1719588485,
    "uuid": "xxxxxxxxxxxxxxxxxxxxx"
  },
  "success": true,
  "t": 1719588565757,
  "tid": "xxxxxxxxxxxxxxxxxxxxxxxx"
}

I have been trying to add this all summer long. I have the same one. when I try and add it to the local tuya, it finds the device then asks for various fields, scan interval, manual dps, and dpids to add. if I don’t enter them it errors out.

I have followed your instructions here; Obtained device ID and localkey, then hit submit and get “unknown error has occurred”.

I can submit debug info. Not sure if that’s useful. Using protocol 3.3 if that’s relevant.

I tried again this morning and it magically worked. No idea why.