tuya-home-assistant icon indicating copy to clipboard operation
tuya-home-assistant copied to clipboard

Universal WIFI IR Remote is not showing in the list of devices

Open abuhussnia opened this issue 3 years ago • 34 comments

Device normal info

  • NEO Coolcam
  • WiFi IR Remote control Universal Smart Remote Controller

Device info (please complete the following information, which can be found in log): like this: { "result": { "active_time": 1629839336, "biz_type": 18, "category": "wnykq", "create_time": 1624903697, "icon": "smart/icon/ay1503986080106Gppjy/7820b282e1f01aae279a56225d374c98.png", "id": "bfc21cf0102f821399w11y", "ip": "128.234.0.12", "lat": "21.5657781", "local_key": "9414acd54b4c654b", "lon": "39.2192013", "name": "Universal IR", "online": true, "owner_id": "33217108", "product_id": "kgohvcaj3autr4a8", "product_name": "Smart IR", "status": [], "sub": false, "time_zone": "+03:00", "uid": "eu1624903410662UbdQ4", "update_time": 1630696018, "uuid": "faf6f069685623b2" }, "success": true, "t": 1630698817618 }

Device specifications (please complete the following information, which can be found in log): Same device's id, like this: 2021-09-03 22:10:40 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration tuya_v2 which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2021-09-03 22:46:36 WARNING (MainThread) [homeassistant.helpers.state] Integration device_tracker does not support reproduce state 2021-09-03 22:46:36 WARNING (MainThread) [homeassistant.helpers.state] Integration sensor does not support reproduce state 2021-09-03 22:46:36 WARNING (MainThread) [homeassistant.helpers.state] Integration binary_sensor does not support reproduce state

abuhussnia avatar Sep 03 '21 20:09 abuhussnia

+1

sag3ll0 avatar Sep 29 '21 11:09 sag3ll0

For me the device is visible but without any entities or switches. I see the configured remote but can not control it

Phhere avatar Jan 04 '22 14:01 Phhere

Same here. It seems it's just not yet supported. :(

tri4ng1e avatar Jan 10 '22 13:01 tri4ng1e

Hi guys, hi @tuya

I believe all owners of Tuya Smart WiFi IR (or IR+RF) are waiting for few words from code owners here.

When HA switched from unofficial Tuya support to the official (this) one, the only option to integrate Tuya IR (via Tap-to-Run scenarios) was lost. Since then we are waiting for this support to be added back again.

Can you please let us know if something is planned, or include this request to the road map?

Related issues are:

  • https://github.com/tuya/tuya-home-assistant/issues/432
  • https://github.com/tuya/tuya-home-assistant/issues/688
  • https://github.com/tuya/tuya-home-assistant/issues/295

Thank you!

goooroooX avatar Mar 30 '22 00:03 goooroooX

+1

emilmort11 avatar May 19 '22 11:05 emilmort11

+1

vinilg89 avatar Jun 05 '22 17:06 vinilg89

+100500

Nafania avatar Jun 09 '22 12:06 Nafania

+1

marcmeee avatar Jun 12 '22 01:06 marcmeee

+1

nisgoswami avatar Jun 12 '22 02:06 nisgoswami

+1 It seems scenes still carry over. Perhaps there is a way to create a fake device and run scenes that way? Otherwise, this is fairly annoying tuya-21f51a1bf023a424b284555582966931-Air-519b0d0991cad9391fe35668962e865e.json.txt .

EDIT: Included my log file, but also noticed that it seems to have the functions listed, including power. There's even mention of mqtt communications. Hmm...

FlameSoulis avatar Jun 13 '22 15:06 FlameSoulis

+1

this has been requested since 2019 -- https://community.home-assistant.io/t/tuya-smart-ir/101837

akshaydogra1 avatar Jun 15 '22 05:06 akshaydogra1

For those who looking for some solution and awaiting support here. There is small workaround exists. You can create "scenes" in tuya application like "turn on air condidition", "turn cooling mode", "turn on heating mode" and so on so far. They will be automatically imported by tuya integration and you can use them in automations. Please avoid any special symbols in naming - they can break import.

Nafania avatar Jul 04 '22 11:07 Nafania

+1

W9YBZ avatar Jul 14 '22 17:07 W9YBZ

For those who looking for some solution and awaiting support here. There is small workaround exists. You can create "scenes" in tuya application like "turn on air condidition", "turn cooling mode", "turn on heating mode" and so on so far. They will be automatically imported by tuya integration and you can use them in automations. Please avoid any special symbols in naming - they can break import.

