EnzoD86 / tuya-smart-ir-ac

Control Tuya IR based air conditioners from Home Assistant
MIT License
17 stars 2 forks source link

Sending command didn't update IR controller's states #28

Closed lukechen0129 closed 2 weeks ago

lukechen0129 commented 1 month ago

Whenever I switch on / off, set temperature, set fan speed from HomeAssistant. The IR controller with screen didn't update accordingly. Same issue happen on the other way around. When I set temperature via the IR controller, the state on HomeAssistant won't update accordingly.

EnzoD86 commented 1 month ago

Hi, to try to help you, I need more information. Which model of ir hub are you using? When you send a command to your air conditioner, does the data update on the Smart Life app? Thanks

lukechen0129 commented 1 month ago

I am using the Momax air conditioner controller (SL11S), And the data on Smart Life app didn't update when i make changes from HomeAssistant. And If I make changes in the Smart Life app, the state in HomeAssistant didn't update. Also, thanks for making this repo, it helps me a lot.

EnzoD86 commented 1 month ago

Sorry, but I'm still not clear... when you send commands from Smart Life, does the data update on the controller display?

lukechen0129 commented 1 month ago

Yes it does. and it also appears in the debug logs on the tuya iot developer platform. But when I send command from HomeAssistant, the data update didn't appear in the debug log on tuya developer platform for the IR controller.

EnzoD86 commented 1 month ago

are you sure that the data configured in the configuration.yaml file accesses your same smart life connected project that you are using?

lukechen0129 commented 1 month ago

I believe so. Because I have only 1 project, plus the command sent from HA does create debug log for the air conditioner device, it just doesn't create any log for IR hub device.

EnzoD86 commented 1 month ago

But when you send commands from Home Assistant, does the air conditioner execute the command?

lukechen0129 commented 1 month ago

It does execute the command, at least the air con responded with a beep sound.

EnzoD86 commented 1 month ago

it's very strange, evidently the Momax hub has a different way of working compared to normal ir hubs. The strange thing is that if the air conditioner executes the command sent by home assistant, the command actually arrives to the server and to your configured cloud project which then sends it to your air conditioner via the ir hub (otherwise it wouldn't work, since the integration doesn't work locally). I tried googling but I found little information about this hub. I would like to be able to help you, but not having this hardware, I can't reproduce this scenario.

EnzoD86 commented 1 month ago

Let's do this test; launch a command from the display of your IR HUB and then perform these operations:

image

lukechen0129 commented 1 month ago

Just tried and seems the response shows the temperature different from the hub image This is what I found in the response, which matches what it shows in HA image This is the debug log of the IR hub and this matches the IR HUB screen.

lukechen0129 commented 1 month ago

Did some googling and realize my device looks identical with a device called Moes Smart Infrared AC Controller - Model SD16Pro and they share same Product Category which is hwktwkq in the device information.

EnzoD86 commented 1 month ago

ok, this shows us that home assistant communicates correctly with the tuya open api, but evidently the hub uses a different system or different apis to update the data on the display...

I can't think of any solution to this problem at the moment. Except that it's not possible to better understand where the hub gets the information that is displayed on the display

lukechen0129 commented 1 month ago

Understand. Thanks anyway for trying to help. 🙏

EnzoD86 commented 4 weeks ago

hi @lukechen0129 I'm reopening this thread because I received feedback from another user on a device very similar to yours.

In his case the model is precisely the MOES Tuya WiFi Smart IR Thermostat AC Remote Controller Temperature and Humidity Sensor and it work with Home Assistant. I hope this information can help you. Bye