# Controlling TUYA smart devices from Photon

**URL:** https://community.particle.io/t/controlling-tuya-smart-devices-from-photon/54302
**Category:** Project Share
**Tags:** photon
**Created:** [January 21, 2020, 12:23pm UTC](https://community.particle.io/t/controlling-tuya-smart-devices-from-photon/54302 "2020-01-21T12:23:48Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Upgrade](https://avatars.discourse-cdn.com/v4/letter/u/ba8739/32.png) [@Upgrade](https://community.particle.io/u/Upgrade)
#### Post date: [January 21, 2020, 12:23pm UTC](https://community.particle.io/t/controlling-tuya-smart-devices-from-photon/54302/1 "2020-01-21T12:23:48Z")

</div>

Hi All,

After several days of searching, I’m surprised I’ve not found the answer so think I’m missing something! - I have a couple of Photons linked to some PIRs and currently HUE bulbs (which is working okay). I want to add some lower cost TUYA smart bulbs into the mix but can’t find any examples where this has been done before using a photon or other particle devices.

I’ve found [https://github.com/codetheweb/tuyapi](https://github.com/codetheweb/tuyapi) but no idea how to link that with my photon code…

As the TUYA devices seem to be quite popular (sold under various brand names such as Smart Life), I’m wondering if everyone is using something like [https://github.com/arendst/Tasmota](https://github.com/arendst/Tasmota) and using a webAPI, maybe linked with [https://github.com/reloxx13/TasmoAdmin](https://github.com/reloxx13/TasmoAdmin) ??

My end goal is to turn on/off some TUYA bulbs (hopefully with brightness/colour control) and maybe some TUYA plug sockets as easily as possible (so I can integrate into my existing code) 🙂

Can anyone provide any pointers / direction to look next? Has anyone done this before?

P.S. I have the TUYA devices connected via Homebridge to HomeKit if there’s an easy route to control HK devices via the Photon?

---

<div class="post-metadata">

### Author: ![nicowitteman](https://avatars.discourse-cdn.com/v4/letter/n/9fc29f/32.png) [@nicowitteman](https://community.particle.io/u/nicowitteman)
#### Post date: [November 25, 2023, 10:36am UTC](https://community.particle.io/t/controlling-tuya-smart-devices-from-photon/54302/2 "2023-11-25T10:36:25Z")

</div>

I have the same question. Anyone?
