# IR Device and Tuya Local

**URL:** <https://discourse.nodered.org/t/ir-device-and-tuya-local/75772>\
**Category:** General\
**Created:** [26 February 2023 20:29 UTC](https://discourse.nodered.org/t/ir-device-and-tuya-local/75772 "2023-02-26T20:29:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![meccip](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/meccip/32/49594_2.png) [@meccip](https://discourse.nodered.org/u/meccip)\
**Post date:** [26 February 2023 20:29 UTC](https://discourse.nodered.org/t/ir-device-and-tuya-local/75772/1 "2023-02-26T20:29:06Z")

</div>

Hello,  
I have a S06ProWB3S IR Device with temperature and humidity. I use it with Tuya and i control my air conditioner and tv from tuya app. I try to use it with nodered to start my AC when I get to much power from my solar system. I use tuya local but all i get is value for temperature and humidity.  
I did not find information on how to implement a request payload to start the AC. Can someone help me with some examples ?

Thank you.

---

<div class="post-metadata">

**Author:** ![msillano](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/msillano/32/17424_2.png) [@msillano](https://discourse.nodered.org/u/msillano)\
**Post date:** [7 April 2023 17:18 UTC](https://discourse.nodered.org/t/ir-device-and-tuya-local/75772/2 "2023-04-07T17:18:35Z")

</div>

Some Tuya devices do not use only MQTT, it uses also some (for now unknown - not reverse-engineered) protocols to send data.

see here [https://github.com/codetheweb/tuyapi/discussions/502](https://github.com/codetheweb/tuyapi/discussions/502)

Try using _smartLife_ to do commands and see the MQTT exchange in node-red: this helps you to identify the _DP_s. (see a [guide here](https://github.com/msillano/tuyaDAEMON/wiki/Howto:-add-a-new-device-to-tuyaDAEMON)).

If really you don't found an MQTT command, the only solution I found to control _ALL Tuya devices_ is to trigger via **node-red** some ad-hoc Tuya '_automation_'.  
To do this (and more IOT functions) I developed [TuyaDAEMON](https://github.com/msillano/tuyaDAEMON), an IOT framework.  
An basic _trigger implementation_ can be found [here](https://discourse.nodered.org/t/voice-and-remote-control-for-any-node-red-flow/63068).

Now I'm working on solar extensions (see [TuyaDAEMON e il fotovoltaico](https://www.faidateoffgrid.org/viewtopic.php?f=68&t=4101#p66974)).

Hope that this gives you some help.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [6 June 2023 17:19 UTC](https://discourse.nodered.org/t/ir-device-and-tuya-local/75772/3 "2023-06-06T17:19:30Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
