IoT Cloud Variables not updated from Dashboard

I tested your code and it seems to work fine.
Can you please check that ledKytkin has "On change" as Variable Update Policy, like in the screenshot below?