It's a perfect solution! Thank you so much! after i created the scenes in the smart life app, and readded to the official tuya integration, the scenes appeared as seperated devices one by one! Thank you!

deeguz avatar Nov 10 '22 01:11 deeguz

Thanks for sharing the info, Deguuz.

Op do 10 nov. 2022 02:53 schreef deeguz @.***>:

For those who looking for some solution and awaiting support here. There is small workaround exists. You can create "scenes" in tuya application like "turn on air condidition", "turn cooling mode", "turn on heating mode" and so on so far. They will be automatically imported by tuya integration and you can use them in automations. Please avoid any special symbols in naming - they can break import.

It's a perfect solution! Thank you so much! after i created the scenes in the smart life app, and readded to the official tuya integration, the scenes appeared as seperated devices one by one! Thank you!

— Reply to this email directly, view it on GitHub https://github.com/tuya/tuya-home-assistant/issues/440#issuecomment-1309659933, or unsubscribe https://github.com/notifications/unsubscribe-auth/AUHSLSN5FNEFKFRYHR6RIUDWHRITFANCNFSM5DMMRXHA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

moyuehan avatar Nov 10 '22 08:11 moyuehan

+1

kromadg avatar Jan 24 '23 19:01 kromadg

+1

rairulyle avatar Feb 07 '23 12:02 rairulyle

What if we turn on devices connected to the IR Device via speakers, how could we know the status of those devices?

ramonfontes avatar Jun 14 '23 16:06 ramonfontes

What if we turn on devices connected to the IR Device via speakers, how could we know the status of those devices?

I do that with a smart plug with power meter. I check the consumption in both on and off state. So automations can use the consumption as a trigger.

deeguz avatar Jun 14 '23 16:06 deeguz

I do that with a smart plug with power meter. I check the consumption in both on and off state. So automations can use the consumption as a trigger.

This could be a solution but a power meter is required.

I just found tinytuya and I could get the state of the air conditioner with the code below.

import tinytuya
import colorsys
import time
import json

#tinytuya.set_debug()

# Set this to the actual blaster device, not a virtual remote
device_id = 'IR_ID'
remote_id = 'REMOTE_DEVICE_ID'

# Connect to Tuya Cloud - uses tinytuya.json
c = tinytuya.Cloud(apiRegion="us", 
        apiKey="xxxxx", 
        apiSecret="xxxxx", 
        apiDeviceID="xxxxx")

# First, get a listing of all programmed remotes
print('List of remotes:')
remote_list = c.cloudrequest( '/v2.0/infrareds/' + device_id + '/remotes/' + remote_id + '/ac/status' )
print( json.dumps(remote_list, indent=2) )

output

List of remotes:
{
  "result": {
    "mode": "4",
    "power": "0",
    "temp": "26",
    "wind": "1"
  },
  "success": true,
  "t": 1686764219410,
  "tid": "10a5bae00ada11eeb465722d3732ca64"
}

The result gives me the states I want. Is there any chance to have this feature added into tuya home assistant?

ramonfontes avatar Jun 14 '23 17:06 ramonfontes

I do almost the same. Use IR to start/stop. As settings vary too much depending on the season, heating or cooling, I use scenes in Tuya smart life. This gives a good visual and can be changed from any location in the world. For status I measure the power via CT clamp. Depending on CT power value and solar panel power, HA starts/stops the devices.

Op wo 14 jun. 2023 19:50 schreef Ramon Fontes @.***>:

I do that with a smart plug with power meter. I check the consumption in both on and off state. So automations can use the consumption as a trigger.

This could be a solution but a power meter is required.

I just found tinytuya and I could get the state of the air conditioner with the code below.

import tinytuya import colorsys import time import json

#tinytuya.set_debug()

Set this to the actual blaster device, not a virtual remote

device_id = 'eb4625e8fbb01b6329a5tp' remote_id = 'eb90b2ede0a01100a7t1my'

Connect to Tuya Cloud - uses tinytuya.json

c = tinytuya.Cloud(apiRegion="us", apiKey="xxxxx", apiSecret="xxxxx", apiDeviceID="xxxxx")

First, get a listing of all programmed remotes

print('List of remotes:') remote_list = c.cloudrequest( '/v2.0/infrareds/' + device_id + '/remotes/' + remote_id + '/ac/status' ) print( json.dumps(remote_list, indent=2) )

output

List of remotes: { "result": { "mode": "4", "power": "0", "temp": "26", "wind": "1" }, "success": true, "t": 1686764219410, "tid": "10a5bae00ada11eeb465722d3732ca64" }

Is there any chance to have this feature added into tuya home assistant?

— Reply to this email directly, view it on GitHub https://github.com/tuya/tuya-home-assistant/issues/440#issuecomment-1591733860, or unsubscribe https://github.com/notifications/unsubscribe-auth/AUHSLSN6QTBLUEZS4CRPCU3XLH2UZANCNFSM5DMMRXHA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

moyuehan avatar Jun 14 '23 20:06 moyuehan

Well, tinytuya + appdaemon make it work like a charm! I have state of devices connected to WiFi IR right now.

ramonfontes avatar Jun 14 '23 22:06 ramonfontes

+1, please... I build my entire home using tuya and have some fans and other things with IR and simply cant integrate because of this limitation !!!

SpawW avatar Jul 01 '23 10:07 SpawW

Hi,

Try tinytuya + appdaemon. It works like a charm!

ramonfontes avatar Jul 01 '23 10:07 ramonfontes

Hi,

Try tinytuya + appdaemon. It works like a charm!

Hello Ramon,

Can you share code the yaml and py files?

marconesm avatar Sep 07 '23 23:09 marconesm

Can you share code the yaml and py files?

python:

import appdaemon.plugins.hass.hassapi as hass
import tinytuya
import colorsys
import time
import json
import sys
import datetime
import os

class Air(hass.Hass):

  def initialize(self):
    self.run_minutely(self.run_state, datetime.time(0, 0, 0))

  def run_state(self, kwargs):
    c = tinytuya.Cloud(apiRegion="us",
            apiKey="xxxxxxx",
            apiSecret="xxxxxxx",
            apiDeviceID="xxxxxxx")

    device_id = 'smartIRID'
    remote_id = 'airID'
    remote_list = c.cloudrequest( '/v2.0/infrareds/' + device_id + '/remotes/' + remote_id + '/ac/status' )
    if (int(remote_list['result']['power']) == 1) & (self.get_state("automation.some_button") == 'off'):
        state = "on"
        self.set_state("automation.some_button", state = "on")
    elif (int(remote_list['result']['power']) == 0) & (self.get_state("automation.some_button") == 'on'):
        state = "off"
        self.set_state("automation.some_button", state = "off")

yaml:

air_conditioners:
  module: air
  class: Air

ramonfontes avatar Sep 07 '23 23:09 ramonfontes

Hi Ramon, do you have on/off only in the automation ? Or do you also include heating/ cooling/ dehumidify/ temp settings...all based on internal/external conditions for temp/relative humidity ? I use only on/off and scenes in Smart Life. Scene changes ate based on input from my wife.

Op vr 8 sep. 2023 01:24 schreef Ramon Fontes @.***>:

Can you share code the yaml and py files?

python:

import appdaemon.plugins.hass.hassapi as hass import tinytuya import colorsys import time import json import sys import datetime import os

class Air(hass.Hass):

def initialize(self): self.run_minutely(self.run_state, datetime.time(0, 0, 0))

def run_state(self, kwargs): c = tinytuya.Cloud(apiRegion="us", apiKey="xxxxxxx", apiSecret="xxxxxxx", apiDeviceID="xxxxxxx")

device_id = 'smartIRID'
remote_id = 'airID'
remote_list = c.cloudrequest( '/v2.0/infrareds/' + device_id + '/remotes/' + remote_id + '/ac/status' )
if (int(remote_list['result']['power']) == 1) & (self.get_state("automation.ar_filhas_button") == 'off'):
    state = "on"
    self.set_state("automation.ar_filhas_button", state = "on")
elif (int(remote_list['result']['power']) == 0) & (self.get_state("automation.ar_filhas_button") == 'on'):
    state = "off"
    self.set_state("automation.ar_filhas_button", state = "off")

yaml:

air_conditioners: module: air class: Air

— Reply to this email directly, view it on GitHub https://github.com/tuya/tuya-home-assistant/issues/440#issuecomment-1710881369, or unsubscribe https://github.com/notifications/unsubscribe-auth/AUHSLSNU6TB62B5VBS2MHSLXZJJSVANCNFSM5DMMRXHA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

moyuehan avatar Sep 08 '23 10:09 moyuehan