External integration - Tuya v1.11.0

:bell: Tuya (external integration) — v1.11.0: « first-class Â» doorbell + air conditioning ventilation/oscillation

Hello everyone :waving_hand:

A new version 1.11.0 of the Tuya external integration has just been released. It is based on the new features of Gladys 4.84.2 core (thanks to @pierre-gilles!).

:sparkles: New features

  • Doorbell (intercom) — real « Doorbell Â» category instead of a repurposed button: dedicated scene trigger « If the doorbell rings Â», « Ringing Â» badge on the dashboard then the time of the last press, readable history (« Doorbell activated Â»).
  • Air conditioner — fan speed + oscillations (horizontal/vertical), in the cloud and in LAN, with only the options really supported by your model.
    For reference (already in place): the motion detection of cameras/doorbells is a real motion sensor.

:warning: Prerequisites to enjoy the new features
These new functions (doorbell + air conditioning fan speed/oscillation) require Gladys ≥ 4.84.2.

:backhand_index_pointing_right: Recommended procedure:

  1. First, update Gladys to the latest version (≥ 4.84.2).
  2. Then update the Tuya integration image (or install it) to 1.11.0.
  3. Restart a Tuya discovery (« Search for devices Â» button).

:green_circle: Good to know — no breakage if you update the image before Gladys

The v1.11.0 automatically detects the version of your Gladys:

  • On Gladys ≥ 4.84.2 → doorbell + air conditioning fan speed/oscillation available.
  • On an older Gladys → the integration continues to work normally: the doorbell remains a button and the air conditioner keeps its current functions (the new features will appear automatically once Gladys is updated + a new discovery). Nothing is broken, discovery is never blocked.

:counterclockwise_arrows_button: Already created devices (doorbell / air conditioner)

For a doorbell or air conditioner already added to switch to the new categories/functions, you need to delete it and recreate it from the discovery screen (the features of an already created device are not rewritten during a rediscovery).

:test_tube: Feedback welcome

If you test, these points are of particular interest to me:

  • Doorbell: does the « Ringing Â» badge + the dedicated scene trigger work?
  • Motion detection: does the scene retrigger properly with each detection?
  • Air conditioner: reading and controlling the fan speed (and oscillations if your model supports them), in the cloud and locally. For the latter, it works for me.

Thanks in advance for your feedback :folded_hands:

Hello!

I updated and restarted the container and… It’s pretty cool:

Fully functional!

Edit: Removing the device wasn’t enough. I had to delete it, restart the container, and add it again. The « doorbell Â» feature appeared « later Â».

I love it!!^^ And have you tested the scenes? I tested in MQTT simulation, but as it’s a new trigger, a real usage test would be better ^^

So yes indeed, I haven’t yet reported this issue to @pierre-gilles, but there’s no loader on external integrations while waiting for feedback from discovered devices!! So we think it’s fast, but as Tuya does a UDP scan, it can take 30s… sorry

So with all that, I don’t know where we stand anymore ^^ Do you now have all your Tuya devices??

Yep, scenes tested and functional (button, motion detection - The neighbors must be wondering what I’m doing walking around my doorbell at 11 p.m…).

There must be a minimum delay between two detections (about a minute it seems) but it matches exactly the behavior of the Tuya app!

Next up, I have the PTZ cameras (some features are already present) but it’s a major ongoing project I see!

My son has an RGB LED strip LSC-TUYA if you’re interested in adding it (but he’s not asking for it yet)…