| | |
| | | string on_off = GetKeyValue("on_off", dicList); |
| | | string brightness = GetKeyValue("brightness", dicList); |
| | | string cct = GetKeyValue(FunctionAttributeKey.CCT, dicList); |
| | | string colorful = GetKeyValue(FunctionAttributeKey.Colorful, dicList); |
| | | //自动化组控 炫彩功能 |
| | | //string colorful = GetKeyValue(FunctionAttributeKey.Colorful, dicList); |
| | | string rgb = GetKeyValue("rgb", dicList); |
| | | |
| | | |
| | |
| | | stateStr += "," + Language.StringByID(StringId.ColorTemperature) + cct + "k"; |
| | | } |
| | | |
| | | if (!string.IsNullOrEmpty(colorful)) |
| | | { |
| | | stateStr += "," + Language.StringByID(StringId.ColorfulFunction); |
| | | if (colorful == "on") |
| | | { |
| | | stateStr += Language.StringByID(StringId.onLogic); |
| | | } |
| | | else if (colorful == "off") |
| | | { |
| | | stateStr += Language.StringByID(StringId.offLogic); |
| | | } |
| | | |
| | | } |
| | | //if (!string.IsNullOrEmpty(colorful)) |
| | | //{ |
| | | // stateStr += "," + Language.StringByID(StringId.ColorfulFunction); |
| | | // if (colorful == "on") |
| | | // { |
| | | // stateStr += Language.StringByID(StringId.onLogic); |
| | | // } |
| | | // else if (colorful == "off") |
| | | // { |
| | | // stateStr += Language.StringByID(StringId.offLogic); |
| | | // } |
| | | //} |
| | | |
| | | if (!string.IsNullOrEmpty(rgb) && rgb.Length > 6) |
| | | { |