prasad-edlabadka / homebridge-tuya-ir

Allows homebridge to control Tuya Smart IR based devices
Apache License 2.0
50 stars 22 forks source link

BUG only shows 1 Remote #58

Closed barzoock closed 1 year ago

barzoock commented 1 year ago

Since last update (13 Jul 22׳) It shows only 1 remote (I had a few configed - and it worked great). I re-confied everything and forced restart all hb services and clean all cache - it didn't fix. Also added manually all remote IDs. Please help me. Thank you

prasad-edlabadka commented 1 year ago

Can you please send logs to debug? Also please ensure you have v1.0.2. Version v1.0.1 had a bug that I just fixed

barzoock commented 1 year ago

Can you please send logs to debug? Also please ensure you have v1.0.2. Version v1.0.1 had a bug that I just fixed

Sure - just updated to 1.0.2 before i posted - still not fixed.

[homebridge-tuya-ir] This plugin generated a warning from the characteristic 'Heating Threshold Temperature': characteristic was supplied illegal value: number 16 exceeded minimum of 17. See https://homebridge.io/w/JtMGR for more info.

alszaitsev commented 1 year ago

Can confirm. The same error - only one AC remote added.

[7/13/2022, 8:38:32 PM] [TuyaIR] {"result":{"access_token":"XXXX","expire_time":2793,"refresh_token":"XXXX","uid":XXXX},"success":true,"t":XXX"tid":"XXX"} [7/13/2022, 8:38:32 PM] [TuyaIR] Login successful. [7/13/2022, 8:38:32 PM] [TuyaIR] Fetching configured remotes... [7/13/2022, 8:38:32 PM] [TuyaIR] Auto discovery of remotes enabled. Fetching with API... [7/13/2022, 8:38:32 PM] [homebridge-weather-plus] This plugin generated a warning from the characteristic 'Air Pressure': Characteristic not in required or optional characteristic section for service TemperatureSensor. Adding anyway.. See https://homebridge.io/w/JtMGR for more info. [7/13/2022, 8:38:32 PM] [TuyaIR] API returned 1 remotes... [7/13/2022, 8:38:32 PM] [TuyaIR] https://openapi.tuyaeu.com/v1.0/devices/XXXX [7/13/2022, 8:38:32 PM] [TuyaIR] Adding new accessory: Air Conditioning AZ [7/13/2022, 8:38:32 PM] [TuyaIR] Removing 1 accessories as they are no longer configured... [7/13/2022, 8:38:32 PM] [TuyaIR] Trying to login... [7/13/2022, 8:38:32 PM] [TuyaIR] Logging in to the the server https://openapi.tuyaeu.com... [7/13/2022, 8:38:32 PM] [TuyaIR] {"url":"https://openapi.tuyaeu.com/v1.0/token?grant_type=1","headers":{"client_id":"XXXX","sign":"XXXX","t":XXXX"sign_method":"HMAC-SHA256","nonce":""}} [7/13/2022, 8:38:32 PM] [TuyaIR] {"result":{"access_token":"XXXX","expire_time":2792,"refresh_token":"XXXX","uid":"XXXX"},"success":true,"t":XXXX,"tid":"XXXX"} [7/13/2022, 8:38:32 PM] [TuyaIR] Login successful. [7/13/2022, 8:38:32 PM] [TuyaIR] Fetching configured remotes... [7/13/2022, 8:38:32 PM] [TuyaIR] Auto discovery of remotes enabled. Fetching with API... [7/13/2022, 8:38:33 PM] [TuyaIR] API returned 1 remotes... [7/13/2022, 8:38:33 PM] [TuyaIR] https://openapi.tuyaeu.com/v1.0/devices/YYYY [7/13/2022, 8:38:33 PM] [TuyaIR] Restoring existing accessory from cache: Air Conditioning Space [7/13/2022, 8:38:33 PM] [TuyaIR] Removing 0 accessories as they are no longer configured...

So basically I have 2 remotes - the first returns Air Conditioning AZ and then clears it

alszaitsev commented 1 year ago

restoring to 1.0.1 doesn't work

prasad-edlabadka commented 1 year ago

Are you using multiple Smart IR devices?

barzoock commented 1 year ago

Are you using multiple Smart IR devices?

true

barzoock commented 1 year ago

@prasad-edlabadka @alszaitsev I restarted the homebridge multiple times - It seems to work now, but it doesn't after every restart - you have to restart again and again until it works. maybe that will give you some help figuring out the problem...

alszaitsev commented 1 year ago

When restarting - it adds sometimes the ACs but only one is shown on homekit and it is not working with access denied error. After second restart al деру devices ale deleted. New restart again adds them all but still only one is visible in Apple Home and it doesn't react (works only on the side of homebridge)

alszaitsev commented 1 year ago

The ACs appear in homebridge after several restarts, but they are not appearing AppleHomekit (only one of ACs is visible but with no answer error)

prasad-edlabadka commented 1 year ago

I found the bug. Fixing it. Should be release in an hour.

prasad-edlabadka commented 1 year ago

Fixed in release v1.0.4. Please give it a go.

barzoock commented 1 year ago

Fixed in release v1.0.4. Please give it a go.

Accessories are now shown but controlling them does nothing...

barzoock commented 1 year ago

Fixed in release v1.0.4. Please give it a go.

Accessories are now shown but controlling them does nothing...

Well, after restarting several times it works.... hope it will stay like this

prasad-edlabadka commented 1 year ago

There are fixes for DIY in v1.0.5 which should stablize problems. Please test and let me know.