ioBroker.zigbee icon indicating copy to clipboard operation
ioBroker.zigbee copied to clipboard

Tuya TS0601_soil_2 is not recognized in the Zigbee adapter

Open Klarie2 opened this issue 1 year ago • 28 comments

Hello at all, the new soil moisture sensor (V2) is listed as a compatible device in Zigbee2MQTT but apparently is not yet included in the Zigbee adapter. Could you please update it? Thank you very much!

Zigbee2MQTT: https://www.zigbee2mqtt.io/devices/TS0601_soil_2.html

Klarie2 avatar Jul 06 '24 20:07 Klarie2

Oh, and installed Zigbee adapter 1.10.3

Bildschirmfoto vom 2024-07-06 22-30-18

Klarie2 avatar Jul 06 '24 20:07 Klarie2

Please install the current GitHub version to test.

A.

asgothian avatar Jul 07 '24 08:07 asgothian

Thank you for your quick response, Asgothian.

I have now installed version 1.10.5 from Github, deleted the soil moisture sensor, restarted the host, and re-paired the sensor. Unfortunately, without success...

Bildschirmfoto vom 2024-07-08 23-28-38

Bildschirmfoto vom 2024-07-08 23-19-36

Bildschirmfoto vom 2024-07-08 23-12-12

Klarie2 avatar Jul 08 '24 21:07 Klarie2

Seems that the device is in a newer converter. You have 3 options now:

  • Patch the zigbee-herdsman-converters on your device
  • Generate an external converter to satisfy the current zigbee-herdsman-converters
  • wait.

I can post information for the first 2 options before the end of the week, but do not know how quickly the last point will be satisfied.

A.

asgothian avatar Jul 09 '24 15:07 asgothian

There's no rush. I'm happy to wait. ;o)

Klarie2 avatar Jul 09 '24 21:07 Klarie2

I am also interested in the solution :) I wait patiently

kovacsmzs avatar Jul 10 '24 06:07 kovacsmzs

Please test with the current GitHub Version - It should support the device

asgothian avatar Jul 14 '24 16:07 asgothian

This morning I installed the current version 10.5.0 from Github, deleted the sensor and restarted the host. Unfortunately, the soil moisture sensor is not recognized again. Everything is the same as last week for me.

[edit] Screenshot deleted

Klarie2 avatar Jul 17 '24 03:07 Klarie2

The screenshot is not interesting. How does the object tree for the device look ?

asgothian avatar Jul 17 '24 05:07 asgothian

The sensor's object tree.

Bildschirmfoto vom 2024-07-17 13-18-36

Text in "Value": {"type":"attributeReport","data":{"65503":"�\u000f*.\u0019�\u000f*.\u0007\u0000\u0000\u0000\u0000\u0011"},"linkquality":127,"groupID":0,"cluster":"genBasic","meta":{"zclTransactionSequenceNumber":254,"manufacturerCode":null,"frameControl":{"frameType":0,"manufacturerSpecific":false,"direction":1,"disableDefaultResponse":false,"reservedBits":0}},"endpoint_id":1}

Klarie2 avatar Jul 17 '24 11:07 Klarie2

Please verify that you have the zigbee-herdsman-converters version 19.62.0 installed and that no older version exists. Once that is done, please verify that the file src/devices/tuya.ts contains the following code:

        fingerprint: tuya.fingerprint('TS0601', ['_TZE284_g2e6cpnw', '_TZE284_sgabhwa6']),
        model: 'TS0601_soil_2',
        vendor: 'Tuya',
        description: 'Soil sensor',
        fromZigbee: [tuya.fz.datapoints],
        toZigbee: [tuya.tz.datapoints],
        configure: tuya.configureMagicPacket,
        exposes: [e.temperature(), e.soil_moisture(), e.battery(), tuya.exposes.batteryState()],
        meta: {
            tuyaDatapoints: [
                [3, 'soil_moisture', tuya.valueConverter.raw],
                [5, 'temperature', tuya.valueConverter.divideBy10],
                [102, 'battery_state', tuya.valueConverter.batteryState],
                [110, 'battery', tuya.valueConverter.divideBy10],
            ],
        },
    },

