Get attribute from device
Posted: Tuesday 17 April 2018 23:25
Hello guys,
How can i retrive color only attribute from my virtual rgb switch ?
So far i see it under dump function
domoticz.devices('Yeelight vswitch').dump() =>
...
dzVents: > color: {"b":255,"cw":0,"g":243,"m":3,"r":171,"t":0,"ww":0}
...
Final result i would like to have rgb as different variables, i believe it may be trivial but i'm not soo good at LUA yet
How can i retrive color only attribute from my virtual rgb switch ?
So far i see it under dump function
domoticz.devices('Yeelight vswitch').dump() =>
...
dzVents: > color: {"b":255,"cw":0,"g":243,"m":3,"r":171,"t":0,"ww":0}
...
Final result i would like to have rgb as different variables, i believe it may be trivial but i'm not soo good at LUA yet
