IR controlled devices in Tuya

Hi,

Been using Gladys for a few days now and really liking it! I’ve noticed that you cannot add Generic IR devices that are used to control things like aircons through the Tuya integration. When doing the Tuya discover, it shows up the devices but comes up saying “Model not managed or available”. It would be awesome if this could be integrated fully into Gladys

Hey @jbadd23 :slight_smile:

Thanks for your feature request, do you have the specific model of the aircon or even better the attribute of the feature it exposes ?

You may have all the data exposed by Tuya in the Tuya developer account you created.

I’m not the developer of this integration but I can help gather all the informations to integrate this

Hi @pierre-gilles

PR: Tuya: add IR for infrared_tv infrared_ac by lephuvu1994 · Pull Request #2262 · GladysAssistant/Gladys · GitHub

I have created a PR for this IR feature. The idea is quite simple, but the code implementation is not really optimal. Could you take a look and help me refactor the code or create a similar PR based on the same idea? It is currently running quite well on my local server.

Hi @vule :slight_smile: Thanks for the PR !

The code is not that bad, what you needs now is to run prettier (to fix code formatting), run eslint (for linting), and write unit-tests for this integration!

Hi @vule, any news on this PR ? :slight_smile: