I installed the Tuya integration, and the opener is recognized and works perfectly as a switch in home assistant.
Here is my problem though … It does not recognize the sensor at all, which means the switch cannot have a state, nor can I build any automations around it.
I have searched high and low and read a ton of the topics on here.
All indications are that this is not supported yet.
I was just wondering if anyone has any idea if this is something that is actually being worked on, or, am I stuck mainly using the opener and sensors from within the Smart Life app?
Have installed mine in the man cave and works great on the Tuya app, but would like to get it working better in HA .
I’m a super noob to this so it is currently beyond me .
if someone wants to work on it i’m willing to pay for the cost of a device and some coffees.
This is a genuine offer
Pretty noob here myself, but, pretty sure this is an issue with the Tuya integration. From all that I have been researching, looks like a limitation with the Tuya API, and not anything to do with lack of support from HA.
I am still hopeful that someone will come up with some kind of solution. I know for instance that once upon a time, Sonoff integration was very limited as well, and the only way to get it fully working in HA was to reflash the device with custom firmware. That is no longer the case as a genius figured out Sonoff completely and integration is now a breeze.
Now we just have to hope that another genius will figure out Tuya completely and get us to the same level of integration.
I found using the Tuya local package the garage door has been working perfectly for a few weeks now, I still have the original Tuya running the other devices
I’d be happy if someone could teach me how to use it with Tasmota or ESPhome firmware , trying to get everything off cloud as I have flakey internet at times.
flashing devices is easy I’m just not up with the configuration stuff yet
Your best bet would be to buy another sensor that is supported by HA and use that in a script on HA instead.
I personally use ZWave devices for a lot of things as they tend to work out of the box and dont really require any coding or flashing. Currently using an Aeotec Garage door opener but you’ve obviously already got this part working.
I’ve read a few people on here using ZWave tilt sensors that are around the $30 mark so could help with your problem once integrated as an automation in HA.
@ezz9 can you confirm that using “localtuya” the state of the garage door opener is exposed to HomeAssistant (i.e. HA can see if garage is open or closed)?
I assume it does, given your previous comment on this post, suggested that is the problem you were looking to resolve.
Do you mind sharing the “localtuya” YAML syntax your using for your garage door opener? Many Thanks.
Hey @sebdoan
I used HACS to install the “localtuya” integration - and then configured with the main integration web interface. it was some trial and error finding the right setup, below is what’s working for me.
using version 3.0.1 at the moment, something in the updates something broke and I don’t have time to play so rolled back.
Create a new account on iot.tuya.com and make sure you are logged in. Go to Cloud -> Project in the left nav drawer and click “Create”. After you’ve created a new project, click into it. The access ID and access key are equivalent to the API key and API secret values need in step 6.
Go to App -> App SDK -> Development in the nav drawer.
Click “Create” and enter whatever you want for the package names (for the Android package name, you must enter a string beginning with com.).
Go to Cloud -> Project and click the project you created earlier. Then click “Link Device”. Click the “Link devices by Apps” tab, and click “Add Apps”. Check the app you just created and click “Ok”.
On the same page, click “API Group” on the left side. Change the status to Open for the following three API Groups by clicking “Apply” for each line, entering any reason, and clicking “OK”:
“Authorization Management”,
“Device Management”,
“Device Control”,
“User Management”,
“Network Management”,
“Data Service”
“Device Statistics”.
3. Install and run uBuntu or any other Linux Distro
@ezz9 I’ve used localtuya v3.1.0 and can confirm it doesn’t work for me either. I’m using the configuration via the UI as you are doing.
I’ve found that localtuya v3.0.1-v3.0.3 work the same for me. What works:
State sensor of the Garage Door works
Close command works
What doesn’t:
Stop/Toggle command only works when is garage door is open
Open command does nothing (works as a toggle command when garage door is open)
Given that localtuya accurately gives me the sensor state I’ve combined it with the standard tuya integration to create a template switch/cover that works exactly as I expected. It’s a lot of workarounds but in the end it works…
Why use the standard Tuya integration for the switch. Is it possible to configure the switch part in the Garage Opener. When I try I only get presented with the options concerning current. No on/off functions. Or have I missed something
I have been trying to use the same config but for me only the door sensor works, the actual open/closing doesnt work. I have to use the cloud tuya to open close (which doesnt have the door sensor) so its mixed bag at the moment and I was hoping someone could point me in the right direction. Tried all possible combinations of DPs and all versions, still no luck
@fhratul what worked for me is I added a switch then added a binary sensor to that switch like below:
Step 1:
Step 2: add binary sensor to detect door sensor state
step 3: Then i added a button on lovelace to detect garage state and toggle door like so:
I have the same issue, hopefully my solution works for you too. The way I get around it, is to combine the sensor from LAN with the button from the CLOUD via a “template switch”. This template switch will work as expected.
NOTE: you’ll see that i use conditions to check the sensor just before it executes the action to open or close. I also use a 10 second delay and re-execute the action to open, because sometimes the first request to open does not work.
Anyone else had any luck integrating a garage door? I have just installed one and direct integration with local tuya isn’t working. Might have to try your suggestion