public KHueNodeRgb(INodeContext context) : base(context) { context.ThrowIfNull("context"); _typeService = context.GetService <ITypeService>(); Red = _typeService.CreateByte(PortTypes.Byte, "Red"); Green = _typeService.CreateByte(PortTypes.Byte, "Green"); Blue = _typeService.CreateByte(PortTypes.Byte, "Blue"); LightId = _typeService.CreateInt(PortTypes.Integer, "Light ID"); Username = _typeService.CreateString(PortTypes.String, "Hue user name"); IpAddress = _typeService.CreateString(PortTypes.String, "Hue bridge IP address"); ErrorMessage = _typeService.CreateString(PortTypes.String, "Error message"); }