gregy - WSK switch with LEDi have this setup,...
WSK switch with LED
i have this setup, and it works, sort of..
trying to understand the logic of the path in server
Not sure if my thinking assumption is wrong?
.. when touching any of the 4 buttons in wsk, it correctly sends msg to the Put handler .. which in turn takes some (http post) actions - all good.
however the value in the “environment.WLED.status ” path never changes .. always stays = “off” (from when its initialised in nodered)
Q: have i setup the path/meta correctly?
Q; should the value in the server path get updated from each button push?
at present, after touching one of the buttons (eg warm) .. wsk shows it lit up, then after short period goes back to having a green color for the off button (corresponding (presumably) to the fact that the value in the path never changes from “off”)
im guessing my “meta” setup is incorrect (albeit it sort of works)
7 Replies
![No description](https://cdn.answeroverflow.com/1239154794153775155/83720315-5F4D-43FD-944F-6466ADF57EF0.jpg)
![No description](https://cdn.answeroverflow.com/1239154830757597214/FC8252D5-74E6-453E-9B6F-AD2367B4FDC3.jpg)
![No description](https://cdn.answeroverflow.com/1239154871492673577/30497065-828A-433F-B56D-1399EB3DF5E8.jpg)
![No description](https://cdn.answeroverflow.com/1239154912151994408/D09E979A-C066-4281-AEBA-55807F20951C.jpg)
![No description](https://cdn.answeroverflow.com/1239154947312979968/F9D8CECA-A94A-4ABE-B9A3-9320CF919AD1.jpg)
Your put handler should be sending out a delta to update the path
ah. duh . thx, it now seems obvious …
Q: the color that wsk displays under the led/switch .. at present black or green .. is this configurable? meta?