asgothian avatar Jul 18 '24 04:07 asgothian

klaus@raspi4iobroker:/opt/iobroker $ npm list zigbee-herdsman-converters
[email protected] /opt/iobroker
└─┬ [email protected] (git+ssh://[email protected]/ioBroker/ioBroker.zigbee.git#b395620c3af1915587feec6fcad9f222d8531126)
  └── [email protected]

Klarie2 avatar Jul 25 '24 00:07 Klarie2

I have this one https://www.zigbee2mqtt.io/devices/TS0601_soil.html, it connects with version 1.10.5 but does not show the correct soil_moisture values. Either it shows 0% or 100%, nothing in between. Is it possible to calibrate it?

di3t0 avatar Jul 25 '24 07:07 di3t0

same here...I'll wait

easybeat avatar Jul 26 '24 11:07 easybeat

Please test again with the current GitHub version.

asgothian avatar Aug 02 '24 10:08 asgothian

Thank you very much! I paired it and it works :)

kovacsmzs avatar Aug 04 '24 19:08 kovacsmzs

Sorry, I was away for a few days. Today I installed the latest version of Git. Unfortunately, without success.

The sensor's response is: {"type":"attributeReport","data":{"65503":"��B.\u0019��B.\u0007\u0000\u0000\u0000\u0000\u0011"},"linkquality":149,"groupID":0,"cluster":"genBasic","meta":{"zclTransactionSequenceNumber":249,"manufacturerCode":null,"frameControl":{"frameType":0,"manufacturerSpecific":false,"direction":1,"disableDefaultResponse":false,"reservedBits":0}},"endpoint_id":1}

Klarie2 avatar Aug 05 '24 01:08 Klarie2

@Klarie2 Please verify that the device in question reports as _TZE284_sgabhwa6. This device is definitely supported in 1.10.5. In this case, you may have to remove the device and pair it again.

if it reports as a different device, please post which device it reports as.

A.

asgothian avatar Aug 05 '24 08:08 asgothian

connectet it, but it always shows 100% soil and it's definitely not in the dirt where it's 100%

image

di3t0 avatar Aug 05 '24 08:08 di3t0

@di3t0 This is something the ioBroker team cannot address, as we only display the values provided by the zigbee-herdsman-converters library. There is no code within the iobroker.zigbee project to modify these values.

There has been a change within this library, but it may take a few days until this change is available within iobroker.zigbee.

A.

asgothian avatar Aug 05 '24 08:08 asgothian

@Klarie2 Please verify that the device in question reports as _TZE284_sgabhwa6. This device is definitely supported in 1.10.5. In this case, you may have to remove the device and pair it again.<

It is exactly this device (see screenshot). I have now uninstalled the device several times, restarted the Zigbee adapter and the host. Unfortunately, the result is unchanged. Pairing works, but the device is not recognized and does not provide any data. The sensor works fine on a Tuya adapter (at a friend's) and provides data.

Bildschirmfoto vom 2024-08-07 23-39-27

Klarie2 avatar Aug 07 '24 22:08 Klarie2

@Klarie2: Something does not add up here. The code for the device clearly lists the given manufacturer ID, so the device should be recognized (see this code)

    {
        fingerprint: tuya.fingerprint('TS0601', ['_TZE284_g2e6cpnw', '_TZE284_sgabhwa6']),
        model: 'TS0601_soil_2',
        vendor: 'Tuya',
        description: 'Soil sensor',
        fromZigbee: [tuya.fz.datapoints],
        toZigbee: [tuya.tz.datapoints],
        configure: tuya.configureMagicPacket,
        exposes: [e.temperature(), e.soil_moisture(), e.battery(), tuya.exposes.batteryState()],
        meta: {
            tuyaDatapoints: [
                [3, 'soil_moisture', tuya.valueConverter.raw],
                [5, 'temperature', tuya.valueConverter.divideBy10],
                [102, 'battery_state', tuya.valueConverter.batteryState],
                [110, 'battery', tuya.valueConverter.divideBy10],
            ],
        },
    },

Please verify that the installed version of the zigbee_herdsman_converters contains this entry in the tuya.ts file.

Also:

Pairing works, but the device is not recognized and does not provide any data.

When you write this, does it mean that you do get states for the various data items (soil_moisture, temperature, etc...) but they receive no data, or are those states not generated at all ?

A.

asgothian avatar Aug 08 '24 10:08 asgothian

A device is created but the only data point is the link quality. See screenshot of the object tree. I can't look at the "tuya.ts" until after the weekend.

Bildschirmfoto vom 2024-08-10 01-48-12

Klarie2 avatar Aug 09 '24 23:08 Klarie2

Mit der aktuellen Version vom Github funktioniert es. TS06

ldittmar81 avatar Aug 30 '24 08:08 ldittmar81

I just bought one of these green tuya_soil_2 and connected it to home assistant using z2m without issues, but the battery level will not read. I've had this issue happen with other devices in the past, but usually removing and readding it fixes it. I've tried removing and force-removing and readding the device with no luck. Does the battery level work for other people? Wondering if I got a bad unit or if it's a z2m issue?

nprez83 avatar Sep 13 '24 10:09 nprez83

Give it time. It can take up to 24 hrs before they report battery

asgothian avatar Sep 13 '24 10:09 asgothian

Give it time. It can take up to 24 hrs before they report battery

Thanks for the reply. I think it's been that long, but I'll give it another day and report back.

nprez83 avatar Sep 13 '24 10:09 nprez83

It's been close to 3 days now and no joy. The battery status is not even being reported in the device state (see below). If other people with this sensor see a battery reading, I guess I may have gotten a bad unit.

{
    "humidity_alarm": "upper_alarm",
    "humidity_sensitivity": 1,
    "last_seen": "2024-09-14T06:59:07-04:00",
    "linkquality": 3,
    "max_humidity_alarm": 0,
    "max_temperature_alarm": 60,
    "min_humidity_alarm": 0,
    "min_temperature_alarm": 0,
    "schedule_periodic": 60,
    "soil_moisture": 20,
    "temperature": 18.7,
    "temperature_alarm": "cancel",
    "temperature_f": 65.6,
    "temperature_sensitivity": 1
}

nprez83 avatar Sep 14 '24 11:09 nprez83

It's been close to 3 days now and no joy. The battery status is not even being reported in the device state (see below). If other people with this sensor see a battery reading, I guess I may have gotten a bad unit.

{
    "humidity_alarm": "upper_alarm",
    "humidity_sensitivity": 1,
    "last_seen": "2024-09-14T06:59:07-04:00",
    "linkquality": 3,
    "max_humidity_alarm": 0,
    "max_temperature_alarm": 60,
    "min_humidity_alarm": 0,
    "min_temperature_alarm": 0,
    "schedule_periodic": 60,
    "soil_moisture": 20,
    "temperature": 18.7,
    "temperature_alarm": "cancel",
    "temperature_f": 65.6,
    "temperature_sensitivity": 1
}

Also mine is not showing battery at all. Can confirm this "bug".

easybeat avatar Nov 21 '24 12:11 easybeat

@asgothian

@Klarie2: Something does not add up here. The code for the device clearly lists the given manufacturer ID, so the device should be recognized (see this code)

[snip]

Please verify that the installed version of the zigbee_herdsman_converters contains this entry in the tuya.ts file.

Also:

Pairing works, but the device is not recognized and does not provide any data.

When you write this, does it mean that you do get states for the various data items (soil_moisture, temperature, etc...) but they receive no data, or are those states not generated at all ?

A.

Sorry for only getting back to you now... Sometimes, problems just resolve themselves over time.

Over the weekend, I updated the entire system (ioBroker and Raspberry Pi). During that process, I also installed the latest version of the Zigbee adapter from Git. Now the soil moisture sensor is recognized and delivers data – despite unchanged hardware (no firmware update of the Sonoff stick).

Thank you so much for your help and to the whole team who work so diligently in the background to make ioBroker possible!

Best regards from Germany, Klaus

Klarie2 avatar Dec 03 '24 13:12 Klarie2