Tuya TS0601_soil_2 is not recognized in the Zigbee adapter
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
Oh, and installed Zigbee adapter 1.10.3
Please install the current GitHub version to test.
A.
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...
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.
There's no rush. I'm happy to wait. ;o)
I am also interested in the solution :) I wait patiently
Please test with the current GitHub Version - It should support the device
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
The screenshot is not interesting. How does the object tree for the device look ?
The sensor's object tree.
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}
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],
],
},
},
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]
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?
same here...I'll wait
Please test again with the current GitHub version.
Thank you very much! I paired it and it works :)
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 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.
connectet it, but it always shows 100% soil and it's definitely not in the dirt where it's 100%
@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 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.
@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.
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.
Mit der aktuellen Version vom Github funktioniert es.
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?
Give it time. It can take up to 24 hrs before they report battery
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.
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
}
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".
@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