logo elektroda
logo elektroda
X
logo elektroda

How do you connect your Tuya Bluetooth device to the cloud? With a gateway it's possible

p.kaczmarek2 834 4
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
📢 Listen (AI):
  • Colorful Tuya LED bulb controlled by a smartphone app. .
    The Tuya Bluetooth device cannot be connected via WiFi to a router, it is usually controlled directly from the phone. This is quite inconvenient, because then we cannot create scenarios and we cannot control the equipment remotely. Fortunately, there is one way around this problem, and that is to use the Tuya gateway .
    We will need a Tuya gateway supporting Bluetooth , although usually one is bundled along with Zigbee. You need to search for something with the keyword "Tuya Zigbee Hub Smart Gateway Wi-Fi Bluetooth Mesh Muti-Mode Wireless Bridge" or similar.

    In our country, you can buy this for around £100. We get a box like this:
    Box labeled Smart Gateway with a barcode. .
    White box labeled Smart Gateway with technical information on top. .
    White box of a gateway supporting Zigbee 3.0, BLE, and SigMesh. .
    Extract:
    Box containing the Tuya Smart Gateway, USB cable, and user manual. .
    White Tuya Smart Gateway with ventilation holes and power information. .
    A USB cable with a type C connector is included. However, there is no power supply - we need to have our own with a current capacity of at least 1A.
    It's time to plug in the power supply and get the gateway up and running.

    Device used for demonstration .
    In order to test the gateway I will need a Tuya Bluetooth device. It could be an LED light, especially as it is easy to get confused and buy a piece with BT instead of one with WiFi. Sometimes there can also be such a product mislabelled in the sales offer.
    So the topic will be based on this product:
    Tuya Bluetooth colour LED light - pairing, interior analysis, construction, schematic .
    I've tested it before, pairing it with my phone over Bluetooth, but it's not ideal....

    Pairing with the Tuya app .
    A button on the case is pressed. In the Tuya app, you don't even have to select the device type, the app finds the gateway itself straight away:
    Screen of the Tuya app showing device addition with multimode gateway. .
    We enter the details of our WiFi:
    App screen prompting for Wi-Fi information. .
    We wait a moment:
    App screen showing the addition of a multimode gateway. We wait for a moment.
    Screenshot from app showing Multimode gateway added. .
    Linked.
    The app is bothering us about notifications, but this is hardly relevant now:
    Tuya app screen with autostart option and enabled toggle switch. .
    Screenshot of an app with instructions about battery usage. .
    After a while we are already in the gate. Interestingly, the light I had paired via Bluetooth (but unplugged) already appeared by itself at the gateway. The Tuya app remembers it...
    App screen with multimode gateway online and Bluetooth devices list. .
    Now I have her on the main panel and on the gateway at the same time:
    Tuya app screen showing Bluetooth device connections. .
    Just to be sure, I turned off Bluetooth:
    Bluetooth settings on Xiaomi 11T Pro phone .
    Time to test the controls:
    Tuya app interface showing connected devices. .
    App screen for controlling a color LED lamp. .
    Sometimes the light does not respond immediately, but it is fine, it works:
    Tuya Bluetooth LED color bulb controlled via mobile app. .
    Smartphone with Tuya app controlling a Tuya Bluetooth LED bulb. .
    Colorful Tuya LED bulb controlled by a smartphone app. .
    Tuya app on phone next to a glowing LED lamp .
    Out of curiosity, I de-energised the gate while controlling the lamp:
    Smartphone pairing a Bluetooth device with Tuya app next to a LED bulb. .
    Close-up of a phone with the Tuya app showing a multimode gateway. .
    The light has lost connection, the gateway appears as 'offline' and the phone asks for BT to be switched on.

    How do I connect a new device to the Bluetooth gateway? .
    As far as I can see, everything happens automatically. Since the gateway is paired with our app when we add a device we have the option to use it:
    Phone and Tuya lamp during pairing with a Bluetooth gateway. .
    In addition, there is also the option to add from within the gateway itself:
    Screenshot of the Tuya multimode gateway application screen. .


    Bluetooth devices from the gateway versus Tuya scenes .
    Another issue is Tuya's scenes/automations. If we pair a Bluetooth light with a gateway, will it work in scenes?
    I have prepared a simple 'tap to run' effect is called blink, which simply turns the light on, waits a second and turns it off:
    Phone app screen for creating a scene. .
    Scene creation screen in the Tuya app with the name blink entered. .
    We test:


    .
    Works properly.

    Summary Summary.
    Pairing and configuration proved to be seamless. Everything went smoothly. The app continuously 'embraces' whether we have a gateway connected or not, if the gateway is not online it asks for Bluetooth, and when it is available it uses it. Scenarios/scenes/automations (whatever you prefer) also work through this gateway. Adding new equipment is straightforward.
    The only thing I haven't tested yet is how the gateway will behave if there are, for example, 5 such LED lights, but that might be in a separate topic, I need to buy some more. Or maybe you guys know?
    In any case - a useful thing. A little later I will show the interior and the change of firmware of such a gate.

    Cool? Ranking DIY
    Helpful post? Buy me a coffee.
    About Author
    p.kaczmarek2
    Moderator Smart Home
    Offline 
    p.kaczmarek2 wrote 12352 posts with rating 10226, helped 584 times. Been with us since 2014 year.
  • ADVERTISEMENT
  • #2 21473746
    Szaryczlowiek83
    Level 7  
    I support the Smart-home wholeheartedly because I know from experience that a well-managed Smart-home can bring savings that, in the long run, are far greater than the price of the devices and the time spent on installation and all the fun. But I am totally against creating any part of such a Smart-home in a "foreign" cloud. And and I mean more than data privacy just that the cloud/internet can be cut off, besides that by creating your own cloud e.g. in HA you are not obliged to use Smart devices from one manufacturer. You can easily use Aqara sensors to control Shelly switches or Sonoff heads. Besides, moulds will not support cloud indefinitely for older devices because it is not profitable. Companies can specifically 'ucegla' (ecobee) such devices, and even if they don't break it, such a device can be an expensive piece of plastic when cloud access is cut off.
  • ADVERTISEMENT
  • #3 21473760
    p.kaczmarek2
    Moderator Smart Home
    As much as I agree, after all, I myself develop firmware open source supporting platforms such as (pardon the English, I'm copying from the readme):
    - BK7231T (WB3S, WB2S, WB2L, etc)
    - BK7231N (CB2S, CB2L, WB2L_M1, etc)
    - BK7231M, this is a non-Tuya version of BK7231N with 00000000 keys, also sometimes in BL2028 flavour
    - T34 (T34 is based on BK7231N), see flashing trick
    - BL2028N (BL2028N is a Belon version of BK7231N)
    - XR809 (XR3, etc)
    - BL602 (SM-028_V1.3 etc), see also BL602 flash OBK via OTA tutorial (Magic Home devices only)
    - LF686 (flash it as BL602)
    - W800 (W800-C400, WinnerMicro WiFi & Bluetooth), W801
    - W600 (WinnerMicro chip), W601 (WIS600, ESP-01W, TW-02, TW-03, etc)
    - LN882H by Lightning Semi - datasheet, see flashing how-to, see sample device teardown and flashing, see new flash tool, see dev board
    - Windows, via simulator
    - ESP32 (working good, guide will be released soon, development topic)
    - RTL8710C/RTL8720C (WBR2, WBR3, etc), see guide
    - BK7238 (see tutorial for 1$ board)
    - TR6260 (see guide)
    And recently also ECR6600 and more....

    I just showed in this part how it looks like with Tuya, in the second part I will try to change the batch here too.
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #4 21474294
    Lokval
    Level 11  
    Is there such a thing in the Zigbee version?
  • #5 21474331
    p.kaczmarek2
    Moderator Smart Home
    But what about the Zigbee version?
    Tuya gateway? YES, this gateway from the topic also embraces Zigbee.

    Is the solution 100% local? It's Home Assistant and Zigbee2MQTT.
    Helpful post? Buy me a coffee.
📢 Listen (AI):
ADVERTISEMENT