vshymanskyy / blynk-library-python

Blynk library for Python. Works with Python 2, Python 3, MicroPython.
https://blynk.io/
MIT License
281 stars 97 forks source link

set_property for color doesn't appear to work #23

Closed chrissv closed 5 years ago

chrissv commented 5 years ago

I am using the code from this github repo. I am trying to change the color of a LED attached to V8 I have confirmed the LED is working via

blynk.virtual_write(8,0)

and

blynk.virtual_write(8,255)

I am trying to change the color with this command:

blynk.set_property(8,'color','#D3435C')   # red

Enabling logging shows the Blynk server is responding with '200' (OK) but the LED color never changes.

Do I have the command format correct?

Note that I haven't tried other properties, just the color.

chrissv commented 5 years ago

False alarm. More debugging revealed I had a logic problem. Instead of setting the color between red and green, was setting it between green and green. It works just fine once I have my logic correct.