Oddball errors

Posted on
Sun Jul 09, 2023 8:36 am
racarter offline
User avatar
Posts: 479
Joined: Jun 18, 2016
Location: North Yorkshire, UK

Re: Oddball errors

I can't see any instances of Ziggy on/off commands. Please could you turn off comms logging, turn on command logging, then turn Ziggy on and off. What's in the log after that?

New version in store should fix your 'permission deny' errors.

Posted on
Sun Jul 09, 2023 1:57 pm
dlleon offline
Posts: 114
Joined: Dec 14, 2012

Re: Oddball errors

like this?

Tuya No control functions available for Garage closet temp tuya
Tuya Sending {'commands': [{'code': 'switch_inching', 'value': True}]} to Ziggy Tuya
Tuya Starting Tuya monitoring thread
Tuya Error Ziggy Tuya 'on' command failed
Tuya {'code': 1104, 'msg': 'type is incorrect', 'success': False, 't': 1688932593256, 'tid': 'b4316ed31e9211ee804ade073cb82c5d'}
Tuya Sending {'commands': [{'code': 'switch_inching', 'value': False}]} to Ziggy Tuya
Tuya Error Ziggy Tuya 'off' command failed
Tuya {'code': 1104, 'msg': 'type is incorrect', 'success': False, 't': 1688932593702, 'tid': 'b470985a1e9211ee9fecaa50f188a4b0'}
Tuya Error Error getting readings for Tuya device
Tuya {'code': 1106, 'msg': 'permission deny', 'success': False, 't': 1688932594080, 'tid': 'b4aeb0261e9211ee804ade073cb82c5d'}
Tuya Error Error getting info for Tuya device
Tuya {'code': 1106, 'msg': 'permission deny', 'success': False, 't': 1688932594245, 'tid': 'b4bef9dd1e9211ee804ade073cb82c5d'}
Tuya Sending {'commands': [{'code': 'switch_inching', 'value': True}]} to Ziggy Tuya
Tuya Error Error in plugin execution runConcurrentThread:

File "plugin.py", line 86, in runConcurrentThread
File "plugin.py", line 241, in getReadings
type: invalid literal for int() with base 10: '{"scene_num":24,"scene_units":[{"bright":0,"h":240,"s":1000,"temperature":0,"unit_change_mode":"gradient","unit_gradient_duration":70,"unit_switch_duration":70,"v":1000},{"bright":0,"h":220,"s":700,"

Tuya Error plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)
Tuya Error Ziggy Tuya 'on' command failed
Tuya {'code': 1104, 'msg': 'type is incorrect', 'success': False, 't': 1688932594606, 'tid': 'b4fedd0a1e9211ee9fecaa50f188a4b0'}

Posted on
Sun Jul 09, 2023 2:18 pm
racarter offline
User avatar
Posts: 479
Joined: Jun 18, 2016
Location: North Yorkshire, UK

Re: Oddball errors

Exactly like that - and it shows up the problem perfectly! That device has two different 'switch' commands and the plugin didn't know which one to use. Naturally, it picked the wrong one. ;)

I'll upload a new version to the store shortly.

Posted on
Sun Jul 09, 2023 2:39 pm
dlleon offline
Posts: 114
Joined: Dec 14, 2012

Re: Oddball errors

Thanks, you are awesome!
And this plug in is WONDERFUL!
(I had started switching everything over to Tuya before realizing there wasn't a plug in!)

Posted on
Sun Jul 09, 2023 2:47 pm
racarter offline
User avatar
Posts: 479
Joined: Jun 18, 2016
Location: North Yorkshire, UK

Re: Oddball errors

Glad we got things sorted for you :)

Posted on
Sun Jul 09, 2023 3:27 pm
dlleon offline
Posts: 114
Joined: Dec 14, 2012

Re: Oddball errors

This one worked! The switch is working! WOOHOO!

Here's the latest log:
Tuya No control functions available for Garage closet temp tuya
Tuya Starting Tuya monitoring thread
Tuya Error Error getting readings for Tuya device
Tuya {'code': 1106, 'msg': 'permission deny', 'success': False, 't': 1688938036228, 'tid': '607553c81e9f11ee804ade073cb82c5d'}
Tuya Error Error getting info for Tuya device
Tuya {'code': 1106, 'msg': 'permission deny', 'success': False, 't': 1688938036317, 'tid': '6083e2411e9f11ee9fecaa50f188a4b0'}
Tuya Error Error in plugin execution runConcurrentThread:

File "plugin.py", line 86, in runConcurrentThread
File "plugin.py", line 241, in getReadings
type: invalid literal for int() with base 10: '{"scene_num":24,"scene_units":[{"bright":0,"h":240,"s":1000,"temperature":0,"unit_change_mode":"gradient","unit_gradient_duration":70,"unit_switch_duration":70,"v":1000},{"bright":0,"h":220,"s":700,"

Tuya Error plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)

Posted on
Sun Jul 09, 2023 3:43 pm
racarter offline
User avatar
Posts: 479
Joined: Jun 18, 2016
Location: North Yorkshire, UK

Re: Oddball errors

I'd like to get to the bottom of that 'invalid literal' error. Could you switch on comms logging and capture the data immediately before that error comes up?

Posted on
Sun Jul 09, 2023 4:05 pm
dlleon offline
Posts: 114
Joined: Dec 14, 2012

Re: Oddball errors

File "plugin.py", line 86, in runConcurrentThread
File "plugin.py", line 241, in getReadings
type: invalid literal for int() with base 10: '{"scene_num":24,"scene_units":[{"bright":0,"h":240,"s":1000,"temperature":0,"unit_change_mode":"gradient","unit_gradient_duration":70,"unit_switch_duration":70,"v":1000},{"bright":0,"h":220,"s":700,"

Tuya Error plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)
Tuya Found control function for Bathroom temp tuya:
Tuya temp_unit_convert
Tuya Found control function for Bedroom TV plug tuya:
Tuya switch_1
Tuya Found control function for Bedroom TV plug tuya:
Tuya countdown_1
Tuya Found control function for Bedroom TV plug tuya:
Tuya relay_status
Tuya Found control function for Bedroom TV plug tuya:
Tuya cycle_time
Tuya Found control function for Bedroom TV plug tuya:
Tuya random_time
Tuya Found control function for Dining room Tuya Temp:
Tuya temp_unit_convert
Tuya Found control function for Dining room Tuya Temp:
Tuya maxtemp_set
Tuya Found control function for Dining room Tuya Temp:
Tuya minitemp_set
Tuya Found control function for Dining room Tuya Temp:
Tuya maxhum_set
Tuya Found control function for Dining room Tuya Temp:
Tuya minihum_set
Tuya Found control function for Dining room Tuya Temp:
Tuya temp_sensitivity
Tuya Found control function for Dining room Tuya Temp:
Tuya hum_sensitivity
Tuya Found control function for Dining room Tuya Temp:
Tuya switch
Tuya Found control function for Equipment Closet Temp tuya:
Tuya temp_unit_convert
Tuya No control functions available for Garage closet temp tuya
Tuya {'code': 1106, 'msg': 'permission deny', 'success': False, 't': 1688940264433, 'tid': '909174821ea411ee8c70fe98ebe72f12'}
Tuya Found control function for Garage temp tuya:
Tuya temp_unit_convert
Tuya Found control function for Great room color lights tuya:
Tuya switch_led
Tuya Found control function for Great room color lights tuya:
Tuya work_mode
Tuya Found control function for Great room color lights tuya:
Tuya colour_data_v2
Tuya Found control function for Great room color lights tuya:
Tuya scene_data_v2
Tuya Found control function for Great room color lights tuya:
Tuya countdown_1
Tuya Found control function for Great room color lights tuya:
Tuya music_data
Tuya Found control function for Great room color lights tuya:
Tuya control_data
Tuya Found control function for Great room color lights tuya:
Tuya rhythm_mode
Tuya Found control function for Great room color lights tuya:
Tuya sleep_mode
Tuya Found control function for Great room color lights tuya:
Tuya wakeup_mode
Tuya Found control function for Great room color lights tuya:
Tuya power_memory
Tuya Found control function for Great room color lights tuya:
Tuya cycle_timing
Tuya Found control function for Great room color lights tuya:
Tuya random_timing
Tuya Found control function for Mud room temp tuya:
Tuya temp_unit_convert
Tuya Found control function for Office printer tuya:
Tuya switch_led
Tuya Found control function for Office printer tuya:
Tuya colour_data
Tuya Found control function for Office printer tuya:
Tuya switch_1
Tuya Found control function for Outdoor patio temp:
Tuya temp_unit_convert
Tuya Found control function for Outdoor patio temp:
Tuya maxtemp_set
Tuya Found control function for Outdoor patio temp:
Tuya minitemp_set
Tuya Found control function for Outdoor patio temp:
Tuya maxhum_set
Tuya Found control function for Outdoor patio temp:
Tuya minihum_set
Tuya Found control function for Outdoor patio temp:
Tuya temp_sensitivity
Tuya Found control function for Outdoor patio temp:
Tuya hum_sensitivity
Tuya Found control function for Outdoor patio temp:
Tuya switch
Tuya Found control function for outdoor side yard fence tuya:
Tuya switch_1
Tuya Found control function for outoor fence light:
Tuya switch_1
Tuya Found control function for Patio bug light tuya:
Tuya switch_1
Tuya Found control function for Patio bug light tuya:
Tuya countdown_1
Tuya Found control function for Patio bug light tuya:
Tuya relay_status
Tuya Found control function for Patio bug light tuya:
Tuya cycle_time
Tuya Found control function for Patio bug light tuya:
Tuya random_time
Tuya Found control function for Ziggy Tuya:
Tuya switch_1
Tuya Found control function for Ziggy Tuya:
Tuya countdown_1
Tuya Found control function for Ziggy Tuya:
Tuya relay_status
Tuya Found control function for Ziggy Tuya:
Tuya overcharge_switch
Tuya Found control function for Ziggy Tuya:
Tuya light_mode
Tuya Found control function for Ziggy Tuya:
Tuya child_lock
Tuya Found control function for Ziggy Tuya:
Tuya cycle_time
Tuya Found control function for Ziggy Tuya:
Tuya random_time
Tuya Found control function for Ziggy Tuya:
Tuya switch_inching
Tuya Starting Tuya monitoring thread
Tuya Device states for Bathroom temp tuya
Tuya {'result': [{'code': 'va_temperature', 'value': 197}, {'code': 'humidity_value', 'value': 61}, {'code': 'temp_unit_convert', 'value': 'f'}], 'success': True, 't': 1688940265468, 'tid': '912f85e51ea411ee9fecaa50f188a4b0'}
Tuya Device info for Bathroom temp tuya
Tuya {'result': {'active_time': 1655347592, 'category': 'wsdcg', 'category_name': 'Temperature and Humidity Sensor', 'create_time': 1655347592, 'gateway_id': '', 'icon': 'smart/icon/ay1525749833414yotNt/60d869bb20b0e1b0f0347a9fd8781a3c.png', 'id': 'ebe17135b2278aadc4ewri', 'ip': '104.50.216.93', 'lat': '32.9000', 'local_key': '668534a7d558d192', 'lon': '-96.7800', 'model': 'TH06WB3S', 'name': 'Master bath', 'online': True, 'owner_id': '72813327', 'product_id': '7akwzwfwhukkdsib', 'product_name': 'T & H Sensor', 'sub': False, 'time_zone': '-05:00', 'update_time': 1688937599, 'uuid': '7d1837d33d0d978d'}, 'success': True, 't': 1688940265570, 'tid': '914015e71ea411ee804ade073cb82c5d'}
Tuya Device states for Bedroom TV plug tuya
Tuya {'result': [{'code': 'switch_1', 'value': True}, {'code': 'countdown_1', 'value': 0}, {'code': 'add_ele', 'value': 13}, {'code': 'cur_current', 'value': 0}, {'code': 'cur_power', 'value': 0}, {'code': 'cur_voltage', 'value': 1197}, {'code': 'relay_status', 'value': 'power_on'}, {'code': 'cycle_time', 'value': ''}, {'code': 'random_time', 'value': ''}], 'success': True, 't': 1688940265678, 'tid': '914fd9cf1ea411ee8c70fe98ebe72f12'}
Tuya Device info for Bedroom TV plug tuya
Tuya {'result': {'active_time': 1657083137, 'category': 'cz', 'category_name': 'Socket', 'create_time': 1657083137, 'gateway_id': '', 'icon': 'smart/icon/ay15306906879543yc3O/e7a27577e2dbb5eb6ecefa2eaf5f6e25.jpg', 'id': 'eb24aba4aa31cd60b2oigl', 'ip': '104.50.216.93', 'lat': '32.8958', 'local_key': '43e944df0519e3cf', 'lon': '-96.7791', 'model': 'wifi计量插座', 'name': 'Bedroom tv plug', 'online': True, 'owner_id': '72813327', 'product_id': 'xf5vhc7zctkoe7pv', 'product_name': 'Smart Plug', 'sub': False, 'time_zone': '-05:00', 'update_time': 1688937619, 'uuid': 'c5013705d584a6bf'}, 'success': True, 't': 1688940265845, 'tid': '9161b70a1ea411ee804ade073cb82c5d'}
Tuya Device states for Dining room Tuya Temp
Tuya {'result': [{'code': 'va_temperature', 'value': 229}, {'code': 'va_humidity', 'value': 496}, {'code': 'battery_percentage', 'value': 10}, {'code': 'temp_unit_convert', 'value': 'f'}, {'code': 'maxtemp_set', 'value': 40}, {'code': 'minitemp_set', 'value': 10}, {'code': 'maxhum_set', 'value': 90}, {'code': 'minihum_set', 'value': 30}, {'code': 'temp_alarm', 'value': 'cancel'}, {'code': 'hum_alarm', 'value': 'loweralarm'}, {'code': 'bright_value', 'value': 67}, {'code': 'temp_sensitivity', 'value': 3}, {'code': 'hum_sensitivity', 'value': 5}, {'code': 'switch', 'value': False}], 'success': True, 't': 1688940265949, 'tid': '9179f5321ea411ee8c70fe98ebe72f12'}
Tuya Device info for Dining room Tuya Temp
Tuya {'result': {'active_time': 1654730762, 'category': 'wsdcg', 'category_name': 'Temperature and Humidity Sensor', 'create_time': 1653565550, 'gateway_id': '', 'icon': 'smart/icon/ay1522815888395iqsuQ/efec180637780e4c91208680ac12d111.png', 'id': 'ebc2d36daf2ab74d5blpyf', 'ip': '104.50.216.93', 'lat': '32.8958', 'local_key': 'f80f043c6c066aaf', 'lon': '-96.7791', 'model': 'NEO WIFI HT', 'name': 'Dining room', 'online': True, 'owner_id': '72813327', 'product_id': '0k8mzr1ajxzvj5ar', 'product_name': 'WIFI HT', 'sub': False, 'time_zone': '-05:00', 'update_time': 1688938478, 'uuid': 'ae33b6c517328b2f'}, 'success': True, 't': 1688940266104, 'tid': '9189cd4c1ea411ee804ade073cb82c5d'}
Tuya Device states for Equipment Closet Temp tuya
Tuya {'result': [{'code': 'va_temperature', 'value': 261}, {'code': 'humidity_value', 'value': 47}, {'code': 'temp_unit_convert', 'value': 'f'}], 'success': True, 't': 1688940266210, 'tid': '91a1aae21ea411ee804ade073cb82c5d'}
Tuya Device info for Equipment Closet Temp tuya
Tuya {'result': {'active_time': 1675996041, 'category': 'wsdcg', 'category_name': 'Temperature and Humidity Sensor', 'create_time': 1675996041, 'gateway_id': '', 'icon': 'smart/icon/ay1525749833414yotNt/60d869bb20b0e1b0f0347a9fd8781a3c.png', 'id': 'eb14138645cc2ea548f4zs', 'ip': '104.50.216.93', 'lat': '32.9000', 'local_key': '07f6ff9017f3f3f8', 'lon': '-96.7800', 'model': 'TH06WB3S', 'name': 'Equipment closet', 'online': True, 'owner_id': '72813327', 'product_id': '7akwzwfwhukkdsib', 'product_name': 'T & H Sensor', 'sub': False, 'time_zone': '-06:00', 'update_time': 1688937637, 'uuid': '18d49bbf3824f155'}, 'success': True, 't': 1688940266318, 'tid': '91b175f61ea411ee9fecaa50f188a4b0'}
Tuya Error Error getting readings for Tuya device
Tuya {'code': 1106, 'msg': 'permission deny', 'success': False, 't': 1688940266426, 'tid': '91c238211ea411ee8c70fe98ebe72f12'}
Tuya Error Error getting info for Tuya device
Tuya {'code': 1106, 'msg': 'permission deny', 'success': False, 't': 1688940266525, 'tid': '91d265671ea411ee9fecaa50f188a4b0'}
Tuya Device states for Garage temp tuya
Tuya {'result': [{'code': 'va_temperature', 'value': 328}, {'code': 'humidity_value', 'value': 42}, {'code': 'temp_unit_convert', 'value': 'f'}], 'success': True, 't': 1688940266624, 'tid': '91e13abe1ea411ee804ade073cb82c5d'}
Tuya Device info for Garage temp tuya
Tuya {'result': {'active_time': 1664758916, 'category': 'wsdcg', 'category_name': 'Temperature and Humidity Sensor', 'create_time': 1653565959, 'gateway_id': '', 'icon': 'smart/icon/ay1525749833414yotNt/60d869bb20b0e1b0f0347a9fd8781a3c.png', 'id': 'ebe5167145c6680595bw3k', 'ip': '104.50.216.93', 'lat': '32.9000', 'local_key': '774279eb5186da1b', 'lon': '-96.7800', 'model': 'TH06WB3S', 'name': 'Garage temp', 'online': True, 'owner_id': '72813327', 'product_id': '7akwzwfwhukkdsib', 'product_name': 'T & H Sensor', 'sub': False, 'time_zone': '-05:00', 'update_time': 1688937600, 'uuid': '917564a22d1af0fd'}, 'success': True, 't': 1688940266733, 'tid': '91f0ae221ea411ee804ade073cb82c5d'}
Tuya Device states for Great room color lights tuya
Tuya {'result': [{'code': 'switch_led', 'value': False}, {'code': 'work_mode', 'value': 'colour'}, {'code': 'colour_data_v2', 'value': '{"h":240,"s":1000,"v":500}'}, {'code': 'scene_data_v2', 'value': '{"scene_num":24,"scene_units":[{"bright":0,"h":240,"s":1000,"temperature":0,"unit_change_mode":"gradient","unit_gradient_duration":70,"unit_switch_duration":70,"v":1000},{"bright":0,"h":220,"s":700,"temperature":0,"unit_change_mode":"gradient","unit_gradient_duration":70,"unit_switch_duration":70,"v":1000}]}'}, {'code': 'countdown_1', 'value': 0}, {'code': 'music_data', 'value': ''}, {'code': 'control_data', 'value': ''}, {'code': 'rhythm_mode', 'value': ''}, {'code': 'sleep_mode', 'value': ''}, {'code': 'wakeup_mode', 'value': ''}, {'code': 'power_memory', 'value': ''}, {'code': 'cycle_timing', 'value': ''}, {'code': 'random_timing', 'value': ''}], 'success': True, 't': 1688940266842, 'tid': '9201897c1ea411ee9fecaa50f188a4b0'}
Tuya Error Error in plugin execution runConcurrentThread:

File "plugin.py", line 86, in runConcurrentThread
File "plugin.py", line 241, in getReadings
type: invalid literal for int() with base 10: '{"scene_num":24,"scene_units":[{"bright":0,"h":240,"s":1000,"temperature":0,"unit_change_mode":"gradient","unit_gradient_duration":70,"unit_switch_duration":70,"v":1000},{"bright":0,"h":220,"s":700,"

Tuya Error plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)

Posted on
Mon Jul 10, 2023 1:02 am
racarter offline
User avatar
Posts: 479
Joined: Jun 18, 2016
Location: North Yorkshire, UK

Re: Oddball errors

Try latest release.

Posted on
Mon Jul 10, 2023 7:48 pm
dlleon offline
Posts: 114
Joined: Dec 14, 2012

Re: Oddball errors

so close!

Tuya Starting Tuya monitoring thread
Tuya Error Error getting readings for Garage closet temp tuya
Tuya {'code': 1106, 'msg': 'permission deny', 'success': False, 't': 1689040067274, 'tid': 'efb32f6d1f8c11ee8c70fe98ebe72f12'}
Tuya Error Error getting info for Garage closet temp tuya
Tuya {'code': 1106, 'msg': 'permission deny', 'success': False, 't': 1689040067361, 'tid': 'efc218401f8c11ee804ade073cb82c5d'}
Tuya Error Error in plugin execution runConcurrentThread:

File "plugin.py", line 86, in runConcurrentThread
File "plugin.py", line 258, in getReadings
type: local variable 'colourTemp' referenced before assignment

Tuya Error plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)
Tuya Starting Tuya monitoring thread
Tuya Error Error getting readings for Garage closet temp tuya
Tuya {'code': 1106, 'msg': 'permission deny', 'success': False, 't': 1689040080112, 'tid': 'f7532bc11f8c11ee8c70fe98ebe72f12'}
Tuya Error Error getting info for Garage closet temp tuya
Tuya {'code': 1106, 'msg': 'permission deny', 'success': False, 't': 1689040080203, 'tid': 'f76879cd1f8c11ee804ade073cb82c5d'}
Tuya Error Error in plugin execution runConcurrentThread:

File "plugin.py", line 86, in runConcurrentThread
File "plugin.py", line 258, in getReadings
type: local variable 'colourTemp' referenced before assignment

Tuya Error plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)

Posted on
Mon Jul 10, 2023 7:48 pm
dlleon offline
Posts: 114
Joined: Dec 14, 2012

Re: Oddball errors

Tuya Error Error in plugin execution runConcurrentThread:

File "plugin.py", line 86, in runConcurrentThread
File "plugin.py", line 258, in getReadings
type: local variable 'colourTemp' referenced before assignment

Tuya Error plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)

Posted on
Mon Jul 10, 2023 10:32 pm
racarter offline
User avatar
Posts: 479
Joined: Jun 18, 2016
Location: North Yorkshire, UK

Re: Oddball errors

See new version in store. :)

Posted on
Tue Jul 11, 2023 7:24 am
dlleon offline
Posts: 114
Joined: Dec 14, 2012

Re: Oddball errors

The errors are getting shorter!

Tuya Starting Tuya monitoring thread
Tuya Error Error getting readings for Garage closet temp tuya
Tuya {'code': 1106, 'msg': 'permission deny', 'success': False, 't': 1689081853077, 'tid': '39fa6ff21fee11ee804ade073cb82c5d'}
Tuya Error Error getting info for Garage closet temp tuya
Tuya {'code': 1106, 'msg': 'permission deny', 'success': False, 't': 1689081853160, 'tid': '3a09096e1fee11ee8c70fe98ebe72f12'}
Tuya Error Error in plugin execution runConcurrentThread:

File "plugin.py", line 86, in runConcurrentThread
File "plugin.py", line 219, in getReadings
type: list index out of range

Tuya Error plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)

Posted on
Tue Jul 11, 2023 7:54 am
racarter offline
User avatar
Posts: 479
Joined: Jun 18, 2016
Location: North Yorkshire, UK

Re: Oddball errors

Latest version (in store now) should fix the 'index out of range' error.

No idea why you're getting the 'permission denied' error for one device. If you could go into the Tuya API Explorer and query the properties of that device, then query the properties of a device that works, and copy and paste the URLs the API Explorer uses it should help me find the problem.

Do you have any idea how hard it is to debug devices I don't have? ;) :P

Posted on
Tue Jul 11, 2023 11:05 pm
dlleon offline
Posts: 114
Joined: Dec 14, 2012

Re: Oddball errors

I think that did it!

It's still doing the permission deny, but now it's actually reporting the temp. I won't know until tomorrow if it's accurate (or an old temp) but wow!

Who is online

Users browsing this forum: No registered users and 1 guest