Open abuhussnia opened 3 years ago
+1
For me the device is visible but without any entities or switches. I see the configured remote but can not control it
Same here. It seems it's just not yet supported. :(
Debug Info from HomeAssistant @frenck
tuya-ce64d0498cd2d2970a2c9ee8f8e4ef2a-Infinity Mirror-cf2e03c86b0882c0daefe67eb54bc066.json.txt
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:
Thank you!
+1
+1
+100500
+1
+1
+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...
+1
this has been requested since 2019 -- https://community.home-assistant.io/t/tuya-smart-ir/101837
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.
+1
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!
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: @.***>
+1
+1
What if we turn on devices connected to the IR Device via speakers, how could we know the status of those devices?
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.
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?
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: @.***>
Well, tinytuya + appdaemon make it work like a charm! I have state of devices connected to WiFi IR right now.
+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 !!!
Hi,
Try tinytuya + appdaemon. It works like a charm!
Hi,
Try tinytuya + appdaemon. It works like a charm!
Hello Ramon,
Can you share code the yaml and py files?
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
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: @.***>
I have the automations in smartlife imported in HA as scenes.
I have the automations in smartlife imported in HA as scenes.
i have too, but its not work...
entities is empty - device not work on HA 😿
scenes created from smart app on android - work fine in HA 👍🏻, but devices are still not available...
Device normal info
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