The problem with sensors and the Tuya integration is that the Tuya integration doesnāt update the state right away. Thereās therefore no point in bringing a Tuya sensor into HA; the delay makes it useless. (I did a test. I set up an automation within the Tuya app, to have the garage door sensor change the state of a Tuya plug, which does integrate as a device in HA. The problem is that the change in state takes some time to be visible in HA.
I have had more success with the Nortek garage door tilt sensors (Z-wave) which work perfectly.
I do have a secondary issue with the Tuya garage door controller, which is that HA treats it as a switch, but in the Tuya app it works as a momentary switch. Iāve tried automations in HA that detect the state change and then toggle the switch; but they donāt work right (door will stop in mid-lift or mid-fall). Going to try the momentary switch integration and see if that helps.
I added a switch and a binary sensor like you in the screenshot but the sensor is not the signal from the sensor of the door opener its just a āvirtual sensorā or similar, have you figured out a way to set the correct sensor state onto this binary sensor in HA?
Hello,
I have the same problem, I am unable to make the garage door show the status. Now it is no longer possible to use the old version of localtuya. Maybe there is already a way ?? maybe have you quit and are using something else?
Instead of relying on cloud based Tuya integration, go with localtuya, add your garage door device as switch and create a garage door cover using yaml. Please take a look at this: Tuya Garage Door Opener with sensors - #22 by fuatakgun
When you click on your switch and access detail view, can you see the attribute as ācurrent_consumptionā? And does it change based on your magnetic garage door sensor?
Moreover, you can only have one main sensor line and all sensor definitions should go under below it. Either check your formatting in YAML file or check if there is another sensor section.
Update: apparently i had an issue of missing line there, updated it, it should work now.
I would not do like that because you might have issues with out of sync between tuya cloud and local states. So, I wanted to be sure that, it is always doing sth correct and intentional.
Thank you very much for your help, now it works as I always wanted, I think it will be useful not only for me. Thank you for your patience because I am a beginner and I asked a lot of simple questions
I have never been able to get LocalTuya to work. Mainly because the developer site where you are supposed to get the keys keeps changing, and none of the guides out there has been updated to the latest changes on the developer site, meaning I never get my keys