0x5e / homebridge-tuya-platform

Make homebridge-tuya-platform great again.
MIT License
223 stars 67 forks source link

Unable to properly Interact with Tuya XS-A18 RGB Power Switch #143

Open NZVengeance opened 1 year ago

NZVengeance commented 1 year ago

Describe the bug The plugin appears to be working correctly. However, despite the accessory showing up in Homebridge under the accessories tab, toggling the device does nothing.

The device shows up in Apple Home as a Light and when you attempt to interact with it you get a "No Response"

Note: The device is interactable and works correctly inside the "Tuya Smart App"

Expected behavior Toggling the accessory in Homebridge should turn the power on and off In Homebridge: You should have a separate accessory for the Switch and the LED Ring OR someway to easily control both In Apple Home: You should have a separate accessory for the Switch and the LED Ring OR someway to easily control both

Screenshots 2022-12-11 19_14_18-Tuya IoT Platform 2022-12-11 19_14_58-Tuya IoT Platform 2022-12-11 19_19_04-Smart Plug Tuya Smart Life plug socket, RGB LED scene modes – JJ Smart Living

Device info homebridge debug.txt tuya device list.txt

0x5e commented 1 year ago

During you collecting the debug logs, have you interacted with the device? I didn't see any thing relates to "No Response". From the device info, this device's category is dj but it's actually a mixed one with additional power on/off feature, the power button will be added later.

NZVengeance commented 1 year ago

In the debug.txt file everything from this point was me opening the Tuya Smart App and turning the power on and off [11/12/2022, 6:44:10 pm] [@0x5e/homebridge-tuya-platform] Executed didFinishLaunching callback

NZVengeance commented 1 year ago

I made a new log file, which shows me toggling the switch from inside the Tuya IoT web platform. Hopefully its helpful homebridge.log.txt

0x5e commented 1 year ago

Log of togging from website seems okay, have you tried toggling from homekit and see the logs?

NZVengeance commented 1 year ago

The device doesn’t respond in HomeKit. It also assumes it just a light 30761316-3784-45E1-A361-87B49965C30B BE582848-7CD0-4372-8E82-0B893E9724FA D18A179B-B473-4861-9614-4073C9D32894

0x5e commented 1 year ago

Do you have any other devices? Are they working well?

NZVengeance commented 1 year ago

I don’t have any other Tuya devices but I have Wemo and Philips Hue working fine in HomeKit

0x5e commented 1 year ago

Are they support HomeKit natively or via homebridge?

0x5e commented 1 year ago

Here's my thoughts:

  1. Exclude the possibility of homebridge not working well. Try install some homebridge dummy switch or dummy light, if they are working well. Maybe mDNS issues.
  2. Bind some tuya virtual devices (can be added via tuya website), if they are working well.
  3. Clean homebridge accessory caches.