-
Notifications
You must be signed in to change notification settings - Fork 207
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
Ultrasonic level sensor #946
Comments
I also would be more then happy if it could be integrated to HA |
I have just the same problem, I would like to integrate Tuya sensor level into HA, but it seems not to be possible yet. |
Same here. Any way to get it working? |
Hello. I recently resolved this. Happy to share my solution and give back to the community. Note: I am using the Tuya Smart TLS-2206 UltraSonic Wireless Sensor. This was sourced from Alibaba and is being used in an IBC water tank for rainwater harvesting. Firstly you need to use the Tuya Local HACs integration. Follow the guide to integrate your devices using the Cloud API method to find the Tuya device's Key and ID. https://github.com/codetheweb/tuyapi/blob/master/docs/SETUP.md You will need to reserve IP addresses for your devices on your router (or whatever DHCP service you are using). Once you have the device's Key and ID, add them into the Local Tuya integration where you will be asked for the device's IP address and local key. The default protocol is 3.3 which is correct. The trick to getting the sensors needed to show the water level percentage: Configure the integration and you will be offered an option to edit the device. Choose edit the device and select the device you want to add the sensors to. The goal is to add the sensor that reports on the water level percentage. When editing the device, scroll down and select 'Add more entities in edit device mode'. Select sensor as the entity type then select '22' and give it a friendly name. This will add the required sensor. This has worked well for me and now I can use the percentage to use in a Gauge card and also to read the percentage to turn the pump off when the level goes below 10% to prevent running the pump dry. Works very well. The readings get jumpy below 10% and above 95% but you can adjust your automations to get a reliable reading by using a time condition (must be below 10% for an hour for example). I hope this helps someone. |
Hi, I'm following the guide through the link you posted. I've done everything but I'm stuck on points 6 and 7!!!! What do you mean by "Put your devices into linking mode"? and in point 7 "on the command line....." where exactly? Sorry for my ignorance |
Hello nisu66 - the documentation under https://github.com/codetheweb/tuyapi/blob/master/docs/SETUP.md is not mine but my advice assumes you could follow it. In terms of linking, once you have your developer account setup and have created your project you then need to link it with your devices (make sure that you have already set them up in your Tuya Smart Life App). |
I don't know about linking mode or the command line as I think all I had to do here was create the developer account, link my account and the devices showed up that I had added in the IOS Tuya Smart Life app. Once this was done, add the Tuya Local Integration through HACs - when you add your developer account the devices will import. |
thanks, in the end I searched a bit here and there I managed to integrate the level sector. Thanks to you who gave me the correct inspiration |
No problem. Are you getting your level readings now? |
Yessssss
Inviato da Yahoo Mail su Android
Il mer, 1 nov, 2023 alle 17:39, ***@***.***> ha scritto:
No problem. Are you getting your level readings now?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
Excellent, well done! |
Hello, i want to ask something about this. I follow this instruction but i can't see anything about this sensor. The integration say me that the sensor is unsupported, but when i downloaded a diagnostik file, compare a value and a voice about the sensor. and also i can see a value on denvelopment site about tuja. what i can do for see a value on my home assitant? |
@Pante90 use localtuya.
Inviato da Yahoo Mail su Android
Il lun, 11 dic, 2023 alle 20:21, ***@***.***> ha scritto:
Hello, i want to ask something about this. I follow this instruction but i can't see anything about this sensor. The integration say me that the sensor is unsupported, but when i downloaded a diagnostik file, compare a value and a voice about the sensor. and also i can see a value on denvelopment site about tuja. what i can do for see a value on my home assitant?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
Hi there, I wanted to add the tank level into Home Assistant too. When I add the device it is found by Local Tuya integration. But I can't find anylog file for more info. When I add it manually and put in the IP/deviceID/secret key it give the following error: Does anyone got this error and found a solution ? Thanks in advance. |
Up until a month ago everything was working fine. Then suddenly the sensors disappeared and I have the usual errors. I tried both localtuya and tuyalocal. I don't know what could have happened. Anyone in your situation?
Inviato da Yahoo Mail su Android
Il Mer, 3 Gen, 2024 alle 16:25, ***@***.***> ha scritto:
Hi there, I wanted to add the tank level into Home Assistant too. When I add the device it is found by Local Tuya integration.
However when adding I got an error: "An unknown error occurred. See log for details."
But I can't find anylog file for more info.
When I add it manually and put in the IP/deviceID/secret key it give the following error:
"Connection to device succeeded but no datapoints found, please try again. Create a new issue and include debug logs if problem persists."
Does anyone got this error and found a solution ?
Thanks in advance.
Waterlevelmeter3.PNG (view on web)
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
no way. I followed your directions but it doesn't work for me. I also tried changing the values because I don't have dip 20, but the result doesn't change.
Inviato da Yahoo Mail su Android
Il Mer, 3 Gen, 2024 alle 19:20, ***@***.***> ha scritto:
I got it working. I added the 22 and then it added a sensor but no data. Then I thought let's see what happens a few numbers more.
image.png (view on web)
Added 22,21,23 (just added these to see what happened)
image.png (view on web)
The data I get to HA is the same I see in the Tuya app.
The device is just laying on my desk so the numbers are not real. But they match the app so should be good to go.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
okay that's strange, but HA adds the meter with the right local IP address etc ? Just no data ? |
Yes. The ip address Is static and correct. In the app (smart life) it s all right.And other device it s ok in local tuya
Inviato da Yahoo Mail su Android
Il Gio, 4 Gen, 2024 alle 9:22, ***@***.***> ha scritto:
okay that's strange, but HA adds the meter with the right local IP address etc ? Just no data ?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
okay so it stopped working... :( I got fluctuating data dat matched the Tuya app, checked and tested a few times to be sure it was okay, and since yesterday i just get constant "100cm" data feed. |
I order the same 2206 but it's zigbee. Would that be working at all with HA? |
Is there a Zigbee version ? I searched for a ZB version before buying the WiFi version but I couldn't find it anywhere. |
Just found this amazing item on AliExpress. Check it out! €57,93 | EPTTECH TLC2206-ZB ZigBee APP Tank level Monitor WiFi Real-time Reminder Contactless Waterproof IP67 Household Industrial Alarm |
I canceled the ZB version and replaced it with the Wifi version so I can add it directly into Smart Life. My whole network is zigbee based so maybe when its supported by HA, I will replace the wifi one with Zigbee. |
You canceled the wifi version you mean ? Please let me know how it adds. If it works in HA I will get one too. The data never got back in HA after working for a few days. |
Noop, I canceled the ZB one as wifi seems to be widely in use. I'd love to play with the newest tools but for this sensor I just need it to work. Maybe I'll buy both of them but first have to see if this sensor fits my use case (monitor of the water in my crawl space under the house) |
Using it for exactly that reason at this very moment. I just can't get the data in HA anymore. The first days it was working, than out of nowhere just gives me 100 as static data feed. Resetted the meter but no luck, also removed the device from HA. Re-added it, but still nothing. I think zigbee directly connected to HA cuts out the Tuya as the data provider. With the WiFi version must be added through an integration. And the localTuya hacs integration doesn't seem to work at all. :( |
I got the wifi based device and connected it to the Smart Life app and also configured local tuya in Home Assistant. For now it works fine, so I hope it will not stop later. FYI, I also ordered the Zigbee device as I'm curious if this works better :) Maybe I can play with it in a week or two. |
okay with adding the 22 manually as described above ? Wonder if it keeps working for you, i got data for about 3-4 days and then it just keeps giving "100" Can you perhaps screenshot your settings in the Tuya local device ? (not the keys off course but how you added the sensor) I removed and re-added the device with different settings, but without any luck. |
As far as I know, in the coming days, it will be an update of HA that contains a new way to connect tuya to homeassistant, easier and without the necessity of dealing with a developers tuya account. Maybe the problem with the ultrasonic sensor is mended. |
I don't dislike it. At least not in the beta version of HA (2024.2b9) which I already have and has the new tuya configuration system, much more streamlined and less complicated. The problem remains the device, which is not compatible. With localtuya however it works perfectly. At the beginning I also had problems, which I discovered were due to the mesh repeater I had in the garden to be able to reach the tank sensor. It basically combined the two channels at 2.4 and 5 with the usual name, and evidently created conflicts. I separated the 2 lines and activated only channel 2.4 for that repeater and I solved the problem |
Was wondering if the zigbee version still working stable ? |
In HA the Wifi lost again the configurable items, but so far Zigbee still works (via local tuya fork and tuya zigbee gateway) |
make-all/tuya-local#1653 |
Still no luck with the version I got. Removed and reinstalled the Tuya integration but still the same result. |
The MR here should add support for the tank level sensor: |
Hello, any new for zigbee version? |
Thanks @Daz42, this method worked for me! I extrapolated to other 2 valve actuators (https://www.amazon.com/Automatic-Control-Electric-Shutoff-Compatible/dp/B0CB3NZH19) which I could only manage through the tuya app and it worked as well: Thanks again!! |
No problem, glad my solution has worked for you! |
I have moved away from tuya hub and local tuya for the TLC ZB version and now have it directly connected to HA and zigbee2mqtt. |
Did anyone ever got this working with the WiFi version? |
it works for me. Every now and then it loses the signal, but I don't understand if it depends on the sensor or the router, because the sensor is placed in an underground tank |
For longer period ? Mine is pretty much next to the router on 2.4ghz network, the connection is okay, I just can't link it to HomeAssist. I can use the Tuya app and that works fine. But the WiFi version just won't be recognized by Tuya offical intergration and with LocalTuya HACS it doesn't give any data when I manually add the sensors. I think I will buy a Zigbee version so I can skip the whole Tuya platform. |
Hi Nisu66,
can you send me more screen shot?
From: nisu66 ***@***.***>
Sent: Monday, August 19, 2024 2:22 PM
To: tuya/tuya-home-assistant ***@***.***>
Cc: kazdajan86 ***@***.***>; Comment ***@***.***>
Subject: Re: [tuya/tuya-home-assistant] Ultrasonic level sensor (Issue #946)
For longer period ? Mine is pretty much next to the router on 2.4ghz network, the connection is okay, I just can't link it to HomeAssist. I can use the Tuya app and that works fine. But the WiFi version just won't be recognized by Tuya offical intergration and with LocalTuya HACS it doesn't give any data when I manually add the sensors.
I think I will buy a Zigbee version so I can skip the whole Tuya platform.
It's been working for some time now. Unfortunately, I would have to do some work to try to get a repeater closer to the connection. I configured it like this, even if there are some DPIs that I don't use. I basically only use 2, but if I remove the others it doesn't work
Senza.titolo.jpg (view on web) <https://github.com/user-attachments/assets/af6d246a-e68b-4282-bf0d-e3d7987276a8>
—
Reply to this email directly, view it on GitHub <#946 (comment)> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/BFNID63BWYYVYR5I3KDUGYTZSHPNRAVCNFSM6AAAAAA36VYDO2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEOJWGQ2DGNBZG4> .
You are receiving this because you commented. <https://github.com/notifications/beacon/BFNID655YQS4QMDU32GGB4TZSHPNRA5CNFSM6AAAAAA36VYDO2WGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTUI4DZGS.gif> Message ID: ***@***.***>
|
How to set? Why is value -1?
From: nisu66 ***@***.***>
Sent: Monday, August 19, 2024 2:22 PM
To: tuya/tuya-home-assistant ***@***.***>
Cc: kazdajan86 ***@***.***>; Comment ***@***.***>
Subject: Re: [tuya/tuya-home-assistant] Ultrasonic level sensor (Issue #946)
For longer period ? Mine is pretty much next to the router on 2.4ghz network, the connection is okay, I just can't link it to HomeAssist. I can use the Tuya app and that works fine. But the WiFi version just won't be recognized by Tuya offical intergration and with LocalTuya HACS it doesn't give any data when I manually add the sensors.
I think I will buy a Zigbee version so I can skip the whole Tuya platform.
It's been working for some time now. Unfortunately, I would have to do some work to try to get a repeater closer to the connection. I configured it like this, even if there are some DPIs that I don't use. I basically only use 2, but if I remove the others it doesn't work
Senza.titolo.jpg (view on web) <https://github.com/user-attachments/assets/af6d246a-e68b-4282-bf0d-e3d7987276a8>
—
Reply to this email directly, view it on GitHub <#946 (comment)> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/BFNID63BWYYVYR5I3KDUGYTZSHPNRAVCNFSM6AAAAAA36VYDO2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEOJWGQ2DGNBZG4> .
You are receiving this because you commented. <https://github.com/notifications/beacon/BFNID655YQS4QMDU32GGB4TZSHPNRA5CNFSM6AAAAAA36VYDO2WGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTUI4DZGS.gif> Message ID: ***@***.***>
|
What is Entity type?
Unit of Measurement?
Device Class?
From: Zwoet ***@***.***>
Sent: Monday, August 19, 2024 3:28 PM
To: tuya/tuya-home-assistant ***@***.***>
Cc: kazdajan86 ***@***.***>; Comment ***@***.***>
Subject: Re: [tuya/tuya-home-assistant] Ultrasonic level sensor (Issue #946)
okay so I added all as you stated, seems to be doing something. The Tuya app says 5cm in the screen it's bouncing between 5/6 so not sure if correct, but at least it's not only unavailable. whaha
image.png (view on web) <https://github.com/user-attachments/assets/28510783-1459-46d1-8c51-84c9ce1735de>
—
Reply to this email directly, view it on GitHub <#946 (comment)> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/BFNID66FV4F7DUPKKBNN3ITZSHXHZAVCNFSM6AAAAAA36VYDO2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEOJWGU4DAMRTHE> .
You are receiving this because you commented. <https://github.com/notifications/beacon/BFNID6ZC6NTIP3JE4ZRLLRLZSHXHZA5CNFSM6AAAAAA36VYDO2WGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTUI4MEI6.gif> Message ID: ***@***.***>
|
Added 1,2,22 as a sensors and 7,8,19,21 as numbers, was mentioned above. device class etc I left blanc, didn't knew the names I just added them as sensor1/22 and number 7/21, and renamed the "waterlevel" and "alarm" which are the only once I need. Hope this keeps working, because in the beginning when first started posting about this, it worked for a week and then just stopped working, I just never added all the sensors like this. But still doubt very much to just replace it with Zigbee version to cut out the whole Tuya platform garbage. |
entity type: sensor |
Configure only the ID you need, leave the other values alone |
I try only 22 and nothing.
would it be possible for you to connect to me on a remote desktop? Teamviewer, AnyDesk
if you want, please write to me at ***@***.*** ***@***.***>
From: nisu66 ***@***.***>
Sent: Monday, August 19, 2024 3:56 PM
To: tuya/tuya-home-assistant ***@***.***>
Cc: kazdajan86 ***@***.***>; Comment ***@***.***>
Subject: Re: [tuya/tuya-home-assistant] Ultrasonic level sensor (Issue #946)
Added 1,2,22 as a sensors and 7,8,19,21 as numbers, was mentioned above. device class etc I left blanc, didn't knew the names I just added them as sensor1/22 and number 7/21, and renamed the "waterlevel" and "alarm" which are the only once I need.
Hope this keeps working, because in the beginning when first started posting about this, it worked for a week and then just stopped working, I just never added all the sensors like this.
But still doubt very much to just replace it with Zigbee version to cut out the whole Tuya platform garbage. That this depends on a cloud platform while being 3 meter apart in my house feels a bit off.
Configure only the ID you need, leave the other values alone
—
Reply to this email directly, view it on GitHub <#946 (comment)> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/BFNID62OESIKBD2C5JX5HMDZSH2OLAVCNFSM6AAAAAA36VYDO2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEOJWGY2DENRXHE> .
You are receiving this because you commented. <https://github.com/notifications/beacon/BFNID6ZIS6WPBE2FPLTK4BLZSH2OLA5CNFSM6AAAAAA36VYDO2WGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTUI4P6HO.gif> Message ID: ***@***.*** ***@***.***> >
|
Only 22 doesn't work. I tried that. You will need to add all mentioned above. I can help you by teamviewer tomorrow if you have trouble getting it to work. Please DM me. |
Hello, I have two Ultrasonic level sensor by Tuya, they are not in the supported list but would love to see this integrated with Home Assistant and will do whatever I need to help this. Can anyone help?
The text was updated successfully, but these errors were encountered: