- Posted on
Wed Sep 20, 2023 7:25 pm
-
freshwuzhere
offline
-
- Posts: 105
- Joined: Apr 05, 2012
Hi,
I had started writing a tuya plugin when I saw yours! Thanks! It appears to work OK for what I need ( turning on and off on a schedule).
I am running version 2022.8.1 with indigo 2022.2.2 on a Mac mini. NOTE just upgraded to your plugin 2022.9.0 and still getting same error although info message string has more data like lat and long. {'code': 'colour_data', 'value': '{"h":328.0,"s":178.0,"v":255.0}'}.
Device I am running are rgby string lights I bought from Costco (don't have the name). They work fine on the tuya app - except the wifi reception seems a bit weak - but it generally is effective when driven from tuya,
I keep getting these error messages on both string lights - which seem to fetch up the color settings.
___________________________________________________
Tuya Device states for Bulb String Lights 10.0.0.22
Tuya {'result': [{'code': 'switch_led', 'value': True}, {'code': 'work_mode', 'value': 'scene2'}, {'code': 'bright_value', 'value': 255}, {'code': 'temp_value', 'value': 32}, {'code': 'colour_data', 'value': '{"h":328.0,"s":178.0,"v":255.0}'}], 'success': True, 't': 123456789123456, 'tid': 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxx'}
Error updateStateOnServer() caught exception: LowLevelBadParameterError -- device value type for state key brightnessLevel must be integer
___________________________________________________
I obfuscated the ID etc.
Seems the HSV values as floats isn't as expected? Anyway - no problem at my end because on and off work fine and that is all I need - if I need colors - I'll use the tuya app.
Thanks for saving me the trouble of writing!
Ian