Tuya Temperature wifi sensor integration not shown in local tuya

Hello,

could you help me to integrate the tuya temperature sensor.

This is the sensor, but local tuya doesn’t show the sensor.

Thanks in advance.

Local tuya? Try their repo GitHub - rospogrigio/localtuya: local handling for Tuya devices

i use this integration but the senors are not shown. Are there other possibilities?


in Smartlife is the sensor fully available

Does anyone know a solution how to fix the problem?

Local Tuya is not a home assistant integration

It is a custom integration with its own github repo and support channel

That’s why I suggested you ask there.

1 Like

These battery-powered devices are not supported by LocalTuya. It is possible to add the device, but it will be generally unavailable, as it awakens only to communicate with its cloud server.

By pressing CONFIGURE in the LocalTuya integration a few seconds after re-inserting batteries in a TS0201 Temperature Humidity sensor, the device id appears in the available list. Since it is not a supported device, one must manually add the data points (DPs) separated by commas. For the Temp Humidity sensor these are 1,2,4 (temperature, humidity, battery).

Thanks for your answers! I have installed tuya not local. And now it works.
But unfortunately not local.

You can get this device supported if you do 2 things:

  1. Power with a 3.3 volt source, connecting the - to the ground of the chip (pin9). This way you can poll this device with local tuya
  2. Regenerate the localkey until you have no funny chars like ’ " \

Took me quite some time to understand this and get it working in HA

Peter

1 Like

Hi. After reading quite a few posts regarding the same topic, I have just added T&H sensor configuration into “core.config_entries” manualy. You can even skip some key/values, as once you add this record, later on you would be able to configure properly via integration UI (Integration → Local tuya → Configure → Reconfigure existing device

my json extract for the sensor:

            "bf...kzp": {
              "friendly_name": "temperature_tuya_local",
              "host": "192.168.1.148",
              "local_key": "DViw.....O",
              "protocol_version": "3.4",
              "enable_debug": false,
              "scan_interval": 120,
              "device_sleep_time": 300,
              "entities": [
                {
                  "friendly_name": "T & H Kids room",
                  "entity_category": "diagnostic",
                  "unit_of_measurement": "°C",
                  "device_class": "temperature",
                  "state_class": "measurement",
                  "scaling": 0.1,
                  "id": "1",
                  "platform": "sensor",
                  "icon": ""
                }
              ],
              "product_key": "55...kzp",
              "device_id": "bf...kzp",
              "node_id": null,
              "dps_strings": [
                "1 ( value: 276 )"
              ]
            }