Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tuya TS0601_soil_2 is not recognized in the Zigbee adapter #2161

Open
Klarie2 opened this issue Jul 6, 2024 · 28 comments
Open

Tuya TS0601_soil_2 is not recognized in the Zigbee adapter #2161

Klarie2 opened this issue Jul 6, 2024 · 28 comments

Comments

@Klarie2
Copy link

Klarie2 commented Jul 6, 2024

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
Copy link
Author

Klarie2 commented Jul 6, 2024

Oh, and installed Zigbee adapter 1.10.3

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

@asgothian
Copy link
Collaborator

Please install the current GitHub version to test.

A.

@Klarie2
Copy link
Author

Klarie2 commented Jul 8, 2024

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

@asgothian
Copy link
Collaborator

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.

@Klarie2
Copy link
Author

Klarie2 commented Jul 9, 2024

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

@kovacsmzs
Copy link

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

@asgothian
Copy link
Collaborator

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

@Klarie2
Copy link
Author

Klarie2 commented Jul 17, 2024

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

@asgothian
Copy link
Collaborator

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

@Klarie2
Copy link
Author

Klarie2 commented Jul 17, 2024

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}

@asgothian
Copy link
Collaborator

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 asgothian reopened this Jul 18, 2024
@Klarie2
Copy link
Author

Klarie2 commented Jul 25, 2024

klaus@raspi4iobroker:/opt/iobroker $ npm list zigbee-herdsman-converters
iobroker.inst@3.0.0 /opt/iobroker
└─┬ iobroker.zigbee@1.10.5 (git+ssh://git@github.com/ioBroker/ioBroker.zigbee.git#b395620c3af1915587feec6fcad9f222d8531126)
  └── zigbee-herdsman-converters@19.62.0

@di3t0
Copy link

di3t0 commented Jul 25, 2024

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?

@easybeat
Copy link

same here...I'll wait

@asgothian
Copy link
Collaborator

Please test again with the current GitHub version.

@kovacsmzs
Copy link

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

@Klarie2
Copy link
Author

Klarie2 commented Aug 5, 2024

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}

@asgothian
Copy link
Collaborator

@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.

@di3t0
Copy link

di3t0 commented Aug 5, 2024

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

image

@asgothian
Copy link
Collaborator

@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.

@Klarie2
Copy link
Author

Klarie2 commented Aug 7, 2024

@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

@asgothian
Copy link
Collaborator

@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.

@Klarie2
Copy link
Author

Klarie2 commented Aug 9, 2024

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

@ldittmar81
Copy link
Contributor

Mit der aktuellen Version vom Github funktioniert es.
TS06

@nprez83
Copy link

nprez83 commented Sep 13, 2024

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?

@asgothian
Copy link
Collaborator

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

@nprez83
Copy link

nprez83 commented Sep 13, 2024

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
Copy link

nprez83 commented Sep 14, 2024

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
